/* Letterdone landing. Mobile first: the email form is visible without scrolling at 375 px. */
:root {
  --night: #0E1A30;
  --night-2: #050B16;
  --ink: #14213D;
  --ink-2: #2D3A52;
  --muted: #4A5568;
  --paper: #F4F6F9;
  --white: #FFFFFF;
  --line: #DCE3EC;
  --tint: #F3F5F8;
  --amber: #F2A541;
  --blue: #2346A0;
  --rust: #C2410C;
  --due-bg: #FDEBDD;
  --due-ink: #7C2D12;
  --mist: #C9D5EA;
  --mist-2: #9FB0CC;
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: #16306F; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font: 500 13px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 800; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(600px 380px at 78% 40%, rgba(35, 70, 160, 0.55), transparent 70%); animation: glow 7s var(--ease) infinite; pointer-events: none; }
.float { position: absolute; border-radius: 6px; background: rgba(244, 246, 249, 0.05); border: 1px solid rgba(244, 246, 249, 0.11); animation: drift 13s var(--ease) infinite; pointer-events: none; }
.float.f1 { left: 4%; top: 64%; width: 92px; height: 60px; --r: -12deg; }
.float.f2 { left: 46%; top: 8%; width: 70px; height: 46px; --r: 9deg; animation-delay: -4s; }
.float.f3 { right: 3%; bottom: 6%; width: 110px; height: 72px; --r: 14deg; animation-delay: -7s; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 800 23px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar .eyebrow { color: var(--mist-2); font-size: 12px; }
.hero-grid { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-block: 8px 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero-copy .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(38px, 6.2vw, 74px); line-height: 1.0; letter-spacing: -0.025em; }
.hero h1 .w { display: inline-block; margin-right: 0.22em; animation: word 650ms var(--ease) both; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mist); max-width: 32em; }
.rise { animation: rise 600ms var(--ease) both; }

/* Form */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 540px; }
.signup label.lbl { font-weight: 600; font-size: 15px; }
.signup .row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input[type="email"] { flex: 1 1 240px; min-width: 0; height: 56px; padding: 0 18px; border-radius: 12px; font: 17px var(--body); }
.signup button { flex: 1 0 auto; height: 56px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--amber); color: var(--night); font: 700 17px var(--body); cursor: pointer; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms; }
.signup button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 165, 65, 0.35); filter: brightness(1.04); }
.signup button:active { transform: scale(0.98); }
.signup button:disabled { opacity: 0.7; cursor: wait; transform: none; }
.on-dark input[type="email"] { border: 1px solid rgba(244, 246, 249, 0.3); background: rgba(244, 246, 249, 0.08); color: var(--paper); }
.on-dark input::placeholder { color: var(--mist-2); }
.on-dark .fine { color: var(--mist-2); }
.fine { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 15px; min-height: 0; }
.status.error { color: #FFB4A8; }
.signup.done .row, .signup.done .lbl, .signup.done .fine { display: none; }

.done-box { display: flex; gap: 14px; align-items: flex-start; max-width: 540px; padding: 18px 20px; border-radius: 14px; background: rgba(95, 207, 147, 0.14); border: 1px solid rgba(95, 207, 147, 0.4); }
.done-box[hidden] { display: none; }
.done-box svg { flex: 0 0 auto; animation: pop 450ms var(--ease) both; }
.done-box svg path { stroke-dasharray: 30; animation: draw 400ms var(--ease) 250ms both; }
.done-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--mist); }
.done-text strong { color: var(--paper); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(244, 246, 249, 0.35); background: rgba(244, 246, 249, 0.08); color: var(--paper); font: 600 15px var(--body); cursor: pointer; transition: transform 200ms var(--ease), background 200ms; }
.chip:hover { transform: translateY(-2px); background: rgba(244, 246, 249, 0.16); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share code { font: 500 14px var(--mono); color: var(--amber); overflow-wrap: anywhere; }
.share button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(244, 246, 249, 0.35); background: transparent; color: var(--paper); font: 600 14px var(--body); cursor: pointer; }

.quote { display: flex; gap: 12px; align-items: stretch; max-width: 540px; margin: 0; }
.quote::before { content: ""; flex: 0 0 4px; border-radius: 4px; background: rgba(244, 246, 249, 0.25); }
.quote blockquote { margin: 0; font-size: 16px; color: #DCE4F2; }
.quote cite { font: 500 13px var(--mono); color: var(--mist-2); font-style: normal; }

/* Phone demo */
.hero-demo { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.phone { position: relative; width: 318px; max-width: 100%; padding: 14px; border-radius: 50px; background: var(--night-2); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(244, 246, 249, 0.08); }
.screen { position: relative; overflow: hidden; border-radius: 38px; background: #F7F8FA; color: var(--ink); min-height: 590px; padding: 30px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.screen .eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.letter { position: absolute; left: 22px; right: 22px; top: 70px; height: 300px; border-radius: 8px; background: var(--white); border: 1px solid #C9D2DE; box-shadow: 0 14px 30px rgba(20, 33, 61, 0.16); opacity: 0; animation: letter 9s var(--ease) infinite; }
.letter .band { height: 18px; border-radius: 8px 8px 0 0; background: repeating-linear-gradient(135deg, #DCE3EC 0 6px, #FFFFFF 6px 12px); }
.letter .lines { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.letter .ln { height: 9px; border-radius: 4px; background: #E3E8EF; }
.letter .notice { align-self: flex-start; margin-top: 8px; font: 500 12px var(--mono); color: var(--rust); border: 2px solid var(--rust); border-radius: 4px; padding: 4px 8px; transform: rotate(-4deg); }
.scan { position: absolute; left: 16px; right: 16px; height: 3px; border-radius: 3px; background: var(--amber); box-shadow: 0 0 18px 4px rgba(242, 165, 65, 0.55); opacity: 0; animation: scan 9s var(--ease) infinite; }
.card { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08); }
.hero .card { animation: card 9s var(--ease) infinite; }
.hero .card .f1 { animation: f1 9s var(--ease) infinite; }
.hero .card .f2 { animation: f2 9s var(--ease) infinite; }
.hero .card .f3 { animation: f3 9s var(--ease) infinite; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field small, .box small { font-size: 12px; color: var(--muted); display: block; }
.field strong { font-size: 16px; line-height: 1.3; }
.field span { font-size: 14px; line-height: 1.45; }
.boxes { display: flex; gap: 10px; }
.box { flex: 1 1 0; min-width: 0; background: var(--tint); border-radius: 10px; padding: 10px; }
.box b { font: 600 22px var(--mono); font-variant-numeric: tabular-nums; }
.box.due { background: var(--due-bg); }
.box.due small, .box.due b { color: var(--due-ink); }
.remind { display: block; text-align: center; padding: 12px; border-radius: 12px; background: var(--amber); color: var(--night); font-weight: 700; font-size: 15px; animation: press 9s var(--ease) infinite; }
.stamp { position: absolute; left: 50%; top: 46%; font: 700 22px var(--mono); letter-spacing: 0.08em; color: #1E7A4A; border: 3px solid #1E7A4A; border-radius: 8px; padding: 6px 14px; background: rgba(255, 255, 255, 0.92); opacity: 0; animation: stamp 9s var(--ease) infinite; }
.widget { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--night); color: var(--paper); }
.widget b { font: 500 22px var(--mono); }
.widget span { font-size: 13px; line-height: 1.35; }
.widget em { color: var(--mist-2); font-style: normal; }

/* Sections */
section { padding-block: 64px; }
.cost { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-bottom: 32px; }
.cost-head { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cost-head .eyebrow { color: var(--rust); }
.cost-head h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.stats { flex: 1 1 380px; min-width: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.stat { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--ink); padding-top: 14px; }
.stat b { font: 700 46px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); }
.stat cite { font: 500 12px var(--mono); color: var(--muted); font-style: normal; }

.try { padding-top: 24px; }
.try-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 36px; align-items: center; box-shadow: 0 30px 60px rgba(20, 33, 61, 0.06); }
.try-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.try-copy .eyebrow { color: var(--blue); }
.picks { display: flex; flex-direction: column; gap: 12px; }
.pick { display: flex; gap: 14px; align-items: center; text-align: left; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; transition: transform 200ms var(--ease), box-shadow 200ms, border-color 200ms, background 200ms; }
.pick:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 12px 26px rgba(20, 33, 61, 0.14); }
.pick[aria-pressed="true"] { border-color: var(--blue); background: #EEF3FC; }
.pick strong { display: block; font-size: 16px; }
.pick small { font-size: 14px; color: var(--muted); }
.try-out { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.try-out .tray { width: 340px; max-width: 100%; border-radius: 24px; background: var(--tint); padding: 18px; }
.try-out .card { animation: rise 450ms var(--ease) both; }
.try-out .note { font-size: 13px; color: var(--blue); }

.steps-band { background: var(--white); border-block: 1px solid var(--line); }
.steps { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; }
.step { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step .eyebrow { color: var(--rust); font-size: 14px; letter-spacing: 0.02em; text-transform: none; }
.step strong { font-size: 20px; }
.step p { color: var(--ink-2); }

.trust { display: flex; flex-wrap: wrap; gap: 32px; }
.trust div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.trust strong { font-size: 19px; }
.trust p { color: var(--ink-2); }

.final { position: relative; overflow: hidden; background: var(--night); color: var(--paper); }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 20% 30%, rgba(35, 70, 160, 0.5), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-block: 24px; }
.final h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; max-width: 16em; }
.final p { color: var(--mist); font-size: 19px; }

footer { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--muted); padding-block: 22px 110px; }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: none; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 26, 48, 0.94); border-top: 1px solid rgba(244, 246, 249, 0.12); transform: translateY(110%); transition: transform 300ms var(--ease); }
.sticky.show { transform: none; }
.sticky a { display: block; width: 100%; max-width: 420px; text-align: center; padding: 15px; border-radius: 12px; background: var(--amber); color: var(--night); font-weight: 700; text-decoration: none; }
@media (max-width: 700px) {
  .sticky { display: flex; }
  .hero-grid { padding-bottom: 48px; }
  section { padding-block: 48px; }
}

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: 44px; }
.doc h2 { font-size: 24px; margin-top: 16px; }
.doc-top { background: var(--night); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(0.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); } 50% { transform: translate(10px, -14px) rotate(var(--r, 0deg)); } }
@keyframes glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.85; } }
@keyframes letter { 0% { opacity: 0; transform: translateY(40px) rotate(-6deg); } 8%, 20% { opacity: 1; transform: rotate(-3deg); } 26% { opacity: 0; transform: translateY(-10px) scale(0.96) rotate(-3deg); } 100% { opacity: 0; } }
@keyframes scan { 0%, 8% { opacity: 0; top: 6%; } 10% { opacity: 1; } 22% { opacity: 1; top: 88%; } 24%, 100% { opacity: 0; top: 88%; } }
@keyframes card { 0%, 22% { opacity: 0; transform: translateY(16px); } 30%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes f1 { 0%, 30% { opacity: 0; transform: translateY(8px); } 35%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes f2 { 0%, 34% { opacity: 0; transform: translateY(8px); } 39%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes f3 { 0%, 38% { opacity: 0; transform: translateY(8px); } 43%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes press { 0%, 52% { transform: none; box-shadow: none; } 55% { transform: scale(0.96); } 59% { transform: none; box-shadow: 0 0 0 8px rgba(242, 165, 65, 0.25); } 66%, 100% { box-shadow: 0 0 0 0 rgba(242, 165, 65, 0); } }
@keyframes stamp { 0%, 64% { opacity: 0; transform: translate(-50%, -50%) scale(1.6) rotate(-14deg); } 69% { opacity: 1; transform: translate(-50%, -50%) scale(0.96) rotate(-9deg); } 72%, 90% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg); } 97%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg); } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .letter, .scan, .stamp { display: none; }
}
