/* Grain landing. Shape rule: interactive = pill, cards = 28px, story canvases and guide images = 10px, photo prints = 3px.
   Light by default; [data-theme="dark"] on <html> switches theme (theme.js). */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(/fonts/Montserrat-400.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(/fonts/Montserrat-500.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(/fonts/Montserrat-700.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url(/fonts/Montserrat-800.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400 800; font-display: swap; src: url(/fonts/Montserrat-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Bebas Neue"; font-display: swap; src: url(/fonts/BebasNeue-Regular.woff2) format("woff2"); }
@font-face { font-family: "Mrs Saint Delafield"; font-display: swap; src: url(/fonts/MrsSaintDelafield-Regular.woff2) format("woff2"); }

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #121212;
  --muted: #5c5c58;
  --line: rgb(18 18 18 / 0.1);
  --cobalt: #1f5bff;
  --cobalt-ink: #1f5bff;
  --mist: #dde8ff;
  --paper: #ece8e0;
  --print: #fdfdfb;
  --shadow: 0 1px 2px rgb(20 24 40 / 0.08), 0 18px 40px -12px rgb(20 24 40 / 0.28);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --beat: 600ms; /* 100 BPM, the app's motion grid */
  --sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --display: "Bebas Neue", "Montserrat", sans-serif;
  --script: "Mrs Saint Delafield", cursive;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #18181a;
  --ink: #f2f2ef;
  --muted: #a6a6a1;
  --line: rgb(242 242 239 / 0.12);
  --cobalt-ink: #8aa8ff;
  --mist: #18213a;
  --paper: #1d1d1f;
  --block: #1c1c1f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 22px 48px -14px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}


*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(72px, 11vw, 140px); }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 46ch; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cobalt-ink); }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px 0 20px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: var(--bg);
  font: 700 0.9375rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms;
}
.btn svg { width: 20px; height: 20px; margin-top: -2px; }
.btn:hover { background: var(--cobalt); color: #fff; }
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 16px 0 14px; font-size: 0.8125rem; }
.btn--sm svg { width: 16px; height: 16px; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.9375rem; text-decoration: none;
}
.link svg { width: 18px; transition: transform 200ms var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
[dir="rtl"] .link svg, [dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .link:hover svg { transform: scaleX(-1) translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.nav__in { height: 68px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.03em; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav__links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 0.875rem; font-weight: 500; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color 160ms; }
.nav__links a:hover { color: var(--ink); }
.theme-toggle {
  flex: none; width: 40px; height: 40px; border-radius: 999px; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 200ms, transform 160ms var(--ease-out);
}
.theme-toggle:hover { background: var(--line); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; transition: opacity 300ms var(--ease-out), transform 400ms var(--ease-out); }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
[data-theme="dark"] .theme-toggle .sun { opacity: 1; transform: none; }
.brand + .theme-toggle { margin-inline-start: auto; }
.nav__in { gap: 16px; }
.nav__links { margin-inline-end: 16px; }
@media (max-width: 767px) { .nav__links { display: none; } }

/* Hero */
.hero { overflow-x: clip; padding-block: clamp(24px, 5vw, 72px) clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: min(720px, calc(100dvh - 68px)); }
.hero__copy { display: grid; gap: 24px; justify-items: start; max-width: 560px; }
.hero h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); line-height: 0.98; letter-spacing: -0.045em; }
.hero__sub { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--muted); max-width: 40ch; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 8px; }

.stage { position: relative; height: clamp(520px, 52vw, 680px); }
.story {
  position: absolute; left: 50%; top: 50%;
  width: clamp(250px, 23vw, 320px); aspect-ratio: 9 / 16;
  translate: -50% -50%;
  border-radius: 10px; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
  z-index: 2;
}
.story video, .story img { width: 100%; height: 100%; object-fit: cover; }
.print {
  position: absolute; width: clamp(130px, 13vw, 180px);
  padding: 9px 9px 30px; background: var(--print); border-radius: 3px;
  box-shadow: var(--shadow);
}
.print img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.print::before { /* masking tape laid across the top edge */
  content: ""; position: absolute; left: 50%; top: -12px; width: 78px; height: 24px;
  translate: -50% 0; rotate: -4deg;
  background: url(/media/tape.webp) center / 100% 100%; opacity: 0.92;
}
.p1 { left: 2%; top: 9%; rotate: -9deg; z-index: 1; }
.p2 { right: 0; top: 4%; rotate: 7deg; z-index: 3; }
.p3 { right: 4%; bottom: 3%; rotate: -5deg; z-index: 3; }
.sticker { position: absolute; z-index: 4; filter: drop-shadow(0 6px 10px rgb(20 24 40 / 0.22)); }
.s-bow { width: 84px; left: calc(50% - 170px); top: 18%; rotate: -14deg; }
.s-ticket { width: 120px; left: 8%; bottom: 10%; rotate: 9deg; }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .stage { height: 560px; }
  .story { width: 250px; }
  .print { width: 120px; }
  .p1 { left: 0; } .p2 { right: -4px; }
  .s-bow { left: calc(50% - 150px); width: 68px; }
  .s-ticket { left: 0; width: 96px; }
  }

/* Entrances: prints skid onto the table, each on a beat */
@media (prefers-reduced-motion: no-preference) {
  .js .enter { opacity: 0; }
  .js.ready .enter { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--beat) / 2); }
  .js.ready .story.enter { animation-name: lift; }
  .js.ready .print.enter, .js.ready .sticker.enter { animation-name: skid; animation-duration: 650ms; }
  .js.ready .print.enter { animation: skid 650ms var(--ease-out) both calc(var(--i) * var(--beat) / 2), drift 7s ease-in-out calc(var(--i) * 0.4s + 2.4s) infinite alternate; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(28px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes skid { 0% { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 60px)) rotate(var(--fr, 8deg)) scale(1.06); } 70% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateY(0) rotate(0); } to { transform: translateY(-6px) rotate(0.8deg); } }

/* Reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Months marquee */
.months { padding-block: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.months__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.marquee { display: flex; width: max-content; font-family: var(--display); font-size: clamp(5rem, 15vw, 13rem); line-height: 0.9; letter-spacing: 0.005em; user-select: none; }
.marquee__track { display: flex; gap: 0.32em; padding-right: 0.32em; }
.marquee span { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 38%, transparent); }
.marquee span.now { color: var(--cobalt); -webkit-text-stroke: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee { animation: slide 48s linear infinite; }
  .months:hover .marquee { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }

/* How it works: sticky phone */
.how__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); }
.how__phone { position: sticky; top: 108px; align-self: start; justify-self: center; }
.phone {
  position: relative; width: clamp(260px, 25vw, 330px); aspect-ratio: 1320 / 2868;
  border-radius: 52px; padding: 11px; background: #111;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #2a2a2c;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #000; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.phone__screen img.on { opacity: 1; transform: none; }
.how__steps { display: grid; gap: 0; }
.how__intro { padding-bottom: 24px; display: grid; gap: 18px; }
.step { min-height: min(62vh, 560px); display: grid; align-content: center; gap: 16px; padding-block: 32px; }
.step__icon { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--mist); color: var(--cobalt-ink); }
.step__icon svg { width: 24px; height: 24px; }
.step h3 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.step p { color: var(--muted); max-width: 40ch; font-size: 1.0625rem; }
.step__shot { display: none; }
.step { transition: opacity 400ms var(--ease-out); }
.js .how__steps .step:not(.on) { opacity: 0.35; }
@media (max-width: 899px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__phone { display: none; }
  .step { min-height: 0; padding-block: 28px; }
  .js .how__steps .step:not(.on) { opacity: 1; }
  .step__shot { display: block; width: min(280px, 78vw); margin-top: 12px; border-radius: 36px; border: 8px solid #111; box-shadow: var(--shadow); }
}

/* Templates bento */
.bento__head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 16px; }
.cell { border-radius: 28px; overflow: hidden; position: relative; }
.cell--video { grid-column: span 4; grid-row: span 2; display: grid; gap: 14px; align-content: start; }
.cell--video .media { border-radius: 10px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--paper); box-shadow: var(--shadow); }
.cell--video video { width: 100%; height: 100%; object-fit: cover; }
.cell--video figcaption { font-weight: 700; font-size: 0.9375rem; padding-inline: 6px; }
.cell--video figcaption span { color: var(--muted); font-weight: 500; }
.cell--count { grid-column: span 4; background: var(--cobalt); color: #fff; padding: 28px; display: grid; align-content: space-between; gap: 24px; }
.cell--count .big { font-family: var(--display); font-size: clamp(5rem, 9vw, 8rem); line-height: 0.85; }
.cell--count .big small { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; display: block; margin-top: 10px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.kinds li { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.16); font-size: 0.8125rem; font-weight: 600; }
.cell--stickers { grid-column: span 4; background: var(--mist); padding: 28px; min-height: 280px; display: grid; align-content: end; }
.cell--stickers h3 { font-size: 1.5rem; max-width: 12ch; position: relative; z-index: 1; }
.cell--stickers img { position: absolute; width: 92px; filter: drop-shadow(0 6px 10px rgb(20 24 40 / 0.2)); transition: transform 500ms var(--ease-out); }
.cell--stickers:hover img { transform: translateY(-6px) rotate(6deg); }
.cell--stickers .k1 { right: 22px; top: 18px; rotate: 12deg; }
.cell--stickers .k2 { right: 120px; top: 44px; rotate: -10deg; width: 120px; }
.cell--stickers .k3 { right: 30px; top: 132px; rotate: -4deg; width: 76px; }
.cell--stickers .k4 { left: 26px; top: 26px; rotate: -14deg; width: 72px; }
.cell--dump { grid-column: span 12; background: var(--block, #121212); color: #f2f2ef; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 64px); }
.cell--dump h3 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cell--dump p { color: rgb(242 242 239 / 0.68); margin-top: 16px; max-width: 38ch; }
.dumpcard { justify-self: center; width: min(420px, 100%); background: #ece8e0; color: #121212; border-radius: 6px; padding: 18px 18px 22px; rotate: 2deg; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6); }
.cell--dump .dumpcard p { color: #121212; margin: 0; max-width: none; }
.dumpcard__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.dumpcard__grid img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.dumpcard__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.dumpcard__foot .script { font-size: clamp(3rem, 6vw, 4.2rem); }
.dumpcard__meta { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; margin-top: -4px; }
.dumpcard__stamp { width: 62px; height: 62px; border: 2px solid #121212; border-radius: 999px; display: grid; place-content: center; text-align: center; font-weight: 800; font-size: 0.875rem; line-height: 1; flex: none; }
.dumpcard__stamp small { font-size: 0.625rem; font-weight: 600; margin-top: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .js .dumpcard__grid img { opacity: 0; transform: scale(0.9); transition: opacity 500ms var(--ease-out), transform 550ms var(--ease-out); transition-delay: calc(var(--i) * 70ms); }
  .js .dumpcard.in .dumpcard__grid img { opacity: 1; transform: none; }
}
@media (max-width: 899px) {
  .cell--video { grid-column: span 6; }
  .cell--count, .cell--stickers { grid-column: span 6; }
  .cell--dump { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .bento { gap: 12px; }
  .cell--video { grid-column: span 6; grid-row: auto; }
  .cell--count, .cell--stickers, .cell--dump { grid-column: span 12; }
}

/* Promise: no account */
.promise { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.promise .h2 { max-width: 12ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; list-style: none; padding: 0; margin: 0; }
.facts li { display: grid; gap: 10px; }
.facts svg { width: 28px; height: 28px; color: var(--cobalt-ink); }
.facts strong { font-size: 1.0625rem; letter-spacing: -0.01em; }
.facts span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 899px) { .promise { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: 108px; display: grid; gap: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; margin-top: 2px; transition: transform 300ms var(--ease-out); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--cobalt-ink); }
.faq details p { color: var(--muted); padding-block: 0 24px; padding-inline: 0 40px; max-width: 62ch; }
@media (max-width: 899px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* Closing */
.closing { text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: clamp(88px, 12vw, 160px); }
.icons { display: flex; justify-content: center; margin-bottom: 18px; }
.icons img { width: clamp(64px, 8vw, 96px); aspect-ratio: 1; border-radius: 22.5%; box-shadow: var(--shadow); margin-inline: -8px; transition: transform 400ms var(--ease-out); }
.icons img:nth-child(1) { rotate: -12deg; translate: 0 14px; }
.icons img:nth-child(2) { rotate: -6deg; translate: 0 4px; }
.icons img:nth-child(3) { z-index: 1; scale: 1.12; }
.icons img:nth-child(4) { rotate: 6deg; translate: 0 4px; }
.icons img:nth-child(5) { rotate: 12deg; translate: 0 14px; }
.icons:hover img { transform: translateY(-8px); }
.closing h2 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: 0.875rem; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Guides */
.guides { padding-block: clamp(40px, 7vw, 88px) clamp(72px, 10vw, 120px); }
.guides__head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.guides__head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.045em; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; text-decoration: none; margin-bottom: clamp(40px, 6vw, 72px); }
.feature img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 500ms var(--ease-out); }
.feature:hover img { transform: scale(1.015); }
.feature__text { display: grid; gap: 14px; }
.feature__title { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: grid; gap: 10px; align-content: start; text-decoration: none; }
.card img { border-radius: 10px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 6px; transition: transform 500ms var(--ease-out); }
.card:hover img { transform: scale(1.02); }
.card__tag { font-size: 0.75rem; font-weight: 700; color: var(--cobalt-ink); }
.card__title { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.025em; line-height: 1.2; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.card__excerpt { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 899px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .cards { grid-template-columns: 1fr; } }

.guide { max-width: 760px; padding-block: clamp(32px, 6vw, 72px) 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8125rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.guide h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); letter-spacing: -0.045em; }
.guide__meta { color: var(--muted); font-size: 0.875rem; margin: 18px 0 32px; }
.guide__cover { width: 100%; border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 40px; }
.guide__steps { background: var(--mist); border-radius: 10px; padding: 24px 28px; margin-bottom: 40px; }
.guide__steps-title { font-weight: 800; margin-bottom: 8px; }
.guide__steps ol { margin: 0; padding-inline-start: 1.25em; display: grid; gap: 6px; }
.guide-body { font-size: 1.0625rem; line-height: 1.75; }
.guide-body > p, .guide-body li { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.guide-body p + p { margin-top: 18px; }
.guide-body > p:first-child { font-size: 1.1875rem; line-height: 1.65; }
.guide-body strong { color: var(--ink); }
.guide-body a { color: var(--cobalt-ink); text-underline-offset: 3px; }
.guide-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); letter-spacing: -0.03em; margin: 52px 0 16px; }
.guide-body h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin: 28px 0 8px; }
.guide-body ul, .guide-body ol { padding-inline-start: 1.3em; margin: 16px 0; }
.guide-body li + li { margin-top: 8px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9375rem; }
.guide-body th, .guide-body td { text-align: start; padding: 12px 14px; }
.guide-body thead th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.guide-body tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.guide-body .callout { margin: 48px 0; padding: 28px; border-radius: 28px; background: var(--ink); color: var(--bg); display: grid; gap: 12px; justify-items: start; }
.guide-body .callout h3 { margin: 0; font-size: 1.375rem; }
.guide-body .callout p { color: color-mix(in srgb, var(--bg) 72%, transparent); margin: 0; }
.guide-body .callout .btn { background: var(--bg); color: var(--ink); margin-top: 6px; text-decoration: none; }
.guide-body .callout .btn:hover { background: var(--cobalt); color: #fff; }
.guide-shot { margin: 48px auto; width: min(290px, 74%); }
.guide-shot figcaption { color: var(--muted); font-size: 0.8125rem; text-align: center; margin-top: 14px; line-height: 1.5; }
.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 20px 0; }
.months-grid > div { background: var(--surface); box-shadow: 0 0 0 1px var(--line); border-radius: 10px; padding: 16px 18px; }
.months-grid h3 { margin: 0 0 6px; font-size: 1rem; }
.months-grid ul { margin: 0; padding-inline-start: 1.1em; font-size: 0.9375rem; line-height: 1.55; }
.months-grid li + li { margin-top: 4px; }
.guide-body .caption-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-body .caption-list li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 0.9375rem; line-height: 1.4; color: var(--ink); }
.guide__faq { margin-top: 64px; }
.guide__faq h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); margin-bottom: 8px; }
.guide__faq .faq__list { border-top: 1px solid var(--line); }
.guide__faq details { border-bottom: 1px solid var(--line); }
.guide__faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-weight: 700; font-size: 1.0625rem; }
.guide__faq summary::-webkit-details-marker { display: none; }
.guide__faq summary svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 300ms var(--ease-out); }
.guide__faq details[open] summary svg { transform: rotate(45deg); color: var(--cobalt-ink); }
.guide__faq details p { color: var(--muted); padding-block: 0 20px; padding-inline: 0 32px; }
.related { padding-block: 40px clamp(72px, 10vw, 120px); }
.related .h2 { margin-bottom: 32px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Legal and support pages */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc__in { max-width: 680px; }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 12px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-inline-start: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--cobalt-ink); }
.doc strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
.guide-shots { margin: 48px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); justify-content: center; gap: 28px; align-items: start; }
.guide-shots figcaption { grid-column: 1 / -1; color: var(--muted); font-size: 0.8125rem; text-align: center; line-height: 1.5; }
@media (max-width: 479px) { .guide-shots { gap: 14px; } }

/* iPhone frame for guide screenshots and clips: titanium edge, black bezel, side buttons. */
.device {
  position: relative; padding: 3.4%; border-radius: 17% / 7.8%;
  background: #0c0c0d;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 0 0 2.5px #5c5c61, 0 0 0 3.5px #2a2a2d,
    0 2px 3px rgb(20 24 40 / 0.18), 0 30px 60px -20px rgb(20 24 40 / 0.45);
}
.device::before, .device::after { content: ""; position: absolute; width: 3px; background: #4a4a4f; }
.device::before { right: -5.5px; top: 25%; height: 11%; border-radius: 0 3px 3px 0; }
.device::after { left: -5.5px; top: 17%; height: 21%; border-radius: 3px 0 0 3px;
  background: linear-gradient(#4a4a4f 0 22%, transparent 22% 34%, #4a4a4f 34% 64%, transparent 64% 72%, #4a4a4f 72% 100%); }
.device__screen { position: relative; border-radius: 14% / 6.4%; overflow: hidden; aspect-ratio: 1320 / 2868; background: #000; }
.device__screen img, .device__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
:root[data-theme="dark"] .device { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 0 0 2.5px #6e6e74, 0 0 0 3.5px #3a3a3e, 0 30px 60px -20px rgb(0 0 0 / 0.8); }

/* Language switcher */
.langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.langs a { text-decoration: none; color: var(--muted); }
.langs a:hover, .langs a[aria-current] { color: var(--ink); }
.langs a[aria-current] { font-weight: 700; }

/* The marquee always scrolls the same way; Bebas has no glyphs outside Latin, so other scripts use the bold sans. */
[dir="rtl"] .marquee { direction: ltr; }
:lang(ar) .marquee, :lang(hi) .marquee, :lang(ja) .marquee, :lang(ko) .marquee, :lang(zh-Hans) .marquee, :lang(zh-Hant) .marquee, :lang(ru) .marquee { font-family: var(--sans); font-weight: 800; font-size: clamp(3.4rem, 10vw, 8.5rem); letter-spacing: -0.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(hi) h1, :lang(hi) h2, :lang(hi) h3, :lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { letter-spacing: 0; line-height: 1.2; }
:lang(ar) .script, :lang(hi) .script, :lang(ja) .script, :lang(ko) .script, :lang(zh-Hans) .script, :lang(zh-Hant) .script, :lang(ru) .script { font-family: var(--sans); font-weight: 700; font-size: 0.6em; }

/* Header language menu */
.lang { position: relative; flex: none; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--muted);
  transition: background-color 200ms, color 160ms;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--ink); background: var(--line); }
.lang summary svg { width: 18px; height: 18px; flex: none; }
.lang summary svg:last-child { width: 12px; height: 12px; transition: transform 250ms var(--ease-out); }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 20;
  list-style: none; margin: 0; padding: 6px; min-width: 200px; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgb(20 24 40 / 0.3);
  transform-origin: top right;
}
[dir="rtl"] .lang__menu { transform-origin: top left; }
.lang__menu a { display: block; padding: 9px 14px; border-radius: 12px; font-size: 0.9375rem; text-decoration: none; color: var(--ink); }
.lang__menu a:hover { background: var(--line); }
.lang__menu a[aria-current] { color: var(--cobalt-ink); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .lang[open] .lang__menu { animation: lang-in 220ms var(--ease-out); }
}
@keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.nav__in .lang + .theme-toggle { margin-inline-start: 4px; }
.nav__links + .lang { margin-inline-start: -8px; }
@media (max-width: 767px) {
  .nav__links + .lang { margin-inline-start: auto; }
  /* Anchor the menu to the header's edge, not the small globe button, so it stays on screen. */
  .lang { position: static; }
  .lang__menu { inset-inline-end: 16px; top: 62px; }
  .lang .lang__name, .lang summary svg:last-child { display: none; }
  .lang summary { width: 40px; padding: 0; justify-content: center; }
  .nav__in .lang + .theme-toggle { margin-inline-start: 0; }
}

/* Phones: centre the home page's headings, copy and buttons. FAQ answers and guide cards stay left-aligned. */
@media (max-width: 767px) {
  .hero__copy { justify-items: center; text-align: center; margin-inline: auto; }
  .hero__sub, .months__head .lede, .bento__head .lede, .faq__head .lede, .cell--dump p { margin-inline: auto; }
  .hero__ctas { flex-direction: column; justify-content: center; }
  .months__head, .how__intro, .bento__head, .faq__head { text-align: center; justify-items: center; }
  .step { justify-items: center; text-align: center; }
  .cell--count { justify-items: center; text-align: center; }
  .kinds { justify-content: center; }
  .cell--dump > .reveal { text-align: center; }
  .promise > .h2 { text-align: center; margin-inline: auto; }
  .facts li { justify-items: center; text-align: center; }
  #guides-title, #guides-title ~ p { text-align: center; }
}
