/* Dimpy v6: v5's calm format with one signature idea, the mark is alive (its pupil follows you). Paper, ink,
   tomato with confidence; Fraunces for headlines, Instrument Sans for the rest; phones drawn like real phones.
   See DESIGN.md. */
@font-face { font-family: Fraunces; src: url(fonts/Fraunces.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: Fraunces; font-style: italic; src: url(fonts/Fraunces-Italic.woff2) format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/InstrumentSans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: italic; src: url(fonts/InstrumentSans-Italic.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #faf8f3;
  --ink: #161616;
  --night: #121316;
  --muted: #6b675f;
  --card: #ffffff;
  --tomato: #ff5a36;
  --tint: color-mix(in srgb, var(--tomato) 16%, var(--paper));
  --line: rgba(22, 22, 22, 0.1);
  --alert: #b8321a;
  --shadow: 0 40px 70px -30px rgba(22, 22, 22, 0.45), 0 2px 6px rgba(22, 22, 22, 0.08);
  --glass: rgba(255, 255, 255, 0.72);
  --display: Fraunces, Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --phone: -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --blue: #1a8cff;
  --grey: #e9e9eb;
  --r: 14px;
  --snap: cubic-bezier(0.3, 1.4, 0.6, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151514; --ink: #f1efe9; --muted: #a39f97; --card: #1f1f1d; --tomato: #ff5a36;
    --tint: color-mix(in srgb, var(--tomato) 22%, var(--paper));
    --line: rgba(241, 239, 233, 0.12); --alert: #ff8a70;
    --shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.3);
    --glass: rgba(31, 31, 29, 0.78);
  }
}

* { box-sizing: border-box; }
/* Nothing may widen the page past the screen (phones would let you zoom out and drag sideways). */
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.55 var(--sans);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; font-optical-sizing: auto; }
/* Fraunces fuses "fi" and "fl" into ligatures that swallow the i's dot at tight tracking: spell them out. */
h1, h2, h3, .trust p, .sleep p, .steps h3, .pair figcaption, .amount { font-variant-ligatures: no-common-ligatures no-discretionary-ligatures; }
/* At large optical sizes Fraunces sets the f's hook on top of the i's dot. */
.kf { font-variation-settings: "opsz" 36; }
h1 { font-size: clamp(3.1rem, 12.5vw, 7.25rem); line-height: 1; }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.05; }
h3 { font-size: 1.5rem; line-height: 1.2; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
mark { background: color-mix(in srgb, var(--tomato) 32%, transparent); color: inherit; border-radius: 3px; padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* The mark is Peek (brand/): a tomato head peeking over an ink edge. One symbol per page; every live instance is
   <svg class="mark"><use href="#mark"/></svg>. The head is clipped at the edge and moves behind it. State classes
   on the host: .idle (round eyes that follow the cursor through --px/--py, set by v6.js), .thinking (tilted),
   .asleep (lids, head lower), .hiding (head below the edge), none (happy, the logo itself). .hop makes it jump.
   --dome and --edge recolor it for tomato and night surfaces. Everything inside reads inherited properties. ---- */
@property --hide { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --tilt { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --happy { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --asleep { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --px { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --py { syntax: "<length>"; inherits: true; initial-value: 0px; }
.mark {
  --hide: 0px; --tilt: 0deg; --happy: 1; --asleep: 0; --px: 0px; --py: 0px;
  width: 1.5rem; height: 1.5rem; flex: none; overflow: visible; display: inline-block; vertical-align: middle;
  transition: --hide 0.55s var(--snap), --tilt 0.4s var(--snap), --happy 0.25s, --asleep 0.35s, --px 0.12s ease-out, --py 0.12s ease-out;
}
#mark .dome { fill: var(--dome, var(--tomato)); }
#mark .head { transform: translateY(var(--hide)) rotate(var(--tilt)); transform-origin: 24px 32px; }
#mark .happy, #mark .idle, #mark .lids { fill: var(--eye, #161616); }
#mark .happy { opacity: var(--happy); }
#mark .idle { opacity: calc(1 - var(--happy) - var(--asleep)); transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
#mark .idle circle { transform: translate(var(--px), var(--py)); }
#mark .lids { opacity: var(--asleep); }
#mark .edge { stroke: var(--edge, var(--ink)); }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.mark.idle { --happy: 0; }
.mark.thinking { --happy: 0; --tilt: -7deg; --hide: -1px; }
.mark.asleep { --happy: 0; --asleep: 1; --hide: 3px; }
.mark.hiding { --hide: 18px; }
.mark.hop { animation: hop 0.6s var(--snap); }
@keyframes hop { 0% { --hide: 0px; } 40% { --hide: -5px; } 100% { --hide: 0px; } }
.on-tomato .mark, .mark.on-tomato { --dome: #fbf9f4; --edge: #161616; }
.on-night .mark, .mark.on-night { --edge: #fbf9f4; --dome: #ff6a4a; --eye: #121316; }

/* Header ------------------------------------------------------------------------------------------------------- */
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
/* The lockup (brand/logo-lockup.svg, the name as outlined paths) is an image, so a new name is a new file. */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; width: auto; height: 1.75rem; }
.top nav { display: flex; gap: 1.25rem; }
.top nav a { font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }

/* Buttons and chips ----------------------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0.85rem 1.7rem;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: var(--r);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.15s var(--snap), opacity 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:disabled { opacity: 0.6; transform: none; cursor: default; }
.btn.small { min-height: 2.2rem; padding: 0.3rem 0.85rem; font-size: 0.88rem; border-radius: 999px; }
.btn.quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.chip {
  min-height: 2.5rem; padding: 0.4rem 0.95rem;
  background: var(--card); color: var(--ink);
  border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; text-align: left;
  transition: transform 0.15s var(--snap);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

/* Hero: the whole first screen. "Meet [mark] Dimpy." types in. ------------------------------------------------- */
.hero { min-height: 100svh; padding: 0; display: grid; grid-template-rows: auto 1fr auto; }
.hero-body { display: grid; justify-items: center; align-content: center; text-align: center; gap: 1.6rem; padding: 1rem 1.25rem 3rem; }
.hero h1 { max-width: 11ch; }
.hero .sub { max-width: 25rem; font-size: 1.25rem; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.hero .cta { margin-top: 0.4rem; font-size: 1.1rem; padding: 0.95rem 2rem; }
.peek { justify-self: center; padding: 1.25rem; font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.peek:hover { color: var(--ink); text-decoration: underline; }

/* The head peeks over the baseline between the words, the way it peeks over the name in the lockup. */
.hero-mark { width: 1.3em; height: 1.3em; vertical-align: -0.44em; margin: 0 -0.12em; }
.hero h1:hover .hero-mark { --tilt: -7deg; --hide: -1px; }
.caret { display: none; width: 0.07em; height: 0.82em; margin-left: 0.08em; vertical-align: -0.05em; background: var(--tomato); border-radius: 2px; }
.js .caret { display: inline-block; animation: caret 0.8s steps(2, start) infinite; }
.js .hero:not(.done) .ch:not(.on):not(.hero-mark) { display: none; }
.js .hero:not(.done) .hero-mark:not(.on) { --hide: 18px; }
.js .hero:not(.done) :is(.sub, .cta, .peek) { opacity: 0; transform: translateY(12px); }
.js .hero.done :is(.sub, .cta, .peek) { transition: opacity 0.5s ease-out, transform 0.5s var(--snap); }
.js .hero.done .cta { transition-delay: 0.1s; }
.js .hero.done .peek { transition-delay: 0.25s; }
.js .hero.done .caret { animation: caret-out 1.6s steps(2, start) forwards; }
@keyframes caret { to { visibility: hidden; } }
@keyframes caret-out { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* Sections -------------------------------------------------------------------------------------------------------- */
section { padding: 5rem 0; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }
.sec-h { text-align: center; }
.sec-h p { max-width: 30rem; margin: 0.9rem auto 0; color: var(--muted); font-size: 1.1rem; }

/* Phones: a near-black bezel around a screen. .pic holds a rendered conversation; the others are live. ------------ */
.phone { position: relative; width: 18rem; flex: none; padding: 0.55rem; background: #141414; border-radius: 3.1rem; box-shadow: inset 0 0 0 2px #2d2d2d, var(--shadow); }
.phone::before { content: ""; position: absolute; left: -2px; top: 7rem; width: 3px; height: 3.2rem; border-radius: 2px; background: #2d2d2d; }
.screen { position: relative; display: flex; flex-direction: column; height: 36rem; border-radius: 2.55rem; overflow: hidden; background: #fff; color: #000; font-family: var(--phone); -webkit-font-smoothing: antialiased; }
.pic .screen { height: auto; display: block; }
.pic img { display: block; width: 100%; height: auto; }
/* The status bar at real proportions: time centered in the left gap, the island 32% wide in the middle, the icons
   grouped and centered in the right gap. Same grid as the rendered conversations (shots/render.mjs). */
.status { flex: none; display: grid; grid-template-columns: 1fr 32% 1fr; align-items: center; height: 2.6rem; padding-top: 0.2rem; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.status .l { text-align: center; } .status .r { display: flex; justify-content: center; align-items: center; gap: 0.3rem; }
.wifi { display: block; width: 0.85rem; height: 0.62rem; }
.sig { display: flex; gap: 1.5px; align-items: flex-end; } .sig i { display: block; width: 2.5px; background: currentColor; border-radius: 1px; }
.bat { width: 1.3rem; height: 0.62rem; border: 1.5px solid currentColor; border-radius: 3px; position: relative; opacity: 0.9; } .bat::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1px; }
.island { grid-column: 2; align-self: start; margin-top: 0.35rem; height: 1.75rem; border-radius: 1rem; background: #000; }
.home { position: absolute; left: 50%; bottom: 0.4rem; width: 6.4rem; height: 4px; margin-left: -3.2rem; border-radius: 3px; background: #000; opacity: 0.9; }
/* The chat header floats over the thread, translucent and blurred, so messages scroll under it. */
.nav { position: absolute; left: 0; right: 0; top: 2.6rem; z-index: 2; height: 4.1rem; display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; align-items: start; padding: 0.1rem 0.4rem 0; background: rgba(247, 247, 247, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6); border-bottom: 0.5px solid #c8c8cc; }
.nav .back { width: 0.6rem; height: 0.6rem; margin: 0.95rem 0 0 0.8rem; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(45deg); }
.nav .id { display: grid; justify-items: center; gap: 0.1rem; font-size: 0.66rem; }
.nav .av { width: 2.4rem; height: 2.4rem; }
.av.d { position: relative; background: var(--tomato); overflow: hidden; } .av.d .mark { --dome: #fbf9f4; --edge: #161616; --eye: #161616; position: absolute; left: -4%; top: -1%; width: 108%; height: 108%; }
.nav .stack { display: flex; align-items: center; height: 2.4rem; } .nav .stack .av { width: 1.7rem; height: 1.7rem; font-size: 0.65rem; border: 2px solid #f7f7f7; margin-left: -0.5rem; } .nav .stack .av:first-child { margin-left: 0; }
/* The chevron hangs outside the name, so the name itself stays centered under the avatar. */
.nav .name { position: relative; display: inline-block; } .nav .name i { position: absolute; left: 100%; top: 50%; margin-left: 0.25rem; width: 0.3rem; height: 0.3rem; border-right: 1.5px solid #8e8e93; border-bottom: 1.5px solid #8e8e93; transform: translateY(-60%) rotate(-45deg); }
.av { display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: #fff; background: #a0a0a5; font-size: 0.6rem; }
.av .mark { width: 100%; height: 100%; }

/* A live thread. Messages are .m (.me for yours), bubbles .b, sender names .who, receipts .receipt. */
.thread { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 4.6rem 0.8rem 0.4rem; overflow: hidden; overscroll-behavior: contain; }
.thread.live { justify-content: flex-start; overflow-y: auto; scrollbar-width: none; }
.thread.live::-webkit-scrollbar { display: none; }
.when { align-self: center; font-size: 0.62rem; color: #8e8e93; margin: 0.4rem 0 0.3rem; } .when b { font-weight: 600; }
.m { display: flex; align-items: flex-end; gap: 0.3rem; max-width: 84%; margin-top: 1px; align-self: flex-start; }
.m.gap { margin-top: 0.5rem; }
.m.me { align-self: flex-end; flex-direction: row-reverse; }
.m .av { position: relative; z-index: 1; width: 1.5rem; height: 1.5rem; flex: none; visibility: hidden; } .m.last .av { visibility: visible; }
.who { font-size: 0.62rem; color: #8e8e93; margin: 0.35rem 0 0 2.1rem; }
.b { position: relative; padding: 0.4rem 0.7rem; border-radius: 1.1rem; background: var(--grey); color: #000; font-size: 0.88rem; line-height: 1.3; overflow-wrap: anywhere; }
.me .b { background: var(--blue); color: #fff; }
.last .b::before { content: ""; position: absolute; bottom: 0; width: 1.1rem; height: 1.1rem; border-bottom-right-radius: 0.85rem; background: var(--grey); left: -0.4rem; }
.last .b::after { content: ""; position: absolute; bottom: 0; width: 0.6rem; height: 1.1rem; border-bottom-right-radius: 0.6rem; background: #fff; left: -0.6rem; }
.me.last .b::before { left: auto; right: -0.4rem; border-bottom-right-radius: 0; border-bottom-left-radius: 0.85rem; background: var(--blue); }
.me.last .b::after { left: auto; right: -0.6rem; border-bottom-right-radius: 0; border-bottom-left-radius: 0.6rem; }
.receipt { align-self: flex-end; font-size: 0.62rem; font-weight: 500; color: #8e8e93; margin: 1px 0.25rem 0 0; }
.b p + p, .b p + ol, .b ol + p { margin-top: 0.35rem; }
.b ol { list-style-position: inside; padding: 0; display: grid; gap: 0.35rem; }
.b ol li + li { margin-top: 0; }
.b .row { display: flex; gap: 0.35rem; margin: 0.45rem 0 0.1rem; padding: 0; }
.b .done { display: block; font-weight: 600; margin-top: 0.3rem; }
.b .btn.small { flex: 1; min-height: 1.9rem; font-size: 0.8rem; padding: 0.2rem 0.6rem; }
.b .btn.quiet { color: #000; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.35); }
.b .row.voices { flex-wrap: wrap; } .b .row.voices .btn { flex: 1 1 auto; }
.lines { list-style: none; padding: 0; display: grid; gap: 0.3rem; }
.typing { font-size: 0.78rem; color: #8e8e93; font-style: italic; margin: 0.3rem 0 0 0.3rem; }
.composer { flex: none; display: flex; gap: 0.5rem; align-items: center; width: 100%; margin: 0; padding: 0.4rem 0.8rem 1.6rem; }
.composer .plus { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; background: var(--grey); position: relative; }
.composer .plus::before, .composer .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.8rem; height: 2px; background: #7c7c82; transform: translate(-50%, -50%); } .composer .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.composer .field { flex: 1; min-width: 0; display: flex; align-items: center; min-height: 2.1rem; padding: 0 0.2rem 0 0.8rem; border: 1px solid #c8c8cc; border-radius: 1.1rem; background: #fff; }
.composer .fake { color: #8e8e93; font-size: 0.9rem; }
.composer textarea { flex: 1; min-width: 0; padding: 0.3rem 0; resize: none; font: inherit; font-size: 0.9rem; color: #000; background: transparent; border: 0; }
.composer textarea:focus { outline: none; }
.composer textarea::placeholder { color: #8e8e93; }
.send { width: 1.6rem; height: 1.6rem; flex: none; border: 0; border-radius: 50%; background: var(--blue); position: relative; cursor: pointer; }
.send::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.45rem; height: 0.45rem; border-left: 2.5px solid #fff; border-top: 2.5px solid #fff; transform: translate(-50%, -25%) rotate(45deg); }
.send::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.5px; height: 0.75rem; background: #fff; transform: translate(-50%, -45%); }
.send:focus-visible { outline-color: var(--blue); }
.own-err { min-height: 1.1rem; margin-top: -1.2rem; padding: 0 1rem 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--alert); font-family: var(--sans); }

/* Messages arrive one after another by --i, the live reply at once. */
.thread > * { animation: arrive 0.35s var(--snap) both; animation-delay: calc(var(--i, 0) * 0.4s); }
@keyframes arrive { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

/* The chat moments: a swipe carousel. One phone centered and in focus, its neighbors dimmed and peeking. Swipe, scroll
   sideways, or use the arrows and pills under it. */
#row { display: flex; gap: 2rem; padding: 2rem calc(50% - 8rem) 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
#row::-webkit-scrollbar { display: none; }
.moment { position: relative; scroll-snap-align: center; flex: none; width: 16rem; margin: 0; }
.moment .phone { width: 16rem; transition: opacity 0.4s ease-out, transform 0.5s var(--snap); }
.moment:not(.on) .phone { opacity: 0.35; transform: scale(0.9); }
.moment figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; padding: 0.5rem 1.25rem 1.5rem; }
.pager .pill { min-height: 2.5rem; padding: 0.4rem 1.05rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 0.95rem; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); }
.pager .pill:hover { color: var(--ink); }
.pager .pill[aria-current="true"] { background: var(--tomato); color: var(--night); box-shadow: none; font-weight: 600; }
.pager .arrow { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pager .arrow::before { content: ""; width: 0.55rem; height: 0.55rem; margin-left: 0.2rem; border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(45deg); }
.pager .arrow.next::before { margin: 0 0.2rem 0 0; transform: rotate(-135deg); }
.pager .arrow:disabled { opacity: 0.25; cursor: default; }
.pager :focus-visible, #row:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }
#row + .pager + p { padding: 0 1.25rem; max-width: 34rem; margin: 0 auto; text-wrap: balance; }
@media (max-width: 30rem) { .pager { gap: 0.35rem; } .pager .arrow { display: none; } .pager .pill { padding: 0.35rem 0.75rem; font-size: 0.88rem; } }

/* The group chat moment: one phone, the group asks Dimpy with @Dimpy and it answers there. --------------------------- */
.stage { position: relative; width: min(100%, 24rem); margin: 3rem auto 0; padding: 2rem 0 4rem; }
.stage .phone { margin: 0 auto; }
.stage .thread { overflow-y: hidden; justify-content: flex-start; }
.js .stage .thread .m:not(.in) { opacity: 0; animation: none; }
.stage .thread .m.in { animation: arrive 0.3s var(--snap) both; }

/* Try it: the live phone and its prompts. ------------------------------------------------------------------------ */
.try { position: relative; }
.try .phone { margin: 3rem auto 0; }
.try .chips { max-width: 36rem; margin: 1.75rem auto 0; }
.try .small { max-width: 34rem; margin: 1rem auto 0; padding: 0 1.25rem; }

/* One trust line. */
.trust { padding: 3rem 1.25rem 5rem; text-align: center; }
.trust p { max-width: 40rem; margin: 0 auto 0.9rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 4.5vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.trust a { font-size: 0.95rem; color: var(--muted); }
.trust a:hover { color: var(--ink); }

/* Waitlist: a tomato field, one white card with Dimpy peeking over it. ------------------------------------------- */
.join { background: var(--tomato); color: var(--night); border-radius: 3rem 3rem 0 0; padding: 5rem 0 5.5rem; }
.join .sec-h { padding-inline: 2.5rem; }
.join .sec-h p { color: color-mix(in srgb, var(--night) 72%, var(--tomato)); }
.join-box { position: relative; max-width: 30rem; padding-top: 3.9rem; }
.peeker { position: absolute; left: 50%; top: 0; width: 6.5rem; height: 6.5rem; margin-left: -6rem; z-index: 0; --edge: transparent; }
.card { position: relative; z-index: 1; display: grid; gap: 1.25rem; max-width: 26rem; margin: 0 auto; padding: 1.75rem 1.5rem; color: #161616; background: #fff; border-radius: 1.6rem; box-shadow: 0 30px 60px -30px rgba(60, 10, 0, 0.5); }
.field { display: grid; gap: 0.4rem; }
.field label, legend { padding: 0; font-weight: 600; font-size: 0.95rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { margin-bottom: 0.5rem; }
.opt { font-weight: 400; color: #6b675f; }
.opt.pref { display: block; font-weight: 700; font-style: italic; font-size: 0.85em; color: #161616; }
input[type="email"], input[type="text"] {
  width: 100%; min-height: 3rem; padding: 0.6rem 0.85rem;
  font: inherit; color: #161616; background: #fff;
  border: 1.5px solid rgba(22, 22, 22, 0.14); border-radius: 12px;
}
input[type="email"]:focus, input[type="text"]:focus { outline: none; border-color: #161616; }
.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opts label {
  position: relative; display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.35rem 0.9rem;
  border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(22, 22, 22, 0.14);
  font-size: 0.92rem; font-weight: 500; cursor: pointer;
}
.opts input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opts label:has(input:checked) { background: var(--tomato); color: var(--night); box-shadow: none; font-weight: 600; }
.opts label:has(input:focus-visible) { outline: 3px solid #161616; outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--alert); }
fieldset[aria-invalid="true"] legend { color: #b8321a; }
fieldset[aria-invalid="true"] .opts label { box-shadow: inset 0 0 0 1.5px #b8321a; }
.card .btn { justify-self: stretch; background: #161616; color: #faf8f3; }
.form-msg { min-height: 1.4em; font-size: 0.95rem; font-weight: 600; text-align: center; }
.form-msg.err { color: #b8321a; }
.plans { margin: 1.5rem auto 0; text-align: center; font-size: 0.9rem; color: color-mix(in srgb, var(--night) 72%, var(--tomato)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer: night, and Dimpy asleep at the bottom of the page. ------------------------------------------------------ */
.foot { background: var(--night); color: #f1efe9; padding: 4rem 1.25rem 2.5rem; }
.foot .wrap { display: grid; gap: 2.5rem; }
.sleep { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.sleep .mark { width: 4.5rem; height: 4.5rem; }
.sleep:hover .mark.asleep, .sleep:focus-within .mark.asleep { --asleep: 0; --happy: 1; --hide: 0px; }
.sleep p { font-family: var(--display); font-weight: 500; font-size: clamp(1.35rem, 3.5vw, 1.8rem); line-height: 1.2; letter-spacing: -0.02em; max-width: 22rem; }
.sleep .z { display: inline-block; font-size: 0.8em; color: var(--tomato); margin-left: 0.2em; animation: zz 3s ease-in-out infinite; }
@keyframes zz { 50% { transform: translateY(-4px); opacity: 0.4; } }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.5rem; font-size: 0.9rem; color: #a39f97; border-top: 1px solid rgba(241, 239, 233, 0.12); padding-top: 1.5rem; }
.foot-links a { text-decoration: none; color: #f1efe9; }
.foot-links a:hover { text-decoration: underline; }
.foot-links .logo { flex-basis: 100%; justify-content: center; } .foot-links .logo img { height: 1.5rem; }

/* Document pages: how it works, privacy. --------------------------------------------------------------------------- */
.doc { display: grid; gap: 1rem; max-width: 40rem; margin: 1.5rem auto 5rem; padding: 0 1.25rem; }
.doc h1 { font-size: clamp(2.8rem, 9vw, 4.5rem); line-height: 1; }
.doc h2 { margin-top: 2rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.doc h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
.doc h3 + p { margin-top: -0.6rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.35rem; }
.doc .lead { font-size: 1.2rem; color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem; margin: 1rem 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; align-items: start; }
.steps > li > * { grid-column: 2; }
.steps > li::before { content: counter(step); grid-column: 1; grid-row: 1 / span 4; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--tomato); color: var(--night); font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.steps h3 { font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 2.5rem; letter-spacing: -0.02em; }
.steps h3 + p { margin-top: 0.35rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 30rem) { .steps > li { grid-template-columns: 2rem 1fr; column-gap: 0.75rem; } .steps > li::before { width: 2rem; height: 2rem; font-size: 1rem; } .steps h3 { line-height: 2rem; font-size: 1.45rem; } }
.pair { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; }
.pair figure { display: grid; gap: 0.7rem; justify-items: center; }
.pair .phone { width: 13rem; padding: 0.4rem; border-radius: 2.3rem; }
.pair .phone::before { top: 5rem; }
.pair .pic .screen { border-radius: 1.9rem; }
.pair figcaption { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--muted); }
.scope { width: 100%; border-collapse: collapse; }
.scope th, .scope td { text-align: left; vertical-align: top; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.scope th { font-weight: 500; padding-right: 1.25rem; width: 50%; }
.scope td { font-weight: 600; }
.scope tr.no td { color: var(--muted); font-weight: 500; }
.amount { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 10vw, 4.5rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.amount span { font-family: var(--sans); font-size: 1.1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 0.25rem; }
.for-year { display: none; }
.price:has(input[value="year"]:checked) .for-year { display: block; }
.price:has(input[value="year"]:checked) .for-month { display: none; }
.price .opts { margin-bottom: 1rem; }
.doc .opts label { box-shadow: inset 0 0 0 1.5px var(--line); }
.doc .opts label:has(input:checked) { background: var(--ink); color: var(--paper); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { padding: 0.85rem 0; font-weight: 600; cursor: pointer; }
.faq details p { padding-bottom: 1rem; color: color-mix(in srgb, var(--ink) 85%, var(--paper)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #mark .idle, .thread > *, .stage .thread .m.in, .mark.hop, .sleep .z, .caret { animation: none; }
  .js .caret { display: none; }
  .js .stage .thread .m:not(.in) { opacity: 1; }
  .js .hero:not(.done) :is(.sub, .cta, .peek), .js .hero:not(.done) .ch:not(.on) { opacity: 1; transform: none; display: inline; }
  .js .hero:not(.done) .hero-mark:not(.on) { --hide: 0px; }
  .hero-mark, .btn, .chip, .m, .mark, .moment .phone, .sleep .mark { transition: none; }
}
