/* NotaLedge — notaledge.bytehavenstudios.com
   One stylesheet for every page. Brand tokens come from the app itself
   (branding/launchkit/launchkit.yml → brand:, which reads the app's Color.kt) — never invent
   colours. No JavaScript anywhere on this host (CSP script-src 'none'); everything below is CSS-only.
   Class vocabulary is deliberately the same as tunehaven-web/bootforge-web so the pages read the
   same way to whoever edits them next. */

/* ---------- fonts (self-hosted, OFL — the same Geist set as the studio site) ---------- */
@font-face { font-family: "Geist"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #00105C;          /* IndigoOnContainerLight — the app's canvas top */
  --bg2: #000A36;         /* darkened continuation of the same indigo */
  --surface: #0B1A66;     /* cards, lifted off the canvas */
  --gold: #F1C04B;        /* GoldSecondaryDark — the seal-gold highlight */
  --gold-dim: #C99B2E;
  --text: #FBF8FF;        /* BackgroundLight, used as light-on-dark */
  --muted: #BCC4EC;
  --line: #25357F;      /* hairlines and rules — decorative, so WCAG 1.4.11 does not apply */
  --line-ui: #5A6CC4;   /* borders that OUTLINE A CONTROL (the store badges, which become links
                           the day a listing goes live) — 3.56:1 on --bg, so it clears 1.4.11 */
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 68rem;             /* page column */
  --w-text: 46rem;        /* long-form column (policy, support) */
  color-scheme: dark;     /* the product is a dark-canvas ledger — dark in both schemes, on purpose */
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed, var(--bg2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #F8D680; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--text); }
code {
  font-family: var(--mono); font-size: 0.92em;
  background: rgba(255,255,255,0.09); padding: 0.1em 0.35em; border-radius: 0.25rem;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--surface); color: var(--text); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  max-width: var(--w); margin: 0 auto; padding: 1.1rem 1.25rem;
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
}
.site-head .brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em;
}
.site-head .brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-head nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-head nav a {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--gold); }

/* ---------- ledger rule (the recurring motif: a ruled line in a book) ---------- */
.ruler {
  height: 1px; background: var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  margin: 0 auto; max-width: var(--w);
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--w); margin: 0 auto; padding: 3.5rem 1.25rem 4rem;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem; align-items: center;
}
.hero .kicker {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5.5vw, 3.5rem); margin-bottom: 1rem; }
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .shot { justify-self: center; }
.hero .shot img {
  width: min(310px, 72vw); border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), 0 0 0 1px var(--line);
}

/* ---------- store badges ---------- */
.badges { display: flex; gap: 1rem; flex-wrap: wrap; padding: 0; margin: 1.6rem 0 0; list-style: none; }
.badges li {
  border: 1px solid var(--line-ui); border-radius: 12px; padding: 0.6rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.15rem; min-width: 10rem;
}
.badges .store { font-weight: 600; color: var(--text); font-size: 1rem; }
.badges .soon { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.badges .now  { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7FE0A8; }
.badges li.live { border-color: rgba(127,224,168,0.38); background: linear-gradient(180deg, rgba(127,224,168,0.07), transparent); }
.badges li.live:hover, .badges li.live:focus-within { border-color: rgba(127,224,168,0.75); }
.badges a { display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: inherit; margin: -0.6rem -1.3rem; padding: 0.6rem 1.3rem; }

/* ---------- at-a-glance strip ---------- */
.strip {
  max-width: var(--w); margin: 0 auto; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; list-style: none;
}
.strip li {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--muted); text-transform: uppercase;
}
.strip li::before { content: "● "; color: var(--gold); font-size: 0.6rem; vertical-align: 2px; }

/* ---------- sections ---------- */
.section { max-width: var(--w); margin: 0 auto; padding: 3.5rem 1.25rem; }
.section > h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 0.4em; }
.section .sub { color: var(--muted); max-width: 42em; margin-bottom: 2rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}

/* ---------- feature columns ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.5rem 2rem; }
.features h3 { font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.features ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.95rem; }
.features li { padding: 0.28rem 0 0.28rem 1.1rem; position: relative; }
.features li::before { content: "–"; position: absolute; left: 0; color: var(--gold); }

/* ---------- screenshot row ---------- */
.shots { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
/* 240px × 4 + 3 gaps fits inside --w (68rem) on a desktop, so the row does not strand one shot
   on a second line. Narrower viewports wrap 2 + 2, which is the intended fallback. */
.shots li { text-align: center; max-width: 240px; flex: 0 1 240px; }
.shots figure { margin: 0; }
.shots img { border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,0.45), 0 0 0 1px var(--line); }
.shots figcaption { margin-top: 0.8rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- price / claim card ---------- */
.charter-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 2rem 2rem 1.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent);
}
.charter-card p { color: var(--muted); max-width: 42em; }
.charter-card .price { font-family: var(--mono); font-size: 1.6rem; color: var(--gold); margin-bottom: 0.4rem; }

/* ---------- long-form documents (privacy, support) ---------- */
.doc { max-width: var(--w-text); margin: 0 auto; padding: 3rem 1.25rem 4.5rem; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.3em; }
.doc h2 { font-size: 1.25rem; margin-top: 2.4rem; }
.doc h3 { font-size: 1.02rem; margin-top: 1.8rem; }
.doc p, .doc li { color: #DCE1F6; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc .docmeta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 2.2rem; }
.doc .lang {
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
  margin-bottom: 1.6rem; letter-spacing: 0.03em;
}
.doc .lang [aria-current="page"] { color: var(--text); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; }
.site-foot .inner {
  max-width: var(--w); margin: 0 auto; padding: 1.6rem 1.25rem 3rem;
  display: flex; gap: 0.6rem 1.6rem; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 0.8rem; color: var(--muted);
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--gold); text-decoration: underline; }
.site-foot .studio { margin-right: auto; }

/* ---------- narrow screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.4rem; padding-top: 2.4rem; }
  .hero .shot { order: -1; }
  .section { padding: 2.6rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
