/* Fate Tracker — Build Memory marketing site. */

:root {
  --night: #15233D;
  --blue: #4667E8;
  --blue-hover: #3556D4;
  --teal: #20A391;
  --teal-soft: #E2F5EF;
  --gold: #F4C95D;
  --lavender: #DAD7FF;
  --mist: #F5F7FB;
  --card: #FFFFFF;
  --border: #DCE3EE;
  --ink: #202B3D;
  --soft: #65728A;
  --coral: #D66A5E;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(32, 43, 61, .08);
  --font-head: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mist);
}

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 0 0 .8em; }
h3 { font-size: 1.25rem; margin: 0 0 .5em; }
p { max-width: 62ch; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: .85em; word-break: break-all; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--night); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- the site-wide Fate Line (wide screens) ---------- */
@media (min-width: 1180px) {
  main { position: relative; }
  main::before {
    content: ""; position: absolute; top: 0; bottom: 0;
    left: calc((100vw - 1220px) / 2 - 42px);
    width: 2px;
    background: linear-gradient(180deg, var(--gold) 0%, var(--blue) 22%, var(--teal) 55%, var(--blue) 80%, var(--gold) 100%);
    opacity: .5; pointer-events: none;
  }
  .line-node > .wrap { position: relative; }
  .line-node > .wrap::before {
    content: ""; position: absolute; top: 84px;
    left: -74px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--gold); box-shadow: 0 0 0 5px rgba(244, 201, 93, .25);
    pointer-events: none;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 1rem; padding: 13px 26px; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-quiet { background: transparent; color: var(--soft); border-color: var(--border); padding: 9px 18px; min-height: 44px; font-size: .92rem; }
.btn-quiet:hover { color: var(--ink); border-color: var(--soft); }
.btn-big { font-size: 1.12rem; padding: 16px 34px; }

/* ---------- header/nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--night); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav { max-width: 1220px; margin: 0 auto; padding: 10px 32px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 4px; min-height: 44px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: #fff; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.nav-links a {
  display: inline-block; color: #DCE3EE; text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: 10px; min-height: 44px;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nav-links a[aria-current="true"] { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.nav-cta { background: var(--blue); color: #fff !important; border: 1.5px solid var(--gold); }
.nav-cta:hover { background: var(--blue-hover) !important; }
.menu-toggle { display: none; }

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4);
    border-radius: 10px; padding: 9px 14px; font: 600 1rem var(--font-body); cursor: pointer; min-height: 44px;
  }
  .menu-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
  .menu-bars { width: 16px; height: 2px; background: #fff; position: relative; display: inline-block; }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: #fff; }
  .menu-bars::before { top: -5px; } .menu-bars::after { top: 5px; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 0 12px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; }
}

/* ---------- hero ---------- */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 30%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 55%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 80% 25%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 65%, #fff 50%, transparent 51%);
  background-repeat: no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.hero-sub { font-size: 1.18rem; color: #DCE3EE; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero-reassure { color: var(--lavender); font-size: .98rem; }
.hero-constellation { width: 100%; max-width: 560px; }
.tile-label { fill: #C7D0E0; font-family: "Inter", "Segoe UI", sans-serif; font-size: 11px; font-weight: 500; }
.tile-label-gold { fill: var(--gold); font-weight: 600; font-size: 12px; }
.fate-line-path { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawline 2.6s ease forwards .3s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.tile { opacity: 0; animation: tilein .7s ease forwards; }
.tile-1 { animation-delay: .25s; } .tile-2 { animation-delay: .55s; } .tile-3 { animation-delay: .85s; }
.tile-4 { animation-delay: 1.15s; } .tile-5 { animation-delay: 1.45s; } .tile-star { animation-delay: 1.85s; }
@keyframes tilein { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: flex; justify-content: center; }
  .hero-constellation { max-width: 420px; }
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.card-eyebrow { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 0 0 6px; }

/* ---------- demo ---------- */
.demo { padding: 72px 0 84px; background: linear-gradient(180deg, var(--night) 0%, var(--night) 30px, var(--mist) 30px); }
.demo-label { color: var(--soft); font-weight: 600; margin-bottom: 4px; }
.fictional-tag { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--soft); background: var(--mist); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin-left: 8px; }

/* scene states — every state readable without motion */
.trail { animation: trailmarch 1.2s linear infinite; }
@keyframes trailmarch { to { stroke-dashoffset: -24; } }
#recoverBurst { transform: translate(64px, 168px); }

.history { margin-top: 18px; padding: 16px 18px; }
.hbranch { stroke: var(--coral); stroke-width: 2; fill: none; }

/* ---------- how: three steps on one path ---------- */
.how { padding: 76px 0; background: #fff; border-top: 1px solid var(--border); }
.how h2 { text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; margin-top: 44px; }
.steps-grid::before {
  content: ""; position: absolute; top: -22px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--gold));
  opacity: .55;
}
.step-card { position: relative; background: transparent; border: 0; box-shadow: none; padding: 12px 8px 0; text-align: center; }
.step-card::before {
  content: ""; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 5px rgba(244, 201, 93, .25);
}
.step-card p { margin-left: auto; margin-right: auto; }
.step-art { width: 76px; height: 76px; margin: 0 auto 8px; }
.tech-details { margin: 34px auto 0; color: var(--soft); max-width: 760px; }
.tech-details summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 8px 0; }
.tech-details summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 26px; }
  .steps-grid::before { display: none; }
  .step-card::before { display: none; }
  .step-card { text-align: left; padding: 0; }
  .step-art { margin: 0 0 8px; }
  .step-card p { margin-left: 0; }
}

/* ---------- proof ---------- */
.proof { padding: 76px 0; background: var(--mist); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; margin-bottom: 48px; }
.receipt { background: var(--teal-soft); border-color: #BFE5D9; }
.gold-star { color: var(--gold); }
.receipt-list, .tick-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.receipt-list li::before, .tick-list li::before { content: "✓"; color: var(--teal); font-weight: 700; margin-right: 10px; }
.dash-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
.dash-list li::before { content: "•"; color: var(--soft); margin-right: 10px; }
.release-list { margin: 14px 0 0; display: grid; gap: 10px; }
.release-list div { display: grid; grid-template-columns: 200px 1fr; gap: 10px; }
.release-list dt { font-weight: 600; color: var(--soft); }
.release-list dd { margin: 0; }
.screens-heading { margin: 8px 0 18px; font-size: 1.5rem; }

/* screenshot showcase: plain stacked figures without JS; selector + one large
   screenshot when enhanced */
.showcase-tabs { display: none; }
.showcase.enhanced .showcase-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.showcase-tab {
  font: 600 1rem var(--font-body); color: var(--ink); background: #fff;
  border: 2px solid var(--border); border-radius: 999px; padding: 11px 22px; cursor: pointer; min-height: 48px;
  transition: border-color .15s ease, background-color .15s ease;
}
.showcase-tab:hover { border-color: var(--blue); }
.showcase-tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.showcase-tab[aria-pressed="true"] { background: var(--night); color: #fff; border-color: var(--night); box-shadow: inset 0 -3px 0 var(--gold); }
.showcase-body .screen-card { padding: 14px; margin: 0 0 20px; }
.showcase.enhanced .screen-card { display: none; margin: 0; }
.showcase.enhanced .screen-card.screen-active { display: block; }
.screen-card img { border-radius: 10px; border: 1px solid var(--border); width: 100%; }
.screen-card figcaption { padding: 14px 8px 4px; font-size: 1rem; color: var(--ink); }
.screens-note { color: var(--soft); font-size: .92rem; margin-top: 16px; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } .release-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- scope ---------- */
.scope { padding: 64px 0; background: var(--mist); }
.scope-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; }
.scope-limits { background: #FBF9F2; border-color: #EADFC4; }
@media (max-width: 900px) { .scope-grid { grid-template-columns: 1fr; } }

/* ---------- audience ---------- */
.who { padding: 76px 0; background: linear-gradient(180deg, #fff 0%, #F4F2FE 100%); border-top: 1px solid var(--border); }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.who-card { border-top: 4px solid var(--teal); }
.who-art { width: 120px; height: 56px; margin-bottom: 6px; }
.who-welcome { font-size: 1.12rem; font-weight: 500; margin: 26px 0 0; }
.familiar { margin-top: 58px; position: relative; }
.familiar-heading { color: var(--soft); }
.familiar-cloud { display: flex; flex-wrap: wrap; gap: 14px 16px; max-width: 900px; }
.familiar-chip {
  font: 500 1rem var(--font-body); color: var(--ink); background: #fff;
  border: 1.5px solid var(--border); border-radius: 999px; padding: 11px 20px; cursor: default;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  min-height: 44px;
}
.familiar-chip:hover, .familiar-chip:focus-visible { border-color: var(--blue); background: var(--lavender); box-shadow: 0 0 0 4px rgba(70,103,232,.12); }
.familiar-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.familiar-chip.lit { border-color: var(--gold); background: #FDF4DE; }
.familiar-note { color: var(--soft); margin-top: 16px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  /* a loose, constellation-like scatter on large screens; static and readable */
  .familiar-cloud .familiar-chip:nth-child(2) { transform: translateY(14px); }
  .familiar-cloud .familiar-chip:nth-child(3) { transform: translateY(-6px) rotate(-1deg); }
  .familiar-cloud .familiar-chip:nth-child(4) { transform: translateY(10px) rotate(1deg); }
  .familiar-cloud .familiar-chip:nth-child(5) { transform: translateY(-8px); }
  .familiar-cloud .familiar-chip:nth-child(6) { transform: translateY(12px) rotate(-1deg); }
  .familiar-cloud .familiar-chip:nth-child(7) { transform: translateY(-4px); }
}

/* ---------- recovery ---------- */
.recovery { padding: 76px 0; background: var(--mist); }
.recovery-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.recovery-story p { font-size: 1.16rem; }
.recovery-close { font-weight: 600; color: var(--ink); border-left: 4px solid var(--gold); padding-left: 16px; }
.time-lens { padding: 22px; }
.lens-frames { position: relative; min-height: 240px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.lens-frame { position: absolute; inset: 0; padding: 16px 18px; transition: opacity .25s ease; background: #fff; }
.lens-scene { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.lens-tag { font-weight: 600; font-size: .88rem; color: var(--soft); margin: 0 0 8px; }
.lens-tag-gold { color: #7A6118; }
.lens-body { margin: 0; font-size: .95rem; }
.lens-label { display: block; font-size: .92rem; color: var(--soft); margin: 16px 0 6px; }
input[type="range"] { width: 100%; accent-color: var(--blue); height: 44px; }
input[type="range"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.lens-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.lens-restore { margin-top: 14px; width: 100%; }
.lens-result { color: #116B5D; font-weight: 600; min-height: 1.5em; margin: 10px 0 0; }
.lens-trail-recovered, .lens-star-recovered { visibility: hidden; }
.lens-recovered .lens-trail-recovered, .lens-recovered .lens-star-recovered { visibility: visible; }
.lens-recovered .lens-trail-broken { visibility: hidden; }
@media (max-width: 900px) { .recovery-grid { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */
.closing { background: var(--night); color: #fff; text-align: center; padding: 84px 0; position: relative; overflow: hidden; }
.closing-inner { position: relative; }
.closing-constellation { width: min(520px, 90%); margin: 0 auto 6px; }
.closing-moments { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 0; margin: 0 0 22px; color: var(--lavender); font-size: .9rem; }
.closing-sub { color: #DCE3EE; margin-top: 14px; }
.closing h2 { font-size: clamp(2rem, 5vw, 2.9rem); }
.closing p { margin-left: auto; margin-right: auto; }

/* ---------- pricing ---------- */
.pricing { padding: 76px 0; background: #fff; border-top: 1px solid var(--border); }
.pricing h2 { text-align: center; }
.price-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; padding: 0; overflow: hidden; border-top: 5px solid var(--gold); }
.price-left { padding: 30px 34px; }
.price-desc { color: var(--soft); }
.price-right { background: var(--mist); border-left: 1px solid var(--border); padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.price { font-family: var(--font-head); margin: 0 0 10px; }
.price-amount { font-size: 2.8rem; font-weight: 700; }
.price-right .btn { width: 100%; }
.price-windows { font-size: .92rem; color: var(--soft); margin: 14px 0 4px; }
.price-reassure { font-size: .95rem; margin: 4px 0 10px; }
.price-note { color: var(--soft); font-size: .9rem; margin: 6px 0 0; }
@media (max-width: 900px) {
  .price-card { grid-template-columns: 1fr; }
  .price-right { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- faq ---------- */
.faq { padding: 72px 0; background: var(--mist); border-top: 1px solid var(--border); }
.faq-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; align-items: start; }
.faq-group h3 { color: var(--soft); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.faq-group { display: grid; gap: 10px; align-content: start; }
.faq-group details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq-group summary { font-weight: 600; cursor: pointer; padding: 14px 0; min-height: 44px; }
.faq-group summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.faq-group details[open] { border-color: var(--blue); }
.faq-group p { color: var(--ink); margin-top: 0; }
@media (max-width: 960px) { .faq-groups { grid-template-columns: 1fr; } }

/* ---------- download + footer ---------- */
.download { padding: 64px 0 84px; background: var(--mist); }
.download-card { max-width: 760px; margin: 0 auto; }
.download-note { color: var(--soft); }
.checksum { color: var(--soft); }
.site-footer { background: var(--night); color: #C7D0E0; padding: 40px 0; }
.footer-grid { max-width: 1220px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; color: #fff; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.footer-links a { color: #C7D0E0; text-decoration: none; padding: 8px 10px; border-radius: 8px; display: inline-block; }
.footer-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.footer-links a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.footer-meta { font-size: .85rem; max-width: 340px; }
.footer-meta p { margin: 0 0 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .fate-line-path { stroke-dashoffset: 0; }
  .tile { opacity: 1; }
}



/* ==================================================================
   DETAIL PAGES (launch-readiness pass)
   Same visual language as the homepage: navy header, mist field,
   white cards with the gold/teal/blue accents. No new palette.
   ================================================================== */
.doc-head { background: var(--night); color: #fff; padding: 56px 0 44px; position: relative; overflow: hidden; }
.doc-head h1 { color: #fff; font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: 0 0 .4em; }
.doc-head .doc-lede { color: #C7D0E0; max-width: 60ch; margin: 0; font-size: 1.08rem; }
.doc-crumb { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: .92rem; }
.doc-crumb a { color: var(--gold); text-decoration: none; padding: 6px 2px; }
.doc-crumb a:hover { text-decoration: underline; }
.doc-crumb a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.doc-crumb span { color: #8C99B0; }

.doc-body { padding: 52px 0 64px; }
.doc-body .wrap > h2 { margin-top: 0; }
.doc-section { margin: 0 0 34px; }
.doc-section:last-child { margin-bottom: 0; }
.doc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin: 0 0 22px; }
.doc-card h2 { font-size: 1.45rem; margin: 0 0 .55em; }
.doc-card h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
.doc-card h3:first-of-type { margin-top: 0; }
.doc-card > p:last-child, .doc-card > ul:last-child { margin-bottom: 0; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }

.doc-list { margin: 0 0 1em; padding-left: 0; list-style: none; }
.doc-list li { position: relative; padding: 6px 0 6px 30px; max-width: 62ch; }
.doc-list li::before { content: "✦"; position: absolute; left: 4px; top: 6px; color: var(--teal); font-size: .95em; }
.doc-list.is-cannot li::before { content: "—"; color: var(--coral); font-weight: 700; }
.doc-list.is-tested li::before { content: "✓"; color: var(--teal); font-weight: 700; }
.doc-list.is-planned li::before { content: "◇"; color: var(--soft); }

.doc-note { border-left: 4px solid var(--teal); background: var(--teal-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 22px; }
.doc-note p { margin: 0; max-width: 66ch; }
.doc-note.is-draft { border-left-color: var(--gold); background: #FDF6E3; }
.doc-note.is-blocked { border-left-color: var(--coral); background: #FBEDEB; }

.draft-flag { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: #3A2E08; font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin: 0 0 16px; }

.qa-list { margin: 0; }
.qa-list .qa { border-bottom: 1px solid var(--border); padding: 18px 0; }
.qa-list .qa:first-child { padding-top: 0; }
.qa-list .qa:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-list h3 { margin: 0 0 .35em; font-size: 1.08rem; }
.qa-list p { margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; margin: 0; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { font-family: var(--font-head); font-size: .95rem; width: 34%; color: var(--night); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

.doc-more { margin: 34px 0 0; padding: 22px 0 0; border-top: 1px solid var(--border); }
.doc-more h2 { font-size: 1.15rem; margin: 0 0 .6em; }
.doc-more-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.doc-more-links a { display: inline-block; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; color: var(--blue); text-decoration: none; font-weight: 500; }
.doc-more-links a:hover { border-color: var(--blue); background: #F2F5FE; }
.doc-more-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.inline-more { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.inline-more a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--blue); text-decoration: none; font-weight: 500; font-size: .96rem; }
.inline-more a:hover { border-color: var(--blue); background: #F2F5FE; }
.inline-more a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.status-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin: 0 0 10px; }
.status-pill { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.status-pill.is-ready { background: var(--teal-soft); color: #0E6B5C; }
.status-pill.is-waiting { background: #FDF6E3; color: #6B5410; }
.status-pill.is-planned { background: #EEF1F7; color: var(--soft); }

.notfound { text-align: center; padding: 90px 0 100px; }
.notfound h1 { margin-bottom: .3em; }
.notfound p { margin-left: auto; margin-right: auto; }
.notfound .inline-more { justify-content: center; }

@media (max-width: 700px) {
  .doc-head { padding: 40px 0 32px; }
  .doc-body { padding: 36px 0 48px; }
  .doc-card { padding: 22px 20px; }
  .spec-table th { width: auto; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }


/* ---------- high-contrast baseline (Windows High Contrast / forced colors) ----------
   In forced-colors mode the system replaces our palette. Meaning carried only by
   a background colour would disappear, so every interactive edge and every status
   marker keeps a real border that the system can repaint. Applies ONLY in forced
   colors; ordinary viewing is untouched. */
@media (forced-colors: active) {
  .btn,
  .nav-cta,
  .showcase-tab,
  .doc-more-links a,
  .inline-more a,
  .card,
  .doc-card,
  .faq-group details,
  .status-pill,
  .draft-flag,
  .doc-note {
    border: 1px solid ButtonBorder;
  }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }
  .showcase-tab[aria-pressed="true"] {
    border: 2px solid Highlight;
  }
  .skip-link { border: 1px solid ButtonBorder; }
}

/* Numbered steps: an ordered list that actually shows its numbers, so copy
   that says "steps 1 to 4" matches what the reader sees. */
ol.doc-list.is-steps { counter-reset: ftstep; }
ol.doc-list.is-steps li { counter-increment: ftstep; padding-left: 38px; }
ol.doc-list.is-steps li::before {
  content: counter(ftstep);
  left: 0; top: 6px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-size: .85rem; font-weight: 600;
  line-height: 1;
}

/* ==================================================================
   THE SIGNATURE STORY — an automatic four-step slideshow.
   DEFAULT (no JavaScript, and reduced motion): all four steps stack and
   read as an ordinary numbered sequence. Only when JS adds .story-live
   do the slides stack into one frame and take turns.
   ================================================================== */
.story { background: var(--mist); padding: 70px 0 76px; }
.story .demo-label { color: var(--soft); font-size: .95rem; margin: 0 0 .3em; }

.story-frame {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px 18px; margin-top: 22px;
}
.story-slides { list-style: none; margin: 0; padding: 0; }
.story-slide { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.story-slide + .story-slide { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border); }

.slide-art .scene { width: 100%; height: auto; border-radius: 12px; display: block; }
.slide-art .scene.is-light { border: 1px solid var(--border); }
.slide-status {
  display: flex; align-items: center; gap: 9px;
  margin: 12px 0 0; font-size: .95rem; font-weight: 500; max-width: none;
}
.slide-status .status-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; flex: none;
}
.slide-status.is-good { color: #0E6B5C; }
.slide-status.is-good .status-dot { background: var(--teal-soft); }
.slide-status.is-bad { color: #9C3B30; }
.slide-status.is-bad .status-dot { background: #FBEDEB; }
.slide-status.is-info { color: #6B5410; }
.slide-status.is-info .status-dot { background: #FDF6E3; }

.slide-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  margin: 0 0 14px;
}
.slide-copy h3 { font-size: 1.4rem; margin: 0 0 .5em; }
.slide-copy p { margin: 0 0 .8em; }
.slide-aside { color: var(--soft); font-size: .95rem; }
.slide-close {
  border-left: 4px solid var(--teal); background: var(--teal-soft);
  padding: 12px 16px; border-radius: 0 10px 10px 0; font-weight: 500; margin-top: 4px;
}
.claim-vs-fact { margin: 0 0 .9em; display: grid; gap: 10px; }
.claim-vs-fact div { border-left: 3px solid var(--border); padding: 4px 0 4px 14px; }
.claim-vs-fact div:last-child { border-left-color: var(--teal); }
.claim-vs-fact dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--soft); font-weight: 600; }
.claim-vs-fact dd { margin: 2px 0 0; }

/* ---- the bar: progress, dots, optional controls ---- */
.story-bar { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.story-progress { margin: 0; color: var(--soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.story-dots { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.story-dots li { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.story-dots li.is-on { background: var(--blue); }
.story-controls { display: flex; gap: 8px; margin-left: auto; }
.story-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 1rem; cursor: pointer;
}
.story-btn:hover { border-color: var(--blue); color: var(--blue); background: #F2F5FE; }
.story-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.story-note { color: var(--soft); font-size: .95rem; margin: 14px 0 0; }

/* ---- JS running: one slide at a time, gently crossfaded ---- */
.story-live .story-slides { position: relative; }
.story-live .story-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .55s ease;
  margin: 0; padding: 0; border-top: 0;
}
.story-live .story-slide.is-current { position: relative; opacity: 1; visibility: visible; }

@media (max-width: 860px) {
  .story-slide { grid-template-columns: 1fr; gap: 20px; }
  .slide-copy h3 { font-size: 1.25rem; }
  .story-frame { padding: 20px 18px 14px; }
  .story-bar { flex-wrap: wrap; gap: 12px; }
  .story-controls { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ---- reduced motion: no automatic movement, the full sequence stays ---- */
@media (prefers-reduced-motion: reduce) {
  .story-live .story-slides { position: static; }
  .story-live .story-slide {
    position: relative; opacity: 1; visibility: visible; transition: none;
  }
  .story-live .story-slide + .story-slide {
    margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--border);
  }
  .story-bar { display: none; }
}

/* ==================================================================
   CATEGORY COMPARISON — general product categories, never companies.
   Desktop: a readable table with the Fate Tracker column highlighted.
   Phone: stacked capability cards, so nobody drags a wide table around.
   ================================================================== */
.compare { background: var(--card); padding: 72px 0 78px; }
.compare-intro { max-width: 68ch; color: var(--soft); margin: 0 0 26px; }

.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 900px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  font-family: var(--font-head); font-size: .9rem; line-height: 1.3;
  color: var(--night); vertical-align: bottom; border-bottom: 2px solid var(--border);
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.compare-table tbody th {
  font-family: var(--font-body); font-weight: 500; font-size: .96rem;
  color: var(--ink); width: 30%;
}
.compare-table thead th.is-ft {
  color: #fff; background: var(--night);
  border-radius: 10px 10px 0 0; border-bottom-color: var(--gold);
}
.compare-table td.is-ft { background: #F3F6FF; }
.compare-table tbody tr:last-child td.is-ft { border-radius: 0 0 10px 10px; }
.compare-table tbody tr:hover td { background: #FAFBFE; }
.compare-table tbody tr:hover td.is-ft { background: #EDF1FE; }

.cmp-pill {
  display: inline-block; font-size: .84rem; font-weight: 500; line-height: 1.25;
  padding: 5px 11px; border-radius: 999px; border: 1px solid transparent;
}
/* Both spellings: the table wraps the pill in a state cell, the phone cards
   put the state on the pill itself. */
.cmp-inc .cmp-pill, .cmp-pill.cmp-inc { background: var(--teal-soft); color: #0E6B5C; border-color: #A9DDD0; }
.cmp-set .cmp-pill, .cmp-pill.cmp-set { background: #EEF2FF; color: #33499E; border-color: #C3CEF5; }
.cmp-var .cmp-pill, .cmp-pill.cmp-var { background: #FDF6E3; color: #6B5410; border-color: #EBD9A8; }
.cmp-not .cmp-pill, .cmp-pill.cmp-not { background: #F1F3F7; color: #5C6880; border-color: #DCE3EE; }
.is-ft .cmp-pill { font-weight: 600; }

.compare-note { color: var(--soft); font-size: .92rem; margin: 18px 0 0; max-width: 70ch; }
.compare-cards { display: none; }

@media (max-width: 980px) {
  .compare-scroll { display: none; }
  .compare-cards { display: grid; gap: 12px; }
  .compare-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); padding: 16px 16px 10px;
  }
  .compare-card h3 { font-size: 1.02rem; margin: 0 0 9px; line-height: 1.3; }
  .compare-card dl { margin: 0; display: grid; gap: 5px; }
  .compare-card dl > div {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--border);
  }
  .compare-card dl > div:last-child { border-bottom: 0; }
  .compare-card dl > div.is-ft {
    background: #F3F6FF; border: 1px solid #C3CEF5; border-radius: 10px;
    padding: 8px 11px; margin-bottom: 3px;
  }
  .compare-card dt { font-size: .9rem; color: var(--soft); margin: 0; }
  .compare-card dl > div.is-ft dt { color: var(--night); font-weight: 600; }
  .compare-card dd { margin: 0; text-align: right; }
}

@media (forced-colors: active) {
  .cmp-pill { border: 1px solid ButtonBorder; }
  .compare-table thead th.is-ft, .compare-card dl > div.is-ft { border: 1px solid ButtonBorder; }
}


/* The brand is one phrase: "Fate Tracker Build Memory" (owner decision,
   2026-09-04). The second half is set lighter so the wordmark still reads
   as a name rather than a sentence, and wraps instead of overflowing on
   narrow phones. */
.brand-name { line-height: 1.15; }
.brand-sub { display: block; font-size: 0.72em; font-weight: 600; opacity: 0.72; letter-spacing: 0.01em; }
@media (min-width: 900px) {
  .brand-sub { display: inline; font-size: 0.82em; }
}

/* ---------- Need help? : local help panel (added 2026-09-08) ----------
   A small fixed launcher and a side panel. No network, no storage. The launcher
   never covers the header; on small screens the panel is a bottom sheet that
   scrolls inside itself, and closing it restores everything underneath. */
.help-launcher {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--card); color: var(--ink); border: 2px solid var(--blue);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.help-launcher:hover { border-color: var(--blue-hover); box-shadow: 0 8px 26px rgba(32,43,61,.14); }
.help-launcher:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.help-launcher[aria-expanded="true"] { background: var(--lavender); }
.help-launcher-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.help-panel {
  position: fixed; right: 18px; bottom: 78px; z-index: 61;
  width: min(420px, calc(100vw - 36px)); max-height: min(72vh, 720px);
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(32,43,61,.18);
}
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 8px; }
.help-head h2 { font-family: var(--font-head); font-size: 1.15rem; margin: 0; }
.help-close {
  width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--border); background: transparent;
  color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.help-close:hover { border-color: var(--soft); }
.help-close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.help-intro { margin: 0 18px 10px; color: var(--soft); font-size: .92rem; line-height: 1.45; }
.help-body { overflow-y: auto; padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 18px; }
.help-search label, .help-draft label { display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px; }
.help-search-row { display: flex; gap: 8px; }
.help-search-row input, .help-draft input, .help-draft textarea {
  flex: 1 1 auto; min-width: 0; width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; min-height: 44px;
}
.help-search-row input:focus-visible, .help-draft input:focus-visible, .help-draft textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.help-subhead { font-family: var(--font-head); font-size: 1rem; margin: 0 0 8px; }
.help-questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.help-question {
  width: 100%; text-align: left; font: inherit; font-weight: 500; color: var(--ink);
  padding: 11px 14px; min-height: 44px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--mist); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.help-question:hover { border-color: var(--blue); background: var(--lavender); }
.help-question:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.help-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.help-results-head h3:focus { outline: none; }
.help-back { font: inherit; font-size: .9rem; color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; min-height: 44px; }
.help-back:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.help-answer { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; }
.help-answer h4 { font-family: var(--font-head); font-size: 1rem; margin: 0 0 8px; }
.help-answer ol, .help-answer ul { margin: 0 0 8px; padding-left: 20px; }
.help-answer li { margin: 0 0 6px; font-size: .95rem; line-height: 1.5; }
.help-notes li { color: var(--soft); }
.help-links { font-size: .92rem; margin: 6px 0 0; }
.help-links a { color: var(--blue); }
.help-links a:focus-visible, .help-none-link:focus-visible, .help-contact a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.help-none p { margin: 0 0 8px; font-size: .95rem; line-height: 1.5; }
.help-none-link { color: var(--blue); font-weight: 600; }
.help-contact { border-top: 1px solid var(--border); padding-top: 14px; }
.help-contact p { margin: 0 0 10px; font-size: .95rem; line-height: 1.5; }
.help-contact a { color: var(--blue); }
.help-draft { display: grid; gap: 8px; margin-top: 12px; }
.help-draft[hidden], #helpResults[hidden], #helpStart[hidden] { display: none; }
.help-draft-note { margin: 0; font-size: .88rem; color: var(--soft); line-height: 1.45; }
.help-draft-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.help-draft-actions .btn { flex: 1 1 160px; font-size: .95rem; padding: 11px 16px; min-height: 44px; }
.help-draft-status { margin: 0; font-size: .9rem; color: var(--teal); min-height: 1.2em; }
.help-draft-preview summary { cursor: pointer; font-size: .9rem; color: var(--soft); min-height: 44px; display: flex; align-items: center; }
.help-draft-preview summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.help-draft-preview pre { white-space: pre-wrap; word-break: break-word; font-size: .85rem; background: var(--mist); padding: 10px; border-radius: 8px; margin: 6px 0 0; max-height: 220px; overflow: auto; }
@media (max-width: 520px) {
  .help-launcher { right: 12px; bottom: 12px; padding: 10px 14px 10px 10px; }
  .help-panel {
    right: 0; left: 0; bottom: 0; width: 100%; max-height: 85vh;
    border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0;
  }
  .help-draft-actions .btn { flex-basis: 100%; }
}
@media (forced-colors: active) {
  .help-launcher, .help-panel, .help-question, .help-close, .help-search-row input, .help-draft input, .help-draft textarea { border: 1px solid ButtonBorder; }
  .help-launcher-mark { border: 1px solid ButtonText; }
}
