/* FLAME Apps: shared styles. Fonts are self-hosted (SIL OFL, see /assets/fonts/). No request leaves this origin. */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-normal-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-normal-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-italic-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Cyrillic, Greek and Vietnamese subsets: only downloaded when a page uses those characters. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-greek.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/fonts/manrope-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-italic-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/assets/fonts/fraunces-normal-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* Size-matched local fallbacks: text keeps its line breaks while the web fonts load (no layout shift).
   Ratios measured against Fraunces 450 and Manrope 500. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 85%; }
@font-face { font-family: "Fraunces Fallback Android"; src: local("Noto Serif"), local("NotoSerif-Regular"); size-adjust: 79%; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 105%; }
@font-face { font-family: "Manrope Fallback Android"; src: local("Roboto"), local("Roboto-Regular"); size-adjust: 106%; }

/* ------------------------------------------------------------------ tokens */
:root {
  --ink: #0E0A1C;
  --ink-2: #181230;
  --ink-3: #251C47;
  --paper: #FFF8EC;
  --paper-2: #FBEFD9;
  --line: rgba(14, 10, 28, 0.12);
  --text: #16121F;
  --muted: #5B5566;
  --on-dark: #F7F2FF;
  --on-dark-muted: #BDB3D6;

  --fire: #FF5B1F;
  --flare: #FF8A3D;
  --ember: #FFC25C;
  --glow: #FFE6AD;
  --night: #3B1F7A;
  --lilac: #E8DDFF;

  --accent: var(--fire);          /* worlds override */
  --accent-text: #C23F0B;         /* accent for text on light grounds (AA contrast) */
  --accent-ink: #FFFFFF;

  --serif: "Fraunces", "Fraunces Fallback", "Fraunces Fallback Android", Georgia, serif;
  --sans: "Manrope", "Manrope Fallback", "Manrope Fallback Android", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.4vw, 4rem);

  --gutter: clamp(18px, 4.5vw, 56px);
  --max: 1200px;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: var(--ember); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.dark { background: var(--ink); color: var(--on-dark); }

/* ------------------------------------------------------------------ type */
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 450;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); font-family: var(--sans); font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; font-variation-settings: normal; }
h1 em, h2 em, .display em { font-style: italic; font-weight: 400; color: var(--accent-text); }
.dark h1 em, .dark h2 em { color: var(--ember); }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 750;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.dark .eyebrow { color: var(--ember); }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 36rem; line-height: 1.55; }
.dark .lede { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.dark .muted { color: var(--on-dark-muted); }
.stack > * + * { margin-top: var(--gap, 18px); }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-header.scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.on-dark .site-header { color: var(--on-dark); }
.on-dark .site-header.scrolled { background: color-mix(in srgb, var(--ink) 78%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.site-header.hide { transform: translateY(-110%); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand b { font-weight: 800; letter-spacing: 0.04em; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: var(--fs-sm); font-weight: 650; padding: 8px 12px; border-radius: 999px; opacity: 0.86; transition: opacity 0.2s, background-color 0.2s; }
.nav a:hover { opacity: 1; background: rgba(127, 110, 160, 0.12); }
.nav a[aria-current="page"] { opacity: 1; }
.menu-btn { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-btn span { top: 21px; }
.menu-btn span::before { left: 0; top: -6px; }
.menu-btn span::after { left: 0; top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  :root { --header-h: 58px; }
  .site-header .bar { gap: 8px; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0; overflow-y: auto;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 2px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--ink); color: var(--on-dark);
    opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav a { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 8vw, 2.4rem); padding: 10px 0; border-radius: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .nav::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: -30%; height: 60%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 91, 31, 0.35), rgba(59, 31, 122, 0.25) 60%, transparent); }
  .menu-open .nav a { opacity: 1; transform: none; }
  .menu-open .nav a:nth-child(2) { transition-delay: 0.04s; }
  .menu-open .nav a:nth-child(3) { transition-delay: 0.08s; }
  .menu-open .nav a:nth-child(4) { transition-delay: 0.12s; }
  .menu-open .nav a:nth-child(5) { transition-delay: 0.16s; }
  .menu-open .nav a:nth-child(6) { transition-delay: 0.2s; }
  .menu-open .site-header { color: var(--on-dark); background: transparent; box-shadow: none; backdrop-filter: none; }
  .menu-open { overflow: hidden; }
  .btn.header-cta { display: none; }
}

/* ------------------------------------------------------------------ buttons + store CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 750; font-size: var(--fs-sm); text-decoration: none; letter-spacing: 0.005em;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 35%, transparent); }
.btn.small { min-height: 40px; padding: 8px 16px; font-size: var(--fs-xs); }
.btn svg { width: 20px; height: 20px; flex: none; }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 32px; }
.play-badge { display: inline-block; border-radius: 12px; transition: transform 0.25s var(--ease), filter 0.25s; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.25)); }
.play-badge { margin: -8px -10px; }
.play-badge img { height: 72px; width: auto; }
@media (max-width: 520px) { .play-badge img { height: 66px; } }
.get-note { flex-basis: 100%; font-size: var(--fs-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dark .get-note { color: var(--on-dark-muted); }
.get-note span { display: inline-flex; align-items: center; gap: 7px; }
.get-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dark .get-note span::before { background: var(--ember); }
.ios-note { display: none; font-weight: 700; }
html.is-ios .ios-note { display: flex; flex-basis: 100%; order: -1; }

/* Desktop: scan with your phone */
.qr { display: none; align-items: center; gap: 12px; padding-block: 8px; padding-inline: 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-xs); font-weight: 650; line-height: 1.35; color: var(--muted); max-width: 280px; }
.dark .qr { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--on-dark-muted); }
.qr img { width: 84px; height: 84px; border-radius: 8px; background: #fff; padding: 4px; }
@media (hover: hover) and (pointer: fine) and (min-width: 1000px) { html:not(.is-mobile) .qr { display: inline-flex; } }

/* Mobile: sticky install bar on app pages */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: none; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 20px; background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--on-dark);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(140%); transition: transform 0.5s var(--ease);
}
.sticky-cta img.icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-cta .t { line-height: 1.2; font-size: var(--fs-xs); min-width: 0; }
.sticky-cta .t b { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta .t span { color: var(--on-dark-muted); }
.sticky-cta .btn { margin-inline-start: auto; min-height: 42px; padding: 8px 18px; white-space: nowrap; flex: none; }
@media (max-width: 880px) { .sticky-cta { display: flex; } }
.sticky-cta.show { transform: none; }

/* ------------------------------------------------------------------ phone mockup */
.phone {
  --w: min(280px, 64vw);
  width: var(--w); aspect-ratio: 9 / 19.5; position: relative; flex: none;
  border-radius: calc(var(--w) * 0.15); padding: calc(var(--w) * 0.035);
  background: linear-gradient(145deg, #2A2438, #0B0912 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(20, 8, 40, 0.55), 0 18px 36px -18px rgba(20, 8, 40, 0.45);
}
.phone::before { content: ""; position: absolute; top: calc(var(--w) * 0.06); left: 50%; width: 26%; height: calc(var(--w) * 0.055); transform: translateX(-50%); border-radius: 99px; background: #05040A; z-index: 2; }
.phone img, .phone .screen { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(var(--w) * 0.12); background: #111; }

/* ------------------------------------------------------------------ reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ features + steps */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.card {
  position: relative; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(40, 20, 80, 0.35); }
.dark .card { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.dark .card p { color: var(--on-dark-muted); }
.card .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); }
.dark .card .ico { color: var(--ember); background: rgba(255, 194, 92, 0.12); }
.card .ico svg { width: 22px; height: 22px; }

.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; }
.section-head .lede { margin-top: 16px; }
.section-head h2 { margin-top: 14px; }

.steps { counter-reset: step; display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0; font-family: var(--serif); font-size: 2.4rem; line-height: 1; font-style: italic; color: var(--accent-text); }
.dark .step::before { color: var(--ember); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: var(--fs-sm); }
.dark .step p { color: var(--on-dark-muted); }

/* ------------------------------------------------------------------ split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 7vw, 110px); }
.split.flip > :first-child { order: 2; }
.split .media { display: grid; place-items: center; }
@media (max-width: 820px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
}

/* ------------------------------------------------------------------ FAQ */
.faq { max-width: 50rem; margin-inline: auto; border-top: 1px solid var(--line); }
.dark .faq { border-color: rgba(255, 255, 255, 0.1); }
.faq details { border-bottom: 1px solid var(--line); }
.dark .faq details { border-color: rgba(255, 255, 255, 0.1); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-4px); transition: transform 0.3s var(--ease); opacity: 0.6; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .a { padding: 0 0 24px; color: var(--muted); max-width: 42rem; }
.dark .faq .a { color: var(--on-dark-muted); }
.faq .a p + p { margin-top: 10px; }

/* ------------------------------------------------------------------ final CTA band */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); }
.final .get { justify-content: center; }
.final .get-note { justify-content: center; }

/* ------------------------------------------------------------------ breadcrumbs */
.crumbs { font-size: var(--fs-xs); font-weight: 650; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li { list-style: none; display: inline-flex; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }
.crumbs ol { display: contents; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 7vw, 88px) 0 calc(36px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 2; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 91, 31, 0.22), rgba(255, 91, 31, 0) 70%); pointer-events: none; }
.site-footer .top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 36px 28px; position: relative; }
.site-footer .brand { color: var(--on-dark); font-size: 1.05rem; }
.site-footer .about { margin-top: 16px; max-width: 22rem; }
.site-footer h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }
.site-footer .bottom { position: relative; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: var(--fs-xs); }
.site-footer .wordmark { position: relative; margin-top: 40px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(4rem, 17vw, 15rem); line-height: 0.8; letter-spacing: -0.04em; color: transparent; background: linear-gradient(180deg, rgba(255, 194, 92, 0.34), rgba(255, 91, 31, 0.02) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .top > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ prose (legal + articles) */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(28px, 4vw, 48px); background: radial-gradient(90% 120% at 85% -20%, rgba(255, 194, 92, 0.35), transparent 60%), radial-gradient(70% 120% at 0% 0%, rgba(232, 221, 255, 0.7), transparent 60%), var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); margin-top: 18px; max-width: 22ch; }
.page-hero .lede { margin-top: 14px; }
.page-hero .meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
a.chip:hover { background: #fff; }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 110px); }
.doc.no-toc { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; font-size: var(--fs-xs); padding-inline-end: 6px; }
.toc > p, .toc summary { font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); line-height: 1.35; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--text); background: rgba(0, 0, 0, 0.035); }
.toc a.active { color: var(--text); border-inline-start-color: var(--accent); background: rgba(255, 91, 31, 0.06); }
.toc .l3 a { padding-inline-start: 22px; }
.toc details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc details summary::-webkit-details-marker { display: none; }
.toc details summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); }
.toc details[open] summary::after { transform: rotate(-135deg); }
@media (min-width: 961px) { .toc details summary { pointer-events: none; } .toc details summary::after { display: none; } }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px var(--line); }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
}

.prose { max-width: 46rem; font-size: clamp(0.975rem, 0.95rem + 0.12vw, 1.03rem); line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 0.9em; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.1em; padding-top: 0.2em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose h4 { font-size: 1rem; margin-top: 1.4em; }
.prose h1 + *, .prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-top: 2em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose li > ul, .prose li > ol { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose li > p { margin-top: 0.4em; }
.prose a { color: #B53C0B; }
.prose strong { font-weight: 750; color: #0F0B18; }
.prose .table-wrap { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.prose img { border-radius: 16px; }

/* ------------------------------------------------------------------ guides */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.guide-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--radius); text-decoration: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.guide-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -30px rgba(40, 20, 80, 0.35); }
.guide-card .kicker { font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.guide-card b { font-family: var(--serif); font-weight: 450; font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; }
.guide-card span:not(.kicker) { color: var(--muted); font-size: var(--fs-sm); }
.guide-card small { color: var(--muted); font-size: var(--fs-xs); font-weight: 650; margin-top: 4px; }
.dark .guide-card, .tone-night .guide-card { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); color: var(--on-dark); }
.dark .guide-card span:not(.kicker), .dark .guide-card small, .tone-night .guide-card span:not(.kicker), .tone-night .guide-card small { color: var(--on-dark-muted); }
.guides-more { margin-top: 20px; font-weight: 750; }
.guides-more a { text-decoration: none; }
.art-meta { margin-top: 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.art-meditation { background: radial-gradient(80% 140% at 90% -30%, rgba(120, 234, 210, 0.45), transparent 60%), radial-gradient(60% 120% at 0% 0%, rgba(185, 196, 255, 0.55), transparent 60%), var(--paper); }
.art-retexta { background: radial-gradient(80% 140% at 90% -30%, rgba(138, 92, 255, 0.28), transparent 60%), radial-gradient(60% 120% at 0% 0%, rgba(34, 211, 245, 0.22), transparent 60%), var(--paper); }
.art-darts { background: radial-gradient(80% 140% at 90% -30%, rgba(239, 83, 80, 0.3), transparent 60%), radial-gradient(60% 120% at 0% 0%, rgba(255, 194, 92, 0.28), transparent 60%), var(--paper); }
.download-block { padding-top: 0; }
.dl-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--ink); color: var(--on-dark); box-shadow: 0 40px 80px -50px rgba(20, 8, 40, 0.8); }
.dl-card .app-icon { width: 84px; height: 84px; border-radius: 22px; }
.dl-card .eyebrow { color: var(--ember); }
.dl-card h2 { margin-top: 10px; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.dl-card .lede { margin-top: 12px; color: var(--on-dark-muted); }
.dl-card .get-note { color: var(--on-dark-muted); }
.dl-card .get-note span::before { background: var(--ember); }
.dl-card .qr { background: rgba(255, 255, 255, 0.06); color: var(--on-dark-muted); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.dl-card .more-link { margin-top: 18px; font-weight: 750; font-size: var(--fs-sm); }

/* App card inside guides: dark, so the eye lands on it. Three per guide: short after the intro, full in the text, large at the end. */
.art-cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 20px; align-items: center;
  margin: 2.4em 0 !important; padding: clamp(20px, 3vw, 30px); border-radius: 26px; line-height: 1.35; color: var(--on-dark);
  background: radial-gradient(120% 150% at 100% 0%, var(--art-glow, #5A3FB8) 0%, transparent 58%), var(--ink);
  box-shadow: 0 30px 60px -36px rgba(20, 8, 40, 0.85);
}
.art-cta--meditation { --art-glow: #5A3FB8; }
.art-cta--retexta { --art-glow: #1B7F95; }
.art-cta--darts { --art-glow: #B8441A; }
.art-cta .app-icon { width: 64px; height: 64px; border-radius: 16px; }
.art-cta .kick { margin: 0; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); }
.art-cta .t { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.15; color: #fff; }
.art-cta .d { margin: 8px 0 0; font-size: var(--fs-sm); color: #E4DEF6; }
.art-cta ul { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: var(--fs-sm); color: #F4F0FF; }
.art-cta li { position: relative; margin: 0; padding-inline-start: 28px; }
.art-cta li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.12em; width: 18px; height: 18px; border-radius: 50%; background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%230E0A1C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.art-cta .get { grid-column: 1 / -1; margin-top: 6px; }
.art-cta .get-note { color: #E4DEF6; }
.art-cta .get-note span::before { background: var(--ember); }
.art-cta .ios-note { display: none; }
.art-cta .play-badge img { border-radius: 0; height: 72px; }
.art-cta--top .play-badge { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) {
  .art-cta--top { grid-template-columns: auto minmax(0, 1fr) auto; }
  .art-cta--top .play-badge { grid-column: auto; justify-self: end; }
}

.dl-card .more-link a { text-decoration: none; color: var(--glow); }
@media (max-width: 620px) { .dl-card { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ misc */
.noise::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45); }

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

/* ------------------------------------------------------------------ language menu */
.lang-menu { position: relative; margin-inline-start: 6px; }
.lang-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; opacity: 0.86; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: opacity 0.2s, background-color 0.2s; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary svg { width: 16px; height: 16px; flex: none; }
.lang-menu > summary:hover, .lang-menu[open] > summary { opacity: 1; background: rgba(127, 110, 160, 0.12); }
.lang-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 60; margin: 0; padding: 10px; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: min(580px, 92vw); max-height: min(72vh, 540px); overflow: auto;
  background: var(--paper); color: var(--text); border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(14, 10, 28, 0.35), 0 0 0 1px var(--line); }
.nav .lang-menu ul a { display: block; padding: 8px 12px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 600; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .lang-menu ul a:hover { background: rgba(127, 110, 160, 0.12); }
.nav .lang-menu ul a[aria-current] { background: rgba(255, 91, 31, 0.1); color: var(--accent-text); }
@media (max-width: 880px) {
  .lang-menu { margin: 22px 0 0; align-self: flex-start; opacity: 0; transition: opacity 0.5s var(--ease) 0.2s; }
  .menu-open .lang-menu { opacity: 1; }
  .lang-menu > summary { font-size: var(--fs-sm); padding: 9px 16px; }
  .lang-menu ul { position: static; width: auto; max-height: none; margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.06); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
  .nav .lang-menu ul a { font-family: var(--sans); font-size: var(--fs-sm); font-weight: 600; padding: 9px 10px; border-radius: 10px; opacity: 1; transform: none; }
  .nav .lang-menu ul a[aria-current] { color: var(--ember); background: rgba(255, 194, 92, 0.12); }
}

/* the app is not available in the page's language */
.get-note.lang-note { font-weight: 650; }
.legal-note { font-size: var(--fs-lede); color: var(--muted); max-width: 44rem; margin: 0 0 22px; grid-column: 1 / -1; }

/* ------------------------------------------------------------------ callouts in guides */
.prose .admonition { margin: 1.6em 0; padding: 16px 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-inline-start: 4px solid var(--accent); }
.prose .admonition > :last-child { margin-bottom: 0; }
.prose .admonition-title { font-weight: 800; margin: 0 0 6px; }
.prose .admonition.tip { border-inline-start-color: #2E9E6B; }
.prose .admonition.warning { border-inline-start-color: #D08A00; }
.prose .admonition.health { border-inline-start-color: #6C5CE7; background: #F5F2FF; }
.prose .board-fig { max-width: 360px; margin: 1.6em auto; }

/* ------------------------------------------------------------------ scripts other than Latin */
/* No italics or tracking where the script has neither; roomier lines for tall scripts. */
:is(:lang(ar), :lang(fa), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(em, i) { font-style: normal; }
html:is(:lang(ar), :lang(fa), :lang(he), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) * { letter-spacing: 0; }
:is(:lang(ar), :lang(fa), :lang(hi), :lang(th)) :is(h1, h2, h3, .display) { line-height: 1.35; }
:is(:lang(ja), :lang(ko), :lang(zh), :lang(he)) :is(h1, h2, .display) { line-height: 1.25; }
:is(:lang(ar), :lang(fa), :lang(hi), :lang(th)) body { line-height: 1.8; }
:lang(ja), :lang(zh) { line-break: strict; }
:lang(ko) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3, .lede) { word-break: auto-phrase; }

/* templates and before/after examples in guides: wrap like text, readable on phones */
.prose pre { margin: 1.4em 0; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-sm); line-height: 1.6; }
.prose pre code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 1em; background: none; padding: 0; }
.prose :not(pre) > code { font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: rgba(14, 10, 28, 0.06); }
