:root {
  color-scheme: light dark;
  /* D34 greys (app Assets.xcassets): Bg, Surface, Elevated, Text, TextSecondary. */
  --ink: #15181B;
  --paper: #FFFFFF;
  --surface: #F5F7F9;
  --elevated: #FFFFFF;
  --ink-60: #676C71;
  --ink-15: rgba(21, 24, 27, 0.15);
  --ink-08: rgba(21, 24, 27, 0.08);
  --accent: #0096FF;
  --gecko-eye: #1A8A4A;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --lens-glass: rgba(245, 247, 249, 0.84);
  --lens-hi: rgba(255, 255, 255, 1);
  --shadow: rgba(20, 30, 45, 0.12);
  --shadow-soft: rgba(20, 30, 45, 0.08);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1F4F6;
    --paper: #0E1113;
    --surface: #16191C;
    --elevated: #26292D;
    --ink-60: #8B9095;
    --ink-15: rgba(241, 244, 246, 0.15);
    --ink-08: rgba(241, 244, 246, 0.08);
    --glass: rgba(38, 41, 45, 0.6);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --lens-glass: rgba(22, 25, 28, 0.82);
    --lens-hi: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-soft: rgba(0, 0, 0, 0.35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--sans);
  position: relative;
}
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* Floating glass nav pill. Glass is chrome only; the note sheet and the lens text stay solid content. */
nav.top { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; gap: 20px; width: max-content; max-width: 100%; margin: 12px auto 0; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--elevated); box-shadow: 0 0 0 1px var(--ink-08), 0 8px 30px var(--shadow-soft); }
.js nav.top:not(.scrolled) { background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 8px 30px var(--shadow-soft); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.wordmark .mark { width: 20px; height: 20px; display: block; }
nav.top ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
nav.top a.nl { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 500 15px/1 var(--sans); color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.wordmark:hover, .wordmark:focus-visible, nav.top a.nl:hover, nav.top a.nl:focus-visible { text-decoration: underline; }

/* Hero: one centred column, then one object. */
.hero { padding: 96px 0 0; text-align: center; }
h1 { font: 600 clamp(40px, 6vw, 72px)/1.04 var(--display); letter-spacing: -.02em; margin: 0 0 12px; }
.hero h1 { font-weight: 700; font-size: clamp(44px, 5.83vw, 84px); line-height: 1; letter-spacing: -.04em; margin: 0 auto; max-width: 11em; text-wrap: balance; }
.lede { margin: 22px auto 0; color: var(--ink-60); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; max-width: 30em; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; margin-top: 36px; padding: 0 30px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font: 700 19px/1 var(--sans); text-decoration: none; box-shadow: 0 8px 24px rgba(0, 150, 255, .28); }

/* The note sheet. Every row is one --row high, so the lens text lines up with the page line by line. */
.sheet-wrap { margin: 72px 0 0; display: flex; flex-direction: column; align-items: center; }
.sheet { --row: 28px; --rows: 14; position: relative; width: min(820px, 100%); padding: 44px 72px; text-align: left; background: var(--elevated); border-radius: 28px; box-shadow: 0 0 0 1px var(--ink-08), 0 30px 80px var(--shadow); }
.note { --lw: min(400px, calc(55% + 79px)); --ovl: 40px; --ovr: 40px; --rest: .92; --p: .92; position: relative; }
.human p, .human ul { margin: 0; }
.human .gap { height: calc(var(--row) * 2); }
.human .gap.one { height: var(--row); }
.human .meta { height: calc(var(--row) * 2); font: 400 14px/var(--row) var(--sans); color: var(--ink-60); white-space: nowrap; }
.human .title { height: calc(var(--row) * 2); font: 700 30px/var(--row) var(--sans); letter-spacing: -.025em; color: var(--ink); }
.human .ln, .human li { font: 400 18px/var(--row) var(--sans); color: var(--ink-60); white-space: nowrap; }
.human .ln b { font-weight: 600; color: var(--ink); }
.human ul { list-style: none; padding: 0; }
.human li { position: relative; padding-left: 22px; }
.human li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
/* Line-break variants, same text in both columns so the rows stay aligned: .r-m rows at <=780px, .r-n at 360-780px, .r-s at <=359px; .i-d inline text above 780px only, .i-n at 360-780px, .i-dn except <=359px. */
.r-m, .r-n, .r-s, .i-n { display: none; }
.human .ln.r-m, .human .ln.r-n, .human .ln.r-s { display: none; }
.human .title { white-space: nowrap; }

/* The lens: regular glass over the note, 1.5px blue rim, the agent markdown inside in SF Mono. */
.lens { position: absolute; z-index: 2; top: calc(var(--row) * -.5); left: calc(var(--ovl) * -1 + var(--p) * (100% + var(--ovl) + var(--ovr) - var(--lw))); width: var(--lw); height: calc(var(--row) * (var(--rows) + 1)); border-radius: 36px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: var(--lens-glass); -webkit-backdrop-filter: blur(10px) saturate(1.8); backdrop-filter: blur(10px) saturate(1.8); box-shadow: inset 0 1px 1px var(--lens-hi), 0 0 0 1.5px var(--accent), 0 20px 50px var(--shadow); }
.lens.drag { cursor: grabbing; }
.lens .in { position: absolute; left: 28px; right: 12px; top: calc(var(--row) * .5); font: 400 13px/var(--row) var(--mono); color: var(--ink); }
.lens .r { display: block; white-space: pre; height: var(--row); overflow: hidden; }
.lens .r b { font-weight: 600; }
.lens .dim { color: var(--ink-60); }
.lens .r.r-m, .lens .r.r-n, .lens .r.r-s { display: none; }
.sheet[data-lens="off"] .lens { opacity: 0; visibility: hidden; }

.agent-toggle { display: none; margin-top: 28px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--ink-15); cursor: pointer; }
.js .agent-toggle { display: inline-flex; align-items: center; }
.agent-toggle:hover { background: var(--ink-08); }
.agent-toggle[aria-pressed="true"] { background: var(--ink-08); box-shadow: inset 0 0 0 1px var(--ink-60); }

/* Up to 780px the sheet is narrow enough that the lens (at most 55% of the sheet, 400px max) cannot hold the long desktop lines: use the shorter line breaks. */
@media (max-width: 780px) {
  .sheet { --rows: 16; padding: 44px 40px; }
  .note { --lw: min(400px, calc(55% + 44px)); --ovl: 12px; --ovr: 56px; --rest: .97; --p: .97; }
  .human .ln.r-m, .human .ln.r-n, .lens .r.r-m, .lens .r.r-n { display: block; }
  .i-d { display: none; }
  .i-n { display: inline; }
}
@media (max-width: 600px) {
  .hero { padding-top: 64px; }
  .sheet-wrap { margin-top: 48px; }
  /* The lens is at most 55% of the sheet (note + 2 x 24px padding) and hangs 16px past the sheet's right edge (24 + 16 = 40px past the note). */
  .sheet { --row: 28px; padding: 32px 24px; border-radius: 24px; }
  .note { --lw: calc(55% + 26px); --ovl: 12px; --ovr: 40px; --rest: .97; --p: .97; }
  .human .title { font-size: 24px; }
  .human .meta { font-size: 13px; }
  .human .ln, .human li { font-size: 16px; }
  .lens { border-radius: 32px; }
  .lens .in { left: 14px; right: 6px; font-size: 11px; }
}
@media (max-width: 359px) {
  .note { --lw: calc(55% + 19px); --ovr: 34px; }
  .sheet { padding: 28px 18px; }
  .lens .in { left: 12px; }
  .sheet { --rows: 18; }
  .human .ln.r-n, .lens .r.r-n, .i-n, .i-dn { display: none; }
  .human .ln.r-s, .lens .r.r-s { display: block; }
  nav.top { gap: 6px; padding-left: 14px; }
  nav.top a.nl { padding: 0 9px; }
}

/* Coming soon */
.coming-soon { margin: 64px 0 0; text-align: center; color: var(--ink-60); font-size: 16px; }

/* Waitlist */
.waitlist { margin: 24px auto 0; max-width: 640px; }
.cmd { display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px 8px 8px 18px; background: var(--paper); border: 1px solid var(--ink-15); border-radius: 16px; font-family: var(--mono); }
.cmd:focus-within { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 2px; }
.cmd .prompt { color: var(--ink-60); user-select: none; }
.cmd input[type=email] { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); font: 16px/1.4 var(--mono); outline: none; }
.cmd input::placeholder { color: var(--ink-60); opacity: 1; }
.cmd button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); font: 700 19px/1 var(--sans); cursor: pointer; white-space: nowrap; }
.cmd button:disabled { opacity: .6; cursor: progress; }
.wl-label { display: block; margin: 0 0 8px; font-size: 14px; color: var(--ink-60); }
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-fine, .wl-privacy { max-width: 640px; margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-60); }
.wl-fine a, .wl-privacy a { color: var(--ink); }
.wl-privacy { margin-top: 6px; }
.wl-msg { display: none; max-width: 640px; margin: 14px 0 0; font-weight: 600; }
.wl-msg:target { display: block; }
.wl-live { max-width: 640px; margin: 14px 0 0; min-height: 1.5em; font-weight: 600; }
.wl-live:empty { margin: 0; min-height: 0; }

/* Points */
.why { padding: 160px 0 160px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; list-style: none; margin: 0; padding: 0; }
.points h3 { font: 600 19px/1.3 var(--sans); margin: 0 0 8px; }
.points p { margin: 0; font-size: 16px; color: var(--ink-60); }

footer { border-top: 1px solid var(--ink-15); padding: 28px 0 44px; font-size: 14px; color: var(--ink-60); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.gecko { height: 18px; width: auto; color: var(--ink); vertical-align: middle; }
.gecko path:last-child { fill: var(--gecko-eye); }
.from { display: inline-flex; align-items: center; gap: 8px; }

/* Prose pages */
.prose { max-width: 720px; padding: 24px 0 64px; }
.prose h1 { font-size: clamp(34px, 6vw, 52px); margin-bottom: 8px; }
.prose h2 { font: 600 22px/1.3 var(--sans); margin: 36px 0 8px; }
.prose p, .prose li { font-size: 17px; }
.prose .pre { color: var(--ink); }
.prose .updated { color: var(--ink-60); font-size: 15px; }

@media (max-width: 899px) {
  .points { grid-template-columns: 1fr; gap: 48px; }
  .why { padding: 120px 0 120px; }
  .coming-soon { margin: 40px 0 0; }
  .waitlist { margin: 20px 0 0; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .points { gap: 32px; }
  .cmd { padding: 6px 6px 6px 12px; }
  .cmd .prompt { display: none; }
  .cmd input[type=email] { padding: 0 4px; }
  .cmd button { padding: 0 14px; }
  .why { padding: 80px 0 80px; }
  .coming-soon { margin: 32px 0 0; }
  .waitlist { margin: 16px 0 0; }
}
@media (max-width: 480px) {
  .cmd { flex-wrap: wrap; }
  .cmd input[type=email] { flex: 1 1 100%; }
  .cmd button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  nav.top, .agent-toggle { transition: background .15s ease-out, box-shadow .15s ease-out; }
  .lens { transition: opacity .2s ease-out, visibility .2s; }
  .lens.drag { transform: scale(1.012); }
  .btn { transition: transform .15s ease-out; }
  .btn:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Reduce Transparency (and browsers without backdrop-filter): glass becomes opaque. The lens keeps its blue ring. */
@media (prefers-reduced-transparency: reduce) {
  .js nav.top:not(.scrolled), nav.top { background: var(--elevated); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--ink-15); }
  .lens { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1.5px var(--accent), 0 20px 50px var(--shadow); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .js nav.top:not(.scrolled), nav.top { background: var(--elevated); box-shadow: 0 0 0 1px var(--ink-15); }
  .lens { background: var(--surface); box-shadow: 0 0 0 1.5px var(--accent), 0 20px 50px var(--shadow); }
}
@media (prefers-contrast: more) {
  .js nav.top:not(.scrolled), nav.top { background: var(--elevated); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1px var(--ink-60); }
  .agent-toggle { box-shadow: inset 0 0 0 1px var(--ink-60); }
  .agent-toggle[aria-pressed="true"], .agent-toggle[aria-pressed="true"]:hover { background: var(--ink); color: var(--paper); }
  .lens { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 0 0 1.5px var(--accent), 0 20px 50px var(--shadow); }
}
