/* The home page. Its own file (not inline) so the edge compresses and caches it: the HTML itself is
   served no-transform (see _headers), which also stops compression. */

@font-face { font-family: 'Sans'; font-weight: 400; src: url('/fonts/GoogleSansFlex_400Regular.ed66f316b0.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 500; src: url('/fonts/GoogleSansFlex_500Medium.5390d31139.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 700; src: url('/fonts/GoogleSansFlex_700Bold.cdf0bfd1d1.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 800; src: url('/fonts/GoogleSansFlex_800ExtraBold.04a3f7d526.woff2') format('woff2'); font-display: swap; }

:root {
  interpolate-size: allow-keywords;
  --bg: #ffffff;
  --tint-blue: #eef3fc;
  --tint-blush: #fff1ee;
  --ink: #1c2433;
  --muted: #444d5b;
  --line: #e7e1da;
  --blue: #345da9;
  --blue-deep: #1f4e9c;
  --blue-night: #163a78;
  --blue-soft: #dbe5fb;
  --blue-mark: #84aafc;
  --blush: #ffe0d8;
  --blush-ink: #7a3b2e;
  --paper: #fdfaf3;
  --paper-edge: #d9cbb0;
  --red: #c62f2b;
  --red-bg: #fde4e1;
  --amber: #94600f;
  --amber-bg: #fcf0cc;
  --green: #25753a;
  --green-bg: #ddf2e1;
  --radius: 28px;
  /* Phones: the full width less 20px a side. Wider: a column that eases from about 600px to 660px. */
  --col: min(100% - 40px, max(66vw, 600px), 660px);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 18px/1.55 'Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { width: var(--col); margin-inline: auto; position: relative; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Soft shapes drifting in the side margins, the app's own Material shapes in its two tints. Only on
   screens wide enough to keep them clear of the column; on a phone they would sit under the words. */
.blobs { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; display: none; }
.blob { position: absolute; width: var(--s); height: var(--s); fill: var(--c); opacity: 0.55; animation: drift 26s var(--ease) infinite alternate; }
@media (min-width: 1200px) { .blobs { display: block; } }
@keyframes drift { to { transform: translate(var(--dx, 30px), var(--dy, -40px)) rotate(var(--r, 40deg)); } }

/* Top bar: the mark, and a small button once the hero's own button has scrolled away. */
.bar { position: sticky; top: 0; z-index: 10; transition: transform 0.35s var(--ease); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.bar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.home { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; color: #002a63; }
.mark svg.s { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue-mark); }
.mark svg.i { position: relative; width: 21px; height: 21px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.bar .bar-link { font-weight: 600; font-size: 16px; color: var(--blue-night); text-decoration: underline; text-underline-offset: 3px; padding: 10px 8px; }
.bar .bar-link.push { margin-inline-start: auto; }
.bar .bar-link:hover { color: var(--ink); }
/* Hidden, the button takes no room, so the links sit at the bar's right edge instead of floating mid-bar where it
   will appear (the design critic, 2026-09-29); it opens to its width when the hero's own button scrolls away. */
.bar .cta-sm { opacity: 0; transform: scale(0.9); visibility: hidden; max-width: 0; padding-inline: 0; overflow: hidden; white-space: nowrap; transition: opacity 0.25s var(--ease), transform 0.35s var(--spring), max-width 0.35s var(--ease), padding 0.35s var(--ease), visibility 0s linear 0.25s; }
.bar.cta .cta-sm { opacity: 1; transform: none; visibility: visible; max-width: 260px; padding-inline: 18px; transition-delay: 0s; }
.bar.away { transform: translateY(-100%); }
@media (max-width: 520px) { .bar .bar-link { display: none; } .bar .cta-sm { margin-inline-start: auto; } }

/* Buttons stay pills in every state; hover lifts, press sinks. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--blue-deep); color: #fff; font: 700 18px/1 'Sans', sans-serif; padding: 19px 28px; min-height: 56px; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -12px rgb(31 78 156 / 0.75); transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.2s; }
.btn:hover { transform: translateY(-2px) scale(1.03); background: var(--blue-night); box-shadow: 0 14px 26px -12px rgb(31 78 156 / 0.8); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible, .link-btn:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn svg.i { width: 22px; height: 22px; transition: transform 0.3s var(--spring); }
.btn:hover svg.i { transform: translateX(4px); }
.btn.secondary { background: var(--blue-soft); color: var(--blue-night); box-shadow: none; text-decoration: none; }
.btn.secondary:hover { background: #c8d7f8; box-shadow: none; }
.cta-sm { padding: 11px 18px; min-height: 44px; font-size: 15px; box-shadow: none; background: var(--blue-soft); color: var(--blue-night); }
.cta-sm:hover { background: #c8d7f8; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue-deep); text-decoration: none; border-radius: 8px; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg.i { width: 20px; height: 20px; transition: transform 0.3s var(--spring); }
.link-btn:hover svg.i { transform: translateX(3px); }

/* Hero */
/* Sideways clip: the shape spinning behind the phone reaches past a phone's edge at 45 degrees. */
.hero { padding-block: 34px 10px; text-align: center; overflow-x: clip; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--blush); color: var(--blush-ink); border-radius: 999px; padding: 7px 15px; font-weight: 500; font-size: 15px; }
.eyebrow svg.i { width: 17px; height: 17px; }
.hero h1 { font-weight: 800; font-size: clamp(46px, 9.4vw, 80px); margin-block: 18px 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: clamp(19px, 2.4vw, 21px); color: var(--muted); max-width: 31ch; margin-inline: auto; }
.hero .actions { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.small { font-size: 16px; color: var(--muted); }

.stage { position: relative; height: 470px; margin-top: 30px; }
.stage .back { position: absolute; width: 310px; height: 310px; left: 50%; top: 20px; translate: -50% calc(var(--sy, 0) * 0.16px); fill: var(--tint-blue); animation: spin 70s linear infinite; }
.stage .back2 { width: 150px; height: 150px; left: 12%; top: 190px; fill: var(--blush); animation-duration: 50s; animation-direction: reverse; }
@keyframes spin { to { rotate: 1turn; } }
.stage .phone { position: absolute; left: 50%; top: 0; translate: -34% calc(var(--sy, 0) * 0.06px); width: 204px; rotate: 4deg; }
.envelope { position: absolute; z-index: 1; left: 50%; bottom: 8px; width: 236px; translate: -92% calc(var(--sy, 0) * -0.28px); rotate: calc(-6deg + var(--sy, 0) * -0.02deg); filter: drop-shadow(0 18px 18px rgb(60 45 20 / 0.22)); animation: bobenv 3.8s var(--ease) infinite alternate; }
@keyframes bobenv { to { transform: translateY(-7px) rotate(1.5deg); } }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 10px; font-weight: 500; font-size: 15px; box-shadow: 0 8px 20px -10px rgb(30 40 60 / 0.35); white-space: nowrap; translate: 0 calc(var(--sy, 0) * var(--k, 0) * 1px); animation: bob 3.4s var(--ease) infinite alternate; animation-delay: var(--d, 0s); }
.chip svg.i { width: 20px; height: 20px; }
.chip.green svg.i { color: var(--green); }
.chip.amber svg.i { color: var(--amber); }
.chip.red { background: var(--red-bg); color: #7d1b18; font-weight: 700; }
.chip.red svg.i { color: var(--red); }
.chip.blue { background: var(--blue-soft); color: var(--blue-night); font-weight: 700; }
@keyframes bob { to { transform: translateY(-9px) rotate(var(--tilt, 2deg)); } }

/* A phone showing a real screen of the app, below a status bar (time, camera island, signal) that keeps
   the screen's first row clear of the rounded corners. The margin is the app's own background. */
.phone { position: relative; container-type: inline-size; aspect-ratio: 600 / 1360; background: #1c2433; border-radius: 36px; padding: 8px; box-shadow: 0 30px 50px -28px rgb(20 30 60 / 0.55); }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; padding: 12cqw 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 12' fill='%231c2433'%3E%3Crect x='0' y='8' width='3' height='4' rx='1'/%3E%3Crect x='5' y='5.5' width='3' height='6.5' rx='1'/%3E%3Crect x='10' y='3' width='3' height='9' rx='1'/%3E%3Crect x='15' y='0.5' width='3' height='11.5' rx='1'/%3E%3Cpath d='M31 2.2a11 11 0 0 1 7.8 3.2l-1.6 1.6a8.7 8.7 0 0 0-12.4 0l-1.6-1.6A11 11 0 0 1 31 2.2zm0 4.4a6.6 6.6 0 0 1 4.7 1.9L31 12l-4.7-3.5A6.6 6.6 0 0 1 31 6.6z'/%3E%3Crect x='42' y='1' width='19' height='10' rx='3' fill='none' stroke='%231c2433' stroke-width='1.3'/%3E%3Crect x='44' y='3' width='13' height='6' rx='1.5'/%3E%3Crect x='62' y='4' width='1.6' height='4' rx='0.8'/%3E%3C/svg%3E") no-repeat right 7cqw top 5cqw / 17cqw auto, #faf9fe; }
.phone::before { content: ''; position: absolute; z-index: 2; top: calc(8px + 3cqw); left: 50%; translate: -50% 0; width: 29cqw; height: 7.4cqw; border-radius: 999px; background: #1c2433; }
.phone::after { content: '9:41'; position: absolute; z-index: 2; top: calc(8px + 4.2cqw); left: calc(8px + 9cqw); font: 700 5.4cqw/1 'Sans', sans-serif; color: #1c2433; }

/* Sections */
section { padding-block: 60px; }
.card { background: var(--tint, #fff); border-radius: var(--radius); padding: 30px 26px; }
h2 { font-weight: 800; font-size: clamp(34px, 5.6vw, 50px); }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 40ch; }
.punch { margin-top: 22px; font-size: 19px; font-weight: 500; }
.punch b { color: var(--red); }
.hint { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* The kitchen table: 24 envelopes, one of them a fake court fine. They wait faintly until the grid is
   on screen, then land one by one; the fake turns red and lifts out. */
.pile { container-type: inline-size; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; margin-top: 26px; position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.env { aspect-ratio: 1.45; border-radius: 6px; background: var(--paper); border: 1px solid var(--paper-edge); position: relative; overflow: hidden; cursor: pointer; opacity: 0.2; padding: 0; font: inherit; }
.env::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom right, transparent 49.2%, var(--paper-edge) 50%, transparent 51%) left / 50% 60% no-repeat, linear-gradient(to bottom left, transparent 49.2%, var(--paper-edge) 50%, transparent 51%) right / 50% 60% no-repeat; }
.env::after { content: ''; position: absolute; top: 12%; right: 8%; width: 14%; aspect-ratio: 0.85; border-radius: 2px; background: var(--stamp, var(--blue-mark)); }
.env:nth-child(3n) { --stamp: #f2b8a6; }
.env:nth-child(4n+1) { --stamp: #a9d8b4; }
.env.found { z-index: 1; }
.env.found .bang { position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 min(18px, 4.5cqw)/1 'Sans', sans-serif; opacity: 0; z-index: 1; }
.is-in .env { animation: land 0.55s var(--spring) calc(var(--n) * 30ms) both, dim 0.6s var(--ease) 1.9s forwards; }
.is-in .env.found { animation: land 0.55s var(--spring) calc(var(--n) * 30ms) both, caught 0.9s var(--spring) 1.8s both; }
.is-in .env.found .bang { animation: pop 0.5s var(--spring) 2.1s both; }
@keyframes land { from { transform: translateY(-30px) rotate(-8deg) scale(0.9); opacity: 0.2; } to { opacity: 1; } }
@keyframes dim { to { opacity: 0.8; filter: saturate(0.7); } }
@keyframes caught {
  from, 20% { background: var(--paper); border-color: var(--paper-edge); }
  30% { background: var(--red-bg); border-color: var(--red); }
  60% { transform: scale(1.4) translateY(-5px) rotate(-4deg); }
  to { transform: scale(1.22) rotate(-3deg); background: var(--red-bg); border-color: var(--red); opacity: 1; box-shadow: 0 10px 20px -10px rgb(198 47 43 / 0.6); }
}
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { opacity: 1; } }
/* After the show, the envelopes keep their end look as plain styles, and a pointer lights up one. */
.pile.done .env { animation: none; opacity: 0.8; filter: saturate(0.7); transition: opacity 0.2s var(--ease), filter 0.2s, transform 0.3s var(--spring); }
.pile.done .env.found { opacity: 1; filter: none; transform: scale(1.22) rotate(-3deg); background: var(--red-bg); border-color: var(--red); box-shadow: 0 10px 20px -10px rgb(198 47 43 / 0.6); }
.pile.done .env.found .bang { animation: none; opacity: 1; }
@media (hover: hover) {
  .pile.done .env:hover { opacity: 1; filter: none; transform: translateY(-3px) scale(1.08); }
  .pile.done .env.found:hover { transform: scale(1.3) rotate(-3deg); }
}
.pile.done .env:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; opacity: 1; filter: none; }
.says { position: absolute; z-index: 3; transform: translate(-50%, 0); background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font: 500 17px/1.4 'Sans', sans-serif; width: max-content; max-width: min(290px, 92%); text-align: center; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.35); pointer-events: none; animation: pop 0.45s var(--spring) both; }
.says b { display: block; font-weight: 700; }
.says.red b { color: var(--red); }
.says.green b { color: var(--green); }
.says.amber b { color: var(--amber); }

/* Three steps, each with its own little show that plays when it comes on screen. */
.steps { display: grid; gap: 26px; margin-top: 30px; }
.step { display: grid; gap: 16px; }
.step .head { display: flex; gap: 14px; align-items: flex-start; }
.step .num { width: 46px; height: 46px; position: relative; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #002a63; flex: none; }
.step .num svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue-mark); }
.step .num span { position: relative; }
.step h3 { font-size: 26px; font-weight: 800; }
.step p { color: var(--muted); margin-top: 6px; }
.demo { background: var(--tint, var(--tint-blue)); border-radius: 24px; min-height: 170px; padding: 22px; position: relative; overflow: hidden; display: grid; place-items: center; }
@media (min-width: 700px) {
  .step { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 26px; }
}

/* Step 1: a letter in the camera's corners; the shutter flashes and the button presses. */
.viewfinder { position: relative; width: 150px; aspect-ratio: 0.78; }
.viewfinder .letter { position: absolute; inset: 10px; background: #fff; border-radius: 4px; box-shadow: 0 8px 18px -10px rgb(40 30 10 / 0.45); padding: 14px 12px; display: grid; align-content: start; gap: 7px; rotate: -3deg; }
.letter i { display: block; height: 6px; border-radius: 3px; background: #dcd6cc; }
.letter i.head { width: 55%; height: 9px; background: var(--blue-mark); margin-bottom: 4px; }
.letter i.short { width: 70%; }
.letter i.amt { width: 40%; background: #f1c9a0; margin-top: 4px; }
.corner { position: absolute; width: 22px; height: 22px; border: 4px solid var(--blue-deep); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.shutter { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.snap { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--blue-deep); color: #fff; display: grid; place-items: center; z-index: 1; }
.snap svg.i { width: 24px; height: 24px; }
.is-in .shutter { animation: flash 4s ease-out 0.4s infinite; }
.is-in .snap { animation: press 4s var(--ease) 0.4s infinite; }
.is-in .corner { animation: lock 4s var(--ease) 0.4s infinite; }
@keyframes flash { 0%, 14%, 100% { opacity: 0; } 5% { opacity: 0.9; } }
@keyframes press { 0%, 12%, 100% { transform: scale(1); } 4% { transform: scale(0.8); } }
@keyframes lock { 0%, 100% { transform: scale(1.12); } 3%, 60% { transform: scale(1); } }

/* Step 2: the yellow card, with its words coming out loud. */
.mini-card { width: min(270px, 100%); background: var(--amber-bg); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 24px -16px rgb(80 60 10 / 0.6); text-align: left; }
.mini-card .band { background: var(--amber); color: #fff; font-weight: 700; font-size: 15px; padding: 8px 14px; display: flex; align-items: center; gap: 8px; }
.mini-card .band svg.i { width: 18px; height: 18px; }
.mini-card .body { padding: 12px 14px 14px; }
.mini-card b { display: block; font-size: 18px; line-height: 1.25; }
.mini-card .say { margin-top: 10px; display: flex; align-items: center; gap: 10px; color: var(--blue-night); font-weight: 700; font-size: 15px; }
.waves { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.waves i { width: 4px; height: 30%; border-radius: 2px; background: var(--blue); }
.is-in .waves i { animation: talk 0.9s var(--ease) infinite alternate; animation-delay: calc(var(--w) * -0.23s); }
@keyframes talk { to { height: 100%; } }
.is-in .mini-card { animation: pop 0.6s var(--spring) 0.2s both; }

/* Step 3: Monday's email lands in the inbox, and an alert rings once. */
.inbox { width: min(290px, 100%); display: grid; gap: 8px; }
.mail { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 6px 16px -12px rgb(20 30 60 / 0.5); font-size: 14px; line-height: 1.3; text-align: left; }
.mail .who { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e9e6e1; color: var(--muted); font-weight: 700; font-size: 14px; }
.mail.mb .who { background: var(--blue-mark); color: #002a63; }
.mail.mb .who svg.i { width: 19px; height: 19px; }
.mail b { display: block; font-size: 14px; }
.mail span { color: var(--muted); }
.mail.faint { opacity: 0.55; }
.is-in .mail.mb { animation: drop 0.8s var(--spring) 0.5s both; }
@keyframes drop { from { transform: translateY(-36px) scale(0.9); opacity: 0; } }
.bell { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.bell svg.i { width: 22px; height: 22px; }
.is-in .bell { animation: pop 0.5s var(--spring) 1.3s both, ring 1.2s var(--ease) 1.8s 2; }
@keyframes ring { 10%, 30% { rotate: 14deg; } 20%, 40% { rotate: -14deg; } 50% { rotate: 0deg; } }

/* One card per letter: the phone fades between the real green, yellow and red screens. */
.deck { display: grid; justify-items: center; gap: 22px; margin-top: 30px; }
.deck .phone { width: min(280px, 74%); }
.deck .phone img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); opacity: 0; transition: opacity 0.45s var(--ease); }
.deck .phone img.on { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.legend button { display: inline-flex; align-items: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 10px 16px; min-height: 48px; font: 700 16px/1 'Sans', sans-serif; cursor: pointer; background: var(--tint); color: var(--ink2); transition: transform 0.3s var(--spring), border-color 0.2s; }
.legend button svg.i { width: 20px; height: 20px; }
.legend button[aria-pressed="true"] { border-color: var(--ink2); transform: scale(1.06); }
.legend .g { --tint: var(--green-bg); --ink2: #185027; }
.legend .y { --tint: var(--amber-bg); --ink2: #5e3d08; }
.legend .r { --tint: var(--red-bg); --ink2: #7d1b18; }

/* For you: the real Monday email in a mail window, and an alert that slides in over it. */
.mailwin { position: relative; margin-top: 30px; border-radius: 22px; background: #fff; box-shadow: 0 30px 50px -30px rgb(20 30 60 / 0.5), 0 0 0 1px var(--line); overflow: hidden; }
.mailwin .top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mailwin .top b { font-size: 16px; }
.mailwin .top .when { color: var(--muted); margin-inline-start: auto; white-space: nowrap; }
.mailwin .subject { padding: 16px 18px 0; font-weight: 700; font-size: 19px; line-height: 1.3; }
.mailwin .shot { height: 470px; overflow: hidden; position: relative; background: #f4f1ec; margin-top: 14px; }
.mailwin .shot img { display: block; width: 100%; height: auto; max-width: 440px; margin: 0 auto; }
.mailwin .shot::after { content: ''; position: absolute; inset: auto 0 0; height: 110px; background: linear-gradient(transparent, #fff); }
.toast { position: absolute; z-index: 2; left: 50%; bottom: 22px; width: min(92%, 380px); translate: -50% 0; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; background: rgb(28 36 51 / 0.94); color: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.5); font-size: 15px; line-height: 1.35; }
.toast .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--red); display: grid; place-items: center; }
.toast .ic svg.i { width: 22px; height: 22px; }
.toast b { display: block; }
.toast span { opacity: 0.85; }
.toast { opacity: 0; transform: translateY(30px); }
.is-in .toast { animation: slidein 0.7s var(--spring) 1.2s both; }
@keyframes slidein { to { opacity: 1; transform: none; } }
.alerts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.alerts .pill { display: inline-flex; align-items: center; gap: 8px; background: var(--tint-blush); color: var(--blush-ink); border-radius: 999px; padding: 9px 15px; font-weight: 500; font-size: 15px; }
.alerts .pill svg.i { width: 18px; height: 18px; }
.is-in .alerts .pill { animation: pop 0.55s var(--spring) both; animation-delay: calc(var(--i) * 0.15s + 0.3s); }
.fine { margin-top: 16px; font-size: 16px; color: var(--muted); }

/* Mom decides: her real "yes" card, and the promises beside it as a plain list. */
.decide { display: grid; gap: 30px; margin-top: 30px; align-items: center; }
.decide .phone { width: min(260px, 70%); justify-self: center; rotate: -3deg; }
@media (min-width: 700px) { .decide { grid-template-columns: 0.85fr 1fr; } .decide .phone { width: 100%; } }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding-block: 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.well { width: 48px; height: 48px; border-radius: 50%; background: var(--tint-blue); color: var(--blue-deep); display: grid; place-items: center; }
.well svg.i { width: 24px; height: 24px; }
.row b { display: block; font-size: 19px; line-height: 1.3; }
.row div > span { display: block; color: var(--muted); font-size: 17px; margin-top: 2px; }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 30px; }
.plan { position: relative; border-radius: var(--radius); padding: 28px 26px; overflow: hidden; }
.plan h3 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.plan .price { font-weight: 800; font-size: 54px; letter-spacing: -0.03em; margin-top: 12px; line-height: 1; }
.plan .price small { font-size: 18px; font-weight: 500; letter-spacing: 0; margin-inline-start: 6px; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 17px; line-height: 1.4; }
.plan li svg.i { width: 22px; height: 22px; margin-top: 1px; }
.plan.free { background: linear-gradient(135deg, var(--tint-blush), #fff 55%, var(--tint-blue)); box-shadow: inset 0 0 0 1px var(--line); }
.plan.free li svg.i { color: var(--green); }
.plan.free .shape { position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; fill: var(--blush); opacity: 0.8; }
.plan.plus { background: linear-gradient(160deg, #2d5bb0, var(--blue-night) 80%); color: #fff; box-shadow: 0 30px 50px -30px rgb(22 58 120 / 0.9); }
.plan.plus li svg.i { color: #9ec0ff; }
.plan.plus .shape { position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; fill: #fff; opacity: 0.07; animation: spin 60s linear infinite; }
.badge { font-size: 13px; font-weight: 700; letter-spacing: 0; background: var(--blush); color: var(--blush-ink); border-radius: 999px; padding: 5px 11px; }
.hold { margin-top: 22px; font-size: 16px; opacity: 0.9; }
.price-buttons { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 480px) { .price-buttons { grid-template-columns: 1fr 1fr; } }
.price-btn { flex-direction: column; gap: 5px; padding: 14px 16px; background: #fff; color: var(--blue-night); box-shadow: none; }
.price-btn:hover { background: var(--blue-soft); }
.price-btn .top { font-size: 14px; font-weight: 500; }
.price-btn .amt { font-size: 22px; font-weight: 800; white-space: nowrap; }
.price-btn .amt small { font-size: 15px; font-weight: 500; }
.promises { display: grid; gap: 8px; margin-top: 18px; font-size: 16px; color: var(--muted); text-align: center; }

/* Good to know: one container, answers that slide open and shut. */
.faq { margin-top: 26px; border: 1px solid var(--line); border-radius: 24px; padding: 4px 22px; }
details + details { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 700; font-size: 18px; border-radius: 8px; }
summary::-webkit-details-marker { display: none; }
summary svg.i { width: 24px; height: 24px; color: var(--blue); transition: rotate 0.35s var(--spring); }
details[open] summary svg.i { rotate: 180deg; }
details::details-content { height: 0; overflow: clip; opacity: 0; transition: height 0.35s var(--ease), opacity 0.3s var(--ease), content-visibility 0.35s allow-discrete; }
details[open]::details-content { height: auto; opacity: 1; }
details p { color: var(--muted); padding-bottom: 20px; font-size: 17px; }

/* The close: a letter to the family, and the waitlist. A tap on the envelope opens it. */
.close { text-align: center; padding-block: 50px 70px; }
.letterbox { width: 240px; margin: 0 auto 26px; display: block; background: none; border: 0; padding: 0; cursor: pointer; position: relative; animation: bobenv 3.4s var(--ease) infinite alternate; -webkit-tap-highlight-color: transparent; }
.letterbox svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 16px rgb(60 45 20 / 0.2)); overflow: visible; }
/* Two flaps: the closed one on top of the note, the open one behind it; opening folds one away and
   unfolds the other, then the note rises out of the pocket. */
.letterbox .flap-shut, .letterbox .flap-open { transform-origin: 50% 28.75%; transition: transform 0.25s var(--ease); }
.letterbox .flap-open { transform: scaleY(0); }
.letterbox .note { transition: transform 0.7s var(--spring); }
.letterbox.open .flap-shut { transform: scaleY(0); }
.letterbox.open .flap-open { transform: none; transition-delay: 0.2s; }
.letterbox.open .note { transform: translateY(-58px); transition-delay: 0.35s; }
.letterbox:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 12px; }
.close h2 { max-width: 14ch; margin-inline: auto; }
.waitlist { margin: 26px auto 0; max-width: 460px; text-align: left; }
.box-price { color: var(--muted); font-size: 17px; text-align: center; }
.waitlist-notice { margin-top: 10px; background: var(--tint-blue); color: var(--blue-night); border-radius: 14px; padding: 12px 14px; font-size: 16px; }
.waitlist-form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.field input, .field select { font: 400 18px/1.3 'Sans', sans-serif; color: var(--ink); background: #fff; border: 1.5px solid #cdc6bd; border-radius: 14px; padding: 14px 16px; min-height: 54px; width: 100%; }
.field input:focus, .field select:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.waitlist-form .btn { width: 100%; }
.form-promise { font-size: 16px; color: var(--muted); text-align: center; }
.form-msg { font-weight: 700; text-align: center; min-height: 1.4em; }
.form-msg.is-ok { color: var(--green); }
.form-done { margin-top: 20px; padding: 20px 22px; border-radius: 20px; background: var(--green-bg); border: 2px solid var(--green); display: grid; gap: 6px; text-align: left; }
.form-done p { margin: 0; font-size: 18px; line-height: 1.45; color: var(--ink); }
.form-done .form-done-title { font-size: 24px; font-weight: 800; color: var(--green); }
.form-done:focus { outline: none; }
.form-msg.is-err { color: var(--red); }

.confetti { position: fixed; z-index: 30; top: 0; left: 0; width: 10px; height: 14px; border-radius: 3px; pointer-events: none; animation: fall var(--t, 1.6s) cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Waitlist dialog */
dialog { border: 0; border-radius: 28px; padding: 30px 26px 22px; width: min(480px, calc(100% - 28px)); color: var(--ink); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.4); }
dialog::backdrop { background: rgb(28 36 51 / 0.45); backdrop-filter: blur(3px); }
dialog h2 { font-size: 32px; padding-right: 48px; }
dialog .box-price { text-align: left; margin-top: 10px; }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--tint-blue); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dialog-close svg.i { width: 24px; height: 24px; }
.btn-text { display: block; margin: 8px auto 0; background: none; border: 0; font: 700 16px/1 'Sans', sans-serif; color: var(--blue-deep); padding: 14px; min-height: 48px; cursor: pointer; border-radius: 999px; }
.btn-text:hover { background: var(--tint-blue); }

footer { padding-block: 30px 40px; text-align: center; font-size: 17px; color: var(--ink); display: grid; gap: 8px; }
footer a { color: var(--ink); font-weight: 700; }

@media (max-width: 520px) {
  .stage { height: 420px; }
  .stage .phone { width: 180px; }
  .envelope { width: 200px; }
  .chip { font-size: 14px; }
  .chip.wide-only { display: none; }
  section { padding-block: 46px; }
  .card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .stage *, .toast { translate: none !important; }
}
