/* =========================================================
   Infercia — shared chrome for the sub-pages (legal + pricing)
   Loads AFTER styles.css, so it inherits every brand token
   (--accent #2878f8, --bg, Fraunces/Inter/IBM Plex Mono,
   .btn, .footer, .tag). This file only adds what the landing
   doesn't already have: a slim back-header, a legal "prose"
   column, and the pricing cards. No globe canvas here — these
   pages stay light and fast.
   ========================================================= */

/* the sub-pages have a normal document flow (no fixed stage),
   so give the body a plain background + top padding for the
   fixed back-header. */
body.page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page main { flex: 1 0 auto; }

/* faint, static dot wash so pages feel of-a-piece with the
   globe landing without running the canvas engine. */
body.page::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 82% -10%, rgba(40,120,248,.10), transparent 55%),
    radial-gradient(rgba(255,255,255,.028) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}
body.page > * { position: relative; z-index: 1; }

/* ---------------- slim back-header ---------------- */
.subnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.2rem;
  padding: .9rem var(--gutter);
  background: rgba(5,6,8,.72);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-2);
}
.subnav__back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; color: var(--ink-mid); transition: color .2s;
}
.subnav__back:hover { color: var(--ink); }
.subnav__back svg { width: 1rem; height: 1rem; stroke: currentColor; }
.subnav__brand { display: inline-flex; align-items: center; margin-left: auto; }
.subnav__brand img { display: block; height: 26px; width: auto; opacity: .92; }

/* =========================================================
   LEGAL / PROSE PAGES
   ========================================================= */
.legal { width: 100%; }
.legal__head {
  max-width: 760px; margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 1.5rem;
  text-align: center;
}
.legal__eyebrow {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--accent-soft); display: block; margin-bottom: 1rem;
}
.legal__title { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.legal__meta {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  color: var(--ink-low); margin-top: 1rem;
}

/* the readable column */
.prose {
  max-width: 720px; margin: 0 auto;
  padding: 1.5rem var(--gutter) clamp(3rem, 8vw, 5rem);
}
.prose section { padding: 1.8rem 0; border-top: 1px solid var(--line-2); }
.prose section:first-of-type { border-top: none; }
.prose h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 400; color: var(--ink);
  margin: 0 0 .9rem; display: flex; gap: .7rem; align-items: baseline;
}
.prose h2 .s { font-family: var(--mono); font-size: .8rem; color: var(--accent-soft); flex: none; }
.prose h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); font-family: var(--sans); margin: 1.4rem 0 .6rem; }
.prose p { color: var(--ink-mid); margin: 0 0 1rem; line-height: 1.72; }
.prose p:last-child, .prose li:last-child { margin-bottom: 0; }
.prose ul, .prose ol { color: var(--ink-mid); margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin: .45rem 0; line-height: 1.6; }
.prose li::marker { color: var(--ink-low); }
.prose a { color: var(--accent-soft); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.prose a:hover { border-bottom-color: var(--accent-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

/* contact / callout boxes */
.callout {
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.1rem 0 0;
}
.callout--contact { border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; }
.callout--warn { border-left: 3px solid var(--warn, #d8a24a); border-radius: 0 12px 12px 0; }
.callout p { margin: .2rem 0; font-size: .92rem; }
.callout__label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-low); display: block; margin-bottom: .55rem;
}

/* [VERIFY: ...] markers — visible on purpose so the owner can
   find and confirm every assumed fact before publishing. */
.verify {
  display: inline;
  font-family: var(--mono); font-size: .82em;
  color: #e7c35b;
  background: rgba(216,162,74,.12);
  border: 1px dashed rgba(216,162,74,.5);
  border-radius: 4px; padding: 0 .35em;
}

/* in-page mini table of contents (long pages) */
.toc {
  max-width: 720px; margin: 0 auto; padding: 0 var(--gutter);
}
.toc__inner {
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 12px;
  padding: 1rem 1.25rem;
}
.toc__label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-low); display: block; margin-bottom: .7rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.6rem; }
.toc li { padding: .22rem 0; break-inside: avoid; }
.toc a { font-size: .86rem; color: var(--ink-mid); border: none; }
.toc a:hover { color: var(--accent-soft); }
.prose section { scroll-margin-top: 5rem; }

@media (max-width: 560px) {
  .toc ol { columns: 1; }
}

/* =========================================================
   PRICING PAGE
   ========================================================= */
.pricing__head {
  max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) 1rem;
}
.pricing__title { font-size: clamp(2.3rem, 6.5vw, 3.4rem); }
.pricing__title em { font-style: italic; color: var(--accent-soft); }
.pricing__sub { color: var(--ink-mid); max-width: 46ch; margin: 1.2rem auto 0; font-size: 1.02rem; }

.tiers {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--bg-2);
  padding: 1.6rem 1.5rem 1.7rem;
}
.tier--featured {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(40,120,248,.12), transparent 60%),
    var(--bg-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 30px 70px -40px rgba(40,120,248,.6);
}
.tier__badge {
  position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase;
  color: #fff; background: var(--accent);
  padding: .3rem .7rem; border-radius: 999px; white-space: nowrap;
}
.tier__name {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-low); margin-bottom: 1rem;
}
.tier--featured .tier__name { color: var(--accent-soft); }
.tier__price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .3rem; }
.tier__amt { font-family: var(--serif); font-weight: 300; font-size: 3rem; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.tier__amt .cur { font-size: 1.5rem; vertical-align: super; color: var(--ink-mid); }
.tier__per { font-size: .84rem; color: var(--ink-low); }
.tier__free { font-family: var(--serif); font-weight: 300; font-size: 2.6rem; color: var(--ink); line-height: 1; }
.tier__tagline { font-size: .9rem; color: var(--ink-mid); margin: .5rem 0 1.4rem; min-height: 2.6em; }
.tier .btn { width: 100%; margin-bottom: 1.5rem; }
.tier__feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.tier__feats li { display: flex; gap: .6rem; align-items: flex-start; font-size: .89rem; color: var(--ink-mid); line-height: 1.5; }
.tier__feats svg { width: 1.05rem; height: 1.05rem; flex: none; margin-top: .12rem; stroke: var(--accent-soft); }
.tier__feats li.muted { color: var(--ink-low); }
.tier__feats li.muted svg { stroke: var(--ink-low); }
.tier__feats .lead { color: var(--ink); font-weight: 500; }

.pricing__get {
  max-width: var(--maxw); margin: 0 auto; padding: .5rem var(--gutter) 0;
  text-align: center;
}
.pricing__get .store-btns { justify-content: center; margin: 0 auto 1rem; }
.pricing__get-lead { color: var(--ink); font-size: 1.02rem; margin-bottom: 1.1rem; }
.pricing__note {
  font-size: .82rem; color: var(--ink-low); text-align: center; margin: 0 auto; max-width: 52ch;
}

/* pricing FAQ */
.faq { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5rem); }
.faq__title { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 400; text-align: center; margin-bottom: 2rem; }
.faq__item { border-top: 1px solid var(--line-2); padding: 1.3rem 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line-2); }
.faq__q { color: var(--ink); font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.faq__a { color: var(--ink-mid); font-size: .92rem; line-height: 1.65; }
.faq__a a { color: var(--accent-soft); }

@media (max-width: 820px) {
  .tiers { grid-template-columns: 1fr; max-width: 460px; gap: 1.4rem; }
  .tier--featured { order: -1; }
}

/* =========================================================
   QUIZ  (/quiz)
   One screen at a time, centered, on the near-black ground.
   ========================================================= */
.quiz-main {
  flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter);
}
#quiz { width: 100%; max-width: 620px; }

.q-screen { width: 100%; }
.q-card {
  border: 1px solid var(--line); background: var(--bg-2);
  border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 30px 80px -50px rgba(0,0,0,.9);
}
.q-card--intro, .q-card--result { text-align: center; }

/* progress */
.q-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: .55rem; }
.q-progress__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); border-radius: 3px; transition: width .45s var(--ease); }
.q-progress__meta {
  display: flex; justify-content: space-between; margin-bottom: 1.4rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-low);
}

/* intro */
.q-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 5.5vw, 2.9rem); color: var(--ink); line-height: 1.08; letter-spacing: -.01em; outline: none; }
.q-title em { font-style: italic; color: var(--accent-soft); }
.q-lede { color: var(--ink-mid); margin: 1.1rem auto 1.8rem; max-width: 42ch; }
.q-cta { min-width: 220px; }
.q-fineprint { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--ink-low); margin-top: 1.1rem; }
.q-restart { display: inline-block; margin-top: 1.3rem; background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-low); transition: color .2s; }
.q-restart:hover { color: var(--ink-mid); }

/* question heading */
.q-q { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 3.6vw, 1.8rem); color: var(--ink); line-height: 1.25; outline: none; }
.q-hint { color: var(--ink-low); font-size: .9rem; margin-top: .6rem; margin-bottom: 1.5rem; }
.q-q + .q-grid { margin-top: 1.5rem; }

/* option grids */
.q-grid { display: grid; gap: .7rem; }
.q-grid--dialect { grid-template-columns: repeat(3, 1fr); }
.q-grid--goal { grid-template-columns: repeat(2, 1fr); }
.q-grid--answers { grid-template-columns: 1fr; }

.q-opt {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-3);
  border-radius: 12px; padding: 1rem 1.1rem;
  color: var(--ink-mid); font-family: var(--sans); font-size: .95rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .12s var(--ease), color .18s;
}
.q-opt:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-dim); color: var(--ink); transform: translateY(-1px); }
.q-opt:active { transform: translateY(0); }
.q-opt.is-picked { border-color: var(--accent); background: var(--accent-dim); color: var(--ink); box-shadow: 0 0 0 1px var(--accent); }

.q-opt--dialect { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.1rem .6rem; }
.q-opt__native { font-family: var(--ar); font-size: 1.35rem; color: var(--ink); line-height: 1.1; }
.q-opt__label { font-size: .82rem; color: var(--ink-mid); }
.q-opt--dialect:hover .q-opt__label, .q-opt--dialect.is-picked .q-opt__label { color: var(--ink); }

.q-opt--goal { display: flex; flex-direction: column; gap: .3rem; }
.q-opt__blurb { font-size: .8rem; color: var(--ink-low); line-height: 1.4; }
.q-opt--goal:hover .q-opt__blurb { color: var(--ink-mid); }

.q-opt--answer { padding-left: 3rem; }
.q-opt--answer::before {
  content: ""; position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid var(--ink-low);
  transition: border-color .18s, background .18s;
}
.q-opt--answer.is-picked::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-3); }

.q-back { display: block; margin: 1.3rem auto 0; background: none; border: none; cursor: pointer; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-low); transition: color .2s; }
.q-back:hover { color: var(--ink-mid); }

/* result */
.q-result__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--ink-mid); line-height: 1.2; outline: none; }
.q-result__level { display: block; font-size: clamp(3.2rem, 12vw, 5rem); color: var(--ink); font-weight: 400; letter-spacing: -.02em; line-height: 1; margin-top: .3rem; }
.q-levelbar { display: flex; gap: .35rem; margin: 1.6rem 0 1.3rem; }
.q-levelbar__seg {
  flex: 1; padding: .5rem 0; border-radius: 7px; text-align: center;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .04em;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink-low);
}
.q-levelbar__seg.is-here { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 26px -10px var(--accent); }
.q-result__blurb { color: var(--ink); font-size: 1.02rem; margin-bottom: .9rem; }
.q-result__goal { color: var(--ink-mid); font-size: .94rem; line-height: 1.6; max-width: 46ch; margin: 0 auto 1.7rem; }
.q-result__goal strong { color: var(--ink); }
.q-result__getcta { font-size: .9rem; color: var(--ink-mid); margin-bottom: .9rem; }
.q-result__cta { display: flex; justify-content: center; }
.q-result__cta .store-btns { justify-content: center; }

/* optional email module */
.q-email { margin-top: 1.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); text-align: left; }
.q-email__label { display: block; font-size: .88rem; color: var(--ink-mid); margin-bottom: .6rem; text-align: center; }
.q-email__row { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.q-email__input {
  flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--ink);
  font-family: var(--sans); font-size: .9rem;
}
.q-email__input::placeholder { color: var(--ink-low); }
.q-email__input:focus-visible { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-dim); }
.q-email__btn { flex: none; white-space: nowrap; }
.q-email__note { text-align: center; font-size: .8rem; color: var(--ink-low); margin-top: .6rem; min-height: 1em; }

/* enter animation */
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-in { animation: qIn .32s var(--ease); }

@media (max-width: 560px) {
  .q-grid--goal { grid-template-columns: 1fr; }
  .q-grid--dialect { grid-template-columns: repeat(2, 1fr); }
  .q-store, .q-cta { width: 100%; min-width: 0; }
  .q-email__row { flex-direction: column; }
  .q-email__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .q-in { animation: none; }
  .q-progress__fill { transition: none; }
}
