/* seshari.app — one stylesheet for every page. The tokens are the app's (BrandTheme.swift, neonMagenta,
   FINAL 2026-09-05); the ratios beside them are measured on the canvas and pinned by test/site.test.mjs.
   No web font (the system face is the app's own on Apple devices), no transition, no animation. */
:root {
  color-scheme: dark;
  --c1: #C91E7A;       /* deep raspberry — the gradient's dark end, never text (3.67:1) */
  --accent: #FF56AB;   /* hot pink — text, links, buttons (6.66:1) */
  --c3: #FF8FC8;       /* soft pink — the light end, hover (9.30:1) */
  --canvas: #120A11;   /* near-black, very slightly red */
  --fg: #F3ECF1;       /* body text (16.8:1) */
  --dim: #A899A3;      /* secondary text (7.2:1) */
  --card: #1A1018;     /* a surface one step above the canvas */
  --rule: #2E2029;     /* hairlines */
  --glow: rgba(201, 30, 122, .34);
  --radius: 14px;
  --wrap: 66rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  /* The app's glow — one radial of the gradient's dark end behind the header, and the only gradient here. */
  background: radial-gradient(60rem 30rem at 80% -10rem, var(--glow), transparent 68%) no-repeat, var(--canvas);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--c3); }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

/* ── layout ─────────────────────────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.prose { max-width: 46rem; }
main { padding-bottom: 2rem; }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent); text-decoration: none; font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.brand:hover { color: var(--c3); }
.mark { width: 1.5rem; height: 1.5rem; fill: currentColor; filter: drop-shadow(0 0 6px rgba(255, 86, 171, .55)); }
.top nav { display: flex; gap: 1.1rem; font-size: .95rem; }
.top nav a { color: var(--dim); text-decoration: none; }
.top nav a:hover { color: var(--fg); }

/* ── type ───────────────────────────────────────────────────────────────────────────────────── */
h1 { font-size: clamp(1.9rem, 3.4vw + .6rem, 2.8rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 750; margin: 0 0 1rem; }
h1 small { display: block; font-size: 1rem; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-top: .4rem; }
h2 { font-size: clamp(1.4rem, 2vw + .6rem, 1.9rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.prose h2 { font-size: 1.15rem; color: var(--accent); letter-spacing: .01em; margin: 2.2rem 0 .5rem; }
p, li, dd { max-width: 42rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, .8vw + .85rem, 1.3rem); color: var(--dim); margin: 0 0 1.5rem; }
.dim { color: var(--dim); }
.fine { color: var(--dim); font-size: .9rem; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--rule); padding: .06rem .4rem; border-radius: 6px; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin: .35rem 0; }
li::marker { color: var(--accent); }
dl { margin: 0; }
dt { font-weight: 650; margin-top: 1.4rem; }
dd { margin: .35rem 0 0; }

/* ── blocks ─────────────────────────────────────────────────────────────────────────────────── */
section { padding: 2.5rem 0; }
section + section { border-top: 1px solid var(--rule); }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 1.5rem; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1.5rem; }
.button { display: inline-block; background: var(--accent); color: var(--canvas); font-weight: 650; text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px; line-height: 1.2; }
.button:hover { background: var(--c3); color: var(--canvas); }
/* Apple's badge, at the button's height; Apple asks for clear space of a quarter of its height around it. */
.badge { display: inline-block; padding: .75rem 0; }
.badge img { display: block; height: 3rem; width: auto; }
button.cta { font: inherit; font-weight: 650; color: var(--canvas); background: var(--accent); border: 0; border-radius: 999px; padding: .85rem 1.4rem; cursor: pointer; }
button.cta:hover { background: var(--c3); }
button.cta[disabled] { background: var(--card); color: var(--dim); border: 1px solid var(--rule); cursor: default; }

/* ── the frames — real screens, in a card that keeps the app's glow ─────────────────────────── */
.frame { margin: 0; }
.frame picture, .frame img { display: block; width: 100%; height: auto; }
.frame img { border-radius: var(--radius); border: 1px solid rgba(255, 86, 171, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); background: var(--card); }
.frame figcaption { color: var(--dim); font-size: .9rem; margin-top: .65rem; }
.frame.phone { max-width: 20rem; margin-left: auto; margin-right: auto; }

/* ── the hero ───────────────────────────────────────────────────────────────────────────────── */
.hero { padding: 1.5rem 0 2.5rem; display: grid; gap: 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin: 0 0 1rem; }
.hero .platforms { color: var(--dim); font-size: .95rem; margin: 0; }
.hero-frame { max-width: 20rem; margin-left: auto; margin-right: auto; }
.hero-frame img { aspect-ratio: 660 / 1434; }
@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 3rem; padding-top: 3rem; padding-bottom: 3.5rem; }
  .hero-frame { max-width: none; margin: 0; }
  .hero-frame img { aspect-ratio: 16 / 10; }
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 2.5rem; }
  .grid-2.top-aligned { align-items: start; }
  .grid-2.frames { align-items: end; }
  .grid-2.flip > .frame { order: -1; }
}
.frames { margin-top: 2rem; }
.frame.tablet { max-width: 26rem; margin-left: auto; margin-right: auto; }
.frame.wide { margin-top: 2rem; }
.proof h3 { margin: 0 0 .5rem; color: var(--accent); }
.affiliation { margin: 2rem 0 0; max-width: 46rem; }
section > h2 { margin-bottom: 1.25rem; }

/* ── the checkout page ──────────────────────────────────────────────────────────────────────── */
.buy { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 1.5rem 0 2rem; }
.price { font-size: 1.7rem; font-weight: 700; margin: 0 0 .25rem; }
.reassure { color: var(--dim); margin: 0 0 1rem; }
.note { color: var(--dim); font-size: .95rem; margin: .9rem 0 0; }
.langs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; font-size: .9rem; }
.langs a, .langs span { color: var(--dim); text-decoration: none; padding: .25rem .65rem; border: 1px solid var(--rule); border-radius: 999px; }
.langs a:hover { color: var(--fg); }
.langs [aria-current] { color: var(--fg); border-color: var(--accent); }

/* ── the footer ─────────────────────────────────────────────────────────────────────────────── */
.foot { margin-top: 2rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid var(--rule); color: var(--dim); font-size: .92rem; }
.foot nav a { color: var(--dim); }
.foot nav a:hover { color: var(--fg); }
.foot .langs { margin: 1rem 0 0; }
.foot .by { margin: .9rem 0 0; }
