/* Spoon marketing site.
   Tokens mirror the app's Theme.swift: ink #171717, burnt-orange primary #C2410C,
   per-Space accents, sticky-note palette, penguin blue from the app icon. */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.v1.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.v1.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif.v1.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat.v1.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FBF8F3;
  --paper-2: #F4EFE7;
  --grey: #EEEBE5;
  --card: #FFFFFF;
  --ink: #171717;
  --ink-soft: #404040;
  --muted: #66625C;
  --line: #E5E0D8;
  --night: #15130F;
  --night-2: #1E1B17;
  --night-line: rgba(255,255,255,.12);
  --on-night: #F6F2EC;
  --on-night-muted: #ADA79E;
  --primary: #C2410C;
  --primary-soft: #FED7AA;
  --blue: #2F5DE8;
  --penguin: #3E71FF;
  --scarf: #E5463D;
  --lavender: #D4D8FF;

  /* Space accents (Theme.ModuleAccent) */
  --a-calendar: #E11D48;
  --a-food: #C2410C;
  --a-gallery: #2563EB;
  --a-notes: #CA8A04;
  --a-music: #16A34A;
  --a-movies: #7E22CE;
  --a-games: #0891B2;
  --a-vlogs: #DB2777;

  /* Sticky-note palette (NotePalette) */
  --note-yellow: #FEF3A7; --note-yellow-ink: #4A3A00;
  --note-pink: #FFC8D9;   --note-pink-ink: #561A33;
  --note-blue: #C7E7FF;   --note-blue-ink: #1A3D5C;

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;

  --r-panel: clamp(24px, 3.2vw, 44px);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.8) inset, 0 3px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.05);
  --shadow-note: 0 3px 6px rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.10);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.panel--night :focus-visible, .panel--night2 :focus-visible, .panel--blue :focus-visible, .footer :focus-visible {
  outline-color: #FFD27A;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; }

/* ---------- Type ---------- */
.h2 {
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 560;
}
.h2--xl { font-size: clamp(42px, 7vw, 96px); }
.h2--light { color: var(--on-night); }
.h2 em, .hero__title em, .band__title em, .bold__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  line-height: .9;
  padding-right: .04em;
}
.section-sub { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section-sub a { color: var(--ink); text-underline-offset: 3px; }
.hand { font-family: var(--hand); font-weight: 600; }
.serif-num { font-family: var(--serif); font-weight: 400; }

/* ---------- Buttons ---------- */
.cta-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px;
  transition: transform .25s var(--ease), background .25s;
  min-height: 48px;
}
.cta-pill:hover { transform: translateY(-1px); background: #000; }
.cta-pill--small { font-size: 14px; padding: 9px 16px; min-height: 40px; }
.text-link {
  display: inline-flex; gap: 6px; align-items: center; font-weight: 600;
  text-decoration: none; color: var(--ink); padding: 10px 4px; min-height: 44px;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link--light { color: #fff; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  padding: 14px var(--gutter);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar { transition: transform .45s var(--ease); }
.topbar.is-hidden { transform: translateY(-110%); }
/* The pill is pinned by its closed width (--pill-w, measured by nav.js), not centred in a
   column, so opening it never moves the penguin and the name: the pill only grows to the
   right. On narrow screens the links drop down under it instead (see the 760px query). */
.brand-pill {
  position: absolute; left: 50%; top: 14px; translate: calc(var(--pill-w, 134px) / -2) 0;
  display: inline-flex; align-items: center;
  padding: 5px 6px 5px 6px; border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  font-weight: 650; letter-spacing: -0.01em; white-space: nowrap;
}
.brand-pill__home { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding-right: 2px; border-radius: 999px; }
.brand-pill img { width: 28px; height: 28px; border-radius: 50%; background: var(--lavender); }
.brand-pill__toggle {
  all: unset; box-sizing: border-box; cursor: pointer; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: inherit; opacity: .55;
}
.brand-pill__toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate .35s var(--ease); }
.brand-pill__toggle:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 1px; }
/* The links fold out of the pill's right end: width and opacity only. Closed links are
   hidden, which also takes them out of the tab order. */
.brand-pill__links {
  display: inline-flex; align-items: center; gap: 2px; overflow: hidden;
  max-width: 0; opacity: 0; visibility: hidden;
  transition: max-width .45s var(--ease), opacity .3s var(--ease), visibility 0s linear .45s;
}
.brand-pill__links a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 5px 10px; border-radius: 999px; color: inherit; opacity: .8; }
.brand-pill__links a:hover { opacity: 1; background: rgba(0,0,0,.06); }
.brand-pill__links a:first-child { margin-left: 4px; }
.brand-pill.is-open .brand-pill__links, .brand-pill:focus-within .brand-pill__links {
  max-width: 172px; opacity: 1; visibility: visible;
  transition: max-width .45s var(--ease), opacity .3s var(--ease) .08s, visibility 0s;
}
.brand-pill.is-open .brand-pill__toggle svg, .brand-pill:focus-within .brand-pill__toggle svg { rotate: -90deg; }
@media (hover: hover) {
  .brand-pill:hover .brand-pill__links { max-width: 172px; opacity: 1; visibility: visible; transition: max-width .45s var(--ease), opacity .3s var(--ease) .08s, visibility 0s; }
  .brand-pill:hover .brand-pill__toggle svg { rotate: -90deg; }
}
.topbar.is-dark .brand-pill__links a:hover { background: rgba(255,255,255,.1); }
.topbar .cta-pill { grid-column: 3; justify-self: end; box-shadow: 0 4px 18px rgba(0,0,0,.12); transition: opacity .3s var(--ease), transform .25s var(--ease), background .25s; }
.topbar.is-dark .brand-pill { background: rgba(30,27,23,.72); color: var(--on-night); border-color: rgba(255,255,255,.1); }
/* Narrow screens: a pill growing right would run into the beta button (or off screen), so
   the links open as a small glass pill just below instead; the brand pill keeps its size. */
@media (max-width: 760px) {
  .brand-pill .brand-pill__links {
    position: absolute; left: 50%; top: calc(100% + 8px); max-width: none; overflow: visible;
    padding: 4px; gap: 2px; border-radius: 999px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(0,0,0,.06); box-shadow: 0 8px 24px rgba(0,0,0,.1);
    translate: -50% -6px; scale: .96;
    transition: opacity .25s var(--ease), translate .3s var(--ease), scale .3s var(--ease), visibility 0s linear .3s;
  }
  .brand-pill.is-open .brand-pill__links, .brand-pill:focus-within .brand-pill__links {
    max-width: none; translate: -50% 0; scale: 1;
    transition: opacity .25s var(--ease), translate .3s var(--ease), scale .3s var(--ease), visibility 0s;
  }
  .brand-pill__links a { padding: 8px 14px; }
  .brand-pill__links a:first-child { margin-left: 0; }
  .topbar.is-dark .brand-pill .brand-pill__links { background: rgba(30,27,23,.88); border-color: rgba(255,255,255,.1); }
  .brand-pill.is-open .brand-pill__toggle svg, .brand-pill:focus-within .brand-pill__toggle svg { rotate: 180deg; }
  @media (hover: hover) {
    .brand-pill:hover .brand-pill__toggle svg { rotate: 180deg; }
    .brand-pill:hover .brand-pill__links { max-width: none; translate: -50% 0; scale: 1; transition: opacity .25s var(--ease), translate .3s var(--ease), scale .3s var(--ease), visibility 0s; }
  }
}
.topbar.is-dark .cta-pill { background: #fff; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 150px var(--gutter) 150px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212,216,255,.9), transparent 70%),
    radial-gradient(50% 45% at 85% 100%, rgba(254,215,170,.65), transparent 70%),
    radial-gradient(45% 40% at 8% 90%, rgba(255,200,217,.45), transparent 70%),
    var(--paper);
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero__title {
  font-size: clamp(54px, 11vw, 168px);
  line-height: .92;
  letter-spacing: -0.05em;
  font-weight: 560;
  margin-bottom: 28px;
}
.hero__title em { font-size: 1.1em; color: var(--primary); }
.hero__lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.hero__ctas { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* The floating notes and widgets. Three layers so nothing fights over one transform:
   .scrap is placed by CSS and moved by the scroll parallax (GSAP y), its card child gets
   the intro (GSAP) and a slow idle bob (CSS `translate`), and each card's tilt is the CSS
   `rotate` property. Placement is anchored to the hero's top and bottom edges (not % of
   its height), and the hero's padding reserves those bands, so the scraps never land on
   the title, whatever the viewport height. Desktop flanks the title; tablet and phone
   keep them in a band above and below it. */
.hero__scrap { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.scrap { position: absolute; will-change: transform; }
.scrap--note { left: max(3vw, calc(50% - 650px)); top: 128px; }
.scrap--count { right: max(3vw, calc(50% - 660px)); top: 104px; }
.scrap--score { left: max(2vw, calc(50% - 690px)); top: calc(50% + 24px); }
.scrap--song { left: max(9vw, calc(50% - 560px)); bottom: 80px; }
.scrap--polaroid { right: max(3vw, calc(50% - 680px)); top: calc(50% - 30px); }
.scrap--pink { right: max(14vw, calc(50% - 470px)); bottom: 64px; }
html.js:not(.reduced-motion) .scrap > * { animation: scrap-bob 3.6s ease-in-out infinite alternate; }
html.js:not(.reduced-motion) .scrap:nth-child(2) > * { animation-duration: 4.1s; animation-delay: -1.2s; }
html.js:not(.reduced-motion) .scrap:nth-child(3) > * { animation-duration: 4.6s; animation-delay: -2.1s; }
html.js:not(.reduced-motion) .scrap:nth-child(4) > * { animation-duration: 3.9s; animation-delay: -.6s; }
html.js:not(.reduced-motion) .scrap:nth-child(5) > * { animation-duration: 5s; animation-delay: -2.8s; }
html.js:not(.reduced-motion) .scrap:nth-child(6) > * { animation-duration: 4.3s; animation-delay: -1.7s; }
@keyframes scrap-bob { from { translate: 0 -6px; } to { translate: 0 6px; } }

.mini-note {
  width: 168px; height: 168px; padding: 18px;
  border-radius: 4px; box-shadow: var(--shadow-note);
  rotate: -6deg;
}
.mini-note--yellow { background: var(--note-yellow); color: var(--note-yellow-ink); }
.mini-note--yellow .hand { font-size: 27px; line-height: 1.05; display: block; }
.mini-note--yellow .hand--2 { font-size: 21px; margin-top: 6px; opacity: 0.9; }
.mini-note__doodle { width: 46px; margin-top: 8px; margin-left: auto; display: block; fill: none; stroke: var(--note-yellow-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini-note--pink { background: var(--note-pink); width: 128px; height: 128px; rotate: 7deg; display: grid; place-items: center; }
.mini-note__heart { width: 78px; fill: none; stroke: var(--note-pink-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.sticker {
  position: absolute; font-size: 28px; line-height: 1;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: #fff; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.sticker--tr { right: -14px; top: -12px; transform: rotate(14deg); }

.mini-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.92);
  border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255,255,255,.9);
  font-size: 14px; line-height: 1.25;
}
.mini-card strong { display: block; font-weight: 650; }
.mini-card small { display: block; color: var(--muted); font-size: 12.5px; }
.mini-count { rotate: 3deg; padding-right: 22px; }
.mini-count__n { display: grid; justify-items: center; min-width: 50px; }
.mini-count b { font-size: 46px; line-height: .9; color: var(--primary); }
.mini-count__n small { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mini-count__t { display: grid; gap: 1px; line-height: 1.15; }
.mini-count__t strong { font-size: 19px; }
.mini-count__lead { color: var(--ink-soft); font-size: 12px; }
.mini-count__date { color: var(--ink-soft); font-size: 11.5px; }
.mini-score { rotate: -4deg; }
.mini-poster {
  width: 44px; height: 62px; border-radius: 6px; flex: none;
  display: grid; place-items: end start; padding: 5px;
  font-size: 8.5px; font-weight: 700; line-height: 1.05; color: #fff; text-transform: uppercase; letter-spacing: .04em;
}
.mini-poster--plum { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)), url(/assets/img/photos/film-past-lives.webp) center / cover; }
.mini-song { rotate: -2deg; }
.mini-art { width: 44px; height: 44px; border-radius: 8px; flex: none; background: url(/assets/img/covers/pink-moon.webp) center / cover; }
.eq { display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; margin-left: 6px; }
.eq i { width: 3px; background: var(--a-music); border-radius: 2px; height: 40%; }
.eq i:nth-child(2) { height: 100%; } .eq i:nth-child(3) { height: 65%; }
html.js:not(.reduced-motion) .eq i { animation: eq 1.1s ease-in-out infinite alternate; }
html.js:not(.reduced-motion) .eq i:nth-child(2) { animation-delay: -.4s; }
html.js:not(.reduced-motion) .eq i:nth-child(3) { animation-delay: -.8s; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

.polaroid {
  margin: 0; background: #FCFBF7; padding: 10px 10px 8px; border-radius: 3px;
  box-shadow: var(--shadow-note); rotate: 5deg; width: 150px;
}
.scene--park { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border-radius: 1px; }
.polaroid figcaption { font-size: 20px; text-align: center; color: var(--ink-soft); margin-top: 4px; }

.hero, .panel, .band, .footer { isolation: isolate; }

/* ---------- Panels: rounded tops that slide over the previous section ---------- */
.panel {
  position: relative;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  margin-top: calc(var(--r-panel) * -1);
  padding-block: clamp(96px, 13vw, 180px);
}
.panel--paper { background: var(--paper); }
.panel--grey { background: var(--grey); }
.panel--night { background: var(--night); color: var(--on-night); }
.panel--night2 { background: var(--night-2); color: var(--on-night); }
.panel--blue { background: var(--blue); color: #fff; }

.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head--center { text-align: center; margin-inline: auto; }

/* ---------- Statement ---------- */
.statement { box-shadow: 0 -20px 60px rgba(0,0,0,.05); }
.statement__text {
  font-size: clamp(28px, 3.7vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
}
html.js:not(.reduced-motion) .statement__text .w { opacity: .18; transition: none; }

/* ---------- Band: choose your Spaces ---------- */
.band {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  margin-top: calc(var(--r-panel) * -1);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(212,216,255,.85), transparent 70%),
    linear-gradient(180deg, #F6F1FF 0%, #FFF4EA 100%);
  display: flex; align-items: center;
  padding: clamp(110px, 11vw, 160px) 0;
}
.band__sky { position: absolute; inset: -10% 0; pointer-events: none; }
/* Soft colour fields in the Spaces' accents, drifting at different speeds. */
.blob { position: absolute; border-radius: 50%; will-change: transform; opacity: .5; }
.blob--calendar { width: 30vw; height: 30vw; left: 30%; top: 4%; background: radial-gradient(closest-side, rgba(225,29,72,.20), transparent); }
.blob--games { width: 38vw; height: 38vw; right: -10vw; top: 52%; background: radial-gradient(closest-side, rgba(8,145,178,.26), transparent); }
.blob--music { width: 22vw; height: 22vw; left: 8%; top: 10%; background: radial-gradient(closest-side, rgba(22,163,74,.20), transparent); }
.band__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.band__copy { color: var(--ink); max-width: 600px; }
.band__title { font-size: clamp(36px, 5vw, 70px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 560; margin-bottom: 22px; }
.band__title em { color: var(--primary); white-space: nowrap; }

/* The spaces picker: switches and presets on the left; the phone's Home feed and tab bar
   follow them (assets/js/spaces.js). */
.sp-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-ico .f { fill: currentColor; stroke: none; }
.sp-food { --c: var(--a-food); } .sp-calendar { --c: var(--a-calendar); } .sp-gallery { --c: var(--a-gallery); }
.sp-movies { --c: var(--a-movies); } .sp-music { --c: var(--a-music); } .sp-games { --c: var(--a-games); } .sp-vlogs { --c: var(--a-vlogs); }
.hw-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; }
.hw-presets__label { flex-basis: 100%; font-size: 14px; font-weight: 600; color: var(--muted); }
.hw-chip { all: unset; box-sizing: border-box; cursor: pointer; font-size: 14px; font-weight: 650; padding: 8px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.06), inset 0 0 0 1px #E8E2DA; transition: box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.hw-chip:hover { box-shadow: 0 4px 10px rgba(0,0,0,.08), inset 0 0 0 1px var(--ink); }
.hw-chip:active { transform: scale(.97); }
.hw-chip:focus-visible, .hw-switch:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 2px; }
.hw-switches { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 480px; }
.hw-switch { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 9px; border-radius: 16px; background: rgba(255,255,255,.8); box-shadow: inset 0 0 0 1px #E8E2DA; transition: background .25s, box-shadow .25s; -webkit-tap-highlight-color: transparent; }
.hw-switch:hover { background: #fff; }
.hw-switch[aria-checked="true"] { background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.06), inset 0 0 0 1px #E8E2DA; }
.hw-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.hw-name { flex: 1; font-size: 15px; font-weight: 650; }
.hw-track { flex: none; width: 38px; height: 23px; border-radius: 999px; background: #DDD8D0; position: relative; transition: background .25s var(--ease); }
.hw-track i { position: absolute; left: 2px; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: translate .25s var(--ease); }
.hw-switch[aria-checked="true"] .hw-track { background: var(--c); }
.hw-switch[aria-checked="true"] .hw-track i { translate: 15px 0; }
/* Without JS the presets (and switches) do nothing: hide the presets; the switches still show the default set. */
html.no-js .hw-presets { display: none; }
/* The tab bar: Home + at most four spaces, like the app. Extra spaces live in the drawer,
   hinted by a grabber and a small count chip just above the bar. */
.hw-bar { justify-content: center; gap: 2px; }
.hw-bar .hw-tab { display: none; min-width: 54px; }
.hw-bar .hw-tab.is-on { display: grid; }
.hw-drawer { position: absolute; left: 0; right: 0; bottom: 74px; z-index: 6; display: grid; justify-items: center; gap: 5px; pointer-events: none; }
.hw-drawer[hidden] { display: none; }
.hw-drawer__chip { font-size: 11px; font-weight: 700; color: var(--ink-soft); background: rgba(255,255,255,.92); border-radius: 999px; padding: 4px 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.1); }
.hw-drawer__grab { order: 2; width: 36px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.22); }

/* ---------- One phone for the statement and the Spaces band ----------
   The rail spans both sections; the phone inside it is sticky, so it stays on screen from
   the statement into the band (assets/js/spaces.js switches what it shows). */
.duo { position: relative; }
.duo__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.duo .statement { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.duo .statement > .wrap { width: 100%; }
.duo__rail { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.duo__rail > .wrap { height: 100%; align-items: stretch; }
.duo__col { grid-column: 2; padding: max(72px, calc(50vh - 360px)) 0 32px; }
.duo__sticky { position: sticky; top: max(72px, calc(50vh - 360px)); display: grid; justify-items: center; pointer-events: auto; }
.duo__slot:empty { display: none; }

/* The phone: the app's Home screen. Cream page, floating glass buttons, the new cards. */
.hp { --cream: #F7F4EF; background: var(--cream); margin: 10px; }
/* Short desktop windows shrink the pinned phone. Not on phones: there it isn't pinned, and
   Safari applies `zoom` twice to the container-query card widths (cards ended up ~75% wide). */
@media (min-width: 760px) and (max-height: 820px) { .duo__sticky .hp { zoom: .86; } }
@media (min-width: 760px) and (max-height: 700px) { .duo__sticky .hp { zoom: .74; } }
.hp .ph-status { z-index: 7; }
.hp-top { z-index: 6; }
.hp-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 24px; line-height: 1;
  color: var(--ink); background: rgba(255,255,255,.5);
  backdrop-filter: blur(14px) saturate(1.6); -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 4px 14px rgba(40,30,20,.12);
}
.hp-btn--av { font-size: 14px; font-weight: 700; color: #C2410C; }
.hp-window { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
/* iOS-style scroll edge: content fades under the status bar and the glass buttons. */
.hp-window::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 92px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, #F7F4EF 52px, rgba(247,244,239,.85) 72px, rgba(247,244,239,0)); }
.hp-feed { display: grid; gap: 12px; padding: 98px 12px 96px; will-change: transform; }
/* Feed cards fill the phone's width from the grid itself, never from a computed unit. */
.hp-feed > .fc { width: auto; justify-self: stretch; }
.hp-feed > [hidden] { display: none; }
.hf-new { overflow: hidden; }

/* Notification banner: slides down from the top of the screen. */
.hp-banner {
  position: absolute; left: 8px; right: 8px; top: 46px; z-index: 9;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px;
  background: rgba(252,250,247,.86); color: var(--ink);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.6);
}
.hp-banner img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.hp-banner__text { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.hp-banner__app { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.hp-banner__app time { font-weight: 500; letter-spacing: 0; }
.hp-banner b { font-size: 13px; }
.hp-banner__text > span:last-child { font-size: 12.5px; }
html.js:not(.reduced-motion) .hp-banner { opacity: 0; visibility: hidden; }
html.reduced-motion .hp-banner, html.no-js .hp-banner { display: none; }

/* Feed cards (Hearth ActivityCards, new design): centred text block on the left. */
.fc { position: relative; width: var(--tw); height: 156px; border-radius: 20px; overflow: hidden; color: #fff; box-shadow: 0 5px 14px rgba(40,30,20,.14); flex: none; }
.fc__body { position: absolute; left: 16px; top: 0; bottom: 0; width: 48%; display: flex; flex-direction: column; justify-content: center; gap: 4px; z-index: 2; }
.fc__kick { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .92; white-space: nowrap; }
.fc__kick svg, .fc-fact svg, .fc-player__name svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc__kick svg .f, .fc-player__name svg .f { fill: currentColor; stroke: none; }
.fc__kick--green { color: #86EFAC; opacity: 1; }
.fc__kick--muted { color: #78716C; opacity: 1; letter-spacing: .08em; }
.fc__title { font-family: var(--serif); font-size: 27px; line-height: 1.02; letter-spacing: -0.01em; }
.fc__big { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.fc__sub { font-size: 11.5px; opacity: .92; }
.fc__sub b { font-weight: 650; }
.fc__sub--dim { opacity: .72; }
.fc__score { position: absolute; right: 10px; top: 10px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 800; background: #15803D; box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgba(0,0,0,.25); }

/* Food: the photo fills the right side and fades into the card colour. */
.fc--pasta { background: linear-gradient(135deg, #D9A43A, #8A5A12); }
.fc--sushi { background: linear-gradient(135deg, #B65C5C, #3B1F1F); }
.fc-photo { position: absolute; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }

/* Music: album art on the right. */
.fc--music { background: linear-gradient(135deg, #6B4423, #2A1A0E); }
.fc-cover { position: absolute; right: 10px; top: 10px; width: 136px; height: 136px; border-radius: 12px; object-fit: cover; box-shadow: 0 6px 16px rgba(0,0,0,.35); }

/* Gallery: even halves, prints on the right. */
.fc--gal { background: #DCE3F5; color: var(--ink); }
.fc--gal .fc__kick { color: #1D4ED8; opacity: 1; }
.fc-gal__n { color: #1D4ED8; font-size: 20px; font-weight: 700; line-height: 1; }
.fc-gal__n b { font-size: 50px; font-weight: 800; letter-spacing: -0.03em; margin-right: 4px; }
.fc--gal .fc__sub { color: var(--ink-soft); }
.fc-prints { position: absolute; right: 22px; top: 50%; width: 118px; height: 132px; translate: 0 -50%; }
.fc-print { position: absolute; display: block; width: 96px; padding: 6px 6px 18px; background: #fff; box-shadow: 0 4px 12px rgba(30,40,80,.2); }
.fc-print img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.fc-print--1 { left: -14px; top: 10px; rotate: -10deg; }
.fc-print--2 { right: -12px; top: 6px; rotate: 9deg; }
.fc-print--3 { left: 10px; top: 0; rotate: 1deg; width: 100px; box-shadow: 0 6px 16px rgba(30,40,80,.26); }

/* Watch: a poster-ratio picture on the right, both scores as chips. */
.fc--watch { background: linear-gradient(135deg, #6D28D9, #2E1065); }
.fc-poster { position: absolute; right: 16px; top: 12px; width: 90px; height: 132px; border-radius: 8px; object-fit: cover; rotate: 3deg; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.fc-chips { display: flex; gap: 6px; margin-top: 4px; }
.fc-chips span { display: grid; line-height: 1.05; padding: 4px 9px; border-radius: 10px; background: #fff; color: var(--ink); }
.fc-chips small { font-size: 9px; font-weight: 700; color: var(--muted); }
.fc-chips b { font-size: 17px; font-weight: 800; color: #15803D; }

/* Games */
.fc--sudoku { height: 146px; background: linear-gradient(135deg, #2BA18F, #05555F); }
.fc-sudoku { position: absolute; right: 18px; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: repeat(3, 1fr); width: 104px; aspect-ratio: 1; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.fc-sudoku i { display: grid; place-items: center; font-style: normal; font-size: 18px; font-weight: 750; color: var(--ink); border-right: 1px solid rgba(0,0,0,.12); border-bottom: 1px solid rgba(0,0,0,.12); }
.fc-sudoku i:nth-child(3n) { border-right: 0; } .fc-sudoku i:nth-child(n+7) { border-bottom: 0; }
.fc-sudoku i.g { color: #0E7490; background: #E0F5F9; }
.fc--cross { height: 166px; background: linear-gradient(135deg, #2B8DB3, #0B4A63); }
.fc-cross { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 136px; aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.fc-cross i { position: relative; border-radius: 5px; background: #fff; color: #0B4A63; font-style: normal; font-size: 17px; font-weight: 800; display: grid; place-items: center; }
.fc-cross i.c { background: #CFFAFE; }
.fc-cross small { position: absolute; left: 3px; top: 1px; font-size: 7px; font-weight: 700; opacity: .7; }
.fc--trivia { height: 160px; padding: 14px; background: linear-gradient(135deg, #1D7FC9, #0B3A5E); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.fc-trivia__q { position: absolute; right: -6px; top: -26px; font-family: var(--serif); font-size: 140px; line-height: 1; color: rgba(255,255,255,.08); }
.fc-trivia__head { position: relative; display: flex; align-items: center; justify-content: space-between; }
.fc-trivia__head time { font-size: 11px; font-weight: 600; opacity: .8; }
.fc-trivia__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc-player { height: 92px; padding: 9px 10px; border-radius: 14px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255,255,255,.08); }
.fc-player.is-won { background: rgba(252,211,77,.18); box-shadow: inset 0 0 0 2px #FCD34D; }
.fc-player__name { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; color: rgba(255,255,255,.85); }
.fc-player.is-won .fc-player__name { color: #FDE68A; }
.fc-player__name svg { width: 16px; height: 16px; color: #FCD34D; }
.fc-player b { font-size: 32px; font-weight: 800; line-height: 1; }
.fc-player b small { font-size: 14px; opacity: .7; }
.fc-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.fc-dots i { height: 7px; border-radius: 4px; background: rgba(255,255,255,.22); }
.fc-dots i.w { background: #FCD34D; } .fc-dots i.y { background: #7DD3FC; }

/* Calendar: a tear-off page with the date-type emoji top right; trips get a week strip. */
.fc--date, .fc--trip { background: #fff; color: var(--ink); box-shadow: 0 5px 16px rgba(28,25,23,.08); }
.fc-page { position: absolute; left: 12px; top: 12px; width: 100px; height: 132px; border-radius: 12px; overflow: hidden; background: #FAFAF9; box-shadow: 0 2px 6px rgba(28,25,23,.12); display: flex; flex-direction: column; align-items: center; }
.fc-page__band { width: 100%; height: 28px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; background: #C2410C; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.fc-page__band i { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .85; }
.fc-page b { font-family: var(--serif); font-weight: 400; font-size: 54px; line-height: 1; margin-top: 12px; }
.fc-page small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #57534E; }
.fc-emoji { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; background: #FFEDD5; }
.fc-emoji--blue { position: static; background: #DBEAFE; flex: none; }
.fc-date__body { position: absolute; left: 126px; right: 14px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fc-date__body .fc__title { font-size: 23px; margin-bottom: 4px; padding-right: 30px; }
.fc-fact { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 650; color: #C2410C; }
.fc--trip { height: 138px; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.fc-trip__top { display: flex; align-items: flex-start; gap: 10px; }
.fc-trip__text { flex: 1; display: grid; gap: 1px; }
.fc-trip__text .fc__title { font-size: 23px; }
.fc-trip__when { font-size: 11.5px; font-weight: 650; color: #2563EB; }
.fc-wk { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.fc-wk__d { font-size: 9px; font-weight: 700; color: #A8A29E; text-align: center; }
.fc-wk__n { height: 30px; display: grid; place-items: center; }
.fc-wk__n b { font-size: 13px; font-weight: 600; color: #57534E; }
.fc-wk__n.is-start, .fc-wk__n.is-mid, .fc-wk__n.is-end { background: #2563EB; }
.fc-wk__n.is-start { border-radius: 15px 0 0 15px; } .fc-wk__n.is-end { border-radius: 0 15px 15px 0; }
.fc-wk__n.is-start b, .fc-wk__n.is-mid b, .fc-wk__n.is-end b { color: #fff; font-weight: 800; }

/* Notes */
.fc.t-note { height: 168px; color: var(--note-yellow-ink); box-shadow: 0 5px 14px rgba(120,90,0,.14); }
.fc.t-note .t-note__hand { font-size: 32px; }
.fc.t-note .t-note__hand--2 { top: 66px; font-size: 27px; }
.fc .stk { width: 46px; font-size: 24px; }

/* Vlogs: the clips stay blurred until the unlock time. */
.fc--vlog { height: 150px; background: linear-gradient(135deg, #3B1530, #1C1917); }
.fc-clips { position: absolute; right: 14px; top: 50%; translate: 0 -50%; display: flex; gap: 5px; }
.fc-clips img { width: 40px; aspect-ratio: 9 / 16; height: auto; border-radius: 6px; object-fit: cover; filter: blur(3px) saturate(1.1); opacity: .9; }

/* The tab bar sits on a glass capsule over the cream page. */
.hp .ph-tabs { background: rgba(252,250,247,.72); }

/* Card art: together + private */
.qcard__art--together { gap: 16px; }
.tg-day { display: grid; justify-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-card); width: 108px; text-align: center; }
.tg-day small { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--a-calendar); }
.tg-day b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.tg-day em { font-size: 11.5px; font-weight: 600; color: var(--muted); line-height: 1.2; margin-top: 4px; }
.tg-cross { display: grid; grid-template-columns: repeat(5, 18px); grid-auto-rows: 18px; gap: 2px; padding: 3px; background: var(--ink); border-radius: 6px; rotate: 4deg; }
.tg-cross i { background: #fff; border-radius: 1.5px; font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tg-cross i.y { color: #0E7490; background: #E0F5F9; }
.tg-cross i.c { color: #7E22CE; background: #F3E8FD; }
.tg-cross i.k { background: var(--ink); }
.qcard__art--private { gap: 18px; }
.pv-lock { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(47,93,232,.3); }
.pv-lock svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.pv-lock rect { fill: #fff; }
.pv-list { display: grid; gap: 6px; }
.pv-list span { font-size: 13px; font-weight: 650; background: #fff; border-radius: 999px; padding: 5px 12px 5px 26px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pv-list span::before { content: ""; position: absolute; left: 10px; top: 50%; width: 9px; height: 2px; margin-top: -1px; background: var(--scarf); border-radius: 2px; }

/* ---------- Designed differently ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.qcard {
  background: var(--card); border-radius: 28px; padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  border: 1px solid var(--line);
}
.qcard h3 { font-size: 22px; letter-spacing: -0.02em; margin: 26px 0 8px; }
.qcard p { color: var(--muted); margin: 0; }
.qcard__art {
  height: 170px; border-radius: 18px; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; overflow: hidden;
}
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: #fff; box-shadow: 0 0 0 4px #fff; }
.avatar--you { background: var(--a-games); }
.avatar--them { background: var(--a-movies); }
.pair-link { width: 56px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 11px); opacity: .35; }

/* ---------- Inside (dark, sticky rail) ---------- */
.inside { padding-bottom: clamp(60px, 8vw, 120px); }
.inside__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
/* The rail is a full-viewport-tall sticky box with its content centred in it, so it lines
   up with the scene in the middle of the screen (each scene is centred in its own 82vh,
   and the 9vh padding puts the first and last scenes' centres at mid-viewport too). */
.inside__sticky {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; padding-block: 24px;
}
.inside__lede { color: var(--on-night-muted); font-size: 18px; max-width: 380px; margin-top: 20px; }
.rail-list { margin-top: 40px; border-top: 1px solid var(--night-line); }
.rail-list li { border-bottom: 1px solid var(--night-line); }
.rail-list a {
  display: grid; grid-template-columns: 44px 1fr; align-items: center;
  padding: 14px 0; text-decoration: none;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; font-weight: 550;
  color: #8F897F; transition: color .4s var(--ease);
  position: relative;
}
.rail-list__n { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #8F897F; font-variant-numeric: tabular-nums; }
.rail-list__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.rail-list__bar i { position: absolute; inset: 0; background: var(--on-night); transform: scaleX(0); transform-origin: left; }
.rail-list a.is-active { color: var(--on-night); }
.rail-list a:not(.is-active) .rail-list__bar i { opacity: 0; }
.rail-list a.is-active .rail-list__n { color: #FFD27A; }
.rail-list a:hover { color: #D9D3CA; }

.inside__scenes { display: grid; gap: clamp(80px, 12vh, 160px); padding-block: 9vh; }
@media (min-width: 960px) and (max-height: 780px) {
  .inside__lede { margin-top: 14px; }
  .rail-list { margin-top: 24px; }
  .rail-list a { padding: 9px 0; }
}
.scene { display: grid; justify-items: center; min-height: 82vh; align-content: center; gap: 28px; }
.scene__copy { max-width: 440px; text-align: center; }
.scene__copy h3 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--on-night); }
.scene__copy p { color: var(--on-night-muted); margin: 0; }

.stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 420 / 460;
  border-radius: 34px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  isolation: isolate;
  contain: layout paint;
}

/* Notes vignette */
.stage--notes { background: radial-gradient(80% 60% at 50% 30%, #FFF8E8, var(--paper)); }
.vn-note {
  position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1;
  translate: -50% -50%; rotate: -3deg;
  background: var(--note-yellow); border-radius: 4px; box-shadow: var(--shadow-note);
}
.vn-note__svg { width: 100%; height: 100%; }
.vn-hand { font-family: var(--hand); font-weight: 600; font-size: 38px; fill: var(--note-yellow-ink); }
.vn-hand--sm { font-size: 33px; }
.vn-stroke { fill: none; stroke: var(--note-yellow-ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.vn-stroke--heart { stroke: #D9466A; stroke-width: 3.6; }
.vn-stroke--sun, .vn-stroke--rays { stroke: #E08A00; }
.vn-sticker {
  position: absolute; right: -6%; top: -7%; width: 23%; aspect-ratio: 1;
  display: grid; place-items: center; font-size: clamp(26px, 6vw, 38px);
  background: #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.2);
  rotate: 12deg;
}
.vn-bubbles { position: absolute; left: 50%; top: 66%; width: 0; height: 0; }
.vn-bubbles span {
  position: absolute; left: -26px; top: -26px; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px;
  background: rgba(255,255,255,.94); box-shadow: 0 6px 18px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.04);
  opacity: 0;
}
.vn-finger {
  position: absolute; left: 50%; top: 66%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgba(23,23,23,.18); border: 2px solid rgba(255,255,255,.9); opacity: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.vn-chip {
  position: absolute; left: 50%; top: 8%; translate: -50% 0; white-space: nowrap;
  font-size: 13px; font-weight: 600; background: #fff; border-radius: 999px; padding: 6px 12px 6px 26px;
  box-shadow: var(--shadow-card); color: var(--ink-soft);
}
.vn-chip::before { content: ""; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--a-movies); }

/* ---------- Phone-screen vignettes (Home feed, Calendar) ---------- */
.stage--phone {
  width: min(100%, 344px); aspect-ratio: 344 / 700;
  border-radius: 46px; background: #fff;
  box-shadow: 0 0 0 9px #0B0B0B, 0 0 0 10.5px #3A3632, 0 40px 90px rgba(0,0,0,.55);
  container-type: inline-size;
  --tw: calc(100cqw - 24px);
  margin: 10px;
}
.ph-status { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; z-index: 6; font-size: 14px; }
.ph-status b { font-weight: 650; }
.ph-island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #0B0B0B; }
.ph-sig { display: flex; align-items: flex-end; gap: 2px; }
.ph-sig i { width: 3px; background: var(--ink); border-radius: 1px; }
.ph-sig i:nth-child(1) { height: 4px; } .ph-sig i:nth-child(2) { height: 6px; } .ph-sig i:nth-child(3) { height: 8px; } .ph-sig i:nth-child(4) { height: 10px; }
.ph-sig em { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid var(--a-music); position: relative; }
.ph-sig em::after { content: ""; position: absolute; inset: 1px; background: var(--a-music); border-radius: 1px; }
.ph-top { position: absolute; left: 0; right: 0; top: 46px; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; z-index: 5; }
.ph-av, .ph-plus, .ph-round {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.08); font-weight: 650;
}
.ph-av { color: #C2410C; background: #F6E3DC; font-size: 14px; box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0,0,0,.08); }
.ph-plus { font-size: 24px; font-weight: 400; line-height: 1; }
.ph-round { font-size: 11px; letter-spacing: 1px; }
.ph-tabs {
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 60px; z-index: 6;
  display: flex; justify-content: space-around; align-items: center; padding: 0 6px;
  border-radius: 30px; background: rgba(250,250,250,.86);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.1);
}
.ph-tab { display: grid; justify-items: center; gap: 1px; color: #77726C; padding: 6px 9px; border-radius: 22px; }
.ph-tab small { font-size: 9.5px; font-weight: 600; }
.ph-tab .sp-ico { width: 19px; height: 19px; }
.ph-tab.is-sel { color: var(--ink); background: rgba(0,0,0,.07); }

/* Feed tiles (ActivityCards: widget-style, full width, 22pt corners) */
.hf-new { overflow: hidden; }

.t-note { background: var(--note-yellow); color: var(--note-yellow-ink); border-radius: 22px; }
.t-note__hand { position: absolute; left: 22px; top: 26px; font-family: var(--hand); font-weight: 600; font-size: 34px; line-height: 1; }
.t-note__hand--2 { top: 70px; font-size: 28px; }
.t-note__by { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; opacity: .8; }
.t-note__by i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; background: var(--a-movies); }
.stk { position: absolute; width: 17%; aspect-ratio: 1; display: grid; place-items: center; font-size: 26px; background: #fff; border-radius: 50%; box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.stk--1 { right: 9%; bottom: 9%; rotate: -12deg; }
.stk--2 { left: 7%; bottom: 22%; rotate: -11deg; }

.good { color: #16A34A; }

.hf-bubbles { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 8; }
.hf-bubbles span { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: rgba(255,255,255,.96); box-shadow: 0 6px 18px rgba(0,0,0,.18); opacity: 0; }
.hf-finger {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 9;
  background: rgba(23,23,23,.18); border: 2px solid rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; pointer-events: none;
}

/* Calendar (CalendarMonthView: month grid with filled day circles, multi-day bars, and one
   "Coming up" card whose rows turn on a wheel). Colours are Theme.CalendarKind. */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: 13.5px; font-weight: 650; }
.seg span { position: relative; z-index: 1; padding: 6px 13px; text-align: center; color: #8A857E; transition: color .3s; }
.seg-thumb { position: absolute; left: 4px; top: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: rgba(0,0,0,.08); }
.seg .seg-a { color: var(--ink); }
.k-rest { --k: #C2410C; } .k-act { --k: #0F766E; } .k-home { --k: #A16207; } .k-other { --k: #E11D48; }
.k-trip { --k: #2563EB; } .k-imp { --k: #7E22CE; } .k-rem { --k: #15803D; } .k-surp { --k: #D61F69; }
.cm { position: absolute; left: 0; right: 0; top: 96px; bottom: 76px; padding: 0 12px; color: var(--ink); display: flex; flex-direction: column; }
.cm-head { display: flex; align-items: center; gap: 2px; padding: 0 2px 4px 4px; }
.cm-head b { flex: 1; font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -0.01em; line-height: 1.1; }
.cm-head b span { color: var(--muted); }
.cm-head i { font-style: normal; width: 26px; text-align: center; font-size: 19px; font-weight: 600; }
.cm-gridwrap { position: relative; }
.cm-grid, .cm-bands { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 20px repeat(5, 36px); }
.cm-bands { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cm-grid { position: relative; z-index: 1; }
.cd-wk { font-size: 10px; color: var(--muted); text-align: center; font-weight: 650; letter-spacing: .08em; }
.cd { display: grid; place-items: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cd b { position: relative; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; font-weight: 500; }
.cd.is-out { color: rgba(102,98,92,.45); }
.cd.is-fill b, .cd.on-band b, .cd.is-surprise b, .cd.is-today b { font-weight: 750; }
.cd.is-fill b::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--k); z-index: -1; }
.cd.is-fill b, .cd.on-band b { color: #fff; }
.cd.is-today b { box-shadow: inset 0 0 0 2px var(--ink); }
.cd.is-surprise b { color: var(--k); }
.cd.is-surprise b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--k); }
.cd.is-sel b { outline: 1.5px solid var(--muted); outline-offset: 2.5px; }
.cm-band { grid-row: 6; grid-column: 4 / span 3; align-self: center; height: 29px; margin: 0 calc((100% / 3 - 29px) / 2); border-radius: 15px; background: var(--k); transform-origin: left center; }
.cu {
  flex: 1; min-height: 0; margin-top: 10px; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07), inset 0 0 0 1px #F0ECE6;
}
.cu-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.cu-head b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1; }
.cu-head small { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.cu-head u { text-decoration: none; font-size: 12px; font-weight: 650; color: var(--primary); white-space: nowrap; }
.cu-list { position: relative; flex: 1; min-height: 0; overflow: hidden; perspective: 520px; }
.cu-track { display: grid; will-change: transform; }
.cu-row { display: flex; align-items: stretch; height: 58px; border-top: 1px solid #F0F0F0; transform-origin: center center; backface-visibility: hidden; }
.cu-date { flex: none; width: 50px; display: grid; place-content: center; justify-items: center; line-height: 1.05; background: #FAFAFA; border-right: 1px solid #F0F0F0; }
.cu-date small { font-size: 8.5px; font-weight: 750; letter-spacing: .12em; color: var(--muted); }
.cu-date b { font-size: 17px; font-weight: 750; }
.cu-line { flex: none; width: 4px; margin: 10px 10px 10px 11px; border-radius: 3px; background: var(--k); }
.cu-text { min-width: 0; display: grid; align-content: center; gap: 1px; padding-right: 12px; }
.cu-text b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cu-text small { font-size: 11px; font-weight: 650; color: var(--k); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.js:not(.reduced-motion) .cd.is-surprise b::after { animation: cd-spin 14s linear infinite; }
@keyframes cd-spin { to { rotate: 360deg; } }

/* Food vignette */
.stage--food { background: linear-gradient(180deg, #FFF4EC, var(--paper)); display: grid; place-items: center; }
.vd-card { width: 84%; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow-card); border: 1px solid #F0ECE6; }
.vd-top { display: flex; gap: 12px; align-items: center; }
.vd-top small { display: block; color: var(--muted); font-size: 12.5px; }
.vd-top strong { font-size: 19px; letter-spacing: -0.01em; }
.vd-plate { width: 56px; height: 56px; border-radius: 50%; background: url(/assets/img/photos/tacos.webp) center / cover; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgba(0,0,0,.15); position: relative; flex: none; }
.vd-step { margin-top: 16px; }
.vd-q { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.vd-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-pill { font-size: 13px; font-weight: 600; padding: 7px 11px; border-radius: 999px; background: #F3EFE9; color: var(--ink-soft); }
.vd-pill--liked.is-on { background: var(--a-music); color: #fff; }
.vd-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vd-opt { font-size: 13.5px; font-weight: 600; background: #F7F4EF; border: 1.5px solid transparent; border-radius: 14px; padding: 10px; line-height: 1.2; }
.vd-opt em { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.vd-opt.is-on { border-color: var(--a-food); background: #FFF1E8; }
.vd-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.vd-score { border-radius: 16px; padding: 10px 12px; background: #F7F4EF; display: flex; justify-content: space-between; align-items: center; }
.vd-score small { font-weight: 600; color: var(--muted); }
.vd-score b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.vd-score--you b { color: #0E6F87; }
.vd-score--them { position: relative; }
.vd-score--them .vd-them { color: #6B21A8; }
.vd-score--them .vd-lock { font-family: var(--sans); font-size: 20px; position: absolute; right: 12px; }
html.js:not(.reduced-motion) .vd-them { opacity: 0; }
html.reduced-motion .vd-lock, html.no-js .vd-lock { opacity: 0; }
.vd-hint { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

/* Sudoku vignette */
.stage--games { background: linear-gradient(180deg, #ECFAFD, var(--paper) 45%); display: grid; align-content: center; justify-items: center; gap: 14px; padding: 20px; }
.vg-top { display: flex; justify-content: space-between; width: 86%; align-items: center; font-size: 13px; font-weight: 600; }
.vg-here { display: inline-flex; align-items: center; gap: 6px; background: #fff; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-card); color: #6B21A8; }
.vg-here i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-movies); }
html.js:not(.reduced-motion) .vg-here i { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(126,34,206,.18); } }
.vg-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.vg-count b:first-child { color: #0E6F87; }
.vg-count b:last-child { color: #6B21A8; }
.vg-board {
  width: 86%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(9, 1fr);
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 2px var(--ink), var(--shadow-card);
}
.vg-cell {
  display: grid; place-items: center; font-size: clamp(13px, 3.4vw, 19px); font-weight: 600;
  border-right: 1px solid rgba(23,23,23,.16); border-bottom: 1px solid rgba(23,23,23,.16);
  font-variant-numeric: tabular-nums; position: relative; color: var(--ink);
}
.vg-cell:nth-child(9n) { border-right: 0; }
.vg-cell:nth-child(9n+3), .vg-cell:nth-child(9n+6) { border-right: 2px solid var(--ink); }
.vg-cell:nth-child(n+19):nth-child(-n+27), .vg-cell:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--ink); }
.vg-cell:nth-child(n+73) { border-bottom: 0; }
.vg-cell.you { color: #0E7490; }
.vg-cell.them { color: #7E22CE; }
.vg-cell.cur-you { background: rgba(8,145,178,.30); }
.vg-cell.cur-them { box-shadow: inset 0 0 0 2px #7E22CE; background: rgba(126,34,206,.07); }
.vg-board.is-solved .vg-cell { background: rgba(22,163,74,.12); }
html.js:not(.reduced-motion) .vg-cell.you, html.js:not(.reduced-motion) .vg-cell.them { color: transparent; }
html.js:not(.reduced-motion) .vg-cell.is-in.you { color: #0E7490; }
html.js:not(.reduced-motion) .vg-cell.is-in.them { color: #7E22CE; }
.vg-done { font-size: 13px; font-weight: 700; color: #15803D; background: #DCFCE7; padding: 5px 12px; border-radius: 999px; }
html.js:not(.reduced-motion) .vg-done { opacity: 0; }

/* Vlogs vignette */
.stage--vlogs { background: linear-gradient(180deg, #FFF0F7, var(--paper) 50%); display: grid; align-content: center; gap: 18px; padding: 24px 0; }
.vv-head { padding: 0 24px; display: grid; gap: 6px; justify-items: start; position: relative; }
.vv-head strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.vv-lock { font-size: 13px; font-weight: 600; color: #9D174D; background: #FCE7F3; padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; }
.vv-lock i { font-style: normal; }
.vv-new { position: absolute; right: 24px; top: 0; font-size: 12px; font-weight: 700; color: #fff; background: var(--a-vlogs); border-radius: 999px; padding: 4px 10px; }
html.js:not(.reduced-motion) .vv-new { opacity: 0; }
html.reduced-motion .vv-lock, html.no-js .vv-lock { display: none; }
.vv-film {
  position: relative; background: #1C1917; padding: 20px 0; overflow: hidden;
  rotate: -2deg; margin: 4px -12px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.vv-film::before, .vv-film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 8px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.85) 8px 18px, transparent 18px 26px);
  border-radius: 2px; opacity: .8;
}
.vv-film::before { top: 6px; } .vv-film::after { bottom: 6px; }
.vv-strip { display: flex; gap: 8px; padding: 0 8px; width: max-content; will-change: transform; }
.vv-clip {
  flex: none; width: clamp(84px, 24vw, 104px); aspect-ratio: 9 / 16; border-radius: 6px; position: relative; overflow: hidden;
}
.vv-clip small { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.vv-clip::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); background: rgba(255,255,255,.15); transition: opacity .6s; }
html.reduced-motion .vv-clip::after, html.no-js .vv-clip::after { opacity: 0; }
.vv-clip.is-open::after { opacity: 0; }
.vv-clip--1 { background: url(/assets/img/photos/vlog-coffee.webp) center / cover; }
.vv-clip--2 { background: url(/assets/img/photos/vlog-train.webp) center / cover; }
.vv-clip--3 { background: url(/assets/img/photos/vlog-cooking.webp) center / cover; }
.vv-clip--4 { background: url(/assets/img/photos/vlog-balcony.webp) center / cover; }
.vv-clip--5 { background: url(/assets/img/photos/vlog-tram.webp) center / cover; }
.vv-play { margin: 0 24px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-card); font-size: 13.5px; font-weight: 600; }
.vv-play i { width: 30px; height: 30px; border-radius: 50%; background: var(--a-vlogs); position: relative; flex: none; }
.vv-play i::after { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Product (phones + accordion) ---------- */
.product__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.phones { position: relative; height: clamp(520px, 52vw, 700px); }
.phone {
  position: absolute; margin: 0;
  width: clamp(220px, 21vw, 300px); aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 9px; background: #0B0B0B;
  box-shadow: 0 0 0 1.5px #3A3632, 0 40px 80px rgba(0,0,0,.55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #222; transition: opacity .45s var(--ease); }
.phone img.is-swapping { opacity: 0; }
.phone--front { left: 44%; top: 6%; z-index: 2; }
.phone--back { left: 6%; top: 0; rotate: -6deg; opacity: .92; }
.product__copy .h2 { margin-bottom: 32px; }
.product__widgets { color: var(--on-night-muted); font-size: 15px; margin-top: 28px; max-width: 420px; }
.phones__note { position: absolute; left: 0; right: 0; bottom: -44px; z-index: 3; text-align: center; font-size: 12.5px; color: #8F897F; margin: 0; }

.accordion { border-top: 1px solid var(--line); }
.product .accordion { border-color: var(--night-line); }
.acc-item { border-bottom: 1px solid var(--line); }
.product .acc-item { border-color: var(--night-line); }
.acc-btn {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.015em;
  min-height: 48px;
}
.acc-btn:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.product .acc-btn:focus-visible { outline-color: #FFD27A; }
.acc-icon { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; position: relative; flex: none; opacity: .55; transition: transform .4s var(--ease), opacity .3s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: currentColor; translate: -50% -50%; }
.acc-icon::after { rotate: 90deg; transition: rotate .4s var(--ease); }
.acc-btn[aria-expanded="true"] .acc-icon { opacity: 1; }
.acc-btn[aria-expanded="true"] .acc-icon::after { rotate: 0deg; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
/* Collapsed answers leave the tab order and the accessibility tree (after the close animation). */
.acc-item:not(.is-open) .acc-inner { visibility: hidden; transition: visibility 0s .45s; }
.acc-inner p { padding: 0 48px 24px 0; margin: 0; color: var(--muted); }
.product .acc-inner p { color: var(--on-night-muted); }
.acc-inner a { color: inherit; text-underline-offset: 3px; }
/* Without JS every answer is open. */
html.no-js .acc-panel { grid-template-rows: 1fr; }
html.no-js .acc-inner { visibility: visible; }
html.no-js .acc-icon { display: none; }

/* ---------- Bold colour ---------- */
.bold { overflow: hidden; min-height: 90vh; display: flex; align-items: center; }
.bold__inner { display: grid; justify-items: end; text-align: right; position: relative; z-index: 2; }
.bold__title { font-size: clamp(48px, 9vw, 140px); line-height: .95; letter-spacing: -0.05em; font-weight: 560; max-width: 11ch; }
.bold__title em { color: #FFE08A; }
.bold__copy { max-width: 440px; margin-top: 36px; font-size: 18px; color: #EAF0FF; }
.bold__copy p { margin-bottom: 12px; text-wrap: balance; }
.bold__pal { position: absolute; left: -2%; bottom: -8%; width: clamp(220px, 30vw, 440px); rotate: -8deg; z-index: 1; }
.bold__mascot { display: block; width: 100%; height: auto; opacity: .95; }
/* A pen doodle: "not even this guy", with an arrow down to the penguin. */
.bold__doodle { position: absolute; left: 74%; top: -6%; width: 190px; pointer-events: none; color: #FFE08A; }
.bold__note { display: block; margin-left: 40px; font-family: var(--hand); font-weight: 600; font-size: 30px; line-height: 1; white-space: nowrap; rotate: -6deg; }
.bold__arrow { display: block; width: 120px; height: auto; margin-top: -2px; overflow: visible; }
.bold__arrow path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
html.js:not(.reduced-motion) .bold__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js:not(.reduced-motion) .bold__note { opacity: 0; transition: opacity .5s var(--ease) .75s; }
html.js:not(.reduced-motion) .bold__doodle.is-drawn .bold__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset .8s cubic-bezier(.6,.05,.3,1); }
html.js:not(.reduced-motion) .bold__doodle.is-drawn .bold__arrow path + path { transition-delay: .7s; transition-duration: .3s; }
html.js:not(.reduced-motion) .bold__doodle.is-drawn .bold__note { opacity: 1; }

/* ---------- Widgets reel (HearthWidget: small 2×2, medium 4×2, large 4×4, Lock Screen) ---------- */
.widgets-sec { overflow: hidden; }
.reel { display: grid; gap: 20px; }
.reel__row { display: flex; align-items: center; gap: 20px; width: max-content; padding-inline: var(--gutter); will-change: transform; }
.wd-col > ul { display: grid; gap: 20px; }
.wd {
  --wf: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --ws: ui-serif, "New York", Georgia, serif;
  position: relative; flex: none; overflow: hidden; border-radius: 24px; padding: 16px;
  background: #fff; color: var(--ink); font-family: var(--wf); line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(40,30,20,.10);
}
.wd--s { width: 158px; height: 158px; }
.wd--m { width: 338px; height: 158px; }
.wd--l { width: 338px; height: 354px; }
.wd small { font-size: 12px; }
.wd-serif { font-family: var(--ws); font-weight: 600; letter-spacing: -0.01em; }
.wd-muted { color: var(--muted); }

/* Latest Note */
.wd--note { padding: 14px; }
.wd-note { position: relative; display: block; width: 130px; height: 130px; border-radius: 4px; background: var(--note-yellow); color: var(--note-yellow-ink); box-shadow: 0 3px 6px rgba(0,0,0,.15); padding: 12px; }
.wd-note .hand { display: block; font-size: 21px; line-height: 1; }
.wd-note .hand--2 { font-size: 17px; margin-top: 6px; }
.wd-note__heart { position: absolute; left: 50%; bottom: 14px; width: 34px; margin-left: -17px; fill: none; stroke: #D9466A; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.stk-s { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 17px; box-shadow: 0 2px 5px rgba(0,0,0,.18); rotate: -12deg; }
.wd--m.wd--note { display: flex; gap: 14px; }
.wd-note__side { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wd-note__side > b { font-size: 16px; }
.wd-note__side > small { color: var(--muted); }
.wd-compose { flex: 1; margin-top: 6px; border-radius: 16px; background: rgba(254,215,170,.5); color: var(--primary); display: grid; place-items: center; align-content: center; gap: 4px; }
.wd-compose .sp-ico { width: 22px; height: 22px; stroke-width: 2.2; }
.wd-compose b { font-size: 13px; }

/* Countdown */
.wd--s.wd--count { display: flex; flex-direction: column; gap: 2px; }
.wd-who { font-size: 13px; font-weight: 600; }
.wd-hero { margin-top: auto; display: grid; line-height: .9; color: var(--primary); }
.wd-hero b { font-family: var(--ws); font-weight: 700; font-size: 46px; letter-spacing: -0.02em; }
.wd-hero i { font-style: normal; font-size: 13px; font-weight: 600; opacity: .75; margin-top: 2px; }
.wd--m.wd--count { display: flex; align-items: center; gap: 18px; }
.wd-hero--m { margin: 0; min-width: 96px; }
.wd-hero--m b { font-size: 58px; }
.wd-count__side { display: grid; gap: 4px; }
.wd-count__side b { font-size: 17px; }
.wd-count__side em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--primary); }
.wd-count__side small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Gallery: the photo is the container background, caption on a scrim */
.wd--gal { padding: 0; }
.wd-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wd-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.wd--lock::before, .wd--lock::after { content: ""; position: absolute; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); }
.wd--lock::before { left: 24px; } .wd--lock::after { right: 24px; }

/* Listening to: the app's record player, drawn still */
.rec { position: relative; display: block; }
.rec--s { width: 84px; height: 63px; }
.rec--m { width: 128px; height: 96px; flex: none; }
.rec__plinth { position: absolute; inset: 0; border-radius: 10%; background: linear-gradient(160deg, #F7F5F1, #E8E3DB); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 2px 5px rgba(0,0,0,.12); }
.rec__vinyl { position: absolute; left: 8%; top: 8%; height: 84%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1A1A1A 0 1.5px, #262626 1.5px 3px); box-shadow: 0 2px 5px rgba(0,0,0,.3); display: grid; place-items: center; }
.rec__label { width: 38%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0 8%, transparent 9%), url(/assets/img/covers/pink-moon.webp) center / cover; }
.rec__arm { position: absolute; right: 12%; top: 12%; width: 3px; height: 62%; background: #C7C2BA; border-radius: 2px; transform-origin: top center; rotate: 24deg; }
.rec__arm::before { content: ""; position: absolute; left: -4px; top: -4px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #D6D0C7; }
.wd--s.wd--listen { display: flex; flex-direction: column; }
.wd-wave { position: absolute; right: 14px; top: 14px; color: var(--a-music); }
.wd-wave .sp-ico { width: 15px; height: 15px; stroke-width: 2.6; }
.wd-track { margin-top: auto; display: grid; gap: 1px; }
.wd-track b { font-size: 14px; font-weight: 600; }
.wd-track small { color: var(--muted); }
.wd-track em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--a-music); margin-top: 2px; }
.wd--m.wd--listen { display: flex; align-items: center; gap: 14px; }
.wd-track--m { margin: 0; align-self: flex-start; padding-top: 4px; }
.wd-track--m em { margin: 0 0 3px; }

/* Upcoming Dates */
.wd--s.wd--up { display: flex; flex-direction: column; }
.wd-emoji { font-size: 28px; line-height: 1; }
.wd-up { margin-top: auto; display: grid; gap: 2px; }
.wd-up em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--primary); }
.wd-up b { font-size: 17px; }
.wd-up small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-head { display: block; font-size: 11px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.wd-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.06); }
.wd-row:nth-of-type(1) { border-top: 0; }
.wd--l .wd-row { padding: 10px 0; }
.wd-row em { font-style: normal; font-size: 19px; }
.wd-row > span { display: grid; min-width: 0; flex: 1; }
.wd-row b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-row small { font-size: 11.5px; color: var(--muted); }
.wd-row i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* Lock Screen accessories (vibrant, monochrome on the wallpaper) */
.wd--lock { background: radial-gradient(120% 80% at 30% 0%, #6E93FF, #2F5DE8 55%, #1B2F8F); color: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 26px; text-align: center; }
.lk-inline { font-size: 13px; font-weight: 600; opacity: .9; }
.lk-time { font-family: var(--wf); font-size: 76px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; margin-top: 2px; opacity: .95; }
.lk-date { font-size: 14px; font-weight: 600; opacity: .85; }
.lk-row { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.lk-circ { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; align-content: center; line-height: 1; }
.lk-circ b { font-size: 24px; font-weight: 700; }
.lk-circ small { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; }
.lk-rect { width: 160px; height: 62px; border-radius: 14px; background: rgba(255,255,255,.14); padding: 7px 10px; display: grid; text-align: left; line-height: 1.2; }
.lk-rect b { font-size: 16px; font-weight: 700; }
.lk-rect span { font-size: 13px; font-weight: 500; }
.lk-rect small { font-size: 11.5px; opacity: .7; }

/* Reduced motion / no JS: a still, wrapped grid instead of a moving reel */
html.reduced-motion .reel__row, html.no-js .reel__row { flex-wrap: wrap; justify-content: center; width: auto; }

/* ---------- Statement with the Home feed phone ---------- */
.statement .statement__text { font-size: clamp(28px, 3.2vw, 46px); }

/* ---------- Watch vignette (MoviesView: Watched list, blind rating, Our services) ---------- */
.wv-body { position: absolute; left: 0; right: 0; top: 98px; bottom: 72px; padding: 0 12px; color: var(--ink); overflow: hidden; }
.wv-services { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; margin-bottom: 10px; }
.wv-services small { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; white-space: nowrap; }
.svc { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 4px 9px 4px 5px; border-radius: 999px; background: #F4F1EC; white-space: nowrap; transition: box-shadow .3s, background .3s; }
.svc i { width: 14px; height: 14px; border-radius: 4px; }
.svc-n { background: #E50914; } .svc-m { background: #1C1C1C; } .svc-d { background: #0E2A7A; } .svc-a { background: #000; }
.svc.is-hot { background: #F3E8FD; box-shadow: inset 0 0 0 1.5px var(--a-movies); }
.wv-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 8px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.07), inset 0 0 0 1px #F0ECE6; }
.wv-poster { flex: none; width: 44px; height: 64px; border-radius: 7px; display: grid; place-items: end start; padding: 4px; color: #fff; }
.wv-poster b { font-family: var(--serif); font-weight: 400; font-size: 9.5px; line-height: 1; letter-spacing: .03em; }
.wv-poster--pd { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)), url(/assets/img/photos/film-perfect-days.webp) center / cover; }
.wv-poster--pl { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)), url(/assets/img/photos/film-past-lives.webp) center / cover; }
.wv-poster--bear { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)), url(/assets/img/photos/film-the-bear.webp) center / cover; }
.wv-poster--dune { background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.6)), url(/assets/img/photos/film-dune.webp) center / cover; }
.wv-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.wv-info b { font-family: var(--serif); font-weight: 400; font-size: 17px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-info small { font-size: 11px; color: var(--muted); }
.wv-on { font-style: normal; font-size: 10.5px; font-weight: 650; color: var(--a-movies); }
.wv-scores { display: flex; gap: 5px; }
.sc2 { position: relative; min-width: 42px; padding: 3px 6px; border-radius: 10px; background: #F7F4EF; display: grid; justify-items: center; line-height: 1.05; }
.sc2 small { font-size: 9px; font-weight: 650; color: var(--muted); }
.sc2 b { font-size: 16px; font-weight: 800; font-family: var(--wf, system-ui); }
.stage--watch .good, .wv-you, .wv-them { color: #16A34A; }
.stage--watch .fine { color: #CA8A04; }
.wv-lock { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 14px !important; }
.wv-need { position: absolute; left: 62px; top: -7px; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--a-movies); border-radius: 999px; padding: 2px 7px; }
html.reduced-motion .wv-lock, html.no-js .wv-lock, html.reduced-motion .wv-need, html.no-js .wv-need { display: none; }
.wv-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7; padding: 10px 18px 22px; border-radius: 28px 28px 0 0;
  background: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,.18); display: grid; gap: 10px; justify-items: start; color: var(--ink);
}
html.js:not(.reduced-motion) .wv-sheet { transform: translateY(105%); }
html.reduced-motion .wv-sheet, html.no-js .wv-sheet, html.reduced-motion .wv-toast, html.no-js .wv-toast { display: none; }
.wv-grab { justify-self: center; width: 36px; height: 5px; border-radius: 3px; background: #DDD8D0; }
.wv-q { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.wv-pills { display: flex; gap: 6px; }
.wv-pill { font-size: 12.5px; font-weight: 650; padding: 7px 11px; border-radius: 999px; background: #F3EFE9; color: var(--ink-soft); transition: background .3s, color .3s; }
.wv-pill.is-on { background: #16A34A; color: #fff; }
.wv-score { display: flex; align-items: baseline; gap: 6px; }
.wv-score small { font-size: 12px; font-weight: 650; color: var(--muted); margin-right: 6px; }
.wv-score b { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; color: #16A34A; font-variant-numeric: tabular-nums; }
.wv-score span { font-size: 13px; color: var(--muted); }
.wv-sheet p { font-size: 12px; color: var(--muted); margin: 0; }
.wv-log { justify-self: stretch; text-align: center; font-weight: 650; font-size: 14px; color: #fff; background: var(--ink); border-radius: 999px; padding: 10px; }
.wv-toast {
  position: absolute; left: 50%; top: 98px; z-index: 8; translate: -50% 0; white-space: nowrap; opacity: 0;
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650;
  background: rgba(255,255,255,.97); padding: 7px 14px 7px 7px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.16); color: var(--ink);
}
.wv-toast i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px; color: #fff; background: var(--a-movies); }
.wv-finger {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 9;
  background: rgba(23,23,23,.18); border: 2px solid rgba(255,255,255,.95); box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; pointer-events: none;
}
.seg--watch .seg-thumb { left: auto; right: 4px; }
.seg--watch .seg-a { color: #8A857E; }
.seg--watch .seg-b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .acc-item, .faq .accordion { border-color: #D9D4CC; }

/* ---------- Closing ---------- */
.closing { text-align: center; }
.closing__inner { display: grid; justify-items: center; }
.closing__mascot { width: 96px; height: 96px; margin-bottom: 24px; }
.closing .section-sub { margin: 18px 0 32px; }

/* ---------- Footer ---------- */
.footer {
  position: relative; background: var(--night); color: var(--on-night-muted);
  border-radius: var(--r-panel) var(--r-panel) 0 0; margin-top: calc(var(--r-panel) * -1);
  padding: clamp(64px, 8vw, 110px) 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__word { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(64px, 10vw, 140px); line-height: .85; color: var(--on-night); letter-spacing: -0.02em; }
.footer__brand p { margin-top: 14px; }
.prose em.it { font-style: italic; }
.footer__col h3, .footer__h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8F897F; margin-bottom: 14px; }
.footer__col a { text-decoration: none; color: var(--on-night); display: inline-block; padding: 6px 0; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 64px; padding-top: 22px; font-size: 13.5px; position: relative; }
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--night-line); }
.footer__base p { margin: 0; }

/* ---------- Reveal helpers (only with JS + motion) ---------- */
html.js:not(.reduced-motion) [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ---------- Long-form pages (privacy, support) ---------- */
.doc-hero { padding: 150px 0 70px; background: radial-gradient(60% 80% at 50% 0%, rgba(212,216,255,.7), transparent 70%), var(--paper); }
.doc-hero h1 { font-size: clamp(44px, 7vw, 96px); line-height: .98; letter-spacing: -0.045em; font-weight: 560; }
.doc-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); }
.doc-hero p { color: var(--muted); margin-top: 18px; font-size: 18px; }
.doc { padding-block: 70px 120px; background: var(--card); }
.doc__grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; justify-content: center; }
.doc__toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.doc__toc h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc__toc ol { display: grid; gap: 2px; }
.doc__toc a { text-decoration: none; color: var(--ink-soft); display: block; padding: 5px 0; }
.doc__toc a:hover { color: var(--primary); }
.prose { font-size: 17.5px; line-height: 1.7; color: #2A2A2A; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.15; margin: 64px 0 18px; scroll-margin-top: 100px; color: var(--ink); }
.prose h3 { font-size: 20px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--primary); }
.prose a { color: var(--primary); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .short {
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 26px 30px 12px; margin: 0 0 24px;
}
.prose .short h2 { margin-top: 0; font-size: 22px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 16px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.support-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.contact-card h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 10px; }
.contact-card p { color: var(--muted); }
.contact-card .cta-pill { margin-top: 8px; }

.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.notfound h1 { font-size: clamp(56px, 10vw, 140px); letter-spacing: -0.05em; line-height: .9; font-weight: 560; }
.notfound h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--primary); }
.notfound p { color: var(--muted); font-size: 18px; margin: 20px 0 30px; }
.notfound img { width: 120px; margin: 0 auto 24px; rotate: -8deg; }
.notfound__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 28px; font-size: 15px; }
.notfound__links a { color: var(--muted); text-underline-offset: 3px; padding: 8px 2px; }
.notfound__links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* Tablet: two scraps above the title, two below; the hero reserves both bands. */
  .hero { padding: 270px var(--gutter) 250px; }
  .scrap--score, .scrap--pink { display: none; }
  .scrap--note { left: 5vw; top: 96px; }
  .scrap--note .mini-note { width: 140px; height: 140px; padding: 15px; }
  .scrap--note .hand { font-size: 23px; }
  .scrap--note .mini-note__doodle { width: 38px; margin-top: 4px; }
  .scrap--note .mini-note--yellow .hand--2 { font-size: 17px; margin-top: 3px; }
  .scrap--count { right: 5vw; top: 118px; }
  .scrap--song { left: 6vw; bottom: 84px; }
  .scrap--polaroid { right: 7vw; top: auto; bottom: 56px; }
  .polaroid { width: 132px; }
}
@media (max-width: 959px) {
  .band__grid { grid-template-columns: 1fr; }
  .band { align-items: flex-start; }
  .cards3 { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .inside__grid { grid-template-columns: 1fr; }
  .inside__sticky { position: static; min-height: 0; display: block; padding: 0; }
  .inside__rail nav { display: none; }
  .inside__scenes { gap: 72px; padding-top: 48px; }
  .scene { min-height: 0; }
  .product__grid { grid-template-columns: 1fr; }
  .phones { height: clamp(460px, 110vw, 620px); max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: clamp(190px, 46vw, 260px); }
  .phone--back { left: 4%; }
  .phone--front { left: auto; right: 4%; }
  .faq__grid { grid-template-columns: 1fr; }
  .bold__inner { justify-items: start; text-align: left; }
  .bold__pal { left: auto; right: -4%; bottom: 70px; width: 210px; }
  .bold__mascot { opacity: .9; }
  /* The penguin sits bottom right here: the doodle goes to its left, arrow mirrored. */
  .bold__doodle { left: -62%; top: 2%; width: 170px; }
  .bold__note { margin-left: 0; font-size: 26px; rotate: 4deg; }
  .bold__arrow { width: 96px; margin-left: 64px; margin-top: 2px; scale: -1 1; rotate: -12deg; }
  .bold { min-height: 0; padding-bottom: 330px; }
  .doc__grid { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .support-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
/* The shared phone: two columns down to 760px (smaller phone on tablets); below that one
   column, and spaces.js moves the phone into the band, under its title. */
@media (min-width: 760px) {
  .band--home .band__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .duo .band--home { align-items: center; }
}
@media (min-width: 760px) and (max-width: 1023px) {
  .duo__sticky .hp { zoom: .84; }
  .duo__grid { gap: 28px; }
}
@media (max-width: 759px) {
  .duo__grid { grid-template-columns: 1fr; gap: 0; }
  .duo__spacer { display: none; }
  .duo .statement { min-height: 0; }
  .duo__rail { position: static; }
  .duo__col { grid-column: 1; padding: 0 0 48px; }
  .duo__sticky { position: static; }
  .duo__slot .hp { margin: 4px auto 26px; }
  .hw-switches { max-width: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Phone: everything sits fully on screen, in the bands above and below the title. */
  /* The hero hugs its content on phones (no full-screen height, so no dead bands) and the
     scraps sit in tight bands just above and below the title. */
  .hero { min-height: 0; padding: 212px 16px 200px; }
  .scrap--score, .scrap--pink { display: none; }
  .scrap--polaroid { display: block; right: 18px; top: auto; bottom: 46px; }
  .scrap--polaroid .polaroid { width: 112px; }
  .scrap--polaroid figcaption { font-size: 15px; }
  .scrap--note { left: 18px; top: 84px; }
  .scrap--note .mini-note { width: 104px; height: 104px; padding: 11px; }
  .scrap--note .hand { font-size: 18px; }
  .scrap--note .mini-note__doodle { width: 26px; margin-top: 2px; }
  .scrap--note .mini-note--yellow .hand--2 { font-size: 13px; margin-top: 2px; }
  .scrap--note .sticker { width: 32px; height: 32px; font-size: 18px; right: -10px; top: -10px; }
  .scrap--count { right: 16px; top: 112px; max-width: calc(100% - 160px); }
  .mini-count { padding-right: 14px; }
  .mini-count b { font-size: 34px; }
  .mini-count__n { min-width: 38px; }
  .mini-card { font-size: 12.5px; padding: 9px 12px 9px 9px; gap: 10px; }
  .mini-card small { font-size: 11.5px; }
  .mini-art { width: 36px; height: 36px; }
  .scrap--song { left: 16px; bottom: 74px; max-width: calc(100% - 160px); }
  .mini-note--pink { width: 80px; height: 80px; }
  .mini-note__heart { width: 46px; }
  .qcard { padding: 20px; }
  .stage { border-radius: 28px; }
  .footer__base { flex-direction: column; }
  .doc { padding-block: 40px 80px; }
  .prose .short { padding: 20px 20px 8px; }
}
@media (max-width: 520px) {
  .hw-switches { gap: 6px; }
  .hw-switch { padding: 7px 9px 7px 7px; gap: 8px; }
  .hw-ico { width: 28px; height: 28px; }
  .hw-name { font-size: 14px; }
  .hw-track { width: 34px; height: 21px; }
  .hw-track i { width: 17px; height: 17px; }
  .hw-switch[aria-checked="true"] .hw-track i { translate: 13px 0; }
}
@media (max-width: 400px) {
  .topbar { padding-inline: 12px; }
  .cta-pill--small { padding: 8px 12px; font-size: 13px; }
  .scrap--count { right: 12px; }
  .scrap--note { left: 12px; }
  .mini-count__date { display: none; }
  .scrap--song .eq { display: none; }
}

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

/* ---------- Beta: two steps ---------- */
.beta-steps { max-width: 760px; }
.beta-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.beta-step { position: relative; }
.beta-step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 10px; }
.beta-step h2 { margin-bottom: 6px; }
.beta-step__note { font-size: 14px; color: var(--ink-soft); }
.beta-steps__after { margin-top: 28px; color: var(--ink-soft); }

/* Invite page (/join/<CODE>): the code from the link, big and copyable. */
.join-code { margin-bottom: 24px; text-align: center; }
.join-code[hidden], .join-code__missing[hidden] { display: none; }
.join-code__label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.join-code__value { margin: 8px 0 16px; font-size: clamp(40px, 11vw, 64px); font-weight: 600; letter-spacing: .08em; color: var(--ink) !important; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; overflow-wrap: anywhere; }
.join-code__actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center; }
.join-code__actions .cta-pill { margin-top: 0; border: 0; cursor: pointer; font: inherit; }
.join-code__open { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.join-code__status { min-height: 1.5em; margin-top: 10px; font-size: 14px; }
.join-code__missing { margin-bottom: 24px; color: var(--ink-soft); }
