/* Sections between Process and the final scene, and the footer: plans, response times, about, FAQ, footer.
   Loaded without blocking first paint (index.html, data-defer): they sit far below the fold, and when this file lands
   main.js asks the story to re-measure. Never use content-visibility here: these sections sit between two scenes, and
   skipping their layout would change the page height the story measures. */

/* Shared: a section's inner column. */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(72px, 12vh, 128px) 0 0; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-head__lead { margin-inline: auto; text-wrap: balance; }

/* ---------- Plans: three tiers, the middle one featured; a comparison table in a disclosure ---------- */
/* The cards share a row height; the featured one bulges 16px past it above and below (negative margin, extra padding), so
   every card's name, price and button line up across the row. */
.plans__grid { list-style: none; margin: clamp(48px, 7vh, 72px) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), 0 24px 60px -30px rgb(var(--shadow) / .4); }
.plan__name { margin: 0; font: 600 1.35rem/1.15 var(--font-display); letter-spacing: -.02em; }
.plan__pitch { margin: 0; min-height: 3.2em; color: var(--muted); text-wrap: balance; }
.plan__price { margin: 4px 0 0; display: grid; gap: 8px; }
.plan__amount { font: 600 clamp(2.4rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; }
.plan__unit { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan .ticks { margin: 8px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; justify-content: center; } /* the buttons share a baseline however long the ticks run */
/* The featured plan: the inverted surface (the button colours), taller, the only primary button. Its own --muted keeps
   secondary text at AA on the inverted surface in both themes. */
.plan--featured { --muted: color-mix(in srgb, var(--btn-ink) 72%, var(--btn-bg)); z-index: 1; margin-block: -16px; padding-block: 44px; background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; box-shadow: 0 40px 80px -36px rgb(var(--shadow) / .6), 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent); }
.plan--featured .ticks { border-top-color: color-mix(in srgb, var(--btn-ink) 18%, transparent); }
.plan--featured .ticks .icon { color: inherit; }
.plan--featured .btn--primary { background: var(--plan-cta); color: var(--plan-cta-ink); } /* tokens.css: the accent on the dark card, the dark button on the pale card (the accent there is only 2.4:1) */
.plan--featured .btn--primary, .plan--featured .btn--primary:hover { box-shadow: none; } /* the shared navy shadow and accent glow vanish or smear on this card; the scale and arrow nudge still answer the hover */
.plan--featured :focus-visible { outline-color: var(--btn-ink); } /* the accent ring is 2.4:1 on the pale card in dark mode */
.plan .btn--glass { border-color: color-mix(in srgb, var(--ink) 20%, transparent); box-shadow: none; } /* the glass edge is white in light mode: on a white card the button needs a visible outline */
.plan__badge { position: absolute; top: 0; left: 50%; translate: -50% -50%; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--bg); font: 600 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
/* Spotlight border (plan cards only): cursor.js sets --mx and --my for mouse users; otherwise the ring stays off. */
.plan::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plan.is-lit::before { opacity: 1; }
.plans__note { margin: 40px 0 0; text-align: center; font-size: .88rem; color: var(--muted); }
.compare { margin: 32px auto 0; max-width: 960px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--edge); }
.compare summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 20px; border-radius: var(--r-panel); font-weight: 600; list-style: none; cursor: pointer; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary::after { content: "+" / ""; font: 500 1.2rem/1 var(--mono); color: var(--accent); transition: rotate .3s var(--ease); }
.compare[open] summary::after { rotate: 45deg; }
.compare__scroll { position: relative; overflow-x: auto; } /* positioned, so the table's visually hidden spans (absolute) are clipped by the scroll box instead of widening the page */
.compare__scroll:focus-visible { outline-offset: -2px; }
.compare table { width: 100%; min-width: 560px; table-layout: fixed; border-collapse: collapse; font-size: .92rem; } /* fixed: the three plan columns are equal */
.compare thead th:first-child { width: 34%; }
.compare th, .compare td { padding: 12px 10px; text-align: center; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; font: 500 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { text-align: start; font-weight: 600; }
.compare tbody tr:last-child > * { padding-bottom: 24px; } /* the highlighted column runs through the bottom padding */
.compare th:first-child { padding-inline-start: 20px; }
.compare th:last-child, .compare td:last-child { padding-inline-end: 20px; }
.compare thead th:nth-child(3), .compare td:nth-child(3) { background: color-mix(in srgb, var(--accent) 7%, transparent); } /* the featured plan's column */
.compare .yes::before { content: ""; display: inline-block; width: 6px; height: 11px; border: solid var(--ok); border-width: 0 2px 2px 0; rotate: 45deg; } /* a drawn tick: no icon markup per cell */
.compare .no::before { content: ""; display: inline-block; width: 10px; height: 2px; border-radius: 2px; background: var(--muted); vertical-align: middle; }
.compare .yes::after, .compare .no::after { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* visually hidden, still read: the tick is drawn by ::before */
.compare .yes::after { content: "Included"; }
.compare .no::after { content: "Not included"; }
@media (forced-colors: active) { .hero__title { row-gap: .2em; } /* the text backplate of line 2 would cover the descenders of line 1 */ .plan--featured { border: 2px solid Highlight; } .compare .yes::before { border-color: CanvasText; } .compare .no::before { background: CanvasText; } }
@media (max-width: 600px) { /* the table scrolls inside its box with the feature names pinned, so each plan column is read against its row */
  .compare table { min-width: 480px; }
  .compare thead th:first-child, .compare tbody th { position: sticky; left: 0; z-index: 1; width: 8.5rem; background: var(--surface-solid); }
}
/* (max-width: 1000px is shared with main.js and ui.js, which read it with matchMedia; see hero.css.) */
@media (max-width: 1000px) {
  .plans__grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .plan__pitch { min-height: 0; }
  .plan--featured { margin-block: 0; padding-block: 44px 32px; }
}

/* ---------- Response times: priority rows as chips ---------- */
.response__inner { display: grid; gap: 32px; }
.sla { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sla__row { --tone: var(--accent); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; padding: 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), 0 16px 40px -28px rgb(var(--shadow) / .4); }
.sla__row[data-level="1"] { --tone: var(--risk); }
.sla__row[data-level="2"] { --tone: var(--warn); }
.sla__row[data-level="4"] { --tone: var(--muted); }
.sla__p { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 600 .95rem/1 var(--mono); color: var(--ink); background: color-mix(in srgb, var(--tone) 18%, var(--surface-solid)); box-shadow: inset 0 0 0 2px var(--tone); }
.sla__what h3 { margin: 0; font: 600 1.1rem/1.2 var(--font-display); letter-spacing: -.01em; }
.sla__what p { margin: 2px 0 0; font-size: .92rem; color: var(--muted); text-wrap: pretty; }
.sla__time { margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); font: 600 1rem/1.2 var(--font); white-space: nowrap; }
.sla__time span { display: block; font: 500 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sla__note { margin: 0; font-size: .88rem; color: var(--muted); text-wrap: pretty; }
@media (min-width: 1001px) {
  .response__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; column-gap: 64px; }
  .sla__note { grid-column: 2; }
}
@media (max-width: 560px) {
  .sla__row { grid-template-columns: auto minmax(0, 1fr); border-radius: var(--r-panel); }
  .sla__time { grid-column: 2; justify-self: start; }
}
@media (forced-colors: active) { .sla__p { border: 2px solid CanvasText; } }

/* ---------- About: team photo with an onboarding inset, a short paragraph, fact slots ---------- */
.about__inner { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.about__media { position: relative; padding: 0 14% 22% 0; } /* the padding is the room the inset hangs into, below the team photo */
.photo--team { aspect-ratio: 3 / 2; border-radius: var(--r-panel); box-shadow: 0 24px 60px -34px rgb(var(--shadow) / .5); }
.photo--inset { position: absolute; right: 0; bottom: 0; width: 36%; aspect-ratio: 4 / 5; border-radius: var(--r-panel); border: 6px solid var(--bg); box-shadow: 0 24px 60px -30px rgb(var(--shadow) / .5); }
.photo--inset .photo__label { right: 10px; line-height: 1.3; } /* a narrow inset wraps its label: keep the lines apart */
/* Photos: a loaded photo covers its frame's placeholder. photos.js marks a frame .is-loading until its image has loaded, so a photo that never arrives leaves the placeholder, not a broken image. object-position keeps the face in frame as the frame's shape changes. */
.photo picture, .photo img { position: absolute; inset: 0; width: 100%; height: 100%; background: inherit; } /* the frame's own placeholder, passed down to the ::after below */
.photo img { object-fit: cover; filter: var(--photo-filter, none); transition: opacity .6s var(--ease); }
.photo.is-loading img { opacity: 0; }
.photo img::after { content: ""; position: absolute; inset: 0; background: inherit; } /* only a broken image renders this (not WebKit): it covers the browser's broken-image icon and alt text with the placeholder look until photos.js hides the whole image. In Safari with no JS, a broken photo shows the icon; with JS, .is-loading covers it */
.photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; } /* a hairline edge, like the glass panels */
.photo--strip img { object-position: 15% 22%; } /* a 5.6:1 strip fits brows to chin; the phone strip is 3.4:1, which also fits the crown */
@media (max-width: 480px) { .photo--strip img { object-position: 15% 10%; } }
.about__text { margin: 20px 0 0; max-width: 52ch; font-size: 1.05rem; color: var(--ink-2); text-wrap: pretty; }
.facts { margin: 32px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 20px; } /* the right column is wider: the certifications run long */
.facts div { padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font: 500 .7rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 1001px) { .about__inner { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
@media (max-width: 1000px) { .about__media { max-width: 620px; } } /* a laptop-wide photo on a tablet is mostly gradient */
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; } } /* the certifications would wrap to four lines in half a phone */

/* ---------- FAQ: native disclosures in one centered column ---------- */
.faq__inner { display: grid; gap: clamp(32px, 5vh, 48px); }
.faq__list { display: grid; gap: 10px; width: 100%; max-width: 720px; margin-inline: auto; }
.faq__item { border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 var(--edge), 0 16px 40px -32px rgb(var(--shadow) / .4); transition: border-color .3s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px 14px 24px; border-radius: var(--r-panel); font: 600 1.05rem/1.35 var(--font); list-style: none; cursor: pointer; text-wrap: pretty; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+" / ""; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font: 500 1.1rem/1 var(--mono); color: var(--accent); transition: rotate .3s var(--ease); }
.faq__item[open] summary::after { rotate: 45deg; }
.faq__item p { margin: 0; padding: 0 24px 22px; max-width: 60ch; color: var(--ink-2); text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) { .faq__item[open] p { animation: panel-in .4s var(--ease); } }

/* ---------- Footer: the calm end of the page. Plain links with 44px targets; the legal line is text until the buyer has the pages. ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; padding: 40px 0 32px; display: grid; gap: 24px; }
.footer .brand { width: fit-content; min-height: 44px; }
.footer__brand p { margin: 4px 0 0; max-width: 36ch; color: var(--muted); text-wrap: pretty; }
.footer__nav { display: flex; flex-wrap: wrap; align-content: start; margin-left: -10px; }
.footer__nav a, .footer__contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 999px; color: var(--ink-2); transition: background-color .2s, color .2s; }
@media (hover: hover) { .footer__nav a:hover, .footer__contact a:hover { background: var(--line); color: var(--ink); } }
.footer__contact { display: grid; justify-items: start; align-content: start; margin-left: -10px; color: var(--ink-2); }
.footer__contact span { display: flex; align-items: center; min-height: 44px; padding: 0 10px; }
.footer__legal { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .85rem; color: var(--muted); }
@media (min-width: 1001px) {
  .footer__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); }
  .footer__nav { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 24px; }
  .footer__legal { grid-column: 1 / -1; }
}
