:root {
  --ink: #142d32;
  --ink-2: #3e5559;
  --muted: #5f7579;
  --faint: #95a6a8;
  --line: #e1e8e8;
  --bg: #f6f8f8;
  --surface: #fcfdfd;
  --mint: #c6f2d9;
  --mint-deep: #2f8a5f;
  --red: #b64242;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 248, 248, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(225, 232, 232, 0.8);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.875rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; transition: color 150ms var(--ease); }
@media (hover: hover) { .nav-links a:not(.btn):hover { color: var(--ink); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: transform 100ms var(--ease), background-color 150ms var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-quiet { color: var(--ink); }
@media (hover: hover) {
  .btn-primary:hover { background: #0e2226; }
  .btn-quiet:hover { background: rgba(20, 45, 50, 0.06); }
}

/* Hero */
.hero { padding: 88px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: center; }
.hero-grid > * { min-width: 0; }
.demo { --say: 1.375rem; }
.kicker { margin: 0 0 18px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-deep); }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-sub { margin: 24px 0 0; max-width: 34ch; font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.actions { display: flex; gap: 8px; margin-top: 36px; flex-wrap: wrap; }

/* Demo: sentence → row */
:root {
  --t-item: #2b5cb8; --t-item-bg: #e6eefc;
  --t-num: #1f7a4f; --t-num-bg: #dcf4e7;
  --t-date: #8a5a00; --t-date-bg: #fdefd3;
  --t-note: #6b47a8; --t-note-bg: #efe7fb;
}
.demo { position: relative; display: flex; flex-direction: column; gap: 14px; }
.say {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; min-height: 92px;
  box-shadow: 0 1px 2px rgba(20, 45, 50, 0.04), 0 16px 32px -20px rgba(20, 45, 50, 0.2);
}
.say-mic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.say-mic::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; transition: opacity 200ms var(--ease); }
.say-mic.on::before { opacity: 1; animation: breathe 1.4s var(--ease) infinite; }
.say-mic i { width: 9px; height: 15px; border-radius: 5px; background: var(--surface); }
.say-text { margin: 6px 0 0; font-size: var(--say); line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; min-height: 2em; }
.tok { border-radius: 6px; padding: 1px 5px; margin: 0 -5px; transition: background-color 300ms var(--ease), color 300ms var(--ease), opacity 200ms var(--ease), margin 300ms var(--ease); }
.lit .tok { margin: 0 1px; }
.word { display: inline; }
.lit .tok.item { background: var(--t-item-bg); color: var(--t-item); --tokbg: var(--t-item-bg); }
.lit .tok.num { background: var(--t-num-bg); color: var(--t-num); --tokbg: var(--t-num-bg); }
.lit .tok.date { background: var(--t-date-bg); color: var(--t-date); --tokbg: var(--t-date-bg); }
.lit .tok.note { background: var(--t-note-bg); color: var(--t-note); --tokbg: var(--t-note-bg); }
.flow { display: flex; align-items: center; gap: 10px; padding-left: 40px; height: 22px; }
.flow span { width: 2px; height: 22px; background: linear-gradient(var(--line), var(--faint)); border-radius: 1px; }
.flow em { font-style: normal; font-size: 0.8125rem; font-weight: 600; color: var(--mint-deep); opacity: 0; transform: translateY(-4px); transition: opacity 250ms var(--ease), transform 250ms var(--ease); }
.flow em.show { opacity: 1; transform: none; }

.grid-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 45, 50, 0.04), 0 24px 48px -28px rgba(20, 45, 50, 0.28); }
.grid-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #f3f6f6; border-bottom: 1px solid var(--line); }
.grid-tabs span { font-size: 0.75rem; font-weight: 600; color: var(--faint); padding: 7px 12px; border-radius: 8px 8px 0 0; }
.grid-tabs span.on { color: var(--ink); background: #fff; box-shadow: 0 -1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line); }
.grid { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.grid th, .grid td { border-bottom: 1px solid #edf1f1; border-right: 1px solid #edf1f1; padding: 10px 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid th { font-size: 0.75rem; font-weight: 600; color: var(--muted); background: #fafbfb; }
.grid .rn { width: 36px; text-align: center; color: var(--faint); background: #fafbfb; font-size: 0.75rem; padding: 10px 0; }
.grid tr > :last-child { border-right: 0; }
.grid td { color: var(--ink-2); }
.grid tr.new { background: #fbfdfc; }
.cell { font-weight: 600; transition: background-color 300ms var(--ease); }
.cell .v { display: inline-block; opacity: 0; }
.cell.filled .v { opacity: 1; }
.cell.item.filled { background: var(--t-item-bg); color: var(--t-item); }
.cell.num.filled { background: var(--t-num-bg); color: var(--t-num); }
.cell.date.filled { background: var(--t-date-bg); color: var(--t-date); }
.cell.note.filled { background: var(--t-note-bg); color: var(--t-note); }
.cell.auto.filled { background: #f3f6f6; color: var(--ink); }
.ghost { transform-origin: left center; position: absolute; z-index: 5; pointer-events: none; white-space: nowrap; font-size: var(--say); line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; padding: 1px 5px; border-radius: 6px; will-change: transform; box-shadow: 0 8px 20px -8px rgba(20, 45, 50, 0.35); }
.ghost.item { background: var(--t-item-bg); color: var(--t-item); }
.ghost.num { background: var(--t-num-bg); color: var(--t-num); }
.ghost.date { background: var(--t-date-bg); color: var(--t-date); }
.ghost.note { background: var(--t-note-bg); color: var(--t-note); }
.cell.auto.filled::after { content: "auto"; margin-left: 6px; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mint-deep); }

/* Phones */
.phones { display: flex; justify-content: center; gap: 40px; margin-top: 72px; padding-bottom: 40px; }
.phone {
  width: 292px; flex: 0 0 292px; aspect-ratio: 292 / 600;
  padding: 10px; border-radius: 52px;
  background: #172b2f;
  box-shadow: 0 1px 2px rgba(20, 45, 50, 0.08), 0 30px 60px -20px rgba(20, 45, 50, 0.28);
}
.tilt-l { transform: translateY(28px); }
.tilt-r { transform: none; }
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); font-size: 11px; }
.statusbar { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 0 26px; font-weight: 600; font-size: 12px; }
.island { width: 82px; height: 24px; border-radius: 12px; background: #0b1416; }
.sb-icons { width: 44px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) 0 34%, transparent 34% 42%, var(--ink) 42% 70%, transparent 70% 78%, var(--ink) 78%); opacity: 0.85; }
.today, .app-dim { padding: 6px 16px; display: flex; flex-direction: column; gap: 10px; }
.app-dim { opacity: 0.35; }
.today-head { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 6px; padding: 4px 2px; }
.chev { width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-2px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.card.ghost { height: 110px; }
.card.ghost.short { height: 64px; }
.undo { display: flex; justify-content: space-between; gap: 8px; align-items: center; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 11px 13px; font-weight: 500; }
.undo b { color: var(--mint); font-weight: 700; }
.budget { display: flex; flex-direction: column; gap: 4px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.big { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.bar { height: 6px; border-radius: 3px; background: #e8eeee; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--mint-deep); border-radius: 3px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.row .ico { width: 28px; height: 28px; border-radius: 9px; background: #e7efef; flex: none; }
.row .t { flex: 1; display: flex; flex-direction: column; font-weight: 600; font-size: 12px; }
.row em { font-style: normal; font-weight: 400; font-size: 10px; color: var(--muted); }
.row b { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12px; }
.tabbar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; gap: 8px; align-items: center; }
.tabs { flex: 1; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-around; padding: 0 6px; }
.tabs i { width: 54px; height: 34px; border-radius: 17px; }
.tabs i.on { background: rgba(198, 242, 217, 0.8); }
.mic { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); flex: none; position: relative; }
.mic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 15px; border-radius: 5px; background: var(--surface); transform: translate(-50%, -60%); }

/* Voice sheet inside phone 1 */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 26px 26px 0 0; padding: 16px 14px 18px; box-shadow: 0 -10px 30px rgba(20, 45, 50, 0.12); display: flex; flex-direction: column; gap: 14px; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.x { width: 12px; height: 12px; position: relative; }
.x::before, .x::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.6px; height: 12px; background: var(--muted); }
.x::before { transform: rotate(45deg); } .x::after { transform: rotate(-45deg); }
.said { margin: 0; padding: 0 6px; font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; min-height: 54px; }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--mint-deep); animation: blink 1s steps(1) infinite; }
.sheet-row { display: flex; justify-content: space-between; align-items: center; }
.pill-key { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 17px; background: #e7eeee; font-weight: 600; font-size: 12px; }
.stop { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.stop .ring { position: absolute; inset: 0; z-index: 0; border-radius: 50%; background: var(--mint); animation: breathe 1.6s var(--ease) infinite; }
.stop::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: var(--ink); }
.stop .sq { position: relative; z-index: 2; width: 14px; height: 14px; border-radius: 3px; background: var(--surface); }

/* Sections */
.section { padding: 112px 0; }
.section h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
.lede { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.0625rem; }

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); font-weight: 700; font-size: 0.875rem; }
.steps h3 { margin: 18px 0 6px; font-size: 1.1875rem; letter-spacing: -0.02em; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-copy p { margin: 18px 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 44ch; }

.ask { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 2px rgba(20, 45, 50, 0.04), 0 20px 40px -24px rgba(20, 45, 50, 0.18); }
.ask-q { margin: 0; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.03em; }
.ask-said { margin: -10px 0 0; color: var(--muted); font-style: italic; }
.field { display: flex; flex-direction: column; gap: 8px; }
.lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.9375rem; }
.lbl em { font-style: normal; color: var(--red); font-size: 0.8125rem; font-weight: 600; }
.input { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 14px; display: flex; align-items: center; font-size: 1rem; }
.input.focus { border: 1.5px solid var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips i { font-style: normal; font-size: 0.875rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.chips i.on { background: var(--mint); border-color: #7cc49d; font-weight: 600; }

.templates { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; }
.templates li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: 0.9375rem; }

.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--line); padding-top: 56px; }
.trust h3 { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.trust p { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.section:has(.trust) { padding-top: 24px; }

.close { padding-bottom: 128px; }
.close .lede { margin-bottom: 32px; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.footer-links a { text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { color: var(--ink); } }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal h1 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.05; }
.legal .meta { margin: 0 0 32px; color: var(--muted); font-size: 0.875rem; }
.legal article { max-width: 68ch; }
.legal h2 { margin: 32px 0 10px; font-size: 1.25rem; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--mint-deep); }

@keyframes pulse { 50% { opacity: 0.3; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.28); } }
@media (prefers-reduced-motion: reduce) {
  .live i, .caret, .stop .ring, .say-mic.on::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* Mobile */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps, .trust { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .hero { padding-top: 56px; }
  .section { padding: 80px 0; }
  .phones { gap: 0; margin-top: 48px; }
  .phone { width: 260px; flex-basis: 260px; }
  .tilt-r { display: none; }
  .tilt-l { transform: none; }
  .ask { padding: 20px; }
  .demo { --say: 1.125rem; }
  .say { padding: 16px; gap: 12px; }
  .say-mic { width: 34px; height: 34px; }
  .grid { font-size: 0.75rem; }
  .grid th, .grid td { padding: 8px 7px; }
  .grid .rn { width: 24px; }
  .cell.auto.filled::after { display: none; }
  .flow { padding-left: 34px; }
}
