:root {
  --paper: #faf8f3; --cream: #f3f0e8; --surface: #ffffff;
  --ink: #2b2a28; --ink-secondary: #6b655c; --ink-tertiary: #a8a196;
  --line: rgba(70,60,45,0.12);
  --accent: #b5553a; --accent-deep: #9a4730; --accent-tint: #f6e8e2; --on-accent: #ffffff;
  --destructive: #9b2f1f;
  --good-bg: #e4efe5; --good-fg: #2f6b3e;
  --warn-bg: #f7ebd3; --warn-fg: #8a5a14;
  --bad-bg: #f6e1dd; --bad-fg: #9b2f1f;
  --quiet-bg: #efebe3; --quiet-fg: #6b655c;
  --radius-row: 10px; --radius-card: 16px; --radius-big: 28px;
  --font-sans: -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Text", "Segoe UI", sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; width: 100%; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--font-serif); }
.muted { color: var(--ink-secondary); }

/* Paper grain over everything */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Floating pill nav */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; pointer-events: none; transition: transform .5s var(--ease); }
.nav.hide { transform: translateY(-120%); }
.nav-inner { pointer-events: auto; max-width: 1160px; margin: 0 auto; width: calc(100% - 2 * var(--gutter)); display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 10px 0 14px; border-radius: 999px; background: rgba(255,255,255,0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-serif); font-size: 19px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink-secondary); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Logo tile: the logo is line art, always on cream */
.tile { display: inline-flex; align-items: center; justify-content: center; background: var(--cream); flex: none; }
.tile img { width: 72%; height: 72%; }
.tile.s32 { width: 34px; height: 34px; border-radius: 999px; }
.tile.s28 { width: 28px; height: 28px; border-radius: 8px; }

/* Buttons and pills */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; will-change: transform; }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.big { height: 64px; padding: 0 40px; font-size: 18px; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-deep); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { border-color: rgba(70,60,45,0.3); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .4s, color .4s; }
.pill.good { background: var(--good-bg); color: var(--good-fg); }
.pill.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill.quiet { background: var(--quiet-bg); color: var(--quiet-fg); }
.pill.accent { background: var(--accent-tint); color: var(--accent-deep); }

/* Hero */
.hero { position: relative; text-align: center; padding-top: 128px; padding-bottom: 72px; }
.ambient { position: absolute; inset: -10% -20% 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; }
.ambient i:nth-child(1) { width: 520px; height: 520px; left: 50%; top: 4%; margin-left: -260px; background: var(--accent-tint); animation: drift1 18s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { width: 380px; height: 380px; left: 12%; top: 30%; background: #f1e6d4; animation: drift2 22s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { width: 340px; height: 340px; right: 10%; top: 22%; background: #f4dcd2; opacity: .5; animation: drift1 26s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(60px, 40px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-40px, -50px) scale(.9); } }
.hero-logo { position: relative; width: clamp(220px, 30vw, 340px); aspect-ratio: 1; margin: 0 auto 36px; perspective: 900px; }
.plate { position: absolute; inset: 0; border-radius: 50%; background: var(--cream); border: 1px solid var(--line); }
.plate::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(181,85,58,0.25); }
.hero-logo .logo-anim { position: absolute; inset: 14% 10% 16% 12%; width: 78%; height: 70%; overflow: visible; }
.logo-anim .ln { fill: var(--ink); stroke: var(--ink); stroke-width: 0; stroke-linecap: round; stroke-linejoin: round; }
.logo-anim .glyph { fill: var(--accent); }
.logo-anim .zzz text { font-family: var(--font-serif); font-style: italic; fill: var(--accent); opacity: 0; }
.logo-anim .zzz text:nth-child(1) { font-size: 84px; }
.logo-anim .zzz text:nth-child(2) { font-size: 112px; }
.logo-anim .zzz text:nth-child(3) { font-size: 144px; }
h1 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 auto; max-width: 1000px; }
h1 em { font-style: italic; color: var(--accent); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em; margin: 0 -.08em -.1em; }
.wi { display: inline-block; will-change: transform; }
.lede { font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-secondary); max-width: 36em; margin: 28px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.fineprint { margin-top: 18px; font-size: 14px; color: var(--ink-secondary); }

/* Product mock with 3D tilt */
.stage-wrap { perspective: 1800px; }
.stage { background: var(--cream); border-radius: var(--radius-big); padding: clamp(14px, 4vw, 52px); transform-origin: 50% 0; will-change: transform; }
.window { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: grid; grid-template-columns: 210px 1fr; min-height: 480px; text-align: left; }
.sidebar { background: var(--cream); border-right: 1px solid var(--line); padding: 16px 10px; font-size: 13px; }
.sidebar .me { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; }
.sidebar .me b { display: block; font-size: 13px; }
.sidebar .me span { display: block; font-size: 11px; color: var(--ink-secondary); }
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good-fg); margin-right: 4px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.side-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; color: var(--ink); }
.side-item.on { background: var(--accent-tint); color: var(--accent-deep); font-weight: 500; }
.side-item .count { font-size: 11px; color: var(--ink-secondary); }
.dots { display: flex; gap: 6px; padding: 0 8px 16px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(70,60,45,0.16); }
.brief { padding: 28px 32px; }
.brief .date { font-size: 12px; color: var(--ink-secondary); }
.brief h3 { font-family: var(--font-serif); font-weight: 500; font-size: 30px; line-height: 1.2; margin: 4px 0 8px; }
.brief .say { font-family: var(--font-serif); font-size: 16px; line-height: 1.5; max-width: 36em; margin: 0 0 22px; }
.brief-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 16px; }
.card h4 { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.row:first-of-type { border-top: 0; padding-top: 0; }
.row small { display: block; color: var(--ink-secondary); font-size: 11px; margin-top: 2px; }
.row .t { color: var(--ink-secondary); font-size: 12px; width: 62px; flex: none; }
.row .grow { flex: 1; min-width: 0; }
.mini-btn { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }

/* Chapters */
section { padding-top: 160px; scroll-margin-top: 40px; }
h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(34px, 5vw, 60px); line-height: 1.06; letter-spacing: -0.02em; margin: 0; }
h2 em { font-style: italic; color: var(--accent); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section-head p { color: var(--ink-secondary); font-size: 19px; margin: 18px auto 0; max-width: 34em; }

/* Scrubbed statement */
.statement { font-family: var(--font-serif); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.18; letter-spacing: -0.015em; max-width: 1000px; margin: 0 auto; text-align: center; }
.statement .sw { display: inline; }
.statement b { font-weight: 500; color: var(--accent); }

/* Features: sticky title, cards scroll by */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.split-head { position: sticky; top: 140px; }
.split-head p { color: var(--ink-secondary); font-size: 19px; margin: 20px 0 32px; }
.feature-list { display: grid; gap: 24px; }
.feature { background: var(--cream); border-radius: var(--radius-big); padding: 36px; display: grid; gap: 28px; overflow: hidden; }
.feature h3 { font-family: var(--font-serif); font-weight: 500; font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-secondary); }
.feature .ui { transition: transform .9s var(--ease); transform-origin: 50% 100%; }
.feature:hover .ui { transform: scale(1.03); }
.bubble { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.45; }
.bubble.me { margin-left: auto; background: var(--accent-tint); border-bottom-right-radius: 6px; }
.bubble.t2 { background: var(--surface); border: 1px solid var(--line); font-family: var(--font-serif); font-size: 15px; border-bottom-left-radius: 6px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-bottom-left-radius: 6px; width: max-content; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-tertiary); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.stack { display: flex; flex-direction: column; gap: 10px; min-height: 120px; justify-content: flex-end; }
.anim .stack .typing { display: none; }
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; justify-self: end; transition: opacity .35s, transform .35s var(--ease); }
.swap .after { opacity: 0; transform: translateY(6px); }
.swap.done .before { opacity: 0; transform: translateY(-6px); }
.swap.done .after { opacity: 1; transform: none; }
.meter { height: 3px; border-radius: 3px; background: var(--quiet-bg); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--accent); }

/* Trust: stacking panels */
.panels { display: grid; gap: 28px; }
.panel { position: sticky; top: 110px; background: var(--cream); border-radius: var(--radius-big); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 520px; transform-origin: 50% 0; border: 1px solid var(--line); }
.panel:nth-child(2) { top: 126px; } .panel:nth-child(3) { top: 142px; }
.panel h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 18px; }
.panel p { color: var(--ink-secondary); font-size: 18px; margin: 0; }
.panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.panel li { display: flex; gap: 10px; align-items: baseline; }
.panel li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.demo { position: relative; }
.approval { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; font-size: 14px; }
.approval .head { background: var(--warn-bg); color: var(--warn-fg); padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 13px; transition: background .5s, color .5s; }
.approval.approved .head { background: var(--good-bg); color: var(--good-fg); }
.approval.flag .head { background: var(--bad-bg); color: var(--bad-fg); }
.approval .body { padding: 14px 16px 16px; }
.approval .quote { margin: 10px 0 14px; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-row); font-size: 13px; line-height: 1.45; }
.approval .actions { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.approval .actions span { font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 999px; }
.approval .yes { background: var(--accent); color: var(--on-accent); }
.approval .no { color: var(--destructive); border: 1px solid var(--line); }
.approval .edit { border: 1px solid var(--line); }
.approval .posted { font-size: 13px; color: var(--good-fg); font-weight: 500; }
.anim .approval .posted { opacity: 0; }
.cursor { position: absolute; width: 22px; height: 22px; left: 0; top: 0; pointer-events: none; z-index: 2; opacity: 0; }
.stamp { position: absolute; right: 18px; bottom: 18px; font-family: var(--font-serif); font-style: italic; font-size: 30px; color: var(--bad-fg); border: 2px solid var(--bad-fg); border-radius: 12px; padding: 2px 14px; transform: rotate(-8deg); background: rgba(255,255,255,0.85); }
.anim .stamp { opacity: 0; }
.files { font-family: var(--font-mono); font-size: 13px; line-height: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; }
.files .dim { color: var(--ink-tertiary); }
.commit { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-sans); font-size: 13px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; }
.point h3 { font-family: var(--font-serif); font-weight: 500; font-size: 21px; margin: 0 0 6px; }
.point p { margin: 0; color: var(--ink-secondary); font-size: 15px; }

/* Marquee */
.marquee { overflow: hidden; padding: 6px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 8px; }
.track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 44s; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font-family: var(--font-serif); font-size: clamp(36px, 6vw, 76px); line-height: 1.2; letter-spacing: -0.02em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.marquee.rev .track span { color: var(--ink-tertiary); font-style: italic; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Needs */
.needs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.need { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; transition: border-color .3s, transform .6s var(--ease); }
.need:hover { border-color: rgba(181,85,58,0.4); transform: translateY(-4px); }
.need .n { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: 44px; line-height: 1; }
.need h3 { font-family: var(--font-serif); font-weight: 500; font-size: 23px; margin: 18px 0 8px; }
.need p { margin: 0; color: var(--ink-secondary); font-size: 15px; }

/* Price */
.price { position: relative; overflow: hidden; background: var(--cream); border-radius: var(--radius-big); padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; border: 1px solid var(--line); }
.price::before { content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -220px; border-radius: 50%; background: var(--accent-tint); filter: blur(60px); opacity: .9; }
.price > * { position: relative; }
.amount { font-family: var(--font-serif); font-size: clamp(96px, 14vw, 180px); line-height: .9; letter-spacing: -0.04em; margin-top: 8px; }
.amount small { font-size: 26px; letter-spacing: 0; color: var(--ink-secondary); margin-left: 8px; font-style: italic; }
.price ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.price li { display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.price li::before { content: "✓"; color: var(--accent); font-weight: 600; }
.steps { display: grid; gap: 14px; margin-top: 32px; }
.step { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-secondary); }
.step b { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font-family: var(--font-serif); font-size: 22px; display: flex; justify-content: space-between; gap: 16px; transition: color .2s; }
summary:hover { color: var(--accent-deep); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink-secondary); font-family: var(--font-sans); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .35s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 12px 0 0; color: var(--ink-secondary); }
details[open] p { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* Closing */
.closing { text-align: center; padding-top: 180px; padding-bottom: 140px; }
.closing .hero-logo { width: clamp(180px, 22vw, 260px); margin-bottom: 40px; }
.closing h2 { font-size: clamp(42px, 7vw, 96px); line-height: 1; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-secondary); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Motion start states (only when motion is on and the script loaded) */
.anim [data-up], .anim [data-pop] { opacity: 0; }
.anim .hero .lede, .anim .hero .cta-row, .anim .hero .fineprint, .anim .plate, .anim .split-words { opacity: 0; }
.anim .logo-anim .ln { fill-opacity: 0; }
.anim .logo-anim .glyph { opacity: 0; }

@media (max-width: 900px) {
  .window { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .brief-grid, .split, .panel, .price, .needs, .points { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split-head { position: static; text-align: center; }
  .panel { position: relative; top: 0 !important; min-height: 0; gap: 32px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 104px; padding-bottom: 48px; }
  .brief { padding: 20px 16px; }
  .feature { padding: 26px 20px; }
  section { padding-top: 112px; }
  .cta-row .btn { width: 100%; }
  .closing { padding-top: 120px; padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient i, .track, .live, .typing i { animation: none; }
  .nav { transition: none; }
}
