/* AIZEN: aizenrhythm.com
   The app's own language, on the web: paintings on paper, words on the sky or on
   paper and never on paint, ink for every control, one vermilion seal for held.
   Every value below is lifted from the app's Theme (paper, ink, wash, card, radius). */

/* ---------- Fonts: Alegreya speaks (regular only), Alegreya Sans answers ---------- */
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/Alegreya-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("/assets/fonts/Alegreya-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/AlegreyaSans-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/AlegreyaSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/assets/fonts/AlegreyaSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Paper (Theme.Colors.paperGround, paper, paperEdge) */
  --ground: #f1ede5;
  --ground-rgb: 241 237 229;
  --paper: #faf7f1;
  --paper-rgb: 250 247 241;
  --paper-card: rgb(250 247 241 / 0.7);
  --paper-solid: #f8f5ef;
  --edge: rgb(255 255 255 / 0.7);
  --tooth: url("/assets/paper/tooth.webp");

  /* Ink (Theme.Colors.ink and the warm text steps) */
  --ink: #2e2b28;
  --ink-rgb: 46 43 40;
  --on-ink: #faf7f1;
  --t1: rgb(46 43 40 / 0.94);
  --t2: rgb(46 43 40 / 0.72);
  --t3: rgb(46 43 40 / 0.56);
  --t4: rgb(46 43 40 / 0.34);
  --hair: rgb(46 43 40 / 0.1);
  --hair-2: rgb(46 43 40 / 0.18);

  /* Held (Theme.Colors.seal) and night (nightWash, nightSkyInk) */
  --seal: #c4472f;
  --night: #161e3a;
  --night-rgb: 22 30 58;
  --night-ink: #f4efe5;

  /* Ritual tints, light (Theme.Colors.ritual*) */
  --meditate: #1a8499;
  --journal: #7a446e;
  --focus: #6e62b4;
  --move: #c7610a;
  --ground-tint: #1460b0;
  --commit: #0a857c;
  --unplug: #1f8a4f;

  /* Type */
  --serif: "Alegreya", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Shape and space (Theme.Radius.card 24, sheet 32; pageMargin 20) */
  --r-card: 24px;
  --r-sheet: 32px;
  --r-frame: 4px;
  --margin: 20px;
  --wrap: 1200px;
  --room: clamp(104px, 11vw, 184px);

  /* Motion: the app's smooth spring, read as a curve */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --press: cubic-bezier(0.3, 0.7, 0.4, 1.4);

  /* The sky: paper by day, the night blue after dark (set by the hour, see the head script) */
  --sky-rgb: var(--ground-rgb);
  --sky-a: 0.92;
  --sky-ink: var(--t1);
  --sky-ink-2: var(--t2);
  --sky-ink-3: var(--t3);
}
@media (min-width: 740px) { :root { --margin: 40px; } }
@media (min-width: 1180px) { :root { --margin: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--ground);
}
body {
  margin: 0;
  min-height: 100vh;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--t2);
  background-color: var(--ground);
  background-image: var(--tooth);
  background-size: 512px 512px;
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgb(46 43 40 / 0.14); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-weight: 500;
  transition: top 0.2s var(--spring);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.wrap--narrow { max-width: calc(760px + 2 * var(--margin)); }

/* ---------- Type ---------- */
.eyebrow {
  font: 500 0.75rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t3);
}
.display {
  font: 400 clamp(3.1rem, 1.6rem + 5.4vw, 6.4rem)/0.98 var(--serif);
  letter-spacing: -0.018em;
  color: var(--t1);
  text-wrap: balance;
}
.title {
  font: 400 clamp(2.35rem, 1.55rem + 2.9vw, 4.1rem)/1.04 var(--serif);
  letter-spacing: -0.012em;
  color: var(--t1);
  text-wrap: balance;
}
.lede {
  font: 400 clamp(1.125rem, 1.02rem + 0.42vw, 1.34rem)/1.55 var(--sans);
  color: var(--t2);
  text-wrap: pretty;
  max-width: 34em;
}
.serif { font-family: var(--serif); font-weight: 400; }
.head > * + * { margin-top: 20px; }
.head .eyebrow + .title, .head .eyebrow + .display { margin-top: 18px; }
.head--center { text-align: center; }
.head--center .lede { margin-inline: auto; }

/* ---------- Surfaces ---------- */
/* A sheet of paper laid over the painting: cream that lets it breathe through, a blur,
   the tooth, a white hairline that catches light, and no shadow (GlassCardModifier). */
.card {
  position: relative;
  border-radius: var(--r-card);
  background-color: var(--paper-card);
  background-image: var(--tooth);
  background-size: 512px 512px;
  background-blend-mode: multiply;
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  backdrop-filter: blur(22px) saturate(1.08);
  box-shadow: inset 0 0 0 1px var(--edge);
}
@media (prefers-reduced-transparency: reduce) { .card { background-color: var(--paper-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .card { background-color: var(--paper-solid); box-shadow: inset 0 0 0 1px var(--hair-2); } }

/* A painting: the tooth multiplied over it, as in the app. */
.painting { position: relative; overflow: hidden; background: var(--ground); }
.painting > picture { position: absolute; inset: 0; }
.painting img { width: 100%; height: 100%; object-fit: cover; }
.painting::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--tooth); background-size: 512px 512px; mix-blend-mode: multiply;
}

/* The vermilion seal: a work that found its home (HeldSeal). */
.seal { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 3px rgb(196 71 47 / 0.12); flex: none; }

/* ---------- Controls: the app's five, on the web ---------- */
/* PrimaryButtonStyle: an ink capsule, 52 high, a hair of light along its top edge. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font: 500 1.0625rem/1 var(--sans); letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 3px 10px rgb(46 43 40 / 0.12), 0 14px 28px -16px rgb(46 43 40 / 0.45);
  transition: transform 0.35s var(--press), background-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(180deg, rgb(250 247 241 / 0.22), rgb(250 247 241 / 0) 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn:hover { background: #3a3632; }
.btn:active { transform: scale(0.965); transition-duration: 0.12s; }
.btn[disabled] { background: var(--paper); color: var(--t3); box-shadow: inset 0 0 0 1px var(--hair-2); cursor: default; }
.btn[disabled]::before { display: none; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
/* InkCapsuleButtonStyle, quiet: the outlined second choice. */
.btn--quiet { background: rgb(250 247 241 / 0.55); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn--quiet::before { display: none; }
.btn--quiet:hover { background: var(--paper); }
/* TextActionButtonStyle: words that act, ink and medium, a chevron when they lead somewhere. */
.text-action {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font: 500 1rem/1 var(--sans); color: var(--ink);
  background: none; border: 0; padding: 0;
  transition: opacity 0.2s ease;
}
.text-action svg { width: 14px; height: 14px; transition: transform 0.3s var(--spring); }
.text-action:hover svg { transform: translateX(3px); }
.text-action:active { opacity: 0.6; }
/* ChoiceChip: paper with a hairline; the chosen one an ink edge and a check. */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background-color: var(--paper-card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font: 500 0.9375rem/1 var(--sans); color: var(--t1);
  transition: box-shadow 0.25s ease, transform 0.3s var(--press), background-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background-color: var(--paper); }
.chip:active { transform: scale(0.97); }
.chip .check { width: 13px; height: 13px; display: none; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); background-color: var(--paper); }
.chip[aria-pressed="true"] .check, .chip[aria-selected="true"] .check { display: block; }
/* IconCircleButtonStyle: a round symbol button, 44, quiet paper with ink. */
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background-color: var(--paper-card);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  color: var(--ink);
  transition: transform 0.3s var(--press), background-color 0.2s ease, opacity 0.2s ease;
}
.icon-btn:hover { background-color: var(--paper); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Nav: the sky's bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: calc(72px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--margin) 0;
  color: var(--sky-ink);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: rgb(var(--ground-rgb) / 0.78);
  background-image: var(--tooth); background-size: 512px 512px; background-blend-mode: multiply;
  -webkit-backdrop-filter: blur(20px) saturate(1.1); backdrop-filter: blur(20px) saturate(1.1);
  box-shadow: 0 1px 0 var(--hair);
  opacity: 0; transition: opacity 0.4s ease;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { color: var(--t1); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 400 1.5rem/1 var(--serif); letter-spacing: 0.06em; color: inherit; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 500 0.9375rem/1 var(--sans); color: inherit; opacity: 0.74;
  transition: opacity 0.2s ease;
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}
@media (min-width: 980px) { .nav-links { display: flex; } }
html[data-hour="night"] .nav:not(.is-scrolled) .btn { background: var(--night-ink); color: var(--night); }
html[data-hour="night"] .nav:not(.is-scrolled) .btn::before { display: none; }

/* ---------- Phone tab bar: the app's floating paper capsule ---------- */
.tabbar {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; gap: 2px; padding: 5px;
  width: min(calc(100% - 2 * var(--margin)), 420px);
  border-radius: 999px;
  background-color: rgb(var(--paper-rgb) / 0.78);
  background-image: var(--tooth); background-size: 512px 512px; background-blend-mode: multiply;
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
  box-shadow: inset 0 0 0 1px var(--edge), 0 10px 30px -12px rgb(46 43 40 / 0.35);
  transition: transform 0.5s var(--spring), opacity 0.4s ease;
}
.tabbar.is-hidden { transform: translate(-50%, 140%); opacity: 0; }
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 999px;
  font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.01em; color: var(--t2);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar .mark { --c: currentColor; }
.tabbar a.is-active { background: rgb(46 43 40 / 0.07); color: var(--ink); }
@media (min-width: 980px) { .tabbar { display: none; } }
@media (max-width: 979px) { body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- The phone ---------- */
.phone {
  --w: 300px;
  position: relative; flex: none;
  width: var(--w);
  aspect-ratio: 1320 / 2868;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #3b3835 0%, #1d1b1a 38%, #2a2725 70%, #3d3a37 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 0 0 0 calc(var(--w) * 0.012) #141312,
    0 2px 4px rgb(46 43 40 / 0.12),
    0 40px 70px -34px rgb(46 43 40 / 0.55),
    0 18px 36px -24px rgb(46 43 40 / 0.35);
  box-sizing: content-box;
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--w) * 0.137); background: var(--paper); isolation: isolate; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen img + img { position: absolute; inset: 0; }

/* ---------- Reveal: a gentle rise, never a bounce ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--spring), transform 1.1s var(--spring); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =========================================================================
   HERO: the painting for the hour, its top faded into the sky
   ========================================================================= */
.hero {
  position: relative; isolation: isolate;
  min-height: max(680px, 100svh);
  padding-top: calc(clamp(120px, 15vh, 176px) + env(safe-area-inset-top, 0px));
  color: var(--sky-ink);
  display: flex; flex-direction: column; align-items: center;
}
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; -webkit-mask: linear-gradient(180deg, #000 0%, #000 74%, rgb(0 0 0 / 0.55) 88%, transparent 100%); mask: linear-gradient(180deg, #000 0%, #000 74%, rgb(0 0 0 / 0.55) 88%, transparent 100%); }
.hero-art .painting { position: absolute; inset: 0; background: transparent; }
.hero-art .painting::after, .day-art .painting::after, .viewing-art .painting::after { display: none; }
/* The tooth over everything in a painted room, as the app lays it over the wash. */
.hero-art::after, .day-art::after, .viewing-art::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: var(--tooth); background-size: 512px 512px; mix-blend-mode: multiply;
}
.hero-art .painting img { object-position: 50% var(--hero-y, 18%); }
html[data-hour="afternoon"] { --hero-y: 30%; }
html[data-hour="evening"] { --hero-y: 42%; }
html[data-hour="night"] { --hero-y: 30%; }
/* The flock rises to the form and the TestFlight line; the painting starts lower (narrow) or shows more of its empty top (wide) so words stay on paper. */
@media (max-width: 1099px) { html[data-hour="afternoon"] .hero-art .painting { top: 220px; -webkit-mask: linear-gradient(180deg, transparent 0, #000 160px); mask: linear-gradient(180deg, transparent 0, #000 160px); } }
@media (min-width: 1100px) { html[data-hour="afternoon"] { --hero-y: 8%; } }
/* A day painting by night sits under the night blue, as the app lays it (Opacity.paintingByNight),
   so the cream words and the form hold on its palest paper. */
html[data-hour="night"] .hero-art .painting::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(var(--night-rgb) / 0.8); pointer-events: none; }
/* The wash: the sky at full strength to 8%, easing to clear at 64% along a smoothstep
   in twelve steps so no band shows (PaintingBackground.washStops). */
.hero-art::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 1)) 0%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 1)) 8%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.9803)) 12.67%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.9259)) 17.33%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.8438)) 22%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.7407)) 26.67%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.6238)) 31.33%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.5)) 36%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.3762)) 40.67%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.2593)) 45.33%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.1563)) 50%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.0741)) 54.67%,
    rgb(var(--sky-rgb) / calc(var(--sky-a) * 0.0197)) 59.33%,
    rgb(var(--sky-rgb) / 0) 64%);
}
.hero-copy { position: relative; z-index: 3; width: 100%; max-width: 860px; padding-inline: var(--margin); text-align: center; }
.hero-copy .eyebrow { color: var(--sky-ink-3); }
.hero-copy .display { margin-top: 22px; color: var(--sky-ink); }
.hero-copy .lede { margin: 24px auto 0; color: var(--sky-ink-2); max-width: 30em; }
.hero .notify { margin: 36px auto 0; }
.hero-stage { position: relative; z-index: 3; width: 100%; margin-top: clamp(56px, 8vh, 88px); display: flex; justify-content: center; }
.hero-stage .phone { --w: clamp(248px, 64vw, 330px); margin-bottom: clamp(-260px, -22vw, -120px); }

/* Night: the sky turns to the night blue, words to cream. */
html[data-hour="night"] {
  --sky-rgb: var(--night-rgb);
  --sky-a: 0.88;
  --sky-ink: var(--night-ink);
  --sky-ink-2: rgb(244 239 229 / 0.8);
  --sky-ink-3: rgb(244 239 229 / 0.62);
}
html[data-hour="night"] .hero .notify input { background-color: rgb(244 239 229 / 0.12); color: var(--night-ink); box-shadow: inset 0 0 0 1px rgb(244 239 229 / 0.22); }
html[data-hour="night"] .hero .notify input::placeholder { color: rgb(244 239 229 / 0.6); }
html[data-hour="night"] .hero .notify .btn { background: var(--night-ink); color: var(--night); }
html[data-hour="night"] .hero .notify .btn::before { display: none; }
html[data-hour="night"] .hero .notify-note, html[data-hour="night"] .hero .notify-status { color: rgb(244 239 229 / 0.7); }
html[data-hour="night"] .hero .notify.is-done .notify-row { display: none; }
html[data-hour="night"] .hero .store-badge { background: var(--night-ink); color: var(--night); }

/* ---------- The form: paper field, ink capsule ---------- */
.notify { width: 100%; max-width: 480px; }
.notify-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; }
.notify input[type="email"] {
  flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px; outline: none;
  background-color: var(--paper-card);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--hair-2);
  font: 400 1.0625rem/1 var(--sans); color: var(--t1);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.notify input[type="email"]::placeholder { color: var(--t3); }
.notify input[type="email"]:focus { box-shadow: inset 0 0 0 1.5px var(--ink); background-color: var(--paper); }
.notify-note { margin-top: 12px; font-size: 0.9375rem; color: var(--sky-ink-3, var(--t3)); }
.notify-status { min-height: 1.5em; margin-top: 6px; font-size: 0.9375rem; color: var(--t2); }
.notify-status.is-error { color: var(--seal); }
.notify.is-done .notify-row, .notify.is-done .notify-note { display: none; }
.notify.is-done .notify-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 0; padding: 14px 20px; border-radius: 999px; background: var(--paper-card); box-shadow: inset 0 0 0 1px var(--edge); color: var(--t1); font-size: 1rem; }
.notify.is-done .notify-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seal); flex: none; }
.store-badge { display: none; }
body[data-store="on"] .notify { display: none; }
body[data-store="on"] .store-badge { display: inline-flex; }
.store-badge svg { width: 20px; height: 20px; }
.testflight { display: none; }
body[data-testflight="on"] .testflight { display: flex; flex-direction: column; align-items: center; margin-top: -8px; }
.testflight-note { font-size: 0.875rem; color: var(--sky-ink-3, var(--t3)); }
html[data-hour="night"] .hero .testflight .text-action { color: var(--night-ink); }
@media (max-width: 479px) {
  .notify-row { flex-direction: column; padding: 0; gap: 10px; }
  .notify-row input[type="email"], .notify-row .btn { flex: none; width: 100%; }
}

/* =========================================================================
   ROOMS
   ========================================================================= */
.room { position: relative; padding-block: var(--room); }
.room + .room { padding-top: calc(var(--room) * 0.6); }
.room-rule { display: flex; align-items: center; gap: 14px; }
.room-rule::after { content: ""; flex: 1; height: 1px; background: var(--hair); }

/* ---------- I. The idea ---------- */
.idea { padding-top: clamp(300px, 34vw, 380px); }
.idea .head { max-width: 860px; margin-inline: auto; }
.after { display: grid; gap: 16px; margin-top: clamp(56px, 7vw, 88px); }
@media (min-width: 820px) { .after { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin-inline: auto; } }
.after-card { padding: clamp(28px, 4vw, 44px); min-height: 300px; display: flex; flex-direction: column; }
.after-label { font: 500 0.75rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }
.after-card--streak { background-color: rgb(var(--paper-rgb) / 0.42); box-shadow: inset 0 0 0 1px var(--hair); }
.after-count { margin-top: auto; padding-top: 40px; display: flex; align-items: baseline; gap: 12px; color: var(--t3); }
.after-stack { position: relative; display: inline-block; height: 1em; font: 300 clamp(4.5rem, 3rem + 5vw, 6.5rem)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow: hidden; }
.after-num { display: block; transition: transform 0.9s var(--spring), opacity 0.6s ease; }
.after-num--was { position: absolute; inset: 0; }
.after-unit { font: 400 1.25rem/1 var(--sans); }
.after-line { margin-top: 18px; color: var(--t3); }
.after-card--aizen .after-say { margin-top: auto; padding-top: 40px; font: 400 clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem)/1.16 var(--serif); color: var(--t1); text-wrap: balance; }
.after-card--aizen .after-line { display: flex; align-items: center; gap: 10px; color: var(--t2); }
/* The morning after, played once: the count drops to zero, the sentence holds, the seal lands. */
.after.is-armed .after-num--now { transform: translateY(100%); }
.after.is-armed .after-num--was { transform: none; }
.after.is-armed.is-broken .after-num--was { transform: translateY(-100%); opacity: 0; }
.after.is-armed.is-broken .after-num--now { transform: none; }
.after.is-armed .after-card--aizen .after-say, .after.is-armed .after-card--aizen .after-line { opacity: 0; transform: translateY(10px); transition: opacity 0.9s var(--spring), transform 1s var(--spring); }
.after.is-armed.is-lit .after-card--aizen .after-say { opacity: 1; transform: none; }
.after.is-armed.is-lit .after-card--aizen .after-line { opacity: 1; transform: none; transition-delay: 0.35s; }
.after.is-armed .after-card--aizen .seal { transform: scale(2.2); opacity: 0; transition: transform 0.7s var(--press), opacity 0.4s ease; transition-delay: 0.7s; }
.after.is-armed.is-lit .after-card--aizen .seal { transform: none; opacity: 1; }
.after:not(.is-armed) .after-num--was { display: none; }


/* ---------- II. Five rituals: the wall ---------- */
.rituals .head { max-width: 760px; }
.wall { margin-top: clamp(56px, 7vw, 96px); }
.wall-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 8px var(--margin) 28px; margin-inline: calc(-1 * var(--margin));
  scroll-padding-inline: var(--margin);
  scrollbar-width: none;
}
.wall-track::-webkit-scrollbar { display: none; }
@media (min-width: 980px) {
  .wall-track { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); grid-auto-columns: auto; gap: 56px 32px; overflow: visible; padding: 0; margin: 0; }
}
.work { scroll-snap-align: start; }
.work-button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; -webkit-tap-highlight-color: transparent; }
/* The frame: a white mat, a hairline, the shadow of a print hung a finger from the wall. */
.frame {
  position: relative; padding: 9%;
  border-radius: var(--r-frame);
  background: #fcfbf8;
  box-shadow: 0 0 0 1px rgb(46 43 40 / 0.07), 0 1px 2px rgb(46 43 40 / 0.06), 0 22px 40px -24px rgb(46 43 40 / 0.4), 0 6px 14px -8px rgb(46 43 40 / 0.14);
  transition: transform 0.6s var(--spring), box-shadow 0.6s var(--spring);
}
.frame .painting { aspect-ratio: 3 / 4; box-shadow: inset 0 0 0 1px rgb(46 43 40 / 0.06); }
.frame .painting::before { content: ""; position: absolute; inset: 0; z-index: 1; box-shadow: inset 0 1px 6px rgb(46 43 40 / 0.12); pointer-events: none; }
.work-button:hover .frame, .work-button:focus-visible .frame { transform: translateY(-4px); box-shadow: 0 0 0 1px rgb(46 43 40 / 0.07), 0 1px 2px rgb(46 43 40 / 0.06), 0 34px 54px -28px rgb(46 43 40 / 0.48), 0 10px 20px -10px rgb(46 43 40 / 0.16); }
.work-button:focus-visible { outline: none; }
.work-button:focus-visible .frame { outline: 2px solid var(--ink); outline-offset: 6px; }
.label { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: start; margin-top: 22px; }
.label-no { grid-column: 1 / -1; font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--t3); }
.label-title { margin-top: 10px; font: 400 1.5rem/1.1 var(--serif); color: var(--t1); }
.label .mark { --s: 32px; grid-column: 2; grid-row: 2; align-self: end; margin-bottom: 2px; }

/* A ritual's mark: its brush drawing, in its tint (RitualArtView). */
.mark { display: inline-block; width: var(--s, 40px); height: var(--s, 40px); flex: none; background-color: var(--c, var(--ink)); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.mark--meditate { --m: url("/assets/marks/breathe.svg"); --c: var(--meditate); }
.mark--journal { --m: url("/assets/marks/journal.svg"); --c: var(--journal); }
.mark--focus { --m: url("/assets/marks/focus.svg"); --c: var(--focus); }
.mark--move { --m: url("/assets/marks/move.svg"); --c: var(--move); }
.mark--ground { --m: url("/assets/marks/rest.svg"); --c: var(--ground-tint); }
.mark--commit { --m: url("/assets/marks/commit.svg"); --c: var(--commit); }
.mark--unplug { --m: url("/assets/marks/unplug.svg"); --c: var(--unplug); }
.mark--ink { --c: var(--ink); }


/* ---------- The viewing room (a ritual, up close) ---------- */
.viewing {
  width: min(1040px, calc(100% - 32px)); max-width: none; max-height: min(880px, calc(100% - 32px));
  padding: 0; border: 0; border-radius: var(--r-sheet);
  background-color: var(--ground);
  background-image: var(--tooth); background-size: 512px 512px; background-blend-mode: multiply;
  color: var(--t2);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.6), 0 40px 120px -30px rgb(46 43 40 / 0.55);
  overflow: hidden;
}
.viewing::backdrop { background: rgb(46 43 40 / 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewing[open] { animation: sheet-in 0.6s var(--spring); }
.viewing[open]::backdrop { animation: fade-in 0.4s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(0.985); } }
@keyframes fade-in { from { opacity: 0; } }
.viewing-inner { position: relative; display: grid; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 860px) { .viewing-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.viewing-art { position: relative; display: flex; align-items: center; justify-content: center; padding: 64px 24px 40px; min-height: 520px; isolation: isolate; overflow: hidden; }
.viewing-art .painting { position: absolute; inset: 0; z-index: -1; }
.viewing-art .painting img { transition: opacity 0.5s ease; }
.viewing-art::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgb(var(--ground-rgb) / 0.88) 0%, rgb(var(--ground-rgb) / 0.35) 45%, rgb(var(--ground-rgb) / 0) 70%); }
.viewing-art .phone { --w: clamp(220px, 26vw, 280px); z-index: 4; }
.viewing-copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; }
.viewing-copy .label-no { display: block; }
.viewing-title { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.viewing-title h2 { font: 400 clamp(2.4rem, 2rem + 1.6vw, 3.4rem)/1 var(--serif); color: var(--t1); }
.viewing-line { margin-top: 14px; font: 400 1.3125rem/1.35 var(--serif); color: var(--t1); }
.viewing-body { margin-top: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); font: 500 0.875rem/1 var(--sans); color: var(--t1); background: rgb(var(--paper-rgb) / 0.5); }
.viewing-nav { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.viewing-nav .count { margin-right: auto; font: 500 0.8125rem/1 var(--sans); letter-spacing: 0.12em; color: var(--t3); font-variant-numeric: tabular-nums; }
.viewing-close { position: absolute; top: 16px; right: 16px; z-index: 5; }
@media (max-width: 859px) {
  .viewing { width: 100%; max-height: calc(100% - 24px); margin: auto auto 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; }
  .viewing[open] { animation: sheet-up 0.6s var(--spring); }
  .viewing-art { min-height: 0; padding: 72px 24px 28px; }
  .viewing-art .phone { --w: min(56vw, 230px); }
}
@keyframes sheet-up { from { transform: translateY(40%); opacity: 0; } }

/* ---------- III. Meditate ---------- */
.meditate-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .meditate-grid { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.meditate-stage { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-block: 24px; }
.meditate-stage .phone { --w: clamp(250px, 30vw, 320px); z-index: 1; }
.meditate-stage .phone--back { --w: clamp(200px, 22vw, 260px); z-index: 0; margin: 64px 0 0 calc(var(--w) * -0.42); transform: rotate(4deg); display: none; }
@media (min-width: 640px) { .meditate-stage .phone--back { display: block; } }
.shelves { margin-top: 36px; border-top: 1px solid var(--hair); }
.shelves li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.shelves .painting { width: 56px; height: 72px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(46 43 40 / 0.06); }
.shelves b { font: 400 1.3125rem/1.2 var(--serif); color: var(--t1); }

.library { margin-top: clamp(72px, 9vw, 120px); }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.library-head h3 { font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--serif); color: var(--t1); }
.library-arrows { display: none; gap: 10px; }
@media (min-width: 740px) { .library-arrows { display: flex; } }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(168px, 44vw, 224px); gap: 18px;
  margin-top: 28px; padding: 6px var(--margin) 22px; margin-inline: calc(-1 * var(--margin));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1328px) { .carousel { margin-inline: calc((100vw - var(--wrap)) / -2); padding-inline: calc((100vw - var(--wrap)) / 2); scroll-padding-inline: calc((100vw - var(--wrap)) / 2); } }
.cover { scroll-snap-align: start; }
.cover-card { overflow: hidden; border-radius: 18px; background: #fcfbf8; box-shadow: 0 0 0 1px rgb(46 43 40 / 0.07), 0 18px 30px -22px rgb(46 43 40 / 0.4); transition: transform 0.6s var(--spring), box-shadow 0.6s var(--spring); }
.cover-card .painting { aspect-ratio: 3 / 4; }
.cover:hover .cover-card { transform: translateY(-3px); }
.cover-foot { padding: 14px 16px 16px; }
.cover-foot b { display: block; font: 400 1.1875rem/1.2 var(--serif); color: var(--t1); }
.cover-foot span { display: block; margin-top: 3px; font-size: 0.875rem; color: var(--t3); }

/* ---------- IV. The day: one painting ---------- */
.day { overflow: hidden; }
.day-stage { position: relative; margin-top: clamp(48px, 6vw, 80px); isolation: isolate; }
.day-art { position: absolute; z-index: -1; inset: -12% calc(-1 * var(--margin)) -8%; -webkit-mask: linear-gradient(180deg, transparent 0%, #000 26%, #000 76%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 26%, #000 76%, transparent 100%); }
.day-art .painting { position: absolute; inset: 0; background: transparent; }
.day-art .painting img { position: absolute; inset: 0; object-position: 50% 54%; opacity: 0; transition: opacity 1.1s ease; }
.day-art .painting img.is-on { opacity: 1; }
.day-art::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgb(var(--ground-rgb) / 0.7) 0%, rgb(var(--ground-rgb) / 0.3) 30%, rgb(var(--ground-rgb) / 0) 52%);
}
@media (min-width: 1328px) { .day-art { left: calc((100vw - var(--wrap)) / -2); right: calc((100vw - var(--wrap)) / -2); } }
.day-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
@media (min-width: 980px) { .day-grid { grid-template-columns: 1fr 1fr; column-gap: 64px; row-gap: 56px; } .day-chips { grid-column: 1 / -1; } .day-phone { justify-self: end; } .day-words { justify-self: start; } }
.day-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 519px) { .day-chips { gap: 6px; flex-wrap: nowrap; } .day-chips .chip { padding: 0 12px; font-size: 0.875rem; gap: 5px; } .day-chips .chip .check { width: 11px; height: 11px; } }
.day-phone { position: relative; }
.day-phone .phone { --w: clamp(240px, 62vw, 320px); }
.day-phone .phone-screen picture { position: absolute; inset: 0; }
.day-phone .phone-screen img { transition: opacity 0.7s ease; }
.day-phone .phone-screen img:not(.is-on) { opacity: 0; }
.day-words { width: 100%; max-width: 380px; padding: 28px 30px 30px; }
.day-words .eyebrow { display: flex; align-items: center; gap: 10px; }
.day-words h3 { margin-top: 12px; font: 400 2rem/1.1 var(--serif); color: var(--t1); }
.day-words p { margin-top: 12px; }
.day-words [data-swap] { transition: opacity 0.35s ease; }
.day-words.is-swapping [data-swap] { opacity: 0; }

/* ---------- V. Intelligence ---------- */
.mind-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 980px) { .mind-grid { grid-template-columns: 0.95fr 1.05fr; gap: 80px; } }
.mind-stage { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-block: 12px 40px; }
.mind-stage .phone { --w: clamp(240px, 28vw, 310px); z-index: 1; }
.mind-stage .phone + .phone { --w: clamp(200px, 22vw, 260px); z-index: 0; margin: 72px 0 0 calc(var(--w) * -0.42); transform: rotate(4deg); display: none; }
@media (min-width: 640px) { .mind-stage .phone + .phone { display: block; } }
@media (max-width: 979px) { .mind-stage { order: 2; } }
.finding { margin-top: 40px; padding: 28px 30px 26px; }
.finding .eyebrow { display: flex; align-items: center; justify-content: space-between; color: var(--commit); letter-spacing: 0.16em; }
.finding .eyebrow .mark { --s: 24px; }
.finding p.serif { margin-top: 14px; font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.3; color: var(--t1); text-wrap: pretty; }
.finding-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.finding-actions .btn { pointer-events: none; }
.finding-actions .text-action { pointer-events: none; }
.mind-points { margin-top: 36px; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.mind-points li { padding: 18px 0; border-bottom: 1px solid var(--hair); font: 400 1.3125rem/1.3 var(--serif); color: var(--t1); }

/* ---------- VI. Everywhere ---------- */
.everywhere-card { margin-top: clamp(48px, 6vw, 72px); padding: clamp(8px, 2vw, 16px) clamp(24px, 4vw, 48px); }
.catalogue { display: grid; grid-template-columns: 1fr; column-gap: 40px; }
.catalogue li { padding: 20px 0; border-bottom: 1px solid var(--hair); font: 400 1.25rem/1.3 var(--serif); color: var(--t1); }
.catalogue li:last-child { border-bottom: 0; }
@media (min-width: 560px) { .catalogue { grid-template-columns: repeat(2, 1fr); } .catalogue li:nth-last-child(-n + 2) { border-bottom: 0; } }
@media (min-width: 980px) { .catalogue { grid-template-columns: repeat(4, 1fr); } .catalogue li:nth-last-child(-n + 4) { border-bottom: 0; } }

/* ---------- VII. Privacy ---------- */
.privacy .head { max-width: 760px; margin-inline: auto; }
.facts { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 820px; padding: 8px clamp(24px, 4vw, 44px); }
.facts li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--hair); font-size: 1.0625rem; color: var(--t1); }
.facts li:last-child { border-bottom: 0; }
.facts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--ink); }
.privacy-more { margin-top: 28px; text-align: center; }

/* ---------- The maker ---------- */
.maker blockquote { font: italic 400 clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem)/1.32 var(--serif); color: var(--t1); text-align: center; text-wrap: balance; }
.maker blockquote::before { content: "\201C"; display: block; margin-bottom: 8px; font: 400 4rem/0.6 var(--serif); color: var(--t4); font-style: normal; }
.maker-sig { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 36px; }
.maker-sig img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgb(46 43 40 / 0.08); }
.maker-sig b { display: block; font: 400 1.125rem/1.2 var(--serif); color: var(--t1); }
.maker-sig span { font-size: 0.9375rem; color: var(--t3); }

/* ---------- VIII. Free ---------- */
.plans { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin-inline: auto; } }
.plan { padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; }
.plan--pro { box-shadow: inset 0 0 0 1.5px var(--ink); background-color: rgb(var(--paper-rgb) / 0.86); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font: 400 1.75rem/1.1 var(--serif); color: var(--t1); }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); font: 500 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--t1); }
.plan-badge .seal { width: 7px; height: 7px; box-shadow: none; }
.plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.plan-price strong { font: 300 3.4rem/1 var(--sans); letter-spacing: -0.02em; color: var(--t1); }
.plan-price span { color: var(--t3); }
.plan ul { margin-top: 26px; border-top: 1px solid var(--hair); }
.plan li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--hair); color: var(--t1); }
.plan li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-wrap { margin-top: clamp(104px, 11vw, 160px); }
.faq-list { margin-top: clamp(36px, 5vw, 56px); padding: 4px clamp(22px, 4vw, 40px); max-width: 860px; margin-inline: auto; }
.faq { border-bottom: 1px solid var(--hair); }
.faq:last-child { border-bottom: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 18px 0; cursor: pointer; list-style: none; font: 400 1.3125rem/1.3 var(--serif); color: var(--t1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: none; color: var(--t2); transition: transform 0.4s var(--spring); }
.faq[open] summary svg { transform: rotate(180deg); }
.faq-body { padding: 0 0 24px; max-width: 42em; }
.faq-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }

/* ---------- The last room ---------- */
.finale { position: relative; isolation: isolate; min-height: max(980px, 124svh); padding-top: var(--room); text-align: center; display: flex; flex-direction: column; align-items: center; }
.finale-art { position: absolute; inset: clamp(330px, 36vw, 420px) 0 0 0; z-index: -1; }
.finale-art .painting { position: absolute; top: 0; bottom: 0; left: 50%; width: auto; height: 100%; aspect-ratio: 1792 / 2400; max-width: 100%; transform: translateX(-50%); background: var(--ground);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* Multiplied, the painting's own paper becomes the page's: it reads as printed here.
   Its paper is lifted to white first, so nothing of its edge shows. */
.finale-art .painting img { object-position: 50% 100%; mix-blend-mode: multiply; filter: brightness(1.045) saturate(1.05); }
.finale-art::after { display: none; }
@media (max-width: 739px) {
  .finale { min-height: 0; padding-bottom: 0; }
  .finale-art { position: relative; inset: auto; order: 2; width: 100%; aspect-ratio: 1792 / 2400; margin-top: -24px; }
  .finale-art .painting { width: 100%; height: 100%; }
}

.finale .display { font-size: clamp(2.9rem, 1.6rem + 4.6vw, 5.6rem); }
.finale .notify { margin: 36px auto 0; }
.finale .notify-note { color: var(--t3); }

/* ---------- Footer ---------- */
.footer { position: relative; padding-block: 56px 48px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; padding-top: 36px; border-top: 1px solid var(--hair); }
.footer-top .brand { margin-right: 0; }
.footer-tag { margin-top: 10px; font: 400 1.0625rem/1.4 var(--serif); color: var(--t2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; font-size: 0.9375rem; color: var(--t2); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; font-size: 0.8125rem; color: var(--t3); }

/* =========================================================================
   Pages: privacy, terms, support, 404
   ========================================================================= */
.page { padding-top: calc(132px + env(safe-area-inset-top, 0px)); padding-bottom: 88px; }
.page-wrap { max-width: calc(760px + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.page-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; color: var(--ink); }
.page-back svg { width: 14px; height: 14px; transition: transform 0.3s var(--spring); }
.page-back:hover svg { transform: translateX(-3px); }
.page-head { margin-top: 28px; }
.page-head .title { margin-top: 18px; }
.page-head h1:first-child { margin-top: 0; }
.page-head > p:not(.eyebrow) { margin-top: 20px; font-size: 1.1875rem; line-height: 1.55; }
.page-effective { margin-top: 16px; font-size: 0.9375rem; color: var(--t3); }
.page-body { margin-top: 48px; padding: clamp(28px, 4vw, 48px); }
.page-body h2 { margin-top: 44px; font: 400 1.75rem/1.2 var(--serif); color: var(--t1); }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 28px; font: 400 1.3125rem/1.3 var(--serif); color: var(--t1); }
.page-body p, .page-body ul, .page-body ol { margin-top: 14px; }
.page-body ul { list-style: none; }
.page-body ul li { position: relative; padding-left: 20px; margin-top: 8px; }
.page-body ul li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.45; }
.page-body ol { padding-left: 22px; list-style: decimal; }
.page-body strong { font-weight: 500; color: var(--t1); }
.page-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.page-body a:hover { text-decoration-color: var(--ink); }
.page-body .faq-list { margin: 20px 0 0; padding: 0; max-width: none; }
.page-body table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9375rem; }
.page-body th, .page-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.page-body th { font-weight: 500; color: var(--t1); }
.table-scroll { overflow-x: auto; }
.lost { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--margin) 80px; position: relative; isolation: isolate; }
.lost .lede { margin: 20px auto 0; }
.lost .btn { margin-top: 32px; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.contact { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--hair); }
.contact h2 { margin-top: 0; }
.contact .text-action { margin-top: 8px; }
.lost-frame { width: 168px; padding: 15px; margin-bottom: 44px; transform: rotate(-1.5deg); }
.lost .title { margin-top: 16px; }
