/* Tellwell — shared page styling.
   Values come from the app's own constants/theme.ts so the site and the
   product read as one thing. */

:root {
  --bg:        #090810;
  --bg-deep:   #05030F;
  --panel:     #14111F;
  --hair:      #2A2740;
  --ink:       #F3F1F8;
  --ink-mid:   #A9A4BC;
  --ink-dim:   #6C6C6C;
  --signal:    #E0FF91;
  --btn-text:  #232323;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: linear-gradient(178deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2rem) 6rem;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */
header.mast {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 2.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.brand b {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand span {
  font-size: 0.8rem;
  color: var(--signal);
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.updated {
  font-size: 0.82rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
h2 {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.75rem 0 0.75rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
  color: var(--ink);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.1rem;
  color: var(--ink-mid);
}

strong { font-weight: 600; }

a {
  color: var(--signal);
  text-decoration-color: rgba(224, 255, 145, 0.4);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--signal); }
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--ink-mid);
}
li { margin-bottom: 0.5rem; }
li::marker { color: var(--ink-dim); }
li strong { color: var(--ink); }

/* ── Callouts ─────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
  color: var(--ink-mid);
}
.panel :is(p, ul):last-child { margin-bottom: 0; }
.panel.accent { border-color: rgba(224, 255, 145, 0.28); }

.panel h3 { margin-top: 0; }

.eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* A definition-style row for the "what leaves the device" table. */
.flow {
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.flow-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--hair);
}
.flow-row:last-child { border-bottom: 0; }
.flow-row dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}
.flow-row dd {
  margin: 0;
  color: var(--ink-mid);
  font-size: 0.94rem;
}
.flow-row .who {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer.end {
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
  font-size: 0.85rem;
  color: var(--ink-dim);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
footer.end a { color: var(--ink-mid); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
