/* cortexdesks.com homepage only. Pricing, legal pages and 404 still use
 * style.css; nothing in here is shared with them.
 *
 * Palette is the shipped app's, from lib/theme.tsx: true black and #FAF9F7,
 * green as the one accent, and the app's category hues for tags (task green,
 * idea blue, note purple, streak orange).
 *
 * Motion has three layers:
 *   arrival  [data-reveal] rises in once when it enters view, staggered by --d.
 *   ambient  the demo, sorter, marquee and small looping visuals.
 *   response hover and press. Short, always reversible.
 * All of it collapses under prefers-reduced-motion at the bottom. */

:root {
  --black: #000;
  --ink-1: #0A0B0A;
  --ink-2: #121412;
  --ink-3: #1C1F1C;
  --ink-line: rgba(255, 255, 255, 0.09);
  --paper: #FAF9F7;
  --white: #FFF;
  --line: #E7E4E0;
  --text: #0D0F0D;
  --muted: #6E6E6E;
  --muted-d: #8F8F8F;
  --green: #0F6B3E;
  --green-2: #0A8A4F;
  --neon: #2ECC71;
  --neon-soft: rgba(46, 204, 113, 0.14);
  --task: #4FCB8B;
  --idea: #6BAEEA;
  --list: #BFA0D6;
  --habit: #F28C1B;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--neon); color: var(--black); }

/* ------------------------------ buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border: 0; border-radius: 999px;
  font: 600 15px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.3s var(--ease), color 0.2s;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-accent { background: var(--neon); color: var(--black); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
.btn-accent:hover { background: #45D985; box-shadow: 0 10px 40px -8px rgba(46, 204, 113, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* -------------------------------- nav -------------------------------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 11, 10, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, box-shadow 0.3s, color 0.3s, width 0.5s var(--ease);
  animation: nav-in 0.9s var(--ease) both;
}
@keyframes nav-in { from { opacity: 0; transform: translate(-50%, -16px); } }
.nav.is-scrolled { width: min(880px, calc(100% - 24px)); background: rgba(10, 11, 10, 0.78); }
.nav.is-light { color: var(--text); background: rgba(250, 249, 247, 0.82); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.07), 0 8px 30px -12px rgba(0, 0, 0, 0.18); }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: -0.02em; }
.nav-brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a, .nav-login { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0.72; transition: opacity 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-login:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }
.nav-actions { display: flex; align-items: center; gap: 4px; }

/* ------------------------------ arrival ------------------------------ */
.js [data-reveal] { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), filter 0.9s var(--ease) var(--d, 0ms);
}

/* ------------------------------- hero -------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: #fff;
  padding: 150px 20px 0;
  text-align: center;
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; top: -10%;
  width: 1100px; height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side at var(--gx, 50%) var(--gy, 40%), rgba(46, 204, 113, 0.28), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(15, 107, 62, 0.35), transparent 70%);
  filter: blur(20px);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}
@keyframes glow-breathe { to { transform: translateX(-50%) scale(1.12); opacity: 0.8; } }
.hero-grid {
  position: absolute; z-index: -1; inset: 0;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px), linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero-copy { max-width: 860px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; margin-bottom: 28px;
  border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s;
}
.eyebrow:hover { background: rgba(255, 255, 255, 0.1); }
.eyebrow svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }

.hero-title {
  margin: 0;
  font: 700 clamp(48px, 8.4vw, 104px)/0.98 var(--display);
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.hero-title em {
  font-weight: 400; letter-spacing: -0.03em;
  background: linear-gradient(100deg, #fff 10%, var(--neon) 45%, #B8E063 60%, #fff 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
  padding-right: 0.06em;
}
@keyframes sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.hero-sub {
  max-width: 560px; margin: 26px auto 0;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.66);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* ------------------------------- demo -------------------------------- */
.demo {
  position: relative;
  max-width: 920px; margin: 72px auto 0;
  text-align: left;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28, 31, 28, 0.92), rgba(12, 13, 12, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 120px -30px rgba(46, 204, 113, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.js .demo[data-reveal] { transform: translateY(60px) perspective(1400px) rotateX(14deg); }
.js .demo[data-reveal].is-in { transform: none; transition-duration: 0.9s, 1.4s, 0.9s; }
.demo::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(46, 204, 113, 0.6), transparent 35%, transparent 70%, rgba(107, 174, 234, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--ink-line);
  font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.demo-title { flex: 1; text-align: center; font-weight: 500; }
.demo-lang {
  min-width: 34px; padding: 3px 8px; border-radius: 6px; text-align: center;
  font: 600 11px/1.4 var(--sans); letter-spacing: 0.06em; color: var(--neon); background: var(--neon-soft);
  transition: transform 0.4s var(--pop);
}
.demo-lang.is-flip { transform: rotateX(360deg); }
.demo-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 300px; }
.demo-capture { padding: 28px 30px 30px; border-right: 1px solid var(--ink-line); }
.demo-mic { display: flex; align-items: center; gap: 14px; }
.mic-btn {
  position: relative; flex: none;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--neon); color: var(--black);
}
.mic-btn svg, .lane-mic svg, .vis-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); opacity: 0;
}
.demo[data-state="listening"] .mic-btn::after { opacity: 1; animation: ping 1.4s infinite; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 40px; }
.wave i {
  flex: 1; height: 100%; border-radius: 3px;
  background: linear-gradient(180deg, var(--neon), #1E9E58);
  transform: scaleY(0.08); transform-origin: center;
  transition: transform 0.12s linear, opacity 0.4s;
}
.demo:not([data-state="listening"]) .wave i { opacity: 0.35; }
.demo-time { font: 500 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.5); min-width: 30px; text-align: right; }

.demo-status { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--neon); }
.demo[data-state="listening"] .status-dot { background: #FF5A4F; animation: blink 1s infinite; }
.demo[data-state="cleaning"] .status-dot { background: #E8BC5A; }
@keyframes blink { 50% { opacity: 0.2; } }

.demo-text {
  margin: 0; min-height: 2.6em;
  font: 500 clamp(20px, 2.3vw, 26px)/1.3 var(--display); letter-spacing: -0.02em; color: #fff;
}
.demo-text .w { display: inline-block; white-space: pre; animation: word-in 0.35s var(--ease) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(6px); filter: blur(4px); } }
.demo-text .w.filler { color: rgba(255, 255, 255, 0.4); }
.demo-text .w.filler.is-struck { color: #FF7A6E; text-decoration: line-through; text-decoration-thickness: 2px; }
.demo-text .w.filler.is-gone { max-width: 0 !important; opacity: 0; margin: 0; padding: 0; transition: max-width 0.45s var(--ease), opacity 0.3s; overflow: hidden; vertical-align: bottom; }
.demo-text .caret { display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -0.12em; background: var(--neon); animation: blink 0.9s steps(1) infinite; }
/* A colour sweep word by word. background-clip: text on the paragraph would
   be simpler, but the animated inline-block words paint over it and vanish. */
.demo[data-state="filing"] .demo-text .w:not(.filler) { animation: sweep 0.9s ease-in-out calc(var(--i, 0) * 45ms) infinite; }
@keyframes sweep { 0%, 100% { color: #fff; } 40% { color: var(--neon); text-shadow: 0 0 18px rgba(46, 204, 113, 0.6); } }

.demo-result { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.35s, transform 0.5s var(--pop); }
.demo-result.is-in { opacity: 1; transform: none; }
.meta { padding: 5px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.07); }
.meta-p { color: #FFAD3B; background: rgba(255, 173, 59, 0.12); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 8px;
  font: 600 12px/1.2 var(--sans); letter-spacing: 0.01em;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-task { --c: var(--task); }
.tag-habit { --c: var(--habit); }
.tag-idea { --c: var(--idea); }
.tag-list { --c: var(--list); }

.demo-inbox { padding: 24px 22px; }
.inbox-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.inbox-count { min-width: 22px; padding: 2px 7px; border-radius: 999px; text-align: center; color: var(--black); background: var(--neon); font-variant-numeric: tabular-nums; transition: transform 0.4s var(--pop); }
.inbox-count.is-bump { transform: scale(1.35); }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.inbox li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 11px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.inbox li .tag { grid-row: span 2; }
.inbox li b { font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inbox li small { font-size: 12px; color: rgba(255, 255, 255, 0.45); }
.inbox li.is-new { animation: inbox-in 0.7s var(--ease) both; }
.inbox li.is-new::after { content: ""; }
@keyframes inbox-in {
  0% { opacity: 0; transform: translateX(-24px) scale(0.96); box-shadow: inset 0 0 0 1px var(--neon), 0 0 30px -4px rgba(46, 204, 113, 0.5); }
  60% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px var(--neon), 0 0 30px -4px rgba(46, 204, 113, 0.5); }
}
.inbox li.is-out { animation: inbox-out 0.4s var(--ease) both; }
@keyframes inbox-out { to { opacity: 0; transform: translateY(10px); } }

/* ------------------------------ marquee ------------------------------ */
.marquee { padding: 64px 0 72px; }
.marquee-h { margin: 0 0 22px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.42); }
.marquee-track {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-row { flex: none; display: flex; gap: 12px; padding-right: 12px; animation: marquee 32s linear infinite; }
.marquee-row span {
  padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  font: 500 15px/1 var(--display); color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ----------------------------- sections ------------------------------ */
.section { padding: clamp(88px, 12vw, 150px) 20px; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-2); }
.h2 { margin: 0; font: 700 clamp(36px, 5.4vw, 64px)/1.02 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.h2 em { color: var(--green); }
.lead { max-width: 560px; margin: 20px auto 0; font-size: 18px; color: var(--muted); }
.section-dark { background: var(--black); color: #fff; }
.section-dark .h2 em, .section-ink .h2 em { color: var(--neon); }
.section-dark .lead, .section-ink .lead { color: rgba(255, 255, 255, 0.6); }
.section-dark .kicker, .section-ink .kicker { color: var(--neon); }

/* ---------------------------- how it works ---------------------------- */
.steps { position: relative; list-style: none; max-width: 1120px; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-line { position: absolute; top: 90px; left: 16%; right: 16%; height: 2px; background: var(--line); z-index: 0; }
.steps-line i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--green-2), var(--neon)); border-radius: 2px; }
.step {
  position: relative; z-index: 1;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 20px 40px -30px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.3); }
.step-n { font: 600 13px/1 var(--display); color: var(--green-2); letter-spacing: 0.04em; }
.step h3 { margin: 8px 0 8px; font: 700 24px/1.15 var(--display); letter-spacing: -0.03em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.step-vis {
  position: relative; overflow: hidden;
  height: 124px; margin-bottom: 24px; border-radius: var(--r-md);
  background: var(--black);
  display: grid; place-items: center;
}

.vis-talk .vis-mic { position: relative; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--neon); color: var(--black); }
.vis-talk .ring { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--neon); animation: ripple 2.4s var(--ease) infinite; }
.vis-talk .ring:nth-child(2) { animation-delay: 0.8s; }
.vis-talk .ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.4); opacity: 0; } }

.vis-sort { grid-template-columns: repeat(3, auto); gap: 8px; }
.sort-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; font: 600 13px/1 var(--sans); background: rgba(255, 255, 255, 0.08); color: #fff; animation: sort 3.6s var(--ease) infinite; }
.sort-chip i { width: 7px; height: 7px; border-radius: 50%; }
.sort-chip.c1 i { background: var(--task); } .sort-chip.c2 i { background: var(--habit); } .sort-chip.c3 i { background: var(--idea); }
.sort-chip.c2 { animation-delay: 0.25s; } .sort-chip.c3 { animation-delay: 0.5s; }
@keyframes sort {
  0% { transform: translateY(-46px) rotate(-8deg); opacity: 0; }
  18%, 78% { transform: none; opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

.vis-notify { place-items: start center; padding-top: 16px; background: radial-gradient(circle at 50% 120%, #0F6B3E, #000 70%); }
.lock-time { font: 600 30px/1 var(--display); color: rgba(255, 255, 255, 0.9); letter-spacing: -0.02em; }
.notif {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-align: left;
  background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
  animation: notif 4s var(--ease) infinite;
}
.notif img { border-radius: 6px; }
.notif b { display: block; font-size: 13px; }
.notif small { display: block; font-size: 11px; opacity: 0.7; }
@keyframes notif { 0%, 8% { transform: translateY(70px); opacity: 0; } 22%, 82% { transform: none; opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }

/* ------------------------------- sorter ------------------------------- */
.sorter { max-width: 1040px; margin: 0 auto; }
.sorter-lane {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 16px;
  height: 92px; margin-bottom: 28px; padding: 0 20px;
  border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-line);
}
.lane-mic { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--neon); color: var(--black); }
.sorter.is-hearing .lane-mic { animation: mic-pulse 0.9s ease-in-out infinite; }
@keyframes mic-pulse { 50% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0.15); } }
.lane-slot { position: relative; flex: 1; max-width: 640px; height: 48px; }
.flyer {
  position: absolute; left: 50%; top: 50%; z-index: 5;
  max-width: 100%;
  padding: 12px 18px; border-radius: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 500 17px/1.2 var(--display); color: #fff; background: var(--ink-3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%);
  animation: flyer-in 0.5s var(--ease) both;
}
@keyframes flyer-in { from { opacity: 0; transform: translate(calc(-50% - 24px), -50%); filter: blur(6px); } }
.flyer.is-flying { transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s, background-color 0.4s; opacity: 0.2; }
.flyer .tag { margin-left: 10px; vertical-align: 1px; }

.buckets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bucket {
  min-height: 210px; padding: 18px; border-radius: var(--r-lg);
  background: var(--ink-1); box-shadow: inset 0 0 0 1px var(--ink-line);
  transition: box-shadow 0.4s, transform 0.5s var(--pop);
}
.bucket.is-hit { transform: scale(1.03); box-shadow: inset 0 0 0 1px var(--c, var(--neon)), 0 0 40px -10px var(--c, var(--neon)); }
.bucket[data-kind="task"] { --c: var(--task); }
.bucket[data-kind="habit"] { --c: var(--habit); }
.bucket[data-kind="list"] { --c: var(--list); }
.bucket[data-kind="idea"] { --c: var(--idea); }
.bucket-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.bucket-n { font: 600 22px/1 var(--display); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.9); }
.bucket ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bucket li { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, 0.05); }
.bucket li small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.45); }
.bucket li.is-new { animation: drop-in 0.6s var(--pop) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(0.9); } }

/* ------------------------------- bento ------------------------------- */
.bento { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: var(--r-lg);
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, 0.25); }
.card h3 { margin: 0 0 8px; font: 700 22px/1.2 var(--display); letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.card-dark { background: var(--black); color: #fff; box-shadow: none; }
.card-dark p { color: rgba(255, 255, 255, 0.6); }
.card-dark:hover { box-shadow: 0 30px 60px -30px rgba(46, 204, 113, 0.4); }

.vis-phone { display: grid; place-items: center; height: 220px; }
.phone { position: relative; width: 120px; height: 220px; border-radius: 26px; background: #1a1a1a; box-shadow: inset 0 0 0 2px #333; padding: 6px; transform: rotate(-6deg); }
.phone-btn { position: absolute; left: -4px; top: 52px; width: 4px; height: 22px; border-radius: 2px 0 0 2px; background: var(--neon); animation: press 3s ease-in-out infinite; }
@keyframes press { 0%, 20%, 100% { transform: none; box-shadow: none; } 26% { transform: translateX(2px); box-shadow: -6px 0 18px rgba(46, 204, 113, 0.7); } 32% { transform: none; } }
.phone-screen { display: flex; flex-direction: column; align-items: center; height: 100%; padding-top: 28px; border-radius: 21px; background: radial-gradient(circle at 50% 110%, #0F6B3E, #050605 70%); }
.phone-time { font: 600 26px/1 var(--display); }
.phone-pill { display: flex; align-items: center; gap: 3px; height: 28px; margin-top: auto; margin-bottom: 26px; padding: 0 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); animation: pill 3s ease-in-out infinite; }
.phone-pill i { width: 3px; height: 14px; border-radius: 2px; background: var(--neon); animation: eq 0.6s ease-in-out infinite alternate; }
.phone-pill i:nth-child(2) { animation-delay: 0.1s; } .phone-pill i:nth-child(3) { animation-delay: 0.25s; } .phone-pill i:nth-child(4) { animation-delay: 0.05s; } .phone-pill i:nth-child(5) { animation-delay: 0.3s; }
@keyframes eq { from { transform: scaleY(0.25); } }
@keyframes pill { 0%, 26% { opacity: 0; transform: scale(0.6); } 34%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.vis-lock { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 22px; border-radius: 20px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; color: var(--green); }
.vis-lock svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.vis-lock .scan { position: absolute; left: 8px; right: 8px; height: 2px; top: 10%; background: var(--neon); box-shadow: 0 0 12px 2px rgba(46, 204, 113, 0.6); animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { to { top: 88%; } }

.vis-sync { display: flex; align-items: center; gap: 10px; height: 80px; margin-bottom: 22px; }
.dev { flex: none; border: 2.4px solid var(--text); border-radius: 8px; }
.dev-phone { width: 30px; height: 52px; }
.dev-laptop { width: 64px; height: 42px; border-bottom-width: 6px; }
.sync-path { position: relative; flex: 1; max-width: 120px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.sync-path i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); animation: travel 2s var(--ease) infinite; }
@keyframes travel { from { left: 0; } to { left: calc(100% - 10px); } }

.vis-bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 0 6px; }
.vis-bars span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--neon), var(--green)); transform: scaleY(0.04); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.vis-bars span:nth-child(6) { background: linear-gradient(180deg, #B8E063, var(--neon)); }
.card.is-in .vis-bars span { transform: none; }
.vis-bars span:nth-child(2) { transition-delay: 0.08s; } .vis-bars span:nth-child(3) { transition-delay: 0.16s; } .vis-bars span:nth-child(4) { transition-delay: 0.24s; }
.vis-bars span:nth-child(5) { transition-delay: 0.32s; } .vis-bars span:nth-child(6) { transition-delay: 0.4s; } .vis-bars span:nth-child(7) { transition-delay: 0.48s; }

/* ------------------------------- habits ------------------------------- */
.section-ink { background: radial-gradient(ellipse at 80% 30%, #0F4A2E, #06261A 60%); color: #fff; }
.habit-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.habit-copy .lead { margin-left: 0; }
.points { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.points li { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.62); font-size: 15px; }
.points b { display: block; margin-bottom: 2px; color: #fff; font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; }

.habit-stage { display: grid; gap: 18px; justify-items: center; }
.said {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 12px 18px; border-radius: 18px 18px 18px 6px;
  font: 500 16px/1.3 var(--display); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  justify-self: start;
}
.said-mic { width: 8px; height: 8px; border-radius: 50%; background: #FF5A4F; animation: blink 1s infinite; }
.js .habit-stage .said { opacity: 0; transform: translateY(10px) scale(0.95); transition: opacity 0.5s, transform 0.6s var(--pop); }
.js .habit-stage.is-said .said { opacity: 1; transform: none; }

.habit-card { width: 100%; max-width: 420px; padding: 24px; border-radius: var(--r-lg); background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); }
.hc-top { display: flex; align-items: center; gap: 16px; }
.hc-ring { position: relative; width: 64px; height: 64px; flex: none; }
.hc-ring > svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring-bg, .ring-fg { fill: none; stroke-width: 6; }
.ring-bg { stroke: #EEECE8; }
.ring-fg { stroke: var(--green-2); stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: calc(169.6 * (1 - var(--ring, 0.8))); transition: stroke-dashoffset 1s var(--ease); }
.hc-check { position: absolute; inset: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green-2); color: #fff; transform: scale(var(--chk, 1)); transition: transform 0.5s var(--pop); }
.hc-check svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hc-name { display: block; font: 700 22px/1.2 var(--display); letter-spacing: -0.02em; }
.hc-sub { font-size: 14px; color: var(--muted); }
.hc-count { display: inline-block; color: var(--text); transition: transform 0.4s var(--pop); }
.hc-count.is-bump { transform: scale(1.4); color: var(--green-2); }
.hc-streak { color: var(--habit); font-weight: 600; }
.hc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 20px; }
.hc-days span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); background: #F1EFEC; transition: background-color 0.3s, color 0.3s, transform 0.5s var(--pop); }
.hc-days span.on { background: var(--green-2); color: #fff; }
.hc-days span.today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green-2); }
.hc-days span.pop { transform: scale(1.18); }

/* ------------------------------- closer ------------------------------- */
.closer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 14vw, 170px) 20px; background: var(--black); color: #fff; text-align: center; }
.closer-glow { position: absolute; z-index: -1; left: 50%; bottom: -380px; width: 1000px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(46, 204, 113, 0.35), transparent); filter: blur(10px); animation: glow-breathe 8s ease-in-out infinite alternate; }
.closer-title { margin: 0; font: 700 clamp(44px, 7.4vw, 92px)/1 var(--display); letter-spacing: -0.045em; }
.closer-title em { color: var(--neon); }
.closer-sub { max-width: 480px; margin: 22px auto 0; font-size: 18px; color: rgba(255, 255, 255, 0.62); }
.closer-form { max-width: 480px; margin: 40px auto 0; }
.waitlist-form { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: box-shadow 0.3s; }
.waitlist-form:focus-within { box-shadow: inset 0 0 0 1px var(--neon), 0 0 0 4px rgba(46, 204, 113, 0.15); }
.waitlist-form input[type="email"] { flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: #fff; font: 400 16px/1 var(--sans); }
.waitlist-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.4); }
.waitlist-form input:focus-visible { outline: none; }
.waitlist-form button.is-busy { opacity: 0.6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; }
.status.success { color: var(--neon); }
.status.error { color: #FF7A6E; }
.closer-foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; margin-top: 48px; }
.qr { display: flex; align-items: center; gap: 14px; text-align: left; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.qr img { border-radius: 12px; background: #fff; padding: 6px; }
.returning { display: flex; align-items: center; gap: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }

/* ------------------------------ pricing ------------------------------ */
.pricing-hero { padding-bottom: clamp(80px, 10vw, 120px); }
.pricing-hero .kicker { color: var(--neon); }
.pricing-title { font-size: clamp(44px, 7vw, 88px); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 20px; margin: 64px auto 0; }
.plan {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 40px 28px 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(28, 31, 28, 0.9), rgba(12, 13, 12, 0.95));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan:hover { transform: translateY(-6px); }
.plan-best { box-shadow: inset 0 0 0 1px rgba(46, 204, 113, 0.55), 0 40px 100px -30px rgba(46, 204, 113, 0.45); }
.plan-best::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, var(--neon) 85%, #B8E063 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 5s linear infinite;
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  font: 600 12px/1 var(--sans); color: var(--black); background: var(--neon);
  box-shadow: 0 6px 20px -4px rgba(46, 204, 113, 0.6);
}
.plan-name { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.plan-price { display: flex; align-items: baseline; margin: 14px 0 6px; font: 700 64px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan-cur { font-size: 0.5em; align-self: flex-start; margin-top: 0.2em; margin-right: 2px; opacity: 0.8; }
.plan-per { margin-left: 4px; font: 500 16px/1 var(--sans); letter-spacing: 0; color: rgba(255, 255, 255, 0.5); }
.plan-best .plan-num { color: var(--neon); }
.plan-note { margin: 0 0 26px; font-size: 15px; color: rgba(255, 255, 255, 0.6); }
.plan-btn { width: 100%; margin-top: auto; }
.plan-includes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 40px 0 0; padding: 0; font-size: 15px; color: rgba(255, 255, 255, 0.78); }
.plan-includes li { display: inline-flex; align-items: center; gap: 8px; }
.plan-includes svg { width: 18px; height: 18px; fill: none; stroke: var(--neon); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plan-foot { margin: 18px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.45); }
.closer-compact { padding: clamp(80px, 10vw, 120px) 20px; border-top: 1px solid var(--ink-line); }
.closer-compact .closer-title { font-size: clamp(36px, 5.6vw, 64px); }
.nav-links a[aria-current="page"] { opacity: 1; }

@media (max-width: 760px) {
  .plans { grid-template-columns: minmax(0, 420px); gap: 28px; }
}

/* ------------------------------- footer ------------------------------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px clamp(20px, 5vw, 64px); background: var(--black); color: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--ink-line); font-size: 14px; }
.footer .nav-brand { color: #fff; font-size: 15px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a:hover { color: #fff; }

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-capture { border-right: 0; border-bottom: 1px solid var(--ink-line); }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .steps-line { display: none; }
  .buckets { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; max-width: 560px; }
  .card-wide { grid-column: auto; grid-template-columns: 1fr; }
  .habit-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 560px) {
  .nav { top: 10px; padding-left: 12px; }
  .nav-login { display: none; }
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .demo { margin-top: 48px; }
  .demo-capture { padding: 22px 20px; }
  .demo-inbox { padding: 20px; }
  .demo-inbox .inbox li:nth-child(n+3) { display: none; }
  .sorter-lane { height: auto; padding: 14px; border-radius: var(--r-lg); }
  .flyer { font-size: 15px; padding: 10px 14px; }
  .buckets { gap: 10px; }
  .bucket { min-height: 170px; padding: 14px; }
  .bucket li:nth-child(n+3) { display: none; }
  .waitlist-form { flex-direction: column; border-radius: var(--r-lg); }
  .waitlist-form input[type="email"] { height: 48px; }
  .returning { flex-direction: column; }
  .footer { justify-content: center; text-align: center; }
}

/* --------------------------- reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .marquee-row { animation: none; }
  .marquee-row + .marquee-row { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
}

/* A word the recogniser got wrong: underlined while it is being fixed, then
   swapped for the right spelling in green. */
.demo-text .w.is-wrong { color: #FF7A6E; text-decoration: underline wavy #FF7A6E; text-underline-offset: 4px; }
.demo-text .w.is-fixed { color: var(--neon); animation: fix-pop 0.5s var(--pop); }
@keyframes fix-pop { 40% { transform: translateY(-3px) scale(1.06); } }

/* FAQ: the doubts that stop people, answered before they leave. */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.3s var(--ease); }
.faq-item[open] { box-shadow: 0 0 0 1px var(--line), 0 20px 40px -28px rgba(0, 0, 0, 0.3); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none;
  font: 600 18px/1.3 var(--display); letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* Log in, for people who already have an account: a real button in the
   nav, not a faint link. */
.nav-login {
  opacity: 1; padding: 7px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.45);
}
.nav-login:hover { box-shadow: inset 0 0 0 1px currentColor; }
@media (max-width: 560px) { .nav-login { display: inline-flex; padding: 7px 12px; } }
