/* huplito.app - one stylesheet, no framework. The palette is the app's story palette: warm cream
   and gold with a dark warm ink, the plasma violet of the app's primary button for actions. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins_regular.woff2?v=716e11d2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/assets/fonts/poppins_medium.woff2?v=716e11d2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins_semibold.woff2?v=716e11d2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/assets/fonts/nunito_black.woff2?v=716e11d2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/assets/fonts/nunito_black_ext.woff2?v=716e11d2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+01A0-01B0, U+0300-0303, U+0309, U+0323, U+1EA0-1EF9; }

:root {
  --cream: #fff8e8;
  --cream-2: #fff1d2;
  --cream-3: #ffe9b8;
  --paper: #ffffff;
  --ink: #2e1c0a;
  --ink-2: #55381a;
  --muted: #8a7458;
  --hair: #efdfbf;
  --gold: #ffc038;
  --gold-deep: #d9991f;
  --gold-soft: #ffe39a;
  --plasma: #5236d7;
  --plasma-deep: #4428c9;
  --plasma-soft: #ebe6ff;
  --jade: #1fa87c;
  --ember: #e0512f;
  --shadow: 0 10px 30px rgba(85, 56, 26, 0.12);
  --radius: 20px;
  --wrap: 1120px;
  --text: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Nunito", "Poppins", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plasma); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; }
h1, .h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.4em; }
.h3 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.wrap { width: min(var(--wrap), 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ── header ────────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.2rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 9px; }
.brand-name span { color: var(--gold-deep); }
.nav-links { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; align-items: center; font-weight: 500; font-size: 0.95rem; }
.nav-links a { color: var(--ink-2); }
.nav-cta { background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 999px; }
.nav-cta:hover { background: var(--plasma); text-decoration: none; }
.brand-name { white-space: nowrap; }
.nav-short { display: none; }
.nav-links a { white-space: nowrap; }
.nav-cta { white-space: nowrap; }
@media (max-width: 640px) {
  .nav-links { gap: 12px; font-size: 0.85rem; }
  .nav-hide { display: none; }
  .nav-long { display: none; }
  .nav-short { display: inline !important; }
  .brand-name { display: none; }
  .nav-cta { padding: 7px 12px; }
}

/* ── language selector: a <details> of links, so it works without JavaScript ─ */
.nav-lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--hair); font-weight: 600; font-size: 0.8rem; color: var(--ink-2); user-select: none; -webkit-user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--cream-2); }
.flag { display: block; flex: none; width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(46, 28, 10, 0.16); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 12px); z-index: 70; margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(3, max-content); gap: 2px 4px; max-height: min(72vh, 600px); overflow: auto; overscroll-behavior: contain; }
.lang-list a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.lang-list a:hover { background: var(--cream-2); text-decoration: none; }
.lang-list a[aria-current] { background: var(--cream-3); font-weight: 600; }
@media (max-width: 640px) {
  .lang-code { display: none; }
  .lang summary { padding: 6px; }
  .lang-list { position: fixed; left: 10px; right: 10px; top: 70px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); }
  .lang-list a { white-space: normal; }
}

/* ── right-to-left pages (Arabic, Hebrew) ──────────────────────────────────── */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
/* Languages whose letters Poppins lacks read in the system font from end to end, not letter by letter. */
html:lang(vi) { --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* ── buttons ───────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--plasma); color: #fff; box-shadow: 0 8px 24px rgba(82, 54, 215, 0.3); }
.btn-primary:hover { background: var(--plasma-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.text-link { font-weight: 600; }

/* ── bands & cards ─────────────────────────────────────────────────────────── */
.band { padding: 72px 0; }
.band-cream { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.sub { font-size: 1.1rem; max-width: 720px; color: var(--ink-2); margin-bottom: 36px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 600; color: var(--gold-deep); margin-bottom: 14px; }
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 720px; }
.cards { display: grid; gap: 20px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.four { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 26px 24px 18px; box-shadow: var(--shadow); color: var(--ink-2); display: flex; flex-direction: column; }
.card img { height: 110px; width: auto; margin: 0 auto 14px; object-fit: contain; }
.card-tight img { height: 86px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }
.card-link:hover { text-decoration: none; border-color: var(--gold); transform: translateY(-2px); transition: transform 0.15s; }
.card-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); font-weight: 600; margin-bottom: 6px; }

/* ── hero with the phone ───────────────────────────────────────────────────── */
.hero { padding: 40px 0 36px; background: radial-gradient(120% 80% at 70% 0%, var(--cream-3) 0%, var(--cream) 45%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 24px; } .hero-copy { text-align: center; } .hero-copy .lead { margin-left: auto; margin-right: auto; } .hero-proof { justify-content: center; } }
.hero h1 { margin-bottom: 14px; font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.hero .lead { margin-bottom: 20px; }
.hero-proof { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.hero-proof li::before { content: "✓ "; color: var(--jade); font-weight: 700; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badges-hero { margin-top: 6px; }
@media (max-width: 900px) { .badges-hero { justify-content: center; } }
.badge { display: inline-flex; flex-direction: row; align-items: center; gap: 10px; min-width: 176px; height: 56px; padding: 0 18px 0 14px; border-radius: 12px; background: #15110c; color: #fff; line-height: 1.05; border: 1px solid #3a2f22; }
.badge-icon { width: 28px; height: 28px; flex: none; }
.badge-text { display: flex; flex-direction: column; }
.badge:hover { text-decoration: none; background: #000; }
.badge-small { font-size: 0.68rem; opacity: 0.85; letter-spacing: 0.02em; }
.badge-big { font-size: 1.15rem; font-weight: 600; }
/* Before release: a tag on the corner of every store button. The button stays a link. */
.badge, .sticky-bar .btn { position: relative; }
.soon-tag { position: absolute; top: -9px; inset-inline-end: -8px; padding: 3px 7px; border-radius: 999px; background: var(--gold); color: var(--ink); border: 1.5px solid var(--paper); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; white-space: nowrap; pointer-events: none; }

.hero-phone { display: flex; flex-direction: column; align-items: center; }
.hero-phone { transition: opacity 0.5s ease, transform 0.6s ease; }
.hold-phone .hero-phone { opacity: 0; visibility: hidden; transform: translateY(24px); }
.phone { width: min(340px, 100%); aspect-ratio: 9 / 19; background: #15110c; border-radius: 48px; padding: 12px; box-shadow: 0 30px 60px rgba(46, 28, 10, 0.28), inset 0 0 0 2px #3a2f22; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #15110c; border-radius: 999px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--cream); position: relative; container-type: size; }
.phone-caption { font-size: 0.85rem; color: var(--muted); margin-top: 14px; text-align: center; max-width: 340px; }

/* ── the demo inside the phone ─────────────────────────────────────────────── */
.demo { position: absolute; inset: 0; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; background: var(--cream); }
.demo-bar { position: absolute; left: 24px; right: 24px; top: 54px; height: 4px; border-radius: 999px; background: rgba(46, 28, 10, 0.12); z-index: 6; }
.demo-progress { height: 100%; width: 8%; border-radius: 999px; background: var(--gold); transition: width 0.4s ease; }
.tale-stage { position: absolute; inset: 0; cursor: pointer; }
.tale-stage[hidden] { display: none; }
.tale-stage[data-mood="sunburst"], .tale-stage[data-mood="paywall"] { background: radial-gradient(circle at 50% 38%, #fff7e0 0%, #f7cc6b 100%); }
.tale-stage[data-mood="gloom"] { background: linear-gradient(180deg, #ccd4de 0%, #8c99ad 100%); }
.tale-stage[data-mood="dusk"] { background: linear-gradient(180deg, #fae8cc 0%, #dba870 100%); }
.tale-stage[data-mood="triumph"] { background: radial-gradient(circle at 50% 38%, #fff0b8 0%, #eda833 100%); }
.tale-stage[data-mood="levels"] { background: linear-gradient(180deg, #fff5db 0%, #f2c766 100%); }
.tale-stage[data-mood="curious"] { background: linear-gradient(160deg, #fffaed 0%, #fce09e 100%); }
.story-bg, .story-front { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-front { pointer-events: none; }
.story-stage { position: absolute; inset: 0; pointer-events: none; }
.story-pose { position: absolute; left: 50%; top: 0; width: 100px; height: 100px; transform-origin: 50% 100%; will-change: transform, opacity; }
.story-pose svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.story-pose img { position: absolute; inset: 0; width: auto; height: auto; max-width: none; object-fit: contain; }
.story-pose.is-gloom svg, .story-pose.is-gloom img { filter: saturate(0.55); }
.story-glow { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 90, 0.6) 0%, rgba(255, 170, 60, 0) 70%); pointer-events: none; }
.story-text { position: absolute; left: 7%; right: 7%; top: 61%; text-align: center; pointer-events: none; }
.story-headline { position: relative; font-family: var(--text); font-weight: 600; font-size: clamp(17px, 7cqw, 24px); line-height: 1.22; margin: 0 0 10px; color: var(--ink); }
.story-headline .ghost { visibility: hidden; }
.story-headline .typed { position: absolute; inset: 0; }
.story-body { font-size: clamp(12px, 4.1cqw, 15px); line-height: 1.4; color: var(--ink-2); margin: 0; opacity: 0; }
.story-hint { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); z-index: 6; background: rgba(255, 248, 232, 0.85); color: var(--ink); border: 0; border-radius: 999px; padding: 7px 16px; font: 600 12px/1.4 var(--text); cursor: pointer; animation: breathe 2.4s ease-in-out infinite; transition: opacity 0.3s; }
.story-hint[hidden] { display: none; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }
.story-sound { position: absolute; right: 12px; top: 14px; z-index: 6; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 248, 232, 0.85); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(46, 28, 10, 0.15); }
.story-sound .wave { opacity: 0.25; }
.story-sound[aria-pressed="true"] .wave { opacity: 1; }
.story-sound[aria-pressed="true"] { background: var(--gold); }
.demo-noscript { position: absolute; inset: 0; z-index: 8; background: var(--cream); padding: 60px 20px; text-align: center; }
.demo-noscript img { height: 150px; width: auto; margin: 0 auto 12px; }

.demo-panel { position: absolute; inset: 0; overflow-y: auto; padding: 72px 16px 20px; background: linear-gradient(180deg, #fffaf0 0%, #fff 100%); }
.demo-panel[hidden] { display: none; }
.q { display: flex; flex-direction: column; align-items: center; text-align: center; }
.q-pose { height: 96px; width: auto; margin-bottom: 8px; }
.q-pose-small { height: 72px; }
.q-title { font-family: var(--text); font-weight: 600; font-size: clamp(15px, 5.6cqw, 19px); line-height: 1.25; margin: 0 0 6px; color: var(--ink); }
.q-sub { font-size: clamp(11px, 3.6cqw, 13px); color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.q-options { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.q-opt { width: 100%; text-align: start; padding: 10px 14px; border-radius: 14px; border: 1.5px solid #e7e2f7; background: #f8f8fd; color: var(--ink); font: 500 clamp(12px, 4cqw, 14px)/1.3 var(--text); cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.q-opt small { display: block; font-size: 0.8em; color: var(--muted); font-weight: 400; margin-top: 2px; }
.q-opt.is-on { background: var(--plasma); border-color: var(--plasma); color: #fff; }
.q-opt.is-on small { color: #e8e3ff; }
.q-next { margin-top: 12px; width: 100%; padding: 12px; font-size: 0.95rem; }
.q-next[disabled] { opacity: 0.45; cursor: default; }
.build-steps { list-style: none; padding: 0; margin: 10px 0 0; width: 100%; text-align: start; font: 600 11px/1.3 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.build-steps li { padding: 8px 0 8px 28px; border-top: 1px solid var(--hair); position: relative; transition: color 0.3s; }
.build-steps li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 9px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hair); transition: background 0.3s, border-color 0.3s; }
.build-steps li.is-done { color: var(--ink); }
.build-steps li.is-done::before { background: var(--jade); border-color: var(--jade); }
.plan-days { display: flex; gap: 6px; margin: 4px 0 10px; }
.plan-days span { padding: 5px 12px; border-radius: 999px; background: #eeeaff; color: var(--plasma); font: 600 11px/1.3 var(--text); }
.plan-days span.is-on { background: var(--plasma); color: #fff; }
.plan-list { list-style: none; padding: 0; margin: 0 0 10px; width: 100%; text-align: start; }
.plan-list li { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--hair); margin-bottom: 6px; font-size: clamp(11px, 3.8cqw, 13px); }
.plan-list li strong { color: var(--ink); font-weight: 600; }
.plan-list li span { color: var(--muted); font-size: 0.9em; }
.plan-more { background: transparent !important; border: 0 !important; }
.plan-note { font-size: clamp(10px, 3.3cqw, 12px); color: var(--muted); margin: 0 0 10px; line-height: 1.4; }
.badges-phone { flex-direction: column; width: 100%; gap: 8px; }
.badges-phone .badge { height: 46px; min-width: 0; width: 100%; justify-content: center; padding: 0 12px; }
.badges-phone .badge-icon { width: 22px; height: 22px; }
.badges-phone .badge-small { font-size: 0.6rem; }
.badges-phone .badge-big { font-size: 1rem; }
.badges-phone .soon-tag { top: -7px; inset-inline-end: -4px; font-size: 0.5rem; }
.sticky-bar .soon-tag { flex: none; top: -9px; inset-inline-end: -4px; font-size: 0.5rem; font-weight: 800; color: var(--ink); }
.q-restart { margin-top: 10px; background: none; border: 0; color: var(--muted); font: 500 12px var(--text); cursor: pointer; text-decoration: underline; }

/* ── how it works, free vs pro, sticky bar ─────────────────────────────────── */
.how { list-style: none; counter-reset: how; padding: 0; margin: 0 0 20px; }
.how li { counter-increment: how; position: relative; padding-block: 14px; padding-inline: 52px 0; border-top: 1px solid var(--hair); font-size: 1.05rem; line-height: 1.6; }
.how li::before { content: counter(how); position: absolute; inset-inline-start: 0; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 900; display: grid; place-items: center; }
.how li strong { color: var(--ink); }
.free-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .free-pro { grid-template-columns: 1fr; } }
.free-pro > div { background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 24px; }
.free-pro h3 { margin-bottom: 10px; }
.free-pro ul { padding-inline-start: 20px; margin: 0 0 8px; }
.free-pro li { margin-bottom: 6px; font-size: 0.97rem; }
/* The App Store header video: docked to the bottom of the screen while the page scrolls, once. It
   waits in place at opacity 0 and never display:none, because Safari will not autoplay a video it
   does not render. */
.video-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; width: min(100%, 720px, 84vh); margin-inline: auto; aspect-ratio: 1440 / 618; overflow: hidden; border-radius: 16px 16px 0 0; background: var(--cream); box-shadow: 0 -8px 32px rgba(46, 28, 10, 0.25); opacity: 0; transform: translateY(24px); pointer-events: none; transition: opacity 0.35s ease, transform 0.45s ease; }
.video-dock.is-in { opacity: 1; transform: none; pointer-events: auto; }
.video-dock.is-out { opacity: 0; transform: translateY(105%); pointer-events: none; }
.video-dock video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dock-btn { position: absolute; top: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 248, 232, 0.85); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(46, 28, 10, 0.15); }
.dock-close { right: 10px; }
.dock-sound { right: 58px; }
.dock-sound .wave { opacity: 0.25; }
.dock-sound[aria-pressed="true"] .wave { opacity: 1; }
.dock-sound[aria-pressed="true"] { background: var(--gold); }
@media (max-width: 720px) { .video-dock { border-radius: 0; } }
/* Desktop: the right-hand corner, so the hero's store buttons on the left stay clear. */
@media (min-width: 901px) { .video-dock { left: auto; right: 24px; width: min(720px, 84vh, 52vw); } }
.sticky-bar { display: none; }
@media (max-width: 900px) {
  .sticky-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--hair); }
  .sticky-bar span { flex: 1; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
  .sticky-bar .btn { padding: 10px 14px; font-size: 0.9rem; box-shadow: none; }
  body.home { padding-bottom: 72px; }
  .sticky-bar.is-ios [data-store="android"], .sticky-bar.is-android [data-store="ios"] { display: none; }
}

/* ── steps ─────────────────────────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 48px 110px 1fr; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--hair); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.step img { height: 100px; width: auto; justify-self: center; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }
.step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.3rem; display: grid; place-items: center; }
@media (max-width: 640px) { .step { grid-template-columns: 44px 1fr; } .step img { display: none; } }
.rule-card { background: var(--ink); color: #fde9bd; border-radius: var(--radius); padding: 32px; max-width: 820px; }
.rule-card h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.3rem; }
.rule-card strong { color: #fff; }
.rule-card a { color: var(--gold); }

/* ── ladders ───────────────────────────────────────────────────────────────── */
.ladder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 900px) { .ladder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ladder-grid { grid-template-columns: 1fr; } }
.ladder-card { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--hair); border-radius: 16px; padding: 18px 20px; color: var(--ink-2); box-shadow: var(--shadow); }
.ladder-card:hover { text-decoration: none; border-color: var(--gold); }
.ladder-name { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.ladder-range { font-size: 0.9rem; }
.ladder-range .arrow { color: var(--gold-deep); }
.ladder-meta { font-size: 0.8rem; color: var(--muted); }

.rungs { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: 72px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--hair); border-inline-start-width: 6px; border-radius: 14px; padding: 14px 16px; }
.rung.band-novice { border-inline-start-color: var(--jade); }
.rung.band-intermediate { border-inline-start-color: var(--plasma); }
.rung.band-advanced { border-inline-start-color: var(--gold); }
.rung.band-elite { border-inline-start-color: var(--ember); }
.rung-level { display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--ink); line-height: 1; }
.rung-level small { font-family: var(--text); font-weight: 600; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.rung h3 { margin-bottom: 4px; }
.rung-pass { margin: 0 0 6px; font-size: 0.95rem; }
.rung-cues { margin: 0; padding-inline-start: 18px; font-size: 0.9rem; color: var(--ink-2); }
.rung-cues li { margin-bottom: 2px; }

/* ── article / doc pages ───────────────────────────────────────────────────── */
.page-head { padding: 48px 0 36px; background: linear-gradient(180deg, var(--cream) 0%, #fff 100%); }
.page-head .lead { margin-bottom: 8px; }
.meta { font-size: 0.9rem; color: var(--muted); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs span { margin: 0 6px; }
.article-pose { height: 150px; width: auto; margin-top: 10px; }
.prose { padding: 20px 0 10px; }
.prose h2 { font-size: 1.5rem; font-weight: 600; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.7; }
.prose ul, .prose ol { padding-inline-start: 24px; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--cream-2); border-inline-start: 5px solid var(--gold); border-start-end-radius: 14px; border-end-end-radius: 14px; font-weight: 500; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 1em 0 1.5em; }
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; width: auto; }
  .prose thead { display: none; }
  .prose tr { border: 1px solid var(--hair); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px; }
  .prose td { border: 0; padding: 4px 0; font-size: 0.92rem; }
  .prose td:first-child { font-weight: 500; color: var(--ink); }
}
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { background: var(--cream); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--hair); margin: 2em 0; }
.legal-prose p, .legal-prose li { font-size: 0.98rem; }
.legal-prose h2 { font-size: 1.25rem; }
.legal-nav { padding: 24px 0 56px; font-size: 0.9rem; color: var(--muted); }
.related { padding: 12px 0; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list a { display: inline-block; background: var(--cream-2); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--hair); }
.pill-list a:hover { background: var(--gold-soft); text-decoration: none; }
.in-app { display: grid; grid-template-columns: 110px 1fr; gap: 20px; align-items: center; background: var(--cream); border: 1px solid var(--hair); border-radius: var(--radius); padding: 22px 26px; margin: 28px auto; }
.in-app img { height: 110px; width: auto; }
.in-app p { margin: 0; }
@media (max-width: 520px) { .in-app { grid-template-columns: 1fr; } .in-app img { height: 90px; } }
.related-grid { padding: 24px 0 64px; }
.lock { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; background: var(--ink); color: #fde9bd; border-radius: var(--radius); padding: 28px 30px; margin: 28px auto; }
.lock img { height: 120px; width: auto; }
.lock .h3 { color: var(--gold); margin-bottom: 8px; }
.lock p { margin: 0 0 16px; }
@media (max-width: 520px) { .lock { grid-template-columns: 1fr; } .lock img { height: 96px; } }

/* ── misc sections ─────────────────────────────────────────────────────────── */
.story-about { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.story-about img { width: 220px; }
@media (max-width: 760px) { .story-about { grid-template-columns: 1fr; } .story-about img { width: 160px; } }
.privacy-strip { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; background: var(--plasma-soft); border-radius: var(--radius); padding: 28px 32px; }
.privacy-strip .h2 { font-size: 1.6rem; }
.privacy-strip p { margin: 0; }
@media (max-width: 640px) { .privacy-strip { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--hair); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; }
.get { padding-bottom: 96px; }
.get .badges { justify-content: center; margin: 10px 0 18px; }
.get img { margin: 0 auto 10px; height: 150px; width: auto; }

/* ── footer ────────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: #e9d9bd; padding: 56px 0 24px; font-size: 0.95rem; }
.foot a { color: #ffd982; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 84px; height: auto; }
.foot-brand strong { color: #fff; }
.foot-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot-fine { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 36px; padding-top: 18px; font-size: 0.8rem; color: #a99577; }
.foot-fine p { margin: 0; }

/* ── hero note, the transformation reveal, the screenshot grid / carousel ───── */
.hero-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.reveal-band { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.reveal-head { text-align: center; margin-bottom: 22px; }
.reveal-head .lead { margin: 0 auto 14px; }
.reveal-gender { display: flex; gap: 8px; justify-content: center; }
.reveal-gender button { padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); font: 600 0.95rem var(--text); cursor: pointer; }
.reveal-gender button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.reveal { display: flex; flex-direction: column; align-items: center; }
.reveal-frame { position: relative; width: min(100%, 980px, max(620px, calc((100vh - 240px) * 1.5))); aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: pan-y; outline: none; background: #14181f; }
.reveal-frame[data-shape="tall"] { aspect-ratio: 2 / 3; width: min(100%, 420px); }
.reveal-frame:focus-visible { box-shadow: 0 0 0 3px var(--gold), var(--shadow); }
.reveal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; }
.reveal-img.is-prev { opacity: 1; z-index: 1; }
.reveal-img.is-on { opacity: 1; z-index: 2; transition: opacity 0.25s; }
.reveal-divider { position: absolute; z-index: 3; top: 0; bottom: 0; left: 6%; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 14px 2px rgba(255, 192, 56, 0.6); pointer-events: none; }
.reveal-divider::before { content: ""; position: absolute; top: 0; bottom: 0; left: -5px; width: 12px; background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 1px), rgba(255, 192, 56, 0.6) calc(12.5% - 1px), rgba(255, 192, 56, 0.6) 12.5%); }
.reveal-handle { position: absolute; top: 60%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(16, 20, 27, 0.84); border: 2px solid var(--gold); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--text); letter-spacing: -1px; }
.reveal-stage { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 8px 18px; border-radius: 22px; background: rgba(0, 0, 0, 0.55); color: #fff; font: 600 1.1rem/1.2 var(--text); white-space: nowrap; pointer-events: none; }
.reveal-note { text-align: center; max-width: 620px; margin: 14px auto 0; }

.sheets-band { position: relative; padding-bottom: 56px; }
.sheets-band .sub { margin-bottom: 20px; }
.sheets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; width: min(var(--wrap), 100% - 32px); margin: 0 auto; padding: 0; overflow: visible; }
.sheet { margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; border-radius: 18px; transition: transform 0.15s; }
.sheet:hover { transform: translateY(-3px); }
.sheet:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sheet img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.sheets-nav, .sheets-dots { display: none; }
@media (max-width: 900px) {
  .sheets { display: flex; gap: 14px; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 10px; scrollbar-width: none; }
  .sheets::-webkit-scrollbar { display: none; }
  .sheet { flex: 0 0 auto; width: min(76vw, 320px); scroll-snap-align: center; }
  .sheets-dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
  .sheets-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(46, 28, 10, 0.25); }
  .sheets-dots button[aria-current="true"] { background: var(--ink); transform: scale(1.3); }
  .sheets-nav { display: flex; justify-content: flex-end; gap: 8px; width: calc(100% - 32px); margin: -46px auto 10px; position: relative; z-index: 2; }
  .sheets-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); background: #fff; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
}

/* ── the zoomed screenshots ────────────────────────────────────────────────── */
html.is-locked { overflow: hidden; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 11, 6, 0.94); color: #fff; }
.lightbox::backdrop { background: rgba(15, 11, 6, 0.6); }
.lightbox[open] { display: block; animation: lb-in 0.18s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; height: 100%; margin: 0; padding: 52px 12px 16px; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.lightbox-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 18px; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox-close { top: 10px; right: 12px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%); font: 600 0.9rem var(--text); }
@media (max-width: 700px) { .lightbox-prev, .lightbox-next { display: none; } }

/* ── the food band, the calculator ─────────────────────────────────────────── */
.food-card { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; background: #fff6dd; border: 1px solid #efe6cf; border-radius: var(--radius); padding: 28px 32px; }
.food-card img { width: 150px; height: auto; }
.food-card p { margin-bottom: 14px; }
.food-card .btn { margin: 0 8px 8px 0; }
@media (max-width: 640px) { .food-card { grid-template-columns: 1fr; text-align: center; } .food-card img { margin: 0 auto; width: 120px; } }
.nutrition-note { margin-top: 22px; }
.calc-head { padding-bottom: 12px; }
.calc-band { padding-top: 12px; }
.calc { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 14px; }
.calc-pose { position: absolute; top: -34px; inset-inline-end: 14px; height: 92px; width: auto; }
.calc-field { margin-bottom: 16px; }
.calc-field label, .calc-label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 0.95rem; }
.calc-weight { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.calc-weight > button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hair); background: #f8f8fd; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.calc-weight input { width: 96px; height: 44px; text-align: center; border-radius: 12px; border: 1px solid var(--hair); font: 600 1.15rem var(--text); color: var(--ink); -moz-appearance: textfield; }
.calc-weight input::-webkit-outer-spin-button, .calc-weight input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: inline-flex; background: #f1eefb; border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font: 500 0.92rem var(--text); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--plasma); color: #fff; font-weight: 600; }
.calc-results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: var(--cream); border-radius: 16px; padding: 16px; margin-top: 6px; }
.calc-results > div { display: flex; flex-direction: column; }
.calc-results span { font-size: 0.82rem; color: var(--muted); }
.calc-results strong { font-family: var(--display); font-weight: 900; color: var(--ink); font-size: 1.4rem; }
.calc-big strong { font-size: 2rem; }
.calc-line { grid-column: 1 / -1; margin: 0; font-size: 0.93rem; }
.calc-cta-pose { height: 130px; width: auto; margin: 0 auto 10px; }
.badges-center { justify-content: center; }
.calc-sources li { font-size: 0.9rem; }

/* ── the legal pages' view switch: everything, Apple, Google Play, website ──── */
.view-switch { display: none; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
html[data-view] .view-switch { display: flex; }
.view-switch button { flex: 1 1 calc(50% - 5px); min-width: 0; text-align: left; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--hair); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--text); }
.view-switch button strong { display: block; font-size: 1rem; font-weight: 600; }
.view-switch button span { font-size: 0.82rem; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.view-switch button[aria-pressed="true"] span { color: #d9c9ad; }
.view-note { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
html[data-view="apple"] .only-android, html[data-view="google"] .only-apple,
html[data-view="web"] .only-apple, html[data-view="web"] .only-android, html[data-view="web"] .only-app { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-hint { animation: none; }
}
