/* nwhere — landing page. Same tokens as the app (web/src/styles/tokens.css):
   dark only, editorial, restrained. */
:root {
  color-scheme: dark;
  --ink: #0b0b10;
  --surface: #13131a;
  --surface-2: #1a1a23;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --muted: #8e8ea0;
  --faint: #5c5c6e;
  --accent: #c77dff;
  --accent-soft: rgba(199, 125, 255, 0.14);
  --accent-ring: rgba(199, 125, 255, 0.45);
  --ok: #5bffb0;
  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', Georgia, serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --content-max: 1160px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 12px;
  --radius-lg: 16px;
  --t: 180ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}
.skip:focus {
  left: 12px;
  z-index: 100;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 14px/1 var(--font-ui);
  white-space: nowrap;
  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    transform var(--t) var(--ease),
    color var(--t) var(--ease);
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--text);
  color: var(--ink);
  border-color: var(--text);
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
}
.btn-ghost {
  color: var(--muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
}
.btn-lg {
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(11, 11, 16, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark .brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav .btn-primary {
  margin-left: auto;
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.badge {
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
}
h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
h2 {
  margin: 0 0 40px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h4 {
  margin: 14px 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
p {
  margin: 0;
}
.lede {
  max-width: 54ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.lede-sm {
  max-width: 56ch;
  color: var(--muted);
  font-size: 17px;
}
.fineprint {
  margin-top: 22px;
  color: var(--faint);
  font-size: 13px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* a faint page-wide wash so the hero is not pure black */
  content: '';
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 50% at 30% 20%, rgba(199, 125, 255, 0.1), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 10fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  /* Tall enough for the two overlapping cards (transcript at the top right, notes
     offset below it); .hero clips overflow, so this must cover the lowest card. */
  min-height: 700px;
}
.glow {
  position: absolute;
  inset: 10% -10% -10% 0;
  background: radial-gradient(50% 50% at 60% 50%, rgba(199, 125, 255, 0.22), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3);
  padding: 18px 20px 20px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.card-transcript {
  right: 0;
  top: 0;
  width: min(400px, 90%);
  opacity: 0.94;
}
.card-notes {
  left: 0;
  /* Starts below the transcript's highlighted line, so the "who is talking now"
     cue stays visible above the notes. */
  top: 236px;
  width: min(420px, 92%);
  background: var(--surface-2);
}
.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.lines li {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas:
    't who'
    '. said';
  column-gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}
.lines li.is-current {
  background: rgba(199, 125, 255, 0.09);
  box-shadow: inset 2px 0 0 var(--accent);
}
.lines .t {
  grid-area: t;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  padding-top: 2px;
}
.lines .who {
  grid-area: who;
  font-size: 12px;
  font-weight: 600;
}
.who-1 { color: var(--accent); }
.who-2 { color: #ffc857; }
.who-3 { color: var(--ok); }
.lines .said {
  grid-area: said;
  color: var(--text);
}
.headline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}
.bullets li + li {
  margin-top: 3px;
}
.actions {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.actions td {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.actions .owner {
  width: 32%;
  color: var(--muted);
  padding-right: 10px;
}
.actions .due {
  width: 18%;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- sections ---------- */
.section {
  border-bottom: 1px solid var(--line);
}
.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) var(--gutter);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.pillar {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.pillar:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.pillar p {
  color: var(--muted);
  font-size: 15px;
}
.pillar-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.pillar-icon svg {
  width: 20px;
  height: 20px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li {
  padding: 28px 24px 30px 0;
  border-top: 1px solid var(--line);
  margin-top: -1px;
}
.steps li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.steps .num {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
}
.steps p {
  color: var(--muted);
  font-size: 15px;
}

.also-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.also h2 {
  margin-bottom: 18px;
}
.phone {
  justify-self: end;
  width: 280px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: #050507;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.phone-screen {
  border-radius: 24px;
  background: var(--surface);
  padding: 18px 14px;
  min-height: 300px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.notif {
  display: grid;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.notif .app {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ok);
}
.notif .from {
  font-weight: 600;
}
.notif .msg {
  color: var(--muted);
}
.draft {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(199, 125, 255, 0.35);
  background: rgba(199, 125, 255, 0.06);
  font-size: 13.5px;
}
.draft .label {
  color: var(--accent);
}
.draft .hint {
  color: var(--faint);
}

.privacy h2 {
  margin-bottom: 18px;
}
.privacy .lede-sm {
  max-width: 62ch;
}

/* ---------- footer ---------- */
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.footer nav {
  display: flex;
  gap: 18px;
}
.footer nav a {
  color: var(--muted);
  font-size: 13px;
}
.footer nav a:hover {
  color: var(--text);
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .card {
    animation: rise 700ms var(--ease) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .card-transcript { animation-delay: 200ms; }
  .card-notes { animation-delay: 320ms; }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual {
    min-height: 0;
    display: grid;
    gap: 16px;
  }
  .card {
    position: static;
    width: 100%;
  }
  .card-transcript {
    order: 2;
  }
  .glow {
    display: none;
  }
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .also-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .phone {
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .links {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li + li {
    padding-left: 0;
    border-left: 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .card {
    padding: 16px;
  }
}
