/* ==========================================================================
   BandMate — landing page
   Tokens mirror the app (lib/band_palette.dart, lib/band_depth.dart and the
   onboarding v5 pages): warm paper ground, heavy SF type with one accent word,
   pastel art cards with white label chips, and buttons that sit on a ledge.
   ========================================================================== */

:root {
  --ground: #f4f1ea;
  --surface: #ffffff;
  --surface-quiet: #fbfaf7;
  --band: #ece7dc;
  --control: #efeae0;
  --text: #14171d;
  --text-2: #3a3f49;
  --meta: #6e6a5e;
  --brand: #1463ff;
  --accent: #1463ff;
  --ledge-brand: #1f4aa3;
  --ledge-white: #e3ddd1;
  --rim: rgba(140, 130, 112, 0.24);
  --cast: rgba(0, 0, 0, 0.1);
  --done: #20c77a;
  --amber: #ffb52e;
  --navy: #0b2350;
  --ink: #0c1116;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 28px;
  --r-xl: 36px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #0a0f18;
  --surface: #161c27;
  --surface-quiet: #10151f;
  --band: #0e131d;
  --control: #1f2938;
  --text: #f2f5fa;
  --text-2: #aeb8c8;
  --meta: #8a94a6;
  --accent: #7fa8ff;
  --ledge-white: #0b0f16;
  --rim: rgba(255, 255, 255, 0.06);
  --cast: rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ground);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip-link:focus { left: 12px; }
.anchor-alias { position: relative; top: -90px; display: block; }

/* ---------- type ---------- */
.display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.045em; line-height: 1.02; }
.h-xl { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.045em; line-height: 1; }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.04em; }
.h-md { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.08; }
.sub { color: var(--text-2); font-size: 1.06rem; font-weight: 500; line-height: 1.45; }
.meta { color: var(--meta); font-size: 0.86rem; font-weight: 700; }
.fineprint { color: var(--meta); font-size: 0.8rem; font-weight: 600; margin-top: 14px; }
.kicker {
  display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.kicker--amber { color: var(--amber); }

/* ---------- words slide in (the app's WordReveal) ---------- */
.js [data-words] .w, .says-text .w { display: inline-block; opacity: 0; transform: translateX(-18px); }
.js [data-words].in .w, .says-text.in .w {
  animation: word 280ms var(--ease) forwards;
  animation-delay: calc(var(--i) * 48ms);
}
@keyframes word { to { opacity: 1; transform: none; } }

/* ---------- cards drop in (the app's staggered value cards) ---------- */
.js [data-drop] > * { opacity: 0; transform: translateY(-26px); }
.js [data-drop].in > * { animation: drop 620ms var(--spring) forwards; }
[data-drop] > *:nth-child(2) { animation-delay: 90ms !important; }
[data-drop] > *:nth-child(3) { animation-delay: 180ms !important; }
[data-drop] > *:nth-child(4) { animation-delay: 270ms !important; }
[data-drop] > *:nth-child(5) { animation-delay: 360ms !important; }
[data-drop] > *:nth-child(6) { animation-delay: 450ms !important; }
@keyframes drop { to { opacity: 1; transform: none; } }

/* ---------- depth (lib/band_depth.dart): face on a ledge + cast shadow ---------- */
.depth {
  background: var(--surface);
  border: 1.5px solid var(--rim);
  border-radius: var(--r-lg);
  box-shadow: 0 5px 0 var(--ledge-white), 0 12px 22px var(--cast);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 20px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transition-duration: 70ms; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--ledge-brand), 0 12px 22px rgba(20, 99, 255, 0.28); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ledge-brand), 0 4px 10px rgba(20, 99, 255, 0.2); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 5px 0 #000; }
.btn-ink:active { transform: translateY(5px); box-shadow: 0 0 0 #000; }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 15px; font-size: 0.94rem; box-shadow: 0 4px 0 var(--ledge-brand); }
.btn-sm:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ledge-brand); }

.play-dot {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
}
.btn-ink .play-dot { background: #fff; color: var(--ink); width: 30px; height: 30px; }
.i-play { margin-left: 2px; }
.eq { display: none; gap: 3px; align-items: center; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: center; animation: eq 700ms ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -250ms; }
.eq i:nth-child(3) { animation-delay: -500ms; }
@keyframes eq { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
.is-playing .i-play { display: none; }
.is-playing .eq { display: inline-flex; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms;
}
.site-header.scrolled { border-bottom-color: var(--rim); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font-weight: 900; font-size: 1.22rem; letter-spacing: -0.03em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 0.95rem; color: var(--text-2); transition: background 150ms, color 150ms; }
.nav a:hover { background: var(--control); color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-switch {
  --pos: 0; position: relative; display: grid; grid-template-columns: repeat(3, 40px);
  padding: 3px; border-radius: 14px; background: var(--control);
}
.lang-pill {
  position: absolute; top: 3px; left: 3px; width: 40px; height: calc(100% - 6px);
  border-radius: 11px; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateX(calc(var(--pos) * 40px)); transition: transform 320ms var(--spring);
}
.lang-btn { position: relative; height: 32px; font-size: 0.78rem; font-weight: 800; color: var(--meta); transition: color 200ms; }
.lang-btn.is-active { color: var(--text); }
.icon-btn { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--control); color: var(--text-2); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-toggle { display: none; gap: 5px; grid-auto-flow: row; align-content: center; justify-items: center; }
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 220ms var(--ease); }
.site-header.open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { display: grid; gap: 2px; padding: 8px 20px 18px; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 14px 4px; font-weight: 800; font-size: 1.1rem; border-bottom: 1px solid var(--rim); }

/* ==========================================================================
   Hero — the app's Welcome screen, on its own sky
   ========================================================================== */
.hero { padding: 6px 12px 0; }
.hero-card {
  position: relative; max-width: 1400px; margin: 0 auto; overflow: hidden;
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  min-height: min(760px, calc(100svh - 86px));
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #92c5fd 0%, #a9d2fd 42%, #cde4fb 100%);
  color: var(--navy);
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding: clamp(36px, 5.5vw, 84px); padding-right: 12px; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem; font-weight: 800; color: #223355;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 3px rgba(32, 199, 122, 0.25); }
.hero h1 { margin-top: 18px; color: var(--navy); }
.hero h1 em { color: var(--brand); }
.lead { margin-top: 18px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); font-weight: 500; color: #223355; max-width: 34em; }

.bandi-says { display: flex; align-items: flex-end; gap: 10px; margin-top: 24px; max-width: 470px; }
.bandi-avatar { width: 48px; height: 48px; border-radius: 14px; flex: none; box-shadow: 0 6px 14px rgba(11, 35, 80, 0.18); }
.says-bubble {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px 16px 10px 10px; border-radius: 24px 24px 24px 6px;
  background: #fff; color: var(--ink); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 170ms var(--ease);
}
.says-bubble:active { transform: scale(0.98); }
.says-text { font-weight: 800; font-size: 1rem; line-height: 1.35; }
.says-bubble small { margin-left: auto; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.says-bubble.is-open { align-items: flex-start; }
.says-bubble.is-open .says-text { font-weight: 700; font-size: 0.96rem; }
.says-bubble.is-open small { display: none; }

.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.store-badge { display: inline-block; border-radius: 12px; transition: transform 170ms var(--ease); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: translateY(1px); }
.store-badge img { height: 48px; width: auto; }
.hero-note { margin-top: 14px; font-size: 0.88rem; font-weight: 700; color: #34507e; }

.hero-art { position: relative; min-height: 100%; margin-left: -9%; }
.hero-art img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%), linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 9%, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%), linear-gradient(to right, transparent 0, rgba(0,0,0,.55) 9%, #000 24%);
  mask-composite: intersect;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }
.section-head .sub { margin-top: 14px; }
.section-head.center .sub { margin-inline: auto; max-width: 36em; }
.section--tint { background: var(--band); padding-bottom: clamp(72px, 10vw, 120px); margin-top: clamp(72px, 10vw, 128px); }
.section--tint .section-head { padding-top: 0; }

/* ---------- level track ---------- */
.level-track {
  position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  max-width: 760px; margin: 0 auto 40px;
}
.level-track::before {
  content: ""; position: absolute; left: 7%; right: 7%; top: 26px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--control), var(--brand));
}
.level-track li { position: relative; display: grid; justify-items: center; gap: 8px; }
.level-track img { width: 52px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12)); }
.level-track b { font-size: 0.82rem; font-weight: 900; color: var(--meta); }
.level-track .is-lit b { color: var(--accent); }
.level-track .is-lit img { transform: scale(1.18); }
.js .level-track li { opacity: 0; transform: translateY(10px) scale(0.9); }
.js .level-track.in li { animation: drop 520ms var(--spring) forwards; animation-delay: calc(var(--n, 0) * 70ms); }
.level-track li:nth-child(2) { --n: 1; } .level-track li:nth-child(3) { --n: 2; } .level-track li:nth-child(4) { --n: 3; }
.level-track li:nth-child(5) { --n: 4; } .level-track li:nth-child(6) { --n: 5; } .level-track li:nth-child(7) { --n: 6; }

/* ---------- value cards ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1.06;
  border-radius: var(--r-lg); background: var(--card);
  box-shadow: 0 12px 24px var(--cast);
}
.value-card img { width: 100%; height: 100%; object-fit: cover; }
.value-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.value-label h3 { font-size: 1.14rem; font-weight: 800; letter-spacing: -0.02em; }
.value-label p { margin-top: 3px; font-size: 0.9rem; font-weight: 500; color: #39424c; line-height: 1.35; }

/* ---------- goals ---------- */
.goals { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: stretch; }
.goal-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.goal-tile {
  position: relative; overflow: hidden; aspect-ratio: 4 / 4.4; border-radius: 26px;
  background: var(--card); text-align: left;
  box-shadow: 0 10px 22px var(--cast);
  transition: transform 260ms var(--spring), opacity 220ms, box-shadow 220ms;
}
.goal-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.goal-tile:hover img { transform: scale(1.03); }
.goal-label {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  display: grid; padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}
.goal-label b { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.goal-label small { font-size: 0.82rem; font-weight: 600; color: #6e6a5e; }
.goal-check {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900;
  box-shadow: 0 0 0 3px #fff; transform: scale(0); transition: transform 320ms var(--spring);
}
.goal-tile.is-picked { box-shadow: 0 0 0 3px var(--brand), 0 14px 26px var(--cast); }
.goal-tile.is-picked .goal-check { transform: scale(1); }
.goal-tiles.has-pick .goal-tile.is-picked { transform: scale(1.03); z-index: 1; }
.goal-tiles.has-pick .goal-tile:not(.is-picked) { opacity: 0.5; }

.promise-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 0; overflow: hidden; min-height: 420px; }
.promise-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; }
.promise-list { display: grid; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.promise-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px;
  background: var(--surface-quiet); border: 1.5px solid var(--rim);
  font-weight: 700; font-size: 0.98rem; line-height: 1.35;
}
.promise-list li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px;
  border-radius: 50%; background: var(--done); color: #fff; font-size: 0.8rem; font-weight: 900;
}
.promise-list.swap li { animation: rise 420ms var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.promise-bandi { margin-top: auto; align-self: flex-end; width: 150px; margin-right: -4px; }
.promise-bandi img { width: 100%; }

/* ---------- coach ---------- */
.coach { max-width: 900px; margin: 0 auto; }
.chat-line { display: flex; }
.chat-line.mine { justify-content: flex-end; }
.bubble { display: inline-block; padding: 12px 18px; border-radius: 24px; font-weight: 700; font-size: 1.06rem; }
.bubble--mine { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 8px 18px rgba(20, 99, 255, 0.22); }
.style-tabs { display: flex; gap: 8px; margin: 22px 0 16px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; }
.style-tabs::-webkit-scrollbar { display: none; }
.style-tabs button {
  flex: none; padding: 10px 16px; border-radius: 16px; font-weight: 800; font-size: 0.94rem;
  background: var(--surface); color: var(--text-2); border: 2px solid var(--rim);
  transition: transform 170ms var(--ease), background 170ms, border-color 170ms, box-shadow 170ms;
}
.style-tabs button[aria-selected="true"] {
  background: var(--tone); color: var(--ink); border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px);
}
.style-card {
  display: grid; grid-template-columns: 1fr 250px; align-items: end; gap: 12px; overflow: hidden;
  border-radius: 32px; background: var(--tone); color: var(--ink);
  padding: 34px 20px 0 36px; min-height: 340px;
  transition: background-color 320ms var(--ease);
}
.style-copy { align-self: center; padding-bottom: 34px; }
.style-name { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(12, 17, 22, 0.6); }
.style-reply { margin: 10px 0 24px; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.22; }
.style-reply .w { display: inline-block; }
.style-card.swap .style-reply .w { animation: wordIn 280ms var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes wordIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.style-art { align-self: end; }
.style-art img { width: 100%; max-height: 330px; object-fit: contain; object-position: bottom; }
.style-card.swap .style-art img { animation: settle 420ms var(--spring) both; }
@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }

.explain { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; max-width: 1040px; margin: clamp(56px, 8vw, 96px) auto 0; }
.explain-head .sub { margin: 12px 0 22px; }
.explain-head .chat-line { justify-content: flex-start; }
.explain-cards { display: grid; gap: 12px; }
.explain-card {
  display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 22px;
  background: var(--tone); color: var(--ink); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.06);
}
.explain-card img { width: 52px; height: 52px; flex: none; }
.explain-card b { font-size: 1.05rem; font-weight: 900; }
.explain-card p { margin-top: 2px; font-weight: 600; color: #39424c; font-size: 0.96rem; }

/* ---------- screens ---------- */
.screens {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  width: min(100% - 40px, var(--maxw)); margin: 0 auto;
}
.shot { display: grid; gap: 14px; justify-items: center; text-align: center; }
.phone {
  width: 100%; max-width: 260px; padding: 7px; border-radius: 42px; background: #0c1116;
  box-shadow: 0 0 0 1.5px #2a313b inset, 0 24px 40px rgba(12, 17, 22, 0.22);
}
.phone img { width: 100%; border-radius: 35px; }
.shot figcaption { font-weight: 800; font-size: 0.96rem; max-width: 240px; color: var(--text-2); }
.js .shot { opacity: 0; transform: translateY(24px); }
.js .shot.in { animation: rise 620ms var(--ease) forwards; }
.shot:nth-child(2).in { animation-delay: 90ms; } .shot:nth-child(3).in { animation-delay: 180ms; } .shot:nth-child(4).in { animation-delay: 270ms; }

/* ---------- rhythm ---------- */
.rhythm { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 0; overflow: hidden; }
.rhythm-art { position: relative; min-height: 440px; }
.rhythm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.rhythm-body { padding: clamp(28px, 4vw, 52px); }
.rhythm-body .h-md { max-width: 16em; }
.rhythm-body .meta:first-of-type { margin-top: 26px; }
.minutes { display: flex; gap: 4px; margin: 6px 0 20px; overflow-x: auto; scrollbar-width: none; }
.minutes button {
  position: relative; min-width: 76px; padding: 0 6px 12px; font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.05em; line-height: 1.1; color: var(--control);
  transition: color 220ms, transform 260ms var(--spring);
}
[data-theme="dark"] .minutes button { color: #354257; }
.minutes button::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); transform: translateX(-50%) scale(0); transition: transform 260ms var(--spring);
}
.minutes button:hover { color: var(--meta); }
.minutes button.is-on { color: var(--accent); transform: scale(1.06); }
.minutes button.is-on::after { transform: translateX(-50%) scale(1); }
.week-chart { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; align-items: end; height: 120px; }
.week-chart i {
  display: block; height: var(--h, 10%); border-radius: 8px 8px 4px 4px;
  background: color-mix(in srgb, var(--brand) 30%, var(--surface));
  transition: height 520ms var(--spring);
}
.week-chart i:last-child { background: var(--brand); }
.js .week-chart i { transform: scaleY(0); transform-origin: bottom; }
.js .week-chart.in i { animation: grow 620ms var(--spring) forwards; animation-delay: calc(var(--n, 0) * 60ms); }
.week-chart i:nth-child(2) { --n: 1; } .week-chart i:nth-child(3) { --n: 2; } .week-chart i:nth-child(4) { --n: 3; }
.week-chart i:nth-child(5) { --n: 4; } .week-chart i:nth-child(6) { --n: 5; } .week-chart i:nth-child(7) { --n: 6; } .week-chart i:nth-child(8) { --n: 7; }
@keyframes grow { to { transform: scaleY(1); } }
.rhythm-result { margin: 18px 0 6px; font-size: 1.2rem; font-weight: 700; }
.rhythm-result b { color: var(--accent); font-weight: 900; }

/* ---------- IELTS (dark chapter, amber accent — like the app's coach chapter) ---------- */
.ielts {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl);
  background: var(--navy); color: #fff;
  box-shadow: 0 5px 0 #06142f, 0 22px 40px rgba(11, 35, 80, 0.3);
}
.ielts em { color: var(--amber); }
.ielts .sub { color: #c4d0e6; margin-top: 12px; }
.dial { position: relative; max-width: 320px; margin: 26px 0 8px; }
.dial svg { display: block; overflow: visible; }
.dial-track, .dial-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.dial-track { stroke: rgba(255, 255, 255, 0.14); }
.dial-fill { stroke: var(--amber); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 520ms var(--spring); }
.js .dial:not(.in) .dial-fill { stroke-dashoffset: 100 !important; }
.dial-value { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 3.6rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.bands { display: flex; flex-wrap: wrap; gap: 6px; }
.bands button {
  min-width: 52px; height: 40px; padding: 0 10px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.08); color: #c4d0e6; font-weight: 800; font-size: 0.92rem;
  transition: background 170ms, color 170ms, transform 170ms var(--ease);
}
.bands button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.bands button.is-on { background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 #b97a0b; transform: translateY(-2px); }
.ielts-list { display: grid; gap: 10px; margin-top: 26px; }
.ielts-list li { display: flex; gap: 12px; font-weight: 700; color: #e6ecf7; }
.ielts-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: var(--ink); font-size: 0.74rem; font-weight: 900; margin-top: 1px; }
.ielts .fineprint { color: #8fa1c2; }
.ielts-art { position: relative; }
.ielts-art img { width: 100%; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; }
.band-chip {
  position: absolute; left: -14px; bottom: 26px; display: grid; justify-items: center;
  padding: 12px 18px; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}
.band-chip small { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #6e6a5e; }
.band-chip b { font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; color: var(--brand); }

/* ---------- leagues + streak ---------- */
.motivation { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.league, .streak { position: relative; padding: clamp(26px, 3.5vw, 40px); overflow: hidden; }
.league .sub, .streak .sub { margin-top: 10px; max-width: 30em; }
.tiers { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.tiers li { display: grid; justify-items: center; gap: 4px; width: 64px; }
.tiers img { width: 44px; height: 44px; }
.tiers span { font-size: 0.72rem; font-weight: 800; color: var(--meta); }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; max-width: 360px; margin: 26px auto 0; }
.podium-p { display: grid; justify-items: center; gap: 4px; position: relative; }
.podium-p img:not(.crown) { width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14); }
.podium-p.p1 img:not(.crown) { width: 64px; height: 64px; border-color: var(--amber); }
.podium-p .crown { width: 34px; height: 34px; margin-bottom: -8px; position: relative; z-index: 1; }
.podium-p span { font-size: 0.82rem; font-weight: 800; }
.podium-p b {
  display: grid; place-items: center; width: 100%; border-radius: 16px 16px 6px 6px;
  background: #f6f1e9; color: var(--brand); font-size: 1.6rem; font-weight: 900;
  border-top: 8px solid var(--brand); box-shadow: 0 6px 0 #ddd5c6;
}
[data-theme="dark"] .podium-p b { background: #232c3b; box-shadow: 0 6px 0 #0b0f16; }
.p1 b { height: 110px; } .p2 b { height: 80px; } .p3 b { height: 62px; }
.js .podium-p { opacity: 0; transform: translateY(28px); }
.js .podium.in .podium-p { animation: rise 520ms var(--spring) forwards; }
.js .podium.in .p3 { animation-delay: 0ms; } .js .podium.in .p2 { animation-delay: 160ms; } .js .podium.in .p1 { animation-delay: 320ms; }

.streak-top { display: flex; align-items: center; gap: 14px; }
.streak-top img { width: 64px; height: 64px; }
.streak-num { display: block; font-size: 3.4rem; font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; }
.streak-top span { font-weight: 800; color: var(--meta); }
.streak-grid { display: grid; grid-template-columns: repeat(7, 22px); gap: 8px; margin: 22px 0 18px; }
.streak-grid i { width: 22px; height: 22px; border-radius: 50%; background: var(--done); }
.streak-grid i.today { background: transparent; box-shadow: inset 0 0 0 3px var(--amber); }
.streak-grid i.off { background: var(--control); }
.js .streak-grid i { transform: scale(0); }
.js .streak-grid.in i { animation: pop 360ms var(--spring) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes pop { to { transform: scale(1); } }
.streak .sub { max-width: 19em; position: relative; z-index: 1; }
.streak-bandi { position: absolute; right: -6px; bottom: 0; width: 132px; }

/* ---------- pricing ---------- */
.pricing {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 18px; align-items: stretch;
  max-width: 1060px; margin: 0 auto;
}
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px; }
.plan > ul { margin-bottom: 24px; }
.plan-cta { margin-top: auto; width: 100%; }
.plan-art { width: min(100%, 260px); margin: auto auto 20px; }
.btn-ghost { background: var(--control); color: var(--text); box-shadow: 0 5px 0 var(--ledge-white); }
.btn-ghost:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ledge-white); }
.pro-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.pro-head .price { margin: 0; }
.plan .pro-features { grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 18px 0 22px; }
.packages { margin-bottom: 20px; padding: 14px; border-radius: var(--r); background: var(--surface-quiet); border: 1.5px solid var(--rim); }
.packages-title { margin: 2px 4px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta); }
.package-list { display: grid; gap: 8px; }
.plan .package {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 58px; align-items: center; gap: 12px;
  padding: 11px 12px 11px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--rim);
}
.plan .package::before { content: none; }
.plan .package--best { border: 2px solid var(--brand); }
.package-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 900; color: var(--text); }
.package-tag { white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: rgba(20, 99, 255, 0.12); color: var(--accent); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.02em; }
.package--best .package-tag { background: var(--brand); color: #fff; }
.package-price { display: grid; justify-items: end; line-height: 1.2; }
.package-total { font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.package-month { font-size: 0.76rem; font-weight: 700; color: var(--meta); font-variant-numeric: tabular-nums; }
.package-save { padding: 5px 0; border-radius: 10px; background: rgba(32, 199, 122, 0.14); color: #10804e; font-weight: 900; font-size: 0.84rem; text-align: center; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .package-save { color: #4fdc9a; }
.package-save:empty { visibility: hidden; }
.package-day { margin: 12px 4px 2px; font-weight: 700; color: var(--text-2); }
.package-day b { color: var(--text); font-weight: 900; }
.plan h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.price { margin: 12px 0 20px; color: var(--meta); font-weight: 700; }
.price b { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.04em; color: var(--text); }
.plan ul { display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-weight: 600; color: var(--text-2); }
.plan li::before { content: "✓"; flex: none; color: var(--done); font-weight: 900; }
.plan--pro { border: 2.5px solid var(--brand); box-shadow: 0 5px 0 var(--ledge-brand), 0 14px 28px rgba(20, 99, 255, 0.18); }
.plan-badge {
  position: absolute; top: -13px; right: 20px; padding: 5px 12px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.04em;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1.5px solid var(--rim); border-radius: 22px; box-shadow: 0 4px 0 var(--ledge-white); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--control); font-weight: 900; transition: transform 260ms var(--spring);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--text-2); font-weight: 500; }
.faq details p a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- download ---------- */
#download { padding-bottom: clamp(72px, 10vw, 120px); }
.download {
  display: grid; grid-template-columns: 0.85fr 1.15fr; overflow: hidden;
  border-radius: var(--r-xl); background: #1b1a26; color: #fff;
  box-shadow: 0 5px 0 #0c0b12, 0 24px 44px rgba(12, 11, 18, 0.28);
}
.download-art { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: 50% 60%; }
.download-body { padding: clamp(30px, 5vw, 64px); align-self: center; }
.download em { color: var(--amber); }
.download .sub { color: #cfd3e0; margin-top: 12px; }
.download-row { display: flex; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.store-row--stack { margin-top: 0; }
.store-row--stack .store-badge img { height: 52px; }
.qr { display: flex; align-items: center; gap: 12px; }
.qr img { width: 112px; height: 112px; padding: 10px; background: #fff; border-radius: 18px; }
.qr figcaption { max-width: 120px; font-size: 0.82rem; font-weight: 700; color: #cfd3e0; }
.follow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 28px; font-size: 0.9rem; font-weight: 700; color: #aeb3c4; }
.follow a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.follow a:hover { background: rgba(255, 255, 255, 0.14); }
[data-platform="ios"] .qr, [data-platform="android"] .qr { display: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rim); padding: 40px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand .meta { margin-top: 10px; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: flex-start; max-width: 520px; }
.footer-links a { font-weight: 700; color: var(--text-2); font-size: 0.94rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; font-size: 0.86rem; font-weight: 600; color: var(--meta); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--control); }

/* ---------- phone download bar ---------- */
.get-bar { display: none; }

/* ---------- video tutorials: one stage, the films beside it ---------- */
.vt { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.vt-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-xl);
  background: #0c1116; isolation: isolate;
}
.vt-stage video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; background: #000; }
.vt-stage video[hidden] { display: none; }
.vt-cover { position: absolute; inset: 0; display: block; width: 100%; -webkit-tap-highlight-color: transparent; }
.vt-cover img { width: 100%; height: 100%; object-fit: cover; background: var(--band); }
.vt-cover[hidden] { display: none; }
.vt-play {
  position: absolute; right: clamp(14px, 2.4vw, 26px); bottom: clamp(14px, 2.4vw, 26px);
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 20px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 1.04rem;
  box-shadow: 0 5px 0 #000, 0 14px 28px rgba(12, 17, 22, 0.3);
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease);
}
.vt-play-len { font-weight: 700; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }
.vt-cover:hover .vt-play { transform: translateY(-2px); }
.vt-cover:active .vt-play { transform: translateY(5px); box-shadow: 0 0 0 #000, 0 6px 12px rgba(12, 17, 22, 0.24); transition-duration: 70ms; }
.vt-spinner {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; z-index: 2;
  border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.28); border-top-color: #fff;
  opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.vt-stage.is-waiting .vt-spinner { opacity: 1; animation: vt-spin 800ms linear infinite; }
@keyframes vt-spin { to { transform: rotate(360deg); } }
.vt-note {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px;
  padding: 24px; text-align: center; background: rgba(12, 17, 22, 0.78); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vt-note[hidden] { display: none; }
.vt-note p { max-width: 32ch; font-weight: 700; font-size: 1.04rem; line-height: 1.4; }
.vt-note .btn-ink { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #b9c1cc; }
.vt-note .btn-ink:active { box-shadow: 0 0 0 #b9c1cc; }

.vt-side { display: grid; gap: 12px; }
.vt-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.vt-lang-btns { display: inline-flex; gap: 2px; padding: 4px; border-radius: 15px; background: var(--control); }
.vt-lang-btn { height: 34px; padding: 0 14px; border-radius: 11px; font-size: 0.86rem; font-weight: 800; color: var(--meta); transition: color 200ms, background 200ms; }
.vt-lang-btn.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 0 var(--ledge-white), 0 4px 10px var(--cast); }
.vt-list { display: grid; gap: 10px; }
.vt-item {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%;
  padding: 10px 14px 10px 10px; border-radius: var(--r); text-align: left;
  background: var(--surface); border: 1.5px solid var(--rim); box-shadow: 0 4px 0 var(--ledge-white);
  transition: transform 170ms var(--ease), box-shadow 170ms var(--ease), border-color 200ms;
  -webkit-tap-highlight-color: transparent;
}
.vt-item:hover { transform: translateY(-1px); }
.vt-item:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ledge-white); transition-duration: 70ms; }
.vt-item.is-active { border: 2px solid var(--brand); box-shadow: 0 4px 0 var(--ledge-brand), 0 10px 22px rgba(20, 99, 255, 0.16); }
.vt-thumb { display: block; aspect-ratio: 112 / 64; border-radius: 14px; overflow: hidden; background: var(--tone, var(--band)); }
.vt-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 90% 50%; transform: scale(1.45); transform-origin: 92% 62%; }
.vt-text { display: grid; gap: 2px; min-width: 0; }
.vt-meta { font-size: 0.76rem; font-weight: 800; color: var(--meta); font-variant-numeric: tabular-nums; }
.vt-item.is-active .vt-meta { color: var(--accent); }
.vt-text b { font-size: 1rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.vt-sub { font-size: 0.86rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-item[hidden] { display: none; }
.vt-cta { width: 100%; margin-top: 6px; }

@media (max-width: 1020px) {
  .vt { grid-template-columns: 1fr; gap: 18px; }
  .vt-side { gap: 14px; }
  .vt-list {
    grid-auto-flow: column; grid-auto-columns: 236px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -20px; padding: 2px 20px 10px; scroll-padding-inline: 20px; scrollbar-width: none;
  }
  .vt-list::-webkit-scrollbar { display: none; }
  .vt-list li { scroll-snap-align: start; }
  .vt-item { grid-template-columns: 1fr; gap: 10px; height: 100%; align-content: start; padding: 8px 8px 14px; }
  .vt-thumb { aspect-ratio: 630 / 258; }
  .vt-text { padding: 0 6px; }
  .vt-cta { justify-self: center; width: auto; min-width: 260px; }
}
@media (max-width: 560px) {
  .vt-stage { border-radius: 22px; }
  .vt-list { margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; grid-auto-columns: 220px; }
  .vt-play { right: 10px; bottom: 10px; height: 40px; padding: 0 14px 0 12px; font-size: 0.88rem; gap: 7px; box-shadow: 0 4px 0 #000, 0 10px 20px rgba(12, 17, 22, 0.28); }
  .vt-play svg { width: 14px; height: 14px; }
  .vt-cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vt-stage.is-waiting .vt-spinner { animation: none; border-top-color: rgba(255, 255, 255, 0.28); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .goals { grid-template-columns: 1fr; }
  .promise-card { min-height: 0; padding-bottom: 0; }
  .promise-bandi { width: 120px; margin-top: -30px; }
  .screens { grid-template-columns: repeat(4, 240px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 16px; width: 100%; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .shot { scroll-snap-align: center; }
  .motivation { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
  .plan-art { display: none; }
  .plan .pro-features { grid-template-columns: 1fr; }
  .explain { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .header-inner { height: 60px; gap: 10px; }
  .header-actions .btn-sm { display: none; }
  .hero { padding: 4px 8px 0; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; border-radius: 30px; }
  .hero-copy { padding: 30px 22px 0; }
  .hero-art { min-height: 0; margin-top: -40px; }
  .hero-art img {
    position: static; height: auto; aspect-ratio: 1024 / 1100; object-position: 50% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  }
  .rhythm { grid-template-columns: 1fr; }
  .rhythm-art { min-height: 300px; }
  .rhythm-art img { object-position: 50% 62%; }
  .ielts { grid-template-columns: 1fr; }
  .ielts-art { max-width: 420px; }
  .band-chip { left: 12px; }
  .download { grid-template-columns: 1fr; }
  .download-art { min-height: 0; aspect-ratio: 16 / 11; }
  .style-card { grid-template-columns: 1fr 150px; padding: 26px 8px 0 22px; min-height: 0; }
  .style-copy { padding-bottom: 24px; }

  .get-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 10px 10px 10px 12px; border-radius: 22px;
    background: var(--surface); border: 1.5px solid var(--rim);
    box-shadow: 0 5px 0 var(--ledge-white), 0 16px 34px rgba(0, 0, 0, 0.22);
    transform: translateY(140%); transition: transform 420ms var(--spring);
  }
  .get-bar.show { transform: none; }
  .get-bar img { width: 40px; height: 40px; border-radius: 11px; }
  .get-bar div { display: grid; line-height: 1.2; }
  .get-bar b { font-weight: 900; }
  .get-bar small { font-size: 0.76rem; font-weight: 700; color: var(--meta); }
  .get-bar .btn { margin-left: auto; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, var(--maxw)); }
  .lang-switch { grid-template-columns: repeat(3, 34px); }
  .lang-pill { width: 34px; transform: translateX(calc(var(--pos) * 34px)); }
  .theme-toggle { display: none; }
  .bandi-says { max-width: none; }
  .store-badge img { height: 44px; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .value-card { aspect-ratio: 1 / 1.25; border-radius: 22px; }
  .value-label { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; border-radius: 16px; }
  .value-label h3 { font-size: 0.95rem; }
  .value-label p { display: none; }
  .goal-tiles { gap: 10px; }
  .goal-tile { aspect-ratio: 4 / 5; }
  .goal-label { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; }
  .goal-label b { font-size: 0.9rem; }
  .level-track img { width: 38px; height: 38px; }
  .level-track::before { top: 19px; }
  .style-card { grid-template-columns: 1fr; padding: 24px 22px 0; }
  .style-art { justify-self: end; width: 150px; margin-top: -18px; }
  .explain-card { padding: 14px 16px; }
  .minutes button { min-width: 60px; }
  .streak-bandi { width: 100px; }
  .store-row--stack .store-badge img { height: 48px; }
  .plan { padding: 24px 18px 20px; }
  .packages { padding: 10px; }
  .plan .package { grid-template-columns: minmax(0, 1fr) auto 50px; gap: 8px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .eq i { animation: none; }
}

/* the social icons are black single-colour SVGs */
.follow img, [data-theme="dark"] .footer-social img { filter: invert(1); }

.learning-guides { scroll-margin-top: 90px; }
.guide-topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.guide-topics a { border: 1px solid var(--rim); border-radius: 999px; padding: 10px 18px; color: var(--text); background: var(--surface); font-weight: 800; text-decoration: none; }
.guide-groups { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; margin-bottom: 28px; }
.guide-group { padding: 24px; }
.guide-group h3 { margin-top: 0; }
.guide-group ul { display: grid; gap: 16px; margin-top: 20px; }
.guide-group a { color: var(--text-2); font-weight: 600; line-height: 1.55; }
.guide-group a:hover { color: var(--brand); }
@media (max-width: 850px) { .guide-groups { grid-template-columns: 1fr; } }

/* "Preferred source on Google": a plain link to Google's preferences page
   (no Google script; the site's CSP allows only its own scripts). */
.pref-source { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 16px; border: 1.5px solid var(--rim); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 0.9rem; font-weight: 800; line-height: 1.3; box-shadow: 0 3px 0 var(--ledge-white), 0 8px 16px var(--cast); transition: transform 0.15s ease, border-color 0.15s ease; }
.pref-source svg { flex: 0 0 auto; width: 18px; height: 18px; fill: var(--brand); }
.pref-source:hover { border-color: var(--brand); transform: translateY(-1px); }
.pref-source:active { transform: translateY(1px); }
.pref-source-end { margin-top: 32px; }
/* Inside an article the content's link style (blue, underlined) must not apply. */
.article-content a.pref-source, .article-content a.pref-source:hover { color: var(--text); text-decoration: none; }
