/* answers.css — GEO answer pages.
   Layered on top of service-pages.css: these pages are written to be READ BY
   ANSWER ENGINES first (direct answer up top, scannable criteria, real FAQ),
   so the styling stays deliberately quiet and legible rather than decorative. */

.answer-hero { padding: clamp(96px, 14vh, 168px) 0 clamp(40px, 6vh, 72px); }
.answer-hero .eyebrow { margin-bottom: 18px; }
.answer-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 20ch;
}

/* The direct answer. This is the block an answer engine is most likely to
   lift verbatim, so it is first in the DOM and visually unmistakable. */
.answer-direct {
  border-left: 4px solid var(--accent, #2dd4bf);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 0 12px 12px 0;
  padding: 22px 26px;
  margin: 0 0 40px;
  max-width: 68ch;
}
.answer-direct p { font-size: clamp(1.05rem, 1.9vw, 1.3rem); line-height: 1.55; margin: 0; }
.answer-direct p + p { margin-top: 14px; }
.answer-direct strong { color: var(--accent, #2dd4bf); }

.answer-body { max-width: 72ch; }
.answer-body h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15; letter-spacing: -0.01em;
  margin: 56px 0 16px;
}
.answer-body h3 { font-size: clamp(1.05rem, 1.9vw, 1.25rem); margin: 32px 0 10px; }
.answer-body p, .answer-body li { font-size: 1.02rem; line-height: 1.7; opacity: .92; }
.answer-body ul, .answer-body ol { padding-left: 1.25em; margin: 14px 0; }
.answer-body li { margin: 8px 0; }
.answer-body li strong { opacity: 1; }

/* Criteria checklist — the "how to choose" pattern answer engines love to cite */
.criteria { list-style: none; padding: 0; margin: 20px 0; }
.criteria li {
  position: relative; padding: 14px 0 14px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.criteria li::before {
  content: "→"; position: absolute; left: 0; top: 14px;
  color: var(--accent, #2dd4bf); font-weight: 700;
}
.criteria li:last-child { border-bottom: 0; }

.answer-table-wrap { overflow-x: auto; margin: 22px 0; }
.answer-table { width: 100%; border-collapse: collapse; min-width: 460px; }
.answer-table th, .answer-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .96rem;
}
.answer-table th { opacity: .6; font-weight: 600; }

.faq-list { margin: 24px 0 0; }
.faq-item { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.faq-item h3 { margin: 0 0 10px; font-size: 1.06rem; line-height: 1.35; }
.faq-item p { margin: 0; opacity: .88; }

.answer-cta {
  margin-top: 64px; padding: 32px; border-radius: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.answer-cta h2 { margin: 0 0 10px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.answer-cta p { margin: 0 0 20px; opacity: .9; }
.answer-cta .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.answer-related { margin-top: 56px; }
.answer-related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.answer-related a { text-decoration: none; opacity: .9; }
.answer-related a:hover { opacity: 1; text-decoration: underline; }

/* ───────────────────────────────────────────────────────────────
   Enhanced layout for app-dev answer page. Adds visual rhythm and
   scannable structure WITHOUT removing any of the text an answer
   engine reads — every block is still real, selectable copy.
   ─────────────────────────────────────────────────────────────── */

/* Pull the reading measure in from the very wide global shell and centre it,
   so the page no longer sits pinned to the left with a dead right half. */
body[data-page="answers"] .page-shell { width: min(1080px, calc(100vw - 44px)); }
.answer-hero h1 { font-family: var(--display, "Anton", sans-serif); font-weight: 400; text-transform: uppercase; letter-spacing: -0.015em; line-height: .92; font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; }

/* Two-column body: reading column + sticky rail that uses the old dead space */
.answer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 244px; gap: 58px; align-items: start; }
.answer-layout .answer-body { max-width: none; min-width: 0; }
/* the comparison table is the one wide child; keep it scrolling INSIDE the
   column instead of forcing the whole reading column past the viewport */
.answer-body .answer-table-wrap { max-width: 100%; }
.answer-body .tech-grid, .answer-body .case-note { min-width: 0; }
.answer-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.answer-toc__label { margin: 0 0 12px; font-size: .62rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #8a8994; }
.answer-toc__nav { display: flex; flex-direction: column; }
.answer-toc__nav a {
  display: flex; gap: 11px; align-items: baseline; padding: 8px 0 8px 13px;
  border-left: 2px solid var(--line, #292932); color: #b0afba;
  text-decoration: none; font-size: .9rem; line-height: 1.3;
  transition: color .15s ease, border-color .15s ease;
}
.answer-toc__nav a:hover { color: var(--ink, #f7f7f4); border-left-color: var(--cyan, #17c9f1); }
.answer-toc__nav a i { font-family: var(--display, "Anton"); font-style: normal; font-size: .82rem; color: #6a6975; }
.answer-toc__cta { padding: 20px; border: 1px solid var(--line, #292932); border-radius: 16px; background: rgba(184, 255, 24, .045); }
.answer-toc__cta p { margin: 0 0 14px; font-size: .9rem; line-height: 1.5; opacity: .92; }
.answer-toc__cta .btn { width: 100%; justify-content: center; }
.answer-toc__meta { font-size: .78rem; line-height: 1.6; color: #8a8994; }
.answer-toc__meta a { color: #b0afba; text-decoration: none; }
.answer-toc__meta a:hover { color: var(--cyan, #17c9f1); }

@media (max-width: 960px) {
  .answer-layout { grid-template-columns: 1fr; gap: 0; }
  .answer-toc { display: none; }
}

/* Section wrapper + numbered eyebrow */
.sec { margin: 60px 0 0; scroll-margin-top: 90px; }
.sec:first-of-type { margin-top: 8px; }
.sec-eyebrow {
  display: flex; align-items: center; gap: 11px; margin: 0 0 14px;
  font-size: .7rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #9a99a6;
}
.sec-eyebrow b {
  font-family: var(--display, "Anton", sans-serif); font-weight: 400;
  font-size: 1.05rem; letter-spacing: .02em; line-height: 1;
  color: var(--sec, #17c9f1);
  padding: 4px 8px; background: color-mix(in srgb, var(--sec, #17c9f1) 14%, transparent);
  border-radius: 6px;
}
.sec--cyan   { --sec: #17c9f1; } .sec--purple { --sec: #9638f4; }
.sec--pink   { --sec: #f22b9b; } .sec--lime   { --sec: #b8ff18; }
.answer-body .sec h2 { margin-top: 0; }
.answer-body .sec h2 mark { background: transparent; color: var(--sec, #17c9f1); }
.answer-aside {
  margin: 16px 0 0; padding-left: 14px;
  border-left: 2px solid color-mix(in srgb, var(--sec, #17c9f1) 55%, transparent);
  color: #b7b6c0; font-style: italic;
}

/* "What building involves" → icon cards instead of a bullet wall */
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 22px 0 0; }
.tech-card {
  padding: 17px 18px; border: 1px solid var(--line, #292932);
  border-left: 3px solid var(--sec, #17c9f1); border-radius: 13px;
  background: rgba(255, 255, 255, .022);
}
.tech-card iconify-icon { color: var(--sec, #17c9f1); font-size: 1.45rem; }
.tech-card b { display: block; margin: 9px 0 4px; font-size: 1rem; opacity: 1; }
.tech-card span { font-size: .9rem; line-height: 1.55; opacity: .78; }

/* Comparison table accents */
.answer-table.cmp th:first-child, .answer-table.cmp td:first-child { color: #cfcfd6; font-weight: 600; }
.answer-table.cmp thead th { color: var(--ink, #f7f7f4); opacity: 1; font-family: var(--display, "Anton"); font-weight: 400; letter-spacing: .02em; font-size: 1.05rem; text-transform: uppercase; }
.answer-table.cmp .col-yes { color: var(--lime, #b8ff18); }
.answer-table.cmp .col-no  { color: #ff7b6b; }

/* Live-example / case-study callout */
.case-note {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0; margin: 24px 0 0; border: 1px solid var(--line, #292932);
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(150deg, rgba(184,255,24,.05), rgba(255,255,255,.015) 46%);
}
.case-note__img { position: relative; min-height: 220px; background: #08080c; }
.case-note__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-note__body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.case-badge {
  align-self: flex-start; margin-bottom: 12px; padding: 5px 11px;
  border-radius: 999px; background: var(--lime, #b8ff18); color: #050509;
  font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.case-note__body p { margin: 0; font-size: 1rem; line-height: 1.62; opacity: .92; }
.case-stats { display: flex; gap: 26px; margin-top: 20px; flex-wrap: wrap; }
.case-stats div { display: flex; flex-direction: column; }
.case-stats b { font-family: var(--display, "Anton"); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--lime, #b8ff18); }
.case-stats span { margin-top: 5px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }

/* Tech-stack chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px;
  border: 1px solid var(--line, #292932); border-radius: 999px;
  background: rgba(255, 255, 255, .025); font-size: .84rem; opacity: .95;
}
.chip iconify-icon { color: var(--sec, #17c9f1); font-size: 1.05rem; }

@media (max-width: 749px) {
  .answer-direct { padding: 18px 20px; }
  .answer-body h2 { margin-top: 42px; }
  .sec { margin-top: 48px; }
  .tech-grid { grid-template-columns: 1fr; }
  .case-note { grid-template-columns: 1fr; }
  .case-note__img { min-height: 190px; }
  .case-note__body { padding: 22px 20px; }
  .case-stats { gap: 20px; }
}
