/* Daruma Alarm landing, v1 (24 Nov 2026).
   Colours: palette A "Mountain Daruma", the app's Palette.swift roles (daruma-alarm develop 4631bd1,
   Packages/Sources/DesignSystem/Palette.swift). Light = dawn scene, dark = night scene.
   Type: the app's system stack (UI_DIRECTION.md: SF Pro Rounded Heavy for display, SF Pro for body).
   No web font is downloaded: SF fonts may not be embedded on the web, and the app has no accent font yet.
   Rules carried over from the app: gold takes a dark label, Daruma red is a fill (text uses --red-text),
   delete/destructive is never a red filled button. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  /* Palette.Role, light */
  --bg: #FAF7F2; --surface: #FFFFFF; --surface2: #F2EDE5;
  --text: #2A2A35; --text2: #66657A;
  --red: #D23A2E; --on-red: #FFFFFF; --red-text: #B8301F;
  --gold: #E8B04A; --on-gold: #2A2A35; --gold-text: #8A600E;
  --success: #3F6E4C; --warning: #9A5B06; --destructive: #A8261A;
  --data: #4E5E96; --separator: #E5DFD5;
  --glass: rgb(255 252 247 / .62);

  /* Palette.Scene.dawn */
  --sky-top: #8DB2E6; --scene-ink: #22232E;
  --plate: url("../scene/plate-dawn.webp");
  --ledge: url("../scene/ledge-dawn.webp");
  /* WakeColors.top(light): behind a mission */
  --wake-top: linear-gradient(180deg, #F6A587 0, #F9C3A4 70px, #FAF7F2 260px);

  /* Daruma art: the rig is 750 x 826 (DarumaArtLayout.aspect 0.908). Base at 99.6%. */
  --rock-y: 99%;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-display: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(18px, env(safe-area-inset-left));
}

/* Palette.Role dark + Palette.Scene.night. Applied by both routes (system and manual). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1230; --surface: #1A2048; --surface2: #242B5A;
    --text: #F5F0E8; --text2: #A8AECF;
    --red-text: #FF8A7A; --on-gold: #1C1D26; --gold-text: #F0C66E;
    --success: #86B893; --warning: #F0B45A; --destructive: #FF7B6E;
    --data: #9AAAE3; --separator: #2C3468; --glass: rgb(20 26 64 / .55);
    --sky-top: #0A0E26; --scene-ink: #F5F0E8;
    --plate: url("../scene/plate-night.webp");
    --ledge: url("../scene/ledge-night.webp");
    --wake-top: linear-gradient(180deg, #2E4373 0, #1C2552 90px, #0E1230 260px);
  }
}
:root[data-theme="dark"] {
  --bg: #0E1230; --surface: #1A2048; --surface2: #242B5A;
  --text: #F5F0E8; --text2: #A8AECF;
  --red-text: #FF8A7A; --on-gold: #1C1D26; --gold-text: #F0C66E;
  --success: #86B893; --warning: #F0B45A; --destructive: #FF7B6E;
  --data: #9AAAE3; --separator: #2C3468; --glass: rgb(20 26 64 / .55);
  --sky-top: #0A0E26; --scene-ink: #F5F0E8;
  --plate: url("../scene/plate-night.webp");
  --ledge: url("../scene/ledge-night.webp");
  --wake-top: linear-gradient(180deg, #2E4373 0, #1C2552 90px, #0E1230 260px);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  background: var(--bg);
}
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--red-text); text-underline-offset: 3px; }
button, a, [role="button"], input, summary { touch-action: manipulation; }
button, [role="button"], .btn { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; font-family: inherit; }
input { font: inherit; font-size: 16px; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(680px, 100% - var(--gutter) * 2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 16px;
  background: var(--red); color: var(--on-red);
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgb(0 0 0 / .08), 0 8px 20px rgb(210 58 46 / .22);
  transition: transform 140ms var(--ease-out), filter 140ms, opacity 140ms;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: .9375rem; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--red-text); box-shadow: inset 0 0 0 2px currentColor; }
.btn--quiet { background: var(--surface2); color: var(--text); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  .btn--ghost:hover, .btn--quiet:hover { filter: none; background: color-mix(in srgb, var(--red) 12%, var(--surface2)); }
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--glass); color: var(--scene-ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 140ms var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1/1; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ---------- header (no nav: one page, one action) ---------- */
.site-header {
  position: absolute; z-index: 10; inset: 0 0 auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 0;
  color: var(--scene-ink);
}
.brand, .btn--small { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; color: inherit; text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 8px; box-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.hide-s { display: none; }
@media (min-width: 420px) { .hide-s { display: inline; } }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero: the app's scene ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--plate) 50% 100% / cover no-repeat, var(--sky-top);
  color: var(--scene-ink);
  padding: calc(84px + env(safe-area-inset-top)) 0 0;
}
.hero__inner { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; }
.eyebrow { font-family: var(--font-display); font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; }
.hero__title { font-size: clamp(2.25rem, 9.6vw, 4.75rem); line-height: 1; letter-spacing: -.025em; font-weight: 900; }
.hero__title .line { display: block; }
.hero__sub { margin-top: 14px; font-size: clamp(1.0625rem, 3.6vw, 1.25rem); line-height: 1.45; max-width: 31em; font-weight: 500; }

/* ---------- waitlist ---------- */
.waitlist { margin-top: 20px; max-width: 540px; }
.waitlist__label { display: block; font-family: var(--font-display); font-weight: 800; font-size: .875rem; margin: 0 0 6px 2px; }
.waitlist__row { display: flex; flex-direction: column; gap: 10px; }
.waitlist input[type="email"] {
  width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-radius: 16px;
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--separator), 0 1px 0 rgb(0 0 0 / .04);
  transition: box-shadow 140ms;
}
.waitlist input::placeholder { color: var(--text2); opacity: .8; }
.waitlist input:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--red-text); }
.waitlist input[aria-invalid="true"] { box-shadow: inset 0 0 0 2.5px var(--destructive); }
.waitlist__note { margin-top: 10px; font-size: .875rem; line-height: 1.4; }
.waitlist__status:empty { display: none; }
.waitlist__status { margin-top: 10px; font-weight: 700; font-size: .9375rem; }
.waitlist__status.is-error, .waitlist__status.is-hint {
  display: inline-block; padding: 8px 12px; border-radius: 12px; background: var(--surface); color: var(--destructive);
}
.waitlist__status.is-hint { color: var(--text); }
.waitlist__status .linkish { border: 0; padding: 0; background: none; color: var(--red-text); font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist .btn { width: 100%; }
@media (min-width: 560px) {
  .waitlist__row { flex-direction: row; }
  .waitlist .btn { width: auto; flex: none; }
}
/* hero: glass behind the form so it reads over peaks and clouds */
.hero .waitlist { background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); padding: 14px; border-radius: 22px; margin-inline: -4px; }
/* success: "Welcome, waitlist member" */
.waitlist.is-done .waitlist__row, .waitlist.is-done .hp, .waitlist.is-done .waitlist__note, .waitlist.is-done .waitlist__label { display: none; }
.welcome { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; align-items: center; color: var(--text); }
.hero .welcome { color: var(--scene-ink); }
.welcome .welcome__seal { grid-row: span 2; width: 44px; height: 44px; animation: stamp 420ms var(--ease-out) both; }
.welcome__title { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1.15; }
.welcome__text { font-weight: 500; font-size: .9375rem; }
.welcome__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.waitlist--card { background: var(--surface); padding: 22px; border-radius: 26px; color: var(--text); box-shadow: 0 1px 0 var(--separator), 0 16px 44px rgb(0 0 0 / .08); text-align: left; }
.waitlist--card input[type="email"] { background: var(--surface2); box-shadow: none; }
.waitlist--card .waitlist__note { color: var(--text2); }
.waitlist--card .waitlist__status.is-error, .waitlist--card .waitlist__status.is-hint { background: var(--surface2); }

/* ---------- stage: Daruma on the app's ledge ---------- */
.stage {
  --dw: clamp(150px, 42vw, 230px);                      /* Daruma's width */
  --lw: calc(var(--dw) * 2.35);                          /* the ledge picture's width (960 x 880) */
  --lh: calc(var(--lw) * .9167);
  --lb: calc(var(--lh) * -.30);                          /* how far the ledge sinks under the sheet */
  --foot: calc(var(--lb) + var(--lh) * .555);            /* the flat spot, from the stage's bottom */
  position: relative; height: calc(var(--foot) + var(--dw) * 1.1013 + 62px); min-height: 300px;
}
.stage__ledge {
  position: absolute; left: 50%; bottom: var(--lb); width: var(--lw); height: var(--lh); translate: -47% 0;
  background: var(--ledge) center / contain no-repeat; pointer-events: none;
}
.stage__shadow {
  position: absolute; left: 50%; bottom: calc(var(--foot) - 6px); width: calc(var(--dw) * .8); height: 16px; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(30 20 20 / .38), transparent); filter: blur(2px);
  transform: scaleX(var(--shadow, 1)); transform-origin: center;
}
.daruma {
  position: absolute; left: 50%; bottom: var(--foot); width: var(--dw); aspect-ratio: 600 / 661; translate: -50% 0;
  cursor: grab; touch-action: pan-y; outline-offset: 8px;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.daruma:active { cursor: grabbing; }
.daruma__rock { position: absolute; inset: 0; transform-origin: 50% var(--rock-y); will-change: transform; }
.daruma__breath { position: absolute; inset: 0; transform-origin: 50% var(--rock-y); animation: breathe 4.4s ease-in-out infinite alternate; }
.daruma img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 6px 10px rgb(40 20 20 / .18)); }
.daruma__eye { opacity: 0; }
.daruma.is-painted .daruma__eye { animation: fade-in 520ms ease-out forwards; }
/* blink (both eyes are painted on the page) */
.daruma__lids { opacity: 0; }
.daruma.is-blinking .daruma__lids { opacity: 1; }
@keyframes breathe { to { transform: scale(1.012, 1.018); } }
@keyframes fade-in { to { opacity: 1; } }

.bubble {
  position: absolute; left: 50%; bottom: calc(var(--foot) + var(--dw) * 1.1013 + 10px); translate: -50% 0;
  max-width: min(80vw, 260px); padding: 9px 16px; border-radius: 18px;
  background: var(--surface); color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: .9375rem; text-align: center;
  box-shadow: 0 6px 24px rgb(0 0 0 / .14); width: max-content;
  opacity: 0; scale: .92; transform-origin: 50% 100%; pointer-events: none;
  transition: opacity 180ms var(--ease-out), scale 180ms var(--ease-out);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; background: inherit; rotate: 45deg; border-radius: 3px; }
.bubble.is-on { opacity: 1; scale: 1; }
.stage__hint {
  position: absolute; left: 50%; bottom: calc(var(--foot) + var(--dw) * 1.1013 + 14px); translate: -50% 0; z-index: 2;
  font-family: var(--font-display); font-size: .8125rem; font-weight: 800; white-space: nowrap;
  padding: 5px 11px; border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity 300ms;
}
.stage__hint.is-gone { opacity: 0; }

/* desktop hero: copy left on the sky, Daruma right on the ledge */
@media (min-width: 900px) {
  .hero { background-position: 50% 30%; padding-top: calc(110px + env(safe-area-inset-top)); }
  /* the ledge picture is cut straight on the left (through the pine): fade that edge into the scene */
  .stage__ledge { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 24px; }
  .hero__copy { padding-bottom: 96px; }
  .stage { --dw: 250px; --lw: calc(var(--dw) * 2.6); }
}

/* hero entrance: one pass, headline lines, sub, form, then Daruma */
.js .reveal-hero { opacity: 0; transform: translateY(14px); animation: rise 600ms var(--ease-out) forwards; animation-delay: calc(80ms + var(--n, 0) * 70ms); }
.js .eyebrow.reveal-hero { --n: 0; }
.js .hero__title .line:nth-child(1) { --n: 1; }
.js .hero__title .line:nth-child(2) { --n: 2; }
.js .hero__sub.reveal-hero { --n: 3; }
.js .waitlist.reveal-hero { --n: 4; }
.js .daruma { opacity: 0; animation: arrive 640ms var(--ease-out) 420ms forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes arrive { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- sheet over the scene (the app's Today) ---------- */
.sheet {
  position: relative; z-index: 1; background: var(--bg);
  margin-top: -28px; border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 30px rgb(0 0 0 / .1);
}
.section { padding: 76px 0 28px; }
.section--tint { background: var(--surface2); margin-top: 56px; padding-bottom: 76px; }
.section--cta { padding: 76px 0 96px; text-align: center; }
.section--cta .lead { margin-inline: auto; }
.section--cta .waitlist { margin: 28px auto 0; }
.cta__daruma { width: 112px; margin: 0 auto 18px; filter: drop-shadow(0 8px 14px rgb(40 20 20 / .2)); }
.kicker { font-family: var(--font-display); font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); margin-bottom: 12px; }
.section h2 { font-size: clamp(2rem, 6.6vw, 3.25rem); letter-spacing: -.02em; font-weight: 900; }
.lead { margin-top: 16px; max-width: 36em; font-size: 1.125rem; color: var(--text2); }

/* scroll reveal (JS adds .in) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- device frame for real screenshots ---------- */
.device {
  margin: 0; padding: 6px; border-radius: 34px; background: #1C1D26;
  box-shadow: 0 18px 44px rgb(20 20 40 / .2), inset 0 0 0 1.5px #3a3c4a;
  aspect-ratio: 1206 / 2622;
}
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 28px; background: #FAF7F2; }
/* screenshots cut above a debug read-out: the screen's paper colour fills the rest of the frame */
.device { position: relative; }
.device--cut::before { content: ""; position: absolute; inset: 6px; border-radius: 28px; background: #FAF7F2; }
.device--cut img { position: relative; height: auto; border-radius: 28px 28px 0 0; }
.shot { margin: 0; }
.shot figcaption { margin-top: 12px; text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--text); }

/* ---------- how it works ---------- */
.flow { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; }
.flow__step { display: grid; grid-template-columns: minmax(0, 132px) 1fr; gap: 4px 18px; align-items: center; }
.flow__step .device { grid-row: span 2; }
.flow__step h3 { font-size: 1.25rem; align-self: end; display: flex; align-items: center; gap: 10px; }
.flow__step p { color: var(--text2); align-self: start; font-size: 1rem; }
@media (max-width: 359px) { .flow__step { grid-template-columns: 108px 1fr; column-gap: 14px; } .flow__step h3 { font-size: 1.125rem; } }
.num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--on-red); font-size: .9375rem; font-weight: 900; }
@media (min-width: 800px) {
  .flow { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .flow__step { grid-template-columns: 1fr; text-align: left; align-items: start; }
  .flow__step .device { grid-row: auto; width: min(240px, 100%); margin-bottom: 18px; }
  .flow__step h3 { margin-bottom: 4px; align-self: start; }
}

/* ---------- missions ---------- */
.mission-layout { margin-top: 28px; display: grid; gap: 40px; }
.missions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mission {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  background: var(--surface); border-radius: 20px; padding: 12px 14px 12px 12px; box-shadow: 0 1px 0 var(--separator);
}
.mission img { width: 56px; height: 56px; }
.mission h4 { font-size: 1.0625rem; }
.mission p { color: var(--text2); font-size: .9375rem; line-height: 1.4; margin-top: 2px; }
@media (min-width: 640px) { .missions { grid-template-columns: 1fr 1fr; } }
.mission--more { background: transparent; box-shadow: inset 0 0 0 2px var(--separator); }
.mission__more { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--surface2); color: var(--red-text); font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; }
@media (min-width: 1000px) {
  .mission-layout { grid-template-columns: 1fr 300px; align-items: start; gap: 48px; }
}

/* ---------- demo phone (the Ringing look, in code) ---------- */
.demo { justify-self: center; text-align: center; }
.demo__title { font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); margin: 18px 0 14px; }
.demo__note { margin-top: 14px; color: var(--text2); font-size: .875rem; max-width: 280px; margin-inline: auto; }
.phone {
  width: min(280px, 78vw); margin-inline: auto; padding: 9px; border-radius: 42px;
  background: #1C1D26; box-shadow: 0 20px 50px rgb(0 0 0 / .22), inset 0 0 0 2px #3a3c4a;
}
.phone__screen {
  position: relative; border-radius: 34px; overflow: hidden; min-height: 470px; padding: 22px 16px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  /* WakeColors.Sky.dawn: Ringing is always the full sunrise */
  background: linear-gradient(180deg, #8DB2E6 0%, #C4D8F0 20%, #EBDCCB 34%, #F6C9A8 44%, #F2A08A 50%, #FBD2B0 62%);
  color: #22232E;
}
.phone__time { font-family: var(--font-display); font-size: 4rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.phone__daruma { width: 92px; margin-top: 8px; transform-origin: 50% 95%; animation: shake 0.5s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.phone__label { font-family: var(--font-display); font-weight: 800; font-size: .875rem; opacity: .8; margin-top: 6px; }
.phone__q { margin-top: 8px; font-family: var(--font-display); font-size: 1.875rem; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.phone__answers { margin-top: 10px; width: 100%; display: grid; gap: 8px; }
.phone__answers button {
  min-height: 50px; border: 0; border-radius: 16px; cursor: pointer;
  background: rgb(255 252 247 / .9); color: #22232E; font-family: var(--font-display); font-size: 1.25rem; font-weight: 900;
  transition: transform 120ms var(--ease-out), background 120ms;
}
.phone__answers button:active { transform: scale(.97); }
.phone__answers button.is-wrong { animation: nope 320ms var(--ease-out); background: #fff; }
@keyframes nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } }
.phone__done {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(180deg, #F6A587 0%, #F9C3A4 30%, #FAF7F2 70%); padding: 20px;
}
.phone__done p { font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; }
.phone[data-state="done"] .phone__done { display: flex; }
.phone[data-state="done"] .seal { animation: stamp 420ms var(--ease-out) both; }
.phone[data-state="done"] .phone__done p, .phone[data-state="done"] .phone__done button { animation: rise 400ms var(--ease-out) 260ms both; }
/* the app's seal art is a white mask, tinted Daruma red in code (as in the app) */
.seal { display: block; width: 112px; height: 112px; background: var(--red); -webkit-mask: url("../scene/seal.webp") center / contain no-repeat; mask: url("../scene/seal.webp") center / contain no-repeat; rotate: -6deg; }
@keyframes stamp { from { transform: scale(1.7) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-6deg); opacity: 1; } }
.phone__done .btn--ghost { color: #B8301F; }

/* ---------- camera missions ---------- */
.section--camera { background: var(--wake-top); margin-top: 56px; padding-bottom: 64px; }
.section--camera .kicker { color: var(--text); }
.camera { display: grid; gap: 36px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text2); }
.ticks b { color: var(--text); font-family: var(--font-display); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.camera__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 460px; width: 100%; justify-self: center; }
@media (min-width: 900px) { .camera { grid-template-columns: 1.1fr .9fr; gap: 56px; } }

/* ---------- the small things ---------- */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.card { background: var(--bg); border-radius: 22px; padding: 18px 18px 20px; }
.card h4 { font-size: 1.1875rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.card p { color: var(--text2); font-size: 1rem; line-height: 1.45; }
@media (min-width: 560px) { .cards--features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--features { grid-template-columns: repeat(3, 1fr); } }

/* ---------- story ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.step { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: 0 1px 0 var(--separator); }
.step h3 { font-size: 1.1875rem; margin: 14px 0 6px; }
.step p { color: var(--text2); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
/* eye motif in the art's colours: face #FAF1E6, ink #22232E */
.eyes { display: inline-flex; gap: 10px; background: #FAF1E6; padding: 10px 14px; border-radius: 99px; box-shadow: inset 0 0 0 2px #D23A2E; }
.eyes i { width: 34px; height: 34px; border-radius: 50%; background: #FFF8EF; box-shadow: inset 0 0 0 3px #C9B49B; position: relative; display: block; }
.eyes i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 2.5px, #22232E 3.5px); transform: scale(0); }
.eyes--one i:nth-child(2)::after, .eyes--two i::after { transform: scale(1); }

.temple {
  margin-top: 36px; border-radius: 28px; padding: 28px 22px; display: grid; gap: 24px; color: #F5F0E8; overflow: hidden;
  background: linear-gradient(180deg, rgb(10 14 38 / .35), rgb(10 14 38 / .78) 70%), url("../scene/temple-night.webp") 50% 40% / cover, #16204A;
}
.temple__label { font-family: var(--font-display); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: #F0C66E; }
.temple__big { font-family: var(--font-display); font-size: clamp(1.75rem, 5.5vw, 2.5rem); font-weight: 900; letter-spacing: -.02em; margin-top: 8px; line-height: 1.05; }
.temple__count { margin-top: 10px; color: #F0C66E; font-weight: 800; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.temple__sub { margin-top: 8px; color: #D5D9EE; max-width: 28em; }
.lanterns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px 4px; align-content: center; }
.lanterns li { aspect-ratio: 65 / 120; background: url("../scene/lantern-unlit.webp") center / contain no-repeat; opacity: .5; }
.lanterns li.lit { background-image: url("../scene/lantern-lit.webp"); opacity: 1; filter: drop-shadow(0 0 7px rgb(255 200 97 / .8)) brightness(1.1); transition: filter 400ms, opacity 400ms; transition-delay: calc(var(--i, 0) * 45ms); }
@media (min-width: 800px) { .temple { grid-template-columns: 1fr 1.1fr; align-items: center; padding: 40px; gap: 40px; min-height: 340px; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; }
.faq details { background: var(--surface); border-radius: 18px; margin: 10px 0; box-shadow: 0 1px 0 var(--separator); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.0625rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--red-text); border-bottom: 2.5px solid var(--red-text); rotate: 45deg; transition: rotate 200ms var(--ease-out), margin 200ms;
}
.faq details[open] summary::after { rotate: -135deg; margin-top: -2px; }
.faq details p { padding: 0 18px 18px; color: var(--text2); }

/* ---------- footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--separator); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer__brand { font-family: var(--font-display); font-weight: 800; }
.footer__small { margin-top: 4px; color: var(--text2); font-size: .8125rem; max-width: 34em; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--text); font-weight: 700; text-decoration: none; font-size: .9375rem; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* ---------- document pages (privacy, support) ---------- */
body.doc .site-header { position: static; color: var(--text); padding-bottom: 8px; max-width: 1120px; margin-inline: auto; }
body.doc .icon-btn { background: var(--surface2); color: var(--text); }
.doc__main { width: min(720px, 100% - var(--gutter) * 2); margin: 24px auto 72px; }
.doc__main h1 { font-size: clamp(2rem, 7vw, 3rem); letter-spacing: -.02em; margin-bottom: 10px; font-weight: 900; }
.doc__main h2 { font-size: 1.4rem; margin: 36px 0 8px; }
.doc__main p, .doc__main li { color: var(--text); }
.doc__main ul { padding-left: 1.2em; }
.doc__main li { margin: 6px 0; }
.draft {
  margin: 18px 0 8px; padding: 14px 16px; border-radius: 16px; font-size: .9375rem;
  background: color-mix(in srgb, var(--gold) 22%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--gold);
}
.todo { background: color-mix(in srgb, var(--gold) 28%, transparent); border-radius: 4px; padding: 0 4px; font-weight: 700; }
.doc__main .faq details p { padding: 0 18px 16px; margin-top: 0; }
.updated { color: var(--text2); font-size: .9375rem; }

/* ---------- facts strip (top of the sheet) ---------- */
.facts { list-style: none; margin: 0 auto; padding: 22px var(--gutter) 0; width: min(1120px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts li { background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 0 var(--separator); display: grid; gap: 2px; align-content: start; }
.facts b { font-family: var(--font-display); font-weight: 800; font-size: .9375rem; line-height: 1.2; }
.facts span { color: var(--text2); font-size: .8125rem; line-height: 1.3; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); padding-top: 28px; } }
.facts + .section { padding-top: 56px; }

/* ---------- floating waitlist button (when no form is on screen) ---------- */
.float-cta {
  position: fixed; z-index: 20; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 99px;
  background: var(--red); color: var(--on-red); text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  box-shadow: 0 10px 28px rgb(120 20 20 / .32);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.float-cta.is-on { opacity: 1; transform: none; pointer-events: auto; }
.footer__tagline { font-family: var(--font-display); font-weight: 800; color: var(--red-text); margin-top: 4px; }

/* ---------- launch note (in place of the waitlist form until a service is chosen) ---------- */
.launch { margin-top: 20px; max-width: 540px; padding: 16px 18px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.launch__when { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1.2; }
.launch__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 25%, transparent); }
.launch__note { margin-top: 6px; font-size: .9375rem; }
.launch__note a { color: inherit; font-weight: 700; }
.launch--card { margin: 28px auto 0; background: var(--surface); color: var(--text); text-align: left; box-shadow: 0 1px 0 var(--separator), 0 16px 44px rgb(0 0 0 / .08); padding: 22px; display: grid; gap: 4px; justify-items: start; }
.launch--card .launch__note { color: var(--text2); margin-bottom: 12px; }
.js .launch.reveal-hero { --n: 4; }
.launch-line { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--font-display); font-weight: 900; font-size: 1.125rem; line-height: 1.2; }
.launch-line--center { display: block; text-align: center; margin-top: 22px; }
.launch-line--center .launch__dot { display: inline-block; vertical-align: 1px; margin-right: 10px; }
.hero .launch-line + .waitlist { margin-top: 12px; }
.waitlist__note a { color: inherit; font-weight: 700; }
.cta__mail { margin-top: 16px; color: var(--text2); font-size: .9375rem; }
.js .launch-line.reveal-hero { --n: 4; }


/* ?shot (screenshots): everything in its final place, no entrance motion */
.is-shot .float-cta { display: none; }
.is-shot .reveal-hero, .is-shot .daruma, .is-shot .reveal, .is-shot .launch, .is-shot .launch-line { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }

/* ---------- reduced motion: fewer and gentler, not zero ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .daruma__breath, .phone__daruma { animation: none; }
  .js .reveal-hero { transform: none; animation-name: fade-in; animation-duration: 400ms; }
  .js .daruma { animation-name: fade-in; animation-duration: 400ms; }
  .js .reveal { transform: none; }
  .phone[data-state="done"] .seal, .welcome__seal { animation-name: fade-in; }
  .float-cta { transform: none; }
  .bubble { scale: 1; }
}
