/* answer.css: shared page styles for the three answer pages
   (/ai-automation-cost-uk, /chatgpt-or-built, /what-to-automate-first).
   Loaded after site.css. Same vocabulary as first-agent.css: a hero with a
   far image plane and SVG arcs, flat 16px cards, cyan reads, one lime act
   per view. Every colour is a site token so the light theme repaints it. */

/* ------------------------------------------------------------- 1. hero */
.hero.planes { position: relative; overflow: hidden; min-height: 640px; }
.hero.planes .plane-far { position: absolute; inset: 0; height: 100%; z-index: 0; overflow: hidden; }
.hero.planes .plane-far img { width: 100%; height: 100%; object-fit: cover; object-position: center 78%; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(10,14,26,.94) 0%, rgba(10,14,26,.94) 44%,
    rgba(10,14,26,.72) 58%, rgba(10,14,26,.30) 74%, rgba(10,14,26,0) 90%);
}
.hero.planes .plane-mid { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 150px; pointer-events: none; }
.hero.planes .plane-mid svg { display: block; width: 100%; height: 100%; }
.hero.planes .plane-near { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: 42px; pointer-events: none; }
.hero.planes .plane-near svg { display: block; width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; width: min(1280px, 92%); margin: 0 auto; padding: 92px 0 270px; }
.hero-inner h1 { max-width: 20ch; font-size: clamp(2.5rem, 4.2vw, 3.75rem); }
.hero .sub { margin: 22px 0 0; max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.hero .updated { display: block; margin-top: 22px; font: 500 12px/1.4 'JetBrains Mono', monospace; letter-spacing: 0.04em; color: var(--text-dim); }
.hero-act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.hero-act .sidenote { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text); max-width: 60ch; text-wrap: pretty; }
/* Flipped hero (the comparison page): the copy sits in the right half and the
   scrim runs left to right, so the photo's subject, which sits left of centre,
   stays clear of the words. Same move /four-differences makes with this photo. */
.hero.flip .plane-far img { object-position: center 70%; }
@media (min-width: 781px) {
  .hero.flip .hero-scrim { background: linear-gradient(100deg,
    rgba(10,14,26,.10) 0%, rgba(10,14,26,.22) 34%, rgba(10,14,26,.90) 52%, rgba(10,14,26,.96) 100%); }
  .hero.flip .hero-inner { display: flex; justify-content: flex-end; }
  .hero.flip .hero-copy { width: min(640px, 58%); }
}
/* The hero keeps its own night ground in the light theme, as /first-agent does. */
html[data-theme="light"] .hero {
  --text: #ecf0fa; --text-dim: #c4ccdf; --text-faint: #aab3c9;
  --cyan: #00e3e4; --surface: #11162a; --surface-elev: #161c33; --border: #2b3456;
  color: #ecf0fa; background-color: #0a0e1a;
}
@media (max-width: 780px) {
  .hero.planes { min-height: 560px; }
  /* Narrow screens carry four to five lines of H1, so the copy reaches further
     down the frame: the scrim stays solid for longer before it opens. */
  .hero-scrim { background: linear-gradient(to bottom,
    rgba(10,14,26,.94) 0%, rgba(10,14,26,.94) 60%,
    rgba(10,14,26,.74) 72%, rgba(10,14,26,.30) 85%, rgba(10,14,26,0) 96%); }
  .hero-inner { padding: 64px 0 190px; }
  .hero-inner h1 { max-width: 14ch; }
  .hero .sub { font-size: 17.5px; }
}
/* Full wording stays in the markup; under 600px the long part is hidden so
   the one lime control stays under 2% of the first view (first-agent rule). */
@media (max-width: 600px) { .hero-act .btn-lime .long { display: none; } }

/* ---------------------------------------------------- 2. section rhythm */
main > section { padding: 88px 0; border-bottom: 1px solid var(--border); }
main > section:last-of-type { border-bottom: none; }
@media (max-width: 780px) { main > section { padding: 56px 0; } }
.sec-head { max-width: 760px; }
.sec-head h2 { margin: 0; }
main h3 { font: 600 17px/1.32 Inter, sans-serif; color: var(--text); letter-spacing: -0.01em; margin: 0 0 10px; }

/* ------------------------------------------------------ 3. answer strip
   The answer up front, in three figures. JetBrains Mono carries the number
   (brand: data values in the readable green), Inter carries the label. */
.answer-strip { padding: 26px 0 30px; }
.answer-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.answer-tile { padding: 10px 28px 8px; border-left: 1px solid var(--border); }
.answer-tile:first-child { border-left: none; padding-left: 0; }
.answer-tile .fig { display: block; font: 700 40px/1.05 'JetBrains Mono', monospace; letter-spacing: -0.02em; color: var(--lime-read); }
.answer-tile .fig.phrase { font-family: Inter, sans-serif; font-weight: 700; letter-spacing: -0.02em; }
.answer-tile .lab { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--text-dim); max-width: 30ch; }
@media (max-width: 780px) {
  .answer-strip { padding: 10px 0 14px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-tile { border-left: none; border-top: 1px solid var(--border); padding: 20px 0; }
  .answer-tile:first-child { border-top: none; }
  .answer-tile .fig { font-size: 32px; }
}

/* ------------------------------------------------- 4. numbered cards */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.eyebrow.sub-eyebrow + .num-grid { margin-top: 4px; }
@media (max-width: 920px) { .num-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .num-grid { grid-template-columns: 1fr; } }
.num-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px 24px 26px; transition: transform .2s, border-color .2s; }
.num-card:hover { transform: translateY(-2px); border-color: var(--cyan); }
.num-card .n { display: block; font: 500 11px 'JetBrains Mono', monospace; color: var(--cyan); letter-spacing: 0.14em; margin-bottom: 14px; }
.num-card h3 { margin: 0 0 8px; font-size: 18px; }
.num-card h3:last-child { margin-bottom: 0; }
.num-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.62; }

/* --------------------------------------------------- 5. promise block */
.promise-block { margin-top: 40px; max-width: 760px; padding: 20px 24px; border-left: 3px solid var(--cyan); background: var(--surface); border-radius: 0 16px 16px 0; }
.promise-block .ptag { display: block; font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.promise-block p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); font-weight: 600; }

/* The one question to ask yourself: large, plain, on its own. */
.ask { margin-top: 48px; max-width: 760px; }
.ask .ptag { display: block; font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.ask p { margin: 0; font: 600 clamp(20px, 2.3vw, 26px)/1.35 Inter, sans-serif; letter-spacing: -0.01em; color: var(--text); text-wrap: pretty; }

/* ------------------------------------------- 6. fit columns (seat/built) */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; max-width: 960px; }
@media (max-width: 780px) { .fit-grid { grid-template-columns: 1fr; gap: 26px; } }
.fit-col { border-top: 1px solid var(--border); padding: 24px 2px 2px; position: relative; }
.fit-col::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--text-dim); }
.fit-col.yes::before { background: var(--cyan); }
.fit-col h3 { font: 600 12px 'JetBrains Mono', monospace; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 16px; color: var(--text-dim); }
.fit-col.yes h3 { color: var(--cyan); }
.fit-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.fit-col li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 16px; line-height: 1.55; }
.fit-col li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 10px; height: 1.5px; background: var(--text-dim); }
.fit-col.yes li { color: var(--text); }
.fit-col.yes li::before { background: var(--cyan); }

/* --------------------------------------------------- 7. the path (steps) */
.path { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 4), 1fr); counter-reset: step; }
.path li { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.path li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--cyan);
  color: var(--cyan); font: 600 12px 'JetBrains Mono', monospace; letter-spacing: 0.04em;
  background: var(--navy); position: relative; z-index: 1;
}
.path li::after { content: ""; position: absolute; top: 18px; left: 36px; right: 0; height: 1px; background: var(--border); }
.path li:last-child::after { display: none; }
.path h3 { margin: 18px 0 0; font-size: 17px; max-width: 18ch; }
.path-note { margin-top: 36px; max-width: 720px; color: var(--text-dim); font-size: 16.5px; line-height: 1.65; }
.path-note b { color: var(--text); font-weight: 600; }
@media (max-width: 780px) {
  .path { grid-template-columns: 1fr; gap: 26px; }
  .path li { padding: 0 0 0 52px; }
  .path li::before { position: absolute; left: 0; top: -4px; }
  .path li::after { display: none; }
  .path h3 { margin-top: 0; max-width: none; }
}

/* ------------------------------------------------ 8. compare (table) */
.compare { width: 100%; max-width: 1000px; border-collapse: separate; border-spacing: 14px 10px; margin: 26px 0 0 -14px; }
.compare th, .compare td { text-align: left; vertical-align: top; }
.compare thead th { padding: 0 4px 2px; font: 600 11px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.compare thead th.built { color: var(--cyan); }
.compare tbody th { padding: 16px 4px; font: 600 15px/1.45 Inter, sans-serif; color: var(--text); border-top: 1px solid var(--border); width: 30%; }
.compare td { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.compare td.built { background: var(--surface-elev); border-color: var(--cyan); color: var(--text); }
@media (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare { border-spacing: 0; margin: 24px 0 0; }
  .compare tbody th { padding: 18px 0 8px; }
  .compare td { margin: 0 0 10px; }
  .compare td::before { content: attr(data-col); display: block; font: 600 11.5px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
  .compare td.built::before { color: var(--cyan); }
}

/* ------------------------------------------------------- 9. not-first */
.line-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; max-width: 960px; }
@media (max-width: 780px) { .line-grid { grid-template-columns: 1fr; } }
.line-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; }
.line-card p { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.eyebrow.sub-eyebrow { margin: 52px 0 0; }

/* -------------------------------------------------------- 10. questions */
.faq-list { max-width: 1040px; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-list li { border: 1px solid var(--border); }
/* Three questions sit three across; four stay 2 x 2. */
.faq-list:has(li:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 920px) { .faq-list:has(li:nth-child(3):last-child) { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .faq-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- 11. related */
.rel-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.rel-grid a {
  display: flex; flex-direction: column; gap: 12px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px;
  color: var(--text); font-weight: 600; font-size: 15.5px; line-height: 1.4; text-decoration: none;
  transition: transform .2s, border-color .2s;
}
.rel-grid a:hover, .rel-grid a:focus-visible { transform: translateY(-2px); border-color: var(--cyan); text-decoration: none; }
.rel-grid .rt { font: 600 10.5px 'JetBrains Mono', monospace; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.rel-grid .ra { margin-top: auto; color: var(--cyan); font-size: 14px; font-weight: 500; }

/* ---------------------------------------------------------- 12. closing */
.closing { background: var(--surface); border-top: 1px solid var(--border); text-align: center; padding: 96px 24px; }
.closing .lead { margin: 0 auto 30px; max-width: 620px; text-align: center; font-size: 19px; line-height: 1.55; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .num-card, .rel-grid a { transition: none; }
  .num-card:hover, .rel-grid a:hover { transform: none; }
}
