/*
 * purlwhitenoise.com — one stylesheet for both page types.
 *
 * Copied verbatim into docs/style.css by `npm run site`. It lives here rather
 * than in docs/ because docs/ is build output: everything under it is written
 * by the generator, so nothing there is ever hand-edited and later clobbered.
 *
 * The palette is transcribed from src/theme.ts, which is itself the
 * transcription of the Purl canvas. Text is expressed as opacity over one warm
 * off-white rather than as separate greys - that is what makes the page recede
 * the way the app does instead of glowing.
 *
 * Nunito Sans is the app's typeface and it is served from this origin: the two
 * weights below are the exact files app/_layout.tsx loads, copied out of
 * node_modules by the generator. A page whose whole argument is "nothing leaves
 * your phone" should not open by asking a font CDN for anything.
 *
 * The markup carries no `style` attribute at all - the CSP is `style-src
 * 'self'`, which would block one - so every per-sound colour and every waveform
 * bar height is a rule in here.
 */

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/NunitoSans_600SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f0e11;
  --surface: #1a181d;
  --card: #17151a;
  --card-lift: #1d1a22;
  --accent: #d6a16e;
  --accent-hi: #e8c9a5;
  --on-accent: #17130f;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-faint: rgba(255, 255, 255, 0.05);
  --hairline-ghost: rgba(255, 255, 255, 0.04);

  /* Text as alpha over the warm off-white, matching textColors in theme.ts. */
  --text-bright: rgba(238, 232, 224, 0.94);
  --text: rgba(238, 232, 224, 0.9);
  --text-strong: rgba(238, 232, 224, 0.84);
  --text-body: rgba(238, 232, 224, 0.72);
  --text-mid: rgba(238, 232, 224, 0.6);
  --text-muted: rgba(238, 232, 224, 0.5);
  --text-soft: rgba(238, 232, 224, 0.42);
  --text-faint: rgba(238, 232, 224, 0.36);
  --text-ghost: rgba(238, 232, 224, 0.3);

  --radius-card: 18px;
  --radius-row: 16px;
  --radius-control: 14px;
  --radius-pill: 999px;

  /* cubic-bezier from the canvas. Nothing on this page should snap. */
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);

  --sans: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* The phone mock is laid out at its real 402x874 and scaled from here. */
  --phone: 0.8;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.landing { overflow-x: hidden; }

a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

h1, h2, h3 { letter-spacing: -0.01em; }

/*
 * Two low, wide pools of warm light, fixed behind everything. The page has no
 * photography in it; this is what keeps a very dark screen from reading flat.
 */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 72% -10%, rgba(214, 161, 110, 0.09), transparent 70%),
    radial-gradient(700px 500px at 8% 30%, rgba(214, 161, 110, 0.04), transparent 70%);
}

/* ---------------------------------------------------------------- shell -- */

.page {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}

/* Language switcher on the policy page. Quiet enough to ignore. */
.langs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px; padding: 0; list-style: none;
  font-size: 14px;
}
.langs a {
  display: block; padding: 4px 11px;
  border: 1px solid var(--hairline); border-radius: var(--radius-pill);
  color: var(--text-muted); text-decoration: none;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.langs a:hover { color: var(--text); border-color: var(--accent); }
.langs [aria-current="page"] {
  color: var(--on-accent); background: var(--accent); border-color: var(--accent);
}

/* --------------------------------------------------------------- topbar -- */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 24px 0 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { display: block; border-radius: 9px; }
.brand span { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.tag-soon {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(238, 232, 224, 0.32);
}

/* ----------------------------------------------------------------- hero -- */

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 440px);
  gap: 64px;
  align-items: center;
  padding: 76px 0 92px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}

/*
 * The headline is two sentences with a hard break between them. The canvas
 * tops out at 60px, which puts "again." on a line of its own in this column -
 * so the ceiling is the size at which each sentence still holds one line.
 */
.hero h1 {
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--text-bright);
  margin: 20px 0 0;
  text-wrap: pretty;
}

.hero .lede {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(238, 232, 224, 0.62);
  margin: 24px 0 0;
  max-width: 52ch;
  text-wrap: pretty;
}

/* --------------------------------------------------------------- stores -- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-control);
  background: var(--card);
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  transition: background 260ms var(--ease), border-color 260ms var(--ease);
}
.store:hover { background: var(--card-lift); border-color: rgba(214, 161, 110, 0.4); }

/* Pre-launch: the same pill, dimmed, obviously not yet a link. */
.store.is-soon { opacity: 0.55; cursor: not-allowed; }
.store.is-soon:hover { background: var(--card); border-color: rgba(255, 255, 255, 0.09); }

.store-pre {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-soft);
}
.store-name {
  font-size: 17px; font-weight: 600;
  color: rgba(238, 232, 224, 0.85);
  margin-top: 2px;
}

.cta-note { margin: 16px 0 0; font-size: 14px; color: var(--text-faint); }

/* ---------------------------------------------------------------- stats -- */

.stats {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin: 52px 0 0; padding: 30px 0 0;
  border-top: 1px solid var(--hairline-faint);
  list-style: none;
}

.stats .value {
  display: block;
  font-size: 27px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--accent);
}
.stats .unit { font-size: 16px; font-weight: 400; margin-left: 4px; }
.stats .label {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-soft);
}

/* ----------------------------------------------------------- phone mock -- */

.device {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 0;
}

.device figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-ghost);
  text-align: center;
}

/*
 * The mock is built at the real 402x874 and scaled as one piece, so every
 * number inside it is the number from the canvas rather than a rounded-off
 * fraction of it.
 *
 * A transform does not change the space an element takes up, so the margins
 * hand back exactly what the scale gives up - all of the height, and half the
 * width on each side. Without the side margins the frame keeps reserving its
 * full 402px and sits off-centre, then off-screen, on a narrow phone.
 */
.phone {
  width: 402px; height: 874px;
  flex: none;
  transform: scale(var(--phone));
  transform-origin: top center;
  margin-bottom: calc(-874px * (1 - var(--phone)));
  margin-left: calc(-402px * (1 - var(--phone)) / 2);
  margin-right: calc(-402px * (1 - var(--phone)) / 2);
  border: 10px solid #1b1920;
  border-radius: 62px;
  background: var(--ink);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.screen {
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 52px;
  background: var(--ink);
  padding: 62px 26px 46px;
  display: flex; flex-direction: column;
}

.phone-top { display: flex; align-items: center; justify-content: space-between; }

.phone-top .menu {
  width: 56px; height: 56px; padding: 0 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.phone-top .menu i { height: 2px; border-radius: 2px; background: var(--text-muted); }
.phone-top .menu i:last-child { width: 60%; }

.phone-top .dots {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.phone-top .dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted);
}

.stage {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 38px;
  margin-top: -8px;
}

.now { text-align: center; }
.now p { margin: 0; }
.now .state {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-ghost);
}
.now .track {
  font-size: 30px; font-weight: 600; line-height: 1.2;
  color: var(--text);
  margin-top: 12px;
}
.now .sub { font-size: 15px; color: var(--text-soft); margin-top: 8px; }

.rings {
  position: relative;
  width: 250px; height: 250px;
  display: flex; align-items: center; justify-content: center;
}
.rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 161, 110, 0.22);
  animation: breathe 7s var(--ease) infinite;
}
.rings .ring:first-child { inset: 0; }
.rings .ring:nth-child(2) {
  inset: 26px;
  border-color: rgba(214, 161, 110, 0.14);
  animation-delay: -3.5s;
}

.disc {
  position: relative;
  width: 172px; height: 172px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(214, 161, 110, 0.14);
  border: 1.5px solid rgba(214, 161, 110, 0.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

/* A triangle drawn out of borders, the way the app draws it out of a polygon. */
.icon-play {
  width: 0; height: 0;
  margin-left: 10px;
  border-style: solid;
  border-width: 29px 0 29px 48px;
  border-color: transparent transparent transparent var(--accent);
}
.icon-pause { display: none; gap: 14px; }
.icon-pause i { width: 13px; height: 52px; border-radius: 4px; background: var(--accent); }

.phone.is-playing .icon-play { display: none; }
.phone.is-playing .icon-pause { display: flex; }

/*
 * The random button: a five-pip die in a circle, as on the home screen. It
 * spelled out "Surprise me" once; the die says the same thing in no language
 * at all, which is why the app changed to it.
 */
.die {
  position: relative;
  width: 52px; height: 52px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
/* The die's face: the same 19-of-24 rounded square Die.tsx strokes. */
.die::before {
  content: "";
  position: absolute;
  top: 13px; left: 13px;
  width: 26px; height: 26px;
  border: 1.4px solid var(--accent);
  border-radius: 6px;
}
.die i {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.die i:nth-child(1) { top: 19.7px; left: 19.7px; }
.die i:nth-child(2) { top: 19.7px; left: 28.3px; }
.die i:nth-child(3) { top: 24px;   left: 24px; }
.die i:nth-child(4) { top: 28.3px; left: 19.7px; }
.die i:nth-child(5) { top: 28.3px; left: 28.3px; }

.phone-bottom { display: flex; flex-direction: column; gap: 26px; }

.volume { display: flex; align-items: center; gap: 16px; }
.volume .speaker {
  width: 26px; height: 12px; border-radius: 2px;
  background: rgba(238, 232, 224, 0.28);
}
.volume .bed {
  position: relative;
  flex: 1; height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.09);
}
.volume .fill {
  position: absolute; inset: 0 58% 0 0;
  border-radius: var(--radius-pill);
  background: rgba(214, 161, 110, 0.75);
}
.volume .knob {
  position: absolute; top: 50%; left: 42%;
  width: 30px; height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
.volume .num {
  width: 40px; text-align: right;
  font-family: var(--mono); font-size: 13px;
  color: var(--text-soft);
}

.timer-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 22px;
  border-radius: var(--radius-card);
  background: var(--card);
  font-size: 16px;
  color: var(--text-mid);
}
.timer-row .count { font-family: var(--mono); font-size: 15px; color: var(--accent); }

@keyframes breathe {
  0%, 100% { transform: scale(0.97); opacity: 0.5; }
  50%      { transform: scale(1.05); opacity: 0.9; }
}

@keyframes breathe-slow {
  0%, 100% { transform: scale(0.98); }
  50%      { transform: scale(1.03); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

/* -------------------------------------------------------------- section -- */

.page section {
  padding: 64px 0;
  border-top: 1px solid var(--hairline-faint);
}

.eyebrow.accent { color: var(--accent); font-size: 13px; }

.section-title {
  font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em;
  color: var(--text);
  margin: 16px 0 10px;
  max-width: 30ch;
  text-wrap: pretty;
}

.section-lede {
  font-size: 17px; line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 34px;
  max-width: 64ch;
  text-wrap: pretty;
}

/* ----------------------------------------------------------- sound grid -- */

.sounds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr));
  gap: 10px;
  padding: 0; margin: 0;
  list-style: none;
}

.sound .face {
  position: relative;
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--hairline-ghost);
  border-radius: var(--radius-row);
  background: var(--card);
  font: inherit;
  color: inherit;
  text-align: left;
  transition: background 300ms var(--ease), border-color 300ms var(--ease),
    transform 300ms var(--ease);
}

.sound.is-playable .face { cursor: pointer; }
.sound.is-playable .face:hover { background: var(--card-lift); transform: translateY(-2px); }
.sound.is-playable .face:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sound.is-playing .face { border-color: rgba(214, 161, 110, 0.45); }

.sound .row { display: flex; align-items: center; gap: 13px; }

.sound .glyph {
  flex: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.sound .mark { width: 13px; height: 13px; }

.sound .text { flex: 1; min-width: 0; }
.sound .name { display: block; font-size: 16.5px; color: var(--text-strong); }
.sound .desc { display: block; margin-top: 1px; font-size: 13.5px; color: rgba(238, 232, 224, 0.44); }

.sound .tag {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(238, 232, 224, 0.28);
}
/*
 * The tag is lifted out of the row's flow. "Playing" is a longer word than
 * "play" in every language here, and in the row it would push the description
 * onto a second line the moment you tapped - so it sits in the corner instead,
 * against the one line it can share, and the card never reflows.
 */
.sound:not(.is-playable) .tag { display: none; }
.sound.is-playable .tag {
  position: absolute;
  top: 16px; right: 18px; height: 34px;
  display: flex; align-items: center;
}
.sound.is-playable .name { padding-right: 62px; }
.sound.is-playing .tag { color: var(--accent); }

/*
 * The waveform under each row. It holds still until the sound is actually
 * playing - fourteen cards of permanently dancing bars would be decoration
 * competing with the one card that means something.
 */
.sound .wave {
  display: flex; align-items: flex-end; gap: 3px;
  height: 22px; margin-top: 12px;
  opacity: 0.05;
  transition: opacity 450ms var(--ease);
}
.sound.is-playable .wave { opacity: 0.13; }
.sound.is-playing .wave { opacity: 0.8; }

.sound .wave i {
  flex: 1;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: bottom;
}
.sound.is-playing .wave i { animation: wave 1.4s ease-in-out infinite; }

.wave i:nth-child(1)  { height: 9px;  animation-delay: -0.42s; }
.wave i:nth-child(2)  { height: 15px; animation-delay: -1.09s; }
.wave i:nth-child(3)  { height: 7px;  animation-delay: -0.18s; }
.wave i:nth-child(4)  { height: 19px; animation-delay: -1.31s; }
.wave i:nth-child(5)  { height: 12px; animation-delay: -0.74s; }
.wave i:nth-child(6)  { height: 21px; animation-delay: -0.05s; }
.wave i:nth-child(7)  { height: 10px; animation-delay: -0.88s; }
.wave i:nth-child(8)  { height: 16px; animation-delay: -0.33s; }
.wave i:nth-child(9)  { height: 8px;  animation-delay: -1.22s; }
.wave i:nth-child(10) { height: 20px; animation-delay: -0.61s; }
.wave i:nth-child(11) { height: 13px; animation-delay: -0.97s; }
.wave i:nth-child(12) { height: 22px; animation-delay: -0.24s; }
.wave i:nth-child(13) { height: 11px; animation-delay: -1.38s; }
.wave i:nth-child(14) { height: 17px; animation-delay: -0.52s; }
.wave i:nth-child(15) { height: 6px;  animation-delay: -1.15s; }
.wave i:nth-child(16) { height: 18px; animation-delay: -0.79s; }
.wave i:nth-child(17) { height: 14px; animation-delay: -0.11s; }
.wave i:nth-child(18) { height: 22px; animation-delay: -1.27s; }
.wave i:nth-child(19) { height: 9px;  animation-delay: -0.66s; }
.wave i:nth-child(20) { height: 16px; animation-delay: -0.29s; }
.wave i:nth-child(21) { height: 12px; animation-delay: -1.02s; }
.wave i:nth-child(22) { height: 20px; animation-delay: -0.47s; }
.wave i:nth-child(23) { height: 7px;  animation-delay: -1.34s; }
.wave i:nth-child(24) { height: 15px; animation-delay: -0.83s; }
.wave i:nth-child(25) { height: 11px; animation-delay: -0.16s; }
.wave i:nth-child(26) { height: 18px; animation-delay: -0.94s; }

/*
 * One mark per sound, in the colour and shape the library screen gives it:
 * round for the body sounds, square-ish for machines, a drop for rain, a
 * breaking curve for the ocean.
 */
.mark-womb      { background: rgba(214, 161, 110, 0.85); border-radius: 50%; }
.mark-heart     { background: rgba(200, 111, 90, 0.8);   border-radius: 50%; }
.mark-shush     { background: rgba(232, 201, 165, 0.75); border-radius: 50%; }
.mark-fan       { background: rgba(238, 232, 224, 0.55); border-radius: 3px; }
.mark-hairdryer { background: rgba(214, 161, 110, 0.6);  border-radius: 3px; }
.mark-vacuum    { background: rgba(150, 110, 80, 0.8);   border-radius: 3px; }
.mark-washer    { background: rgba(238, 232, 224, 0.4);  border-radius: 4px; }
.mark-airplane  { background: rgba(150, 175, 180, 0.55); border-radius: 3px; }
.mark-rain      { background: rgba(150, 175, 180, 0.7);  border-radius: 50% 50% 50% 0; }
.mark-ocean     { background: rgba(140, 165, 175, 0.65); border-radius: 50% 50% 0 50%; }
.mark-stream    { background: rgba(160, 180, 170, 0.6);  border-radius: 50%; }
.mark-white     { background: rgba(238, 232, 224, 0.7);  border-radius: 2px; }
.mark-pink      { background: rgba(214, 161, 110, 0.55); border-radius: 2px; }
.mark-brown     { background: rgba(150, 110, 80, 0.75);  border-radius: 2px; }

/* ------------------------------------------------------------ the craft -- */

.craft-cards,
.feature-cards {
  display: grid;
  gap: 12px;
  padding: 0; margin: 0;
  list-style: none;
}

.craft-cards { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.feature-cards { grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr)); margin-top: 30px; }

.craft-cards li,
.feature-cards li {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}

.craft-cards li { padding: 26px 24px; }
.feature-cards li { padding: 24px 22px; }

.craft-cards .index {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-ghost);
}

.craft-cards h3 { margin: 14px 0 9px; font-size: 18px; font-weight: 600; color: var(--text-strong); }
.feature-cards h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--text-strong); }

.craft-cards p,
.feature-cards p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-mid);
  text-wrap: pretty;
}
.craft-cards p { line-height: 1.65; }
.feature-cards p { line-height: 1.6; }

/* -------------------------------------------------------- privacy pitch -- */

.privacy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 44px;
  align-items: center;
}

.privacy .section-title { max-width: 22ch; margin-bottom: 14px; }
.privacy .section-lede { font-size: 16.5px; line-height: 1.7; max-width: 52ch; margin-bottom: 20px; }
.privacy .more { font-size: 16px; font-weight: 600; text-decoration: none; }
.privacy .more:hover { text-decoration: underline; }

.points {
  display: flex; flex-direction: column; gap: 14px;
  margin: 0; padding: 28px 26px;
  list-style: none;
  background: var(--card-lift);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  font-size: 16px;
  color: rgba(238, 232, 224, 0.68);
}
.points li { display: flex; align-items: baseline; gap: 14px; }
.points li::before { content: "—"; color: var(--accent); }

/* -------------------------------------------------------------- closing -- */

.closing { text-align: center; padding: 78px 0 88px; }

/*
 * The mark inside the breathing rings the home screen draws around the play
 * control, so the page and the first screen resolve to the same image.
 */
.closing .mark {
  position: relative;
  width: 200px; height: 200px;
  margin: 0 auto 34px;
  display: grid; place-items: center;
}
.closing .mark img {
  position: relative; z-index: 1;
  width: 104px; height: 104px;
  border-radius: 24px;
  display: block;
}
.closing .mark::before,
.closing .mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 161, 110, 0.22);
  animation: breathe-slow 7s var(--ease) infinite;
}
.closing .mark::before { width: 156px; height: 156px; }
.closing .mark::after {
  width: 200px; height: 200px;
  border-color: rgba(214, 161, 110, 0.1);
  animation-delay: -3.5s;
}

.closing h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 600; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0 auto 16px;
  max-width: 18ch;
  text-wrap: pretty;
}

.closing p {
  font-size: 17px; line-height: 1.6;
  color: rgba(238, 232, 224, 0.55);
  margin: 0 auto;
  max-width: 48ch;
  text-wrap: pretty;
}

.closing .stores { justify-content: center; }
.closing .cta-note { text-align: center; }

/* --------------------------------------------------------------- footer -- */

.site-footer {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding: 30px 0 60px;
  font-size: 15px;
  color: var(--text-muted);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.site-footer .langnote { color: var(--text-ghost); font-size: 13.5px; }
.footer-langs a { color: var(--text-soft); }

/* ------------------------------------------------------- privacy policy -- */

.policy h1 { font-size: 30px; line-height: 1.25; margin: 0 0 6px; }
.policy h2 { font-size: 19px; margin: 40px 0 10px; color: var(--accent); letter-spacing: -0.005em; }
.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 20px; }
.policy li { margin: 6px 0; }
.policy .sub { color: var(--text-muted); margin: 0 0 32px; }

.policy .lede {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 20px;
  margin: 0 0 8px;
}
.policy .lede strong { color: var(--accent); font-weight: 600; }

.policy footer {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--text-muted); font-size: 15px;
}
.policy footer .back { display: block; margin-top: 10px; text-decoration: none; }
.policy footer .back:hover { text-decoration: underline; }

/* --------------------------------------------------------------- reveal -- */

/*
 * Applied by site.js, never from here: a page whose script never runs must
 * still be a page, not a column of invisible sections.
 */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.will-reveal.is-revealed { opacity: 1; transform: none; }

/* --------------------------------------------------------- narrow views -- */

@media (max-width: 1080px) {
  .hero { gap: 40px; }
  :root { --phone: 0.7; }
}

@media (max-width: 900px) {
  .page { padding: 0 22px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    padding: 56px 0 72px;
  }
  .hero .lede { max-width: none; }
  :root { --phone: 0.78; }
}

@media (max-width: 560px) {
  .page section { padding: 52px 0; }
  .store { flex: 1 1 100%; }
  .stats { gap: 26px; }
  :root { --phone: 0.66; }
}

@media (max-width: 400px) {
  :root { --phone: 0.56; }
}

/* ----------------------------------------------------------- deference -- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
