/* Landing, sample, guide and legal pages (web designer). Loaded after app.css; app.css stays the front-end
   designer's. Mobile-first: base rules are for phones, min-width queries add the wide layout. */

/* Brand tokens: copied from frontend/assets/brand/tokens.css (the brand manager's source of truth) so these pages
   work whichever branch merges first. Same names, same values. */
:root {
  --ink: #101218; --sleeve: #181b23; --sleeve-2: #1f232d; --groove: #2a2f3b; --paper: #f4f1ea; --fog: #a0a0aa; --dust: #7d7d88;
  --lore: #f25ae6; --on-lore: #101218; --lore-deep: #a01a96; --lore-glow: rgba(242, 90, 230, .35);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --fw-display: 820; --track-display: -0.035em; --track-label: 0.12em;
  --radius: 14px; --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ------------------------------------------------------------------ shared: links, buttons, focus, labels */
.site a:not(.btn):not(.brand):not(.navcta):where(:not([data-jump])) { color: var(--lore); }   /* jump-nav pills keep app.css colours; :where adds no specificity, so the header rule below still wins */
.site .btn { background: var(--lore); color: var(--on-lore); min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.site .btn.ghost { background: rgba(16, 18, 24, .6); color: var(--paper); border: 1px solid var(--groove); }
.site .btn:hover { filter: brightness(1.08); }
.site :focus-visible { outline: 2px solid var(--lore); outline-offset: 3px; border-radius: 6px; }
.site .mono, .label { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: 12px; }
.site h1 { font-weight: var(--fw-display); letter-spacing: var(--track-display); }
.site h2 { font-size: clamp(26px, 5.4vw, 40px); line-height: 1.08; font-weight: var(--fw-display); letter-spacing: var(--track-display); margin: 6px 0 12px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--lore); color: var(--on-lore); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }

/* ------------------------------------------------------------------ header */
header.sitehead { gap: 10px; padding: 14px 16px; }
header.sitehead .brand { color: var(--paper); font-size: 15px; white-space: nowrap; }
header.sitehead .brand img { vertical-align: -6px; margin-right: 9px; border-radius: 5px; }
header.sitehead nav { display: flex; align-items: center; gap: 4px; }
header.sitehead nav a { margin-left: 0; padding: 12px 8px; color: var(--fog); font-size: 14px; }
header.sitehead nav a:hover { color: var(--paper); }
header.sitehead nav a.navcta { color: var(--on-lore); background: var(--lore); border-radius: 999px; padding: 10px 14px; font-weight: 700; margin-left: 4px; }
header.sitehead .wide { display: none; }
@media (min-width: 860px) {
  header.sitehead { padding: 18px 20px; }
  header.sitehead .wide { display: inline; }
  header.sitehead nav a { padding: 10px 10px; }
}

/* ------------------------------------------------------------------ footer */
footer.sitefoot { margin-top: 70px; padding-top: 26px; }
.sitefoot .fcols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
.sitefoot .fbrand { grid-column: 1 / -1; }
.sitefoot .fbrand .brand { color: var(--paper); font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; }
.sitefoot nav { display: flex; flex-direction: column; }
.sitefoot nav b { color: var(--paper); font-weight: 600; margin-bottom: 4px; }
.sitefoot nav a { color: var(--fog) !important; text-decoration: none; padding: 7px 0; font-size: 14px; }
.sitefoot nav a:hover { color: var(--paper) !important; }
.sitefoot .fine { margin-top: 26px; }
@media (min-width: 760px) { .sitefoot .fcols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .sitefoot .fbrand { grid-column: auto; } }

/* ------------------------------------------------------------------ landing: hero */
.landing .hero { padding-top: 0; }
.landing .hero h1 { font-size: clamp(38px, 9.6vw, 78px); line-height: 1.0; margin: 14px 0 16px; max-width: 13ch; }
.landing .hero .lead { color: #c9c7cf; font-size: 17px; max-width: 560px; }
.hero .cta-row .btn { flex: 1 1 auto; }
.hero .alt { margin-top: 16px; font-size: 15px; }
.hero .alt a { font-weight: 600; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 20px 0 0; color: var(--fog); font-size: 13px; }
.trust li::before { content: "✓"; color: var(--lore); margin-right: 6px; font-weight: 800; }
@media (min-width: 560px) { .hero .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 760px) { .landing .hero .lead { font-size: 19px; } }

/* ------------------------------------------------------------------ proof: real screenshots of the sample report */
.proof { margin-top: 30px; }
.proof .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; margin: 12px -20px 0; padding-inline: 20px; scrollbar-width: thin; }
.shot { scroll-snap-align: start; margin: 0; background: var(--sleeve); border: 1px solid var(--groove); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: contain; object-position: center top; background: var(--sleeve); }
.shot figcaption { padding: 12px 14px 14px; font-size: 14px; color: var(--fog); }
.shot figcaption b { display: block; color: var(--paper); font-size: 15px; margin-bottom: 2px; }
.shot .no { color: var(--lore); }
@media (min-width: 760px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 12px 0 0; padding: 6px 0 0; } }

/* chapters keep the field; on phones they're shorter so the selling sections come sooner */
.landing .chcard .shotmini { margin-top: 14px; border-radius: 10px; border: 1px solid var(--groove); width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .landing .chapter, .landing .chapter.right { min-height: 92svh; } }

/* ------------------------------------------------------------------ sections */
.sec { margin-top: 70px; position: relative; }
.sec > .label { color: var(--lore); }
.sec .intro { color: var(--fog); max-width: 640px; font-size: 17px; }
.solid { background: rgba(16, 18, 24, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--groove); border-radius: var(--radius); padding: 22px 18px; }
@media (min-width: 760px) { .solid { padding: 30px; } }

/* comparison: a chart sheet */
.sheet { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--groove); }
.sheet thead th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: 11px; color: var(--fog); font-weight: 500; border-top: 0; }
.sheet td:first-child { color: var(--fog); width: 28%; }
.sheet td.us { color: var(--paper); font-weight: 600; }
.sheet td.us::before { content: "▲ "; color: var(--good); font-size: 11px; }
@media (max-width: 559px) {
  .sheet thead { display: none; }
  .sheet tr { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--groove); padding: 10px 0; }
  .sheet td { border: 0; padding: 4px 6px; }
  .sheet td:first-child { grid-column: 1 / -1; width: auto; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--track-label); font-size: 11px; }
  .sheet td:nth-child(2)::before { content: "One-year recap"; display: block; font-size: 11px; color: var(--dust); }
  .sheet td.us::before { content: "This report"; display: block; font-size: 11px; color: var(--lore); }
}
.src { font-size: 12px; color: var(--dust); margin-top: 10px; }
.src a { color: var(--fog) !important; }

/* pricing: Free / Full / Deep */
.tiers { display: grid; gap: 14px; margin-top: 18px; }
.tier { background: var(--sleeve); border: 1px solid var(--groove); border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column; }
.tier.best { border-color: var(--lore); box-shadow: 0 0 0 1px var(--lore), 0 18px 50px rgba(0, 0, 0, .4); }
.tier h3 { font-size: 20px; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tier .pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--on-lore); background: var(--lore); border-radius: 99px; padding: 3px 8px; }
.tier .amt { font-size: 34px; font-weight: var(--fw-display); letter-spacing: var(--track-display); margin: 8px 0 2px; }
.tier .per { color: var(--fog); font-size: 13px; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 8px; font-size: 15px; flex: 1; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: "♪"; position: absolute; left: 0; color: var(--lore); }
.tier li.plus { color: var(--fog); }
.tier li.plus::before { content: "+"; font-weight: 800; }
.tier .btn { width: 100%; }
@media (min-width: 860px) { .tiers { grid-template-columns: 1fr 1.05fr 1.05fr; align-items: stretch; } }

/* how it works: numbered steps with the real forms inside */
.how { display: grid; gap: 16px; margin-top: 18px; counter-reset: step; }
.how > li { list-style: none; background: var(--sleeve); border: 1px solid var(--groove); border-radius: var(--radius); padding: 20px 18px; counter-increment: step; }
.how > li > .label { color: var(--lore); }
.how > li > .label::before { content: "Step " counter(step) " · "; }
.how h3 { font-size: 20px; margin: 6px 0 8px; }
.how p { color: var(--fog); margin: 0 0 10px; }
.how .drop { margin-top: 12px; background: var(--ink); cursor: pointer; }
.how .drop:hover { border-color: var(--lore); }
.how .drop.over { border-color: var(--lore); }
.how .mailform input[type=email] { min-height: 46px; }
.how .mailform .btn { min-height: 46px; }
.progress > div { background: var(--lore); }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }

/* privacy as a feature */
.vault { display: grid; gap: 12px; margin-top: 18px; }
.vault > div { background: var(--sleeve); border: 1px solid var(--groove); border-radius: var(--radius); padding: 18px; }
.vault b { display: block; font-size: 17px; margin-bottom: 4px; }
.vault p { margin: 0; color: var(--fog); font-size: 15px; }
@media (min-width: 640px) { .vault { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vault { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.site .faq details { border-top: 1px solid var(--groove); padding: 0; }
.site .faq summary { padding: 16px 30px 16px 0; position: relative; list-style: none; font-size: 17px; }
.site .faq summary::-webkit-details-marker { display: none; }
.site .faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--lore); font-size: 22px; font-weight: 400; }
.site .faq details[open] summary::after { content: "−"; }
.site .faq details p { margin: 0 0 16px; color: var(--fog); }

/* final call */
.final { text-align: center; padding: 44px 20px; }
.final h2 { margin-inline: auto; max-width: 18ch; }
.final p { color: var(--fog); max-width: 520px; margin: 0 auto 20px; }
.final .cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ------------------------------------------------------------------ sample report page */
.samplebar-top { padding-top: 0; padding-bottom: 0; }
.samplenote { margin: 0; background: rgba(16, 18, 24, .86); border: 1px dashed var(--lore); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--fog); }
.samplenote .mono { color: var(--lore); margin-right: 8px; }
.samplenote a { font-weight: 700; white-space: nowrap; }
.samplecta { position: fixed; z-index: 5; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: rgba(24, 27, 35, .96); border: 1px solid var(--groove); border-radius: 999px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); font-size: 14px; white-space: nowrap; }
.samplecta .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; background: var(--lore); color: var(--on-lore); }
@media (max-width: 420px) { .samplecta span { display: none; } }
.sample-page .hud { display: none; }
.sample-page .rhero > p.small:first-child, .sample-page #del, .sample-page #maillink, .sample-page #mailmsg, .sample-page #copy { display: none; }
@media print { .samplecta, .samplenote { display: none; } }

/* ------------------------------------------------------------------ guide pages */
.guide { max-width: 760px; }
.guide h1 { font-size: clamp(34px, 7vw, 56px); line-height: 1.04; margin: 10px 0 14px; }
.guide .lead { color: #c9c7cf; font-size: 18px; }
.guide h2 { font-size: clamp(24px, 4.6vw, 32px); margin-top: 46px; }
.guide h3 { margin-top: 24px; }
.guide p, .guide li { color: #d6d4db; }
.guide .steps li { color: var(--paper); }
.guide table.list td { color: #d6d4db; }
.guide table.list td:first-child { color: var(--paper); width: 38%; overflow-wrap: anywhere; }
.guide figure { margin: 22px 0; }
.guide figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--groove); }
.guide figcaption { font-size: 13px; color: var(--fog); margin-top: 8px; }
.guide .callout { background: var(--sleeve); border: 1px solid var(--groove); border-left: 3px solid var(--lore); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.guide .callout p { margin: 0; }
.guide .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.guide .toc { font-size: 14px; color: var(--fog); border-left: 1px solid var(--groove); padding-left: 14px; margin: 18px 0; }
.guide .toc a { display: inline-block; padding: 4px 0; }
.crumbs { font-size: 13px; color: var(--fog); }
.crumbs a { color: var(--fog) !important; }
code { background: var(--sleeve-2); border-radius: 6px; padding: 1px 6px; font-size: .92em; overflow-wrap: anywhere; }

/* legal pages get the shared header/footer and brand links */
.legal a:not(.btn) { color: var(--lore); }

@media (prefers-reduced-motion: reduce) { .shots { scroll-behavior: auto; } }
.how .dropbig { display: block; font-size: 17px; font-weight: 700; }
.how #status { margin-top: 10px; }
.sec .more { margin: 16px 0 0; }
.sec .head h2 { margin-bottom: 4px; }
header.sitehead nav a.navcta { white-space: nowrap; }
.site .kicker .dot { background: var(--lore); box-shadow: 0 0 12px var(--lore); }
.site .hud-n, .site .chn { color: var(--lore); }
.site .hud-bar i, .site .scrollhint i::after { background: var(--lore); }
@media (max-width: 760px) { .site .hud { display: none; } }
.only { list-style: none; counter-reset: only; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.only li { counter-increment: only; position: relative; padding: 14px 16px 14px 58px; background: var(--sleeve); border: 1px solid var(--groove); border-radius: 12px; color: var(--fog); }
.only li::before { content: "No." counter(only); position: absolute; left: 14px; top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--lore); }
.only b { color: var(--paper); }
@media (min-width: 860px) { .only { grid-template-columns: repeat(3, 1fr); } }
ol.how { padding: 0; margin: 18px 0 0; }
.how .drop { display: block; text-align: center; padding: 30px 16px; }
.site header.sitehead nav a:not(.navcta):not(.btn) { color: var(--fog); }
.site header.sitehead nav a:not(.navcta):not(.btn):hover { color: var(--paper); }
.endcta { margin-top: 60px; }
.endcta .remindbox { max-width: 460px; margin: 22px auto 0; text-align: left; }
.endcta .remindbox p { margin: 8px 0 0; }
.uploadtop { margin: 22px 0 10px; }
.uploadtop .drop { display: block; text-align: center; padding: 34px 16px; background: var(--ink); cursor: pointer; }
.uploadtop .drop:hover, .uploadtop .drop.over { border-color: var(--lore); }
.uploadtop .dropbig { display: block; font-size: 18px; font-weight: 700; }
.uploadtop #status { margin-top: 10px; }
.uploadtop > p { margin: 12px 0 0; }
.guide ul, .guide ol:not(.steps) { padding-left: 22px; }
.guide .sixes { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.guide .sixes li { background: var(--sleeve); border: 1px solid var(--groove); border-radius: 12px; padding: 12px 14px; }
.guide .sixes b { color: var(--paper); }
@media (min-width: 640px) { .guide .sixes { grid-template-columns: 1fr 1fr; } }
header.sitehead .brand { padding: 12px 0; }
@media (max-width: 859px) {
  header.sitehead { padding: 12px 14px; }
  header.sitehead nav a { padding: 12px 6px; }
  header.sitehead nav a.navcta { padding: 10px 14px; }
}
@media (max-width: 359px) { header.sitehead .brand { font-size: 13px; } header.sitehead .brand img { display: none; } }
@media (max-width: 420px) { header.sitehead .brand { font-size: 14px; letter-spacing: .02em; } header.sitehead .brand img { margin-right: 7px; width: 20px; height: 20px; } }
