/* SayLess — direction 1b "Signal". Calm, clear, Apple-native.
   Tokens mirror sayless_design/BRAND-GUIDELINES.md exactly. One accent: teal. */

:root {
  --ink: #16201F;
  --ink-2: rgba(22, 32, 31, .72);
  --muted: rgba(22, 32, 31, .55);
  --paper: #F7F8F8;
  --surface: #EEF2F1;
  --card: #FFFFFF;
  --accent: #0F9E8E;
  --accent-soft: #8FD9CF;
  --accent-wash: #E6EFED;
  --hairline: rgba(0, 0, 0, .08);
  --hairline-strong: rgba(0, 0, 0, .14);
  --success: #1F9E5A;
  --hud: #16201F;
  --hud-text: #F7F8F8;

  --font: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --radius: 12px;
  --radius-lg: 18px;
  --measure: 62ch;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* System preference, unless the visitor explicitly chose light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EAF2F0;
    --ink-2: rgba(234, 242, 240, .74);
    --muted: rgba(234, 242, 240, .56);
    --paper: #0E1A18;
    --surface: #162523;
    --card: #13201E;
    --accent: #2FBCAA;
    --accent-soft: #8FD9CF;
    --accent-wash: #14302C;
    --hairline: rgba(234, 242, 240, .12);
    --hairline-strong: rgba(234, 242, 240, .2);
    --success: #43BE7B;
    --hud: #060D0C;
    --hud-text: #F7F8F8;
  }
}

/* Explicit choice wins over the system in both directions. */
:root[data-theme="dark"] {
    --ink: #EAF2F0;
    --ink-2: rgba(234, 242, 240, .74);
    --muted: rgba(234, 242, 240, .56);
    --paper: #0E1A18;
    --surface: #162523;
    --card: #13201E;
    --accent: #2FBCAA;
    --accent-soft: #8FD9CF;
    --accent-wash: #14302C;
    --hairline: rgba(234, 242, 240, .12);
    --hairline-strong: rgba(234, 242, 240, .2);
    --success: #43BE7B;
    --hud: #060D0C;
    --hud-text: #F7F8F8;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1080px, 100% - 32px); } }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }

.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }

.mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: grid; place-items: center;
  flex: none;
}

.wordmark { font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--ink-2); text-decoration: none; transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-quiet { border-color: var(--hairline-strong); color: var(--ink); }
.btn-quiet:hover { background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { padding: 92px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.lede { margin: 0 0 30px; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ---------- pill mock ---------- */

.pill-stage { display: grid; place-items: center; min-height: 260px; }

.pill {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--hud);
  color: var(--hud-text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .16);
}

.bars { display: flex; align-items: center; gap: 4px; height: 30px; }

.bars span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--accent-soft);
  height: 30%;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .bars span { animation: listen 1s ease-in-out infinite alternate; }
  .bars span:nth-child(1) { animation-delay: 0s; }
  .bars span:nth-child(2) { animation-delay: .12s; }
  .bars span:nth-child(3) { animation-delay: .24s; }
  .bars span:nth-child(4) { animation-delay: .36s; }
  .bars span:nth-child(5) { animation-delay: .18s; }
  @keyframes listen { from { height: 22%; } to { height: 100%; } }
}

.pill-label { font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; }
.pill-hint { font-family: var(--mono); font-size: 11.5px; color: rgba(247, 248, 248, .58); }

.pill-caption { margin: 20px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- sections ---------- */

section { padding: 76px 0; }
.section-head { max-width: var(--measure); margin-bottom: 40px; }

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}

h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
.sub { color: var(--ink-2); font-size: 17.5px; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ---------- modes ---------- */

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 780px) { .modes { grid-template-columns: 1fr; } }

.mode {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px 30px 34px;
  transition: border-color .15s var(--ease);
}
.mode:hover { border-color: var(--hairline-strong); }

.mode-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.mode p { color: var(--ink-2); font-size: 16px; }

.mode ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mode li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.mode li svg { flex: none; margin-top: 4px; color: var(--accent); }

/* ---------- principles ---------- */

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 34px 30px; }
.principle h3 { display: flex; align-items: center; gap: 9px; }
.principle p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.principle .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- download ---------- */

.download { background: var(--surface); border-radius: 22px; padding: 56px 44px; text-align: center; }
.download h2 { margin-bottom: 12px; }
.download .sub { margin: 0 auto 28px; max-width: 46ch; }
.req { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; }

/* ---------- footer ---------- */

footer { padding: 46px 0 60px; border-top: 1px solid var(--hairline); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 24px; font-size: 14.5px; }
.foot-links a { color: var(--muted); text-decoration: none; transition: color .15s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.copy { font-size: 13.5px; color: var(--muted); }

/* ---------- prose (privacy) ---------- */

.prose { max-width: var(--measure); padding: 64px 0 88px; }
.prose h1 { font-size: clamp(34px, 4.6vw, 46px); margin-bottom: 12px; }
.prose .updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 40px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--mono); font-size: .86em;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 5px; padding: 1px 5px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}


/* ---------- theme toggle ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--card);
}

.theme-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 28px; height: 24px;
  border-radius: 999px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}

.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent); }
.theme-toggle svg { display: block; }

/* ---------- download form ---------- */

.get { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.get-form {
  display: flex;
  gap: 10px;
  width: min(440px, 100%);
}

@media (max-width: 520px) { .get-form { flex-direction: column; } }

.get-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid var(--hairline-strong);
  background: var(--card);
  color: var(--ink);
  transition: border-color .15s var(--ease);
}

.get-form input::placeholder { color: var(--muted); }
.get-form input:focus { border-color: var(--accent); outline: none; }
.get-form input[aria-invalid="true"] { border-color: #C4553D; }

.get-msg { font-size: 14px; min-height: 20px; margin: 0; }
.get-msg[data-state="error"] { color: #C4553D; }
.get-msg[data-state="ok"] { color: var(--success); }

.get-skip {
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  font-family: inherit;
}
.get-skip:hover { color: var(--ink); }

/* ---------- comparison ---------- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
}

.stat .n {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

.stat p { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

.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;
}
