:root {
  --bg: #0b0c0b;
  --bg-2: #111311;
  --surface: #161916;
  --surface-2: #1d211d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f6f4;
  --text-2: #a9b0a9;
  --text-3: #6f776f;
  --green: #1db954;
  --green-2: #3ddc74;
  --green-soft: rgba(29, 185, 84, .14);
  --yellow: #f5d93b;
  --weak: #f0b429;
  --on-accent: #07140b;

  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
[lang="ja"] { font-family: var(--font-jp); letter-spacing: 0; }
::selection { background: var(--green); color: var(--on-accent); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--green); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: 14px 0;
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 8px 0;
  background: rgba(11, 12, 11, .72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand__icon { border-radius: 10px; }
.brand__name { font-size: 18px; white-space: nowrap; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease), background .3s;
}
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--primary { background: var(--green); color: var(--on-accent); box-shadow: 0 6px 24px -8px rgba(29, 185, 84, .7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(29, 185, 84, .9); }
.btn:active { transform: scale(.97); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: clamp(120px, 16vh, 168px) 0 clamp(64px, 10vh, 112px); overflow: hidden; }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero__title { margin-top: 22px; font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; letter-spacing: -.04em; }
.accent {
  background: linear-gradient(100deg, var(--green) 0%, var(--green-2) 45%, #b6f08a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { margin-top: 22px; max-width: 520px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__cta--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 22px 11px 18px; border-radius: 16px;
  background: var(--text); color: #0b0c0b;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease);
}
.store + .store { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line-2); }
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .9); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; }
.store small { font-size: 11px; font-weight: 500; opacity: .7; }

/* phone */
.hero__visual { position: relative; display: flex; justify-content: center; }
@keyframes floaty { 50% { translate: 0 -12px; } }

.mascot { position: relative; display: block; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.mascot__sprite {
  display: block; width: 100%; aspect-ratio: 1;
  background: var(--sheet) 0 0 / 300% 300% no-repeat;
  transform-origin: 50% 90%;
}
.mascot.is-boop .mascot__sprite { animation: boop .55s var(--ease-spring); }
@keyframes boop { 0% { transform: scale(1, 1); } 25% { transform: scale(1.12, .86); } 55% { transform: scale(.94, 1.08) translateY(-8%); } 100% { transform: scale(1, 1); } }
.mascot--hero { position: absolute; width: clamp(130px, 15vw, 180px); left: max(-10px, calc(50% - 280px)); bottom: -6%; z-index: 2; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .55)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- MARQUEE ---------- */

/* ---------- SECTIONS ---------- */
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.section__head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head--center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.section h2 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.section__lead { margin-top: 18px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); }

/* steps */

/* bento */

/* shadowing */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split__text > p { margin-top: 18px; color: var(--text-2); font-size: 17px; }
.split__text strong { color: var(--text); font-weight: 600; }

/* mascots */

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { border-color: rgba(29, 185, 84, .3); background: var(--bg-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23f4f6f4' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .4s var(--ease), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--green-soft); }
.faq details p { padding: 0 22px 22px; color: var(--text-2); font-size: 15.5px; }
.faq details[open] p { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* cta */
.cta__box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 36px; background: linear-gradient(160deg, #13301d 0%, #0f1a12 55%, var(--bg-2) 100%);
  border: 1px solid rgba(29, 185, 84, .25);
}
.cta h2 { position: relative; max-width: 760px; margin: 16px auto 0; font-size: clamp(28px, 4vw, 48px); }
.cta .hero__cta { position: relative; }

/* footer */
.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer__note { color: var(--text-3); font-size: 14px; }
.footer__copy { margin-left: auto; color: var(--text-3); font-size: 14px; }
.footer__copy a:hover { color: var(--text); }

/* ---------- HOME: CHAPTERS ---------- */
.soon {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: none; line-height: 1.3; white-space: nowrap;
  color: var(--yellow); background: rgba(245, 217, 59, .1); border: 1px solid rgba(245, 217, 59, .3);
}
h2 .soon { font-size: 12px; transform: translateY(-.35em); }
.brand__jp { color: var(--green-2); margin-right: 4px; font-weight: 700; }
.t-green { color: var(--green-2); }
.t-yellow { color: var(--weak); }

.hero__more { display: inline-flex; gap: 8px; margin-top: 26px; font-size: 15px; font-weight: 600; color: var(--text-2); transition: color .25s; }
.hero__more:hover { color: var(--green-2); }
.hero__more span { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* promise */
.flow { list-style: none; margin: 0 auto clamp(40px, 6vw, 64px); padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.flow li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.flow li:not(:last-child)::after { content: "→"; margin-left: 10px; margin-right: -8px; color: var(--green); }
.flow__back { color: var(--green-2); border-color: rgba(29, 185, 84, .35) !important; }
.in-view.flow li { animation: flowPop .6s var(--ease-spring) both; }
.flow li:nth-child(2) { animation-delay: .08s; } .flow li:nth-child(3) { animation-delay: .16s; } .flow li:nth-child(4) { animation-delay: .24s; } .flow li:nth-child(5) { animation-delay: .32s; } .flow li:nth-child(6) { animation-delay: .4s; }
@keyframes flowPop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .5s var(--ease); }
.pillar:hover { border-color: rgba(29, 185, 84, .4); transform: translateY(-4px); }
.pillar__tag { display: block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.pillar p { font-size: 18px; font-weight: 600; }

/* problem */
.problem__split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcard { margin: 0; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; min-height: 260px; }
.pcard figcaption { font-size: 18px; font-weight: 600; color: var(--text-2); }
.pcard__jp { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; flex: 1; }
.pcard__ok { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green-2); font-weight: 600; font-size: 14px; }
.pcard--mute { background: var(--bg-2); }
.pcard__blank span { color: var(--text-3); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pcard__ok--no { background: rgba(255, 255, 255, .05); color: var(--text-3); }

/* shared split */

.split--rev .split__text { order: 2; }
.split__text h2 .soon, .section__head h2 .soon { margin-left: 10px; }

/* video player */

/* sync */

/* sentence card */

/* feedback */

/* statements */
.statement { background: #121212; min-height: 80vh; display: flex; align-items: center; }
.statement__big { font-size: clamp(36px, 6vw, 80px) !important; line-height: 1.08; letter-spacing: -.04em; }
.statement__big span { color: var(--text-3); }
.statement__line { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(18px, 2vw, 26px); font-weight: 600; color: var(--text-2); max-width: 760px; }
.statement__line--hi { color: var(--green-2); }

/* practice */
.fsrs-label { display: inline-flex; margin-top: 24px !important; padding: 6px 12px; border-radius: 8px; font-size: 12px !important; letter-spacing: .06em; color: var(--text-3) !important; border: 1px solid var(--line); }
.intervals__line { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 14px; }
.intervals__line::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.intervals__line li { position: relative; padding: 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--text-3); transition: color .4s, border-color .4s, background .4s; }
.intervals__line li::before { content: ""; position: absolute; left: -25px; top: 50%; translate: 0 -50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: background .4s, border-color .4s; }
.intervals__line li.on { color: var(--text); border-color: rgba(29, 185, 84, .3); }
.intervals__line li.on::before { background: var(--green); border-color: var(--green); }
.intervals__line li:nth-child(2) { margin-left: 12px; } .intervals__line li:nth-child(3) { margin-left: 30px; } .intervals__line li:nth-child(4) { margin-left: 54px; } .intervals__line li:nth-child(5) { margin-left: 84px; }
.intervals__line li:nth-child(n+2)::before { left: calc(-25px - var(--ml, 0px)); }
.intervals__line li:nth-child(2)::before { --ml: 12px; } .intervals__line li:nth-child(3)::before { --ml: 30px; } .intervals__line li:nth-child(4)::before { --ml: 54px; } .intervals__line li:nth-child(5)::before { --ml: 84px; }
.intervals__end { margin-left: 120px; }
.intervals__end::before { --ml: 120px; left: calc(-25px - 120px) !important; }
.intervals__end.on { background: var(--green-soft) !important; color: var(--green-2) !important; }

.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fmt { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.fmt__flow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; font-weight: 700; color: var(--green); letter-spacing: .04em; margin-bottom: 18px; }
.fmt h3 { font-size: 21px; margin-bottom: 10px; }
.fmt p { color: var(--text-2); font-size: 15px; }
.fmt--soon { background: var(--bg-2); border-style: dashed; }

/* loop */
.loop__ring { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin: 0 auto; }
.loop__ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed var(--line-2); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.loop__ring ol { list-style: none; margin: 0; padding: 0; }
.loop__ring li {
  --a: calc(var(--n) * 72deg - 90deg);
  position: absolute; left: 50%; top: 50%; width: 150px; margin: -44px 0 0 -75px; text-align: center;
  transform: rotate(var(--a)) translateX(min(230px, 40vw)) rotate(calc(var(--a) * -1));
  padding: 12px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .4s, background .4s, box-shadow .4s;
}
.loop__ring li b { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.loop__ring li span { font-size: 13px; color: var(--text-3); }
.loop__ring li.on { border-color: var(--green); background: #13301d; box-shadow: 0 0 0 6px rgba(29, 185, 84, .1); }
.loop__ring li.on b { color: var(--green-2); }
.loop__core { position: absolute; left: 50%; top: 50%; width: 34%; translate: -50% -50%; }
.loop__core .mascot__sprite { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .5)); }

/* ranking */

.js [data-board] li:nth-child(4) { transform: translateY(calc(-100% - 8px)); }
.js [data-board].in-view li:nth-child(4) { transform: none; transition-delay: .5s; }

.xp { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 420px; }
.xp li { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.xp b { color: var(--green-2); font-size: 18px; }
.in-view .xp b, .xp.in-view b { animation: xpPop .7s var(--ease-spring) both; }
.xp li:nth-child(2) b { animation-delay: .15s; } .xp li:nth-child(3) b { animation-delay: .3s; } .xp li:nth-child(4) b { animation-delay: .45s; }
@keyframes xpPop { from { opacity: 0; transform: translateY(14px) scale(.7); } }

.leagues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.leagues li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.leagues .mascot__sprite { width: 100%; max-width: 120px; }
.leagues b { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.lg--bronze { color: #d08b52; } .lg--silver { color: #c9d1d9; } .lg--gold { color: var(--yellow); } .lg--diamond { color: #7ec4ff; } .lg--master { color: #d58cff; }

.rewards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rewards li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; text-align: center; }
.rewards span { font-size: 44px; line-height: 1; transition: transform .5s var(--ease-spring); }
.rewards li:hover span { transform: scale(1.15) rotate(-6deg); }

/* progress */

/* discovery */
.topics { list-style: none; margin: 0 auto 36px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.topics li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; transition: background .3s, color .3s; }
.topics li:first-child { background: var(--text); color: var(--bg); }
.topics li:hover { border-color: var(--green); }

/* one video */
.ov { list-style: none; margin: 0; padding: 0 var(--gutter, 32px); display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter, 32px), calc((100vw - var(--container)) / 2 + 32px)); scrollbar-width: none; padding-left: max(32px, calc((100vw - var(--container)) / 2 + 32px)); }
.ov::-webkit-scrollbar { display: none; }
.ov li { flex: none; width: min(300px, 76vw); scroll-snap-align: start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.ov li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; translate: 0 -50%; z-index: 1; color: var(--green); font-weight: 700; }
.ov span { font-size: 40px; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--green); letter-spacing: -.04em; }
.ov b { display: block; margin-top: 10px; font-size: 20px; }
.ov p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.ov li:last-child { background: #13301d; border-color: rgba(29, 185, 84, .4); }
@media (min-width: 1100px) {
  .ov { display: grid; grid-template-columns: repeat(6, 1fr); max-width: var(--container); margin: 0 auto; padding: 0 32px; overflow: visible; }
  .ov li { width: auto; padding: 22px 18px; }
}

/* philosophy */
.philosophy__inner { text-align: center; max-width: 820px; }
.philosophy__mascot { width: 150px; margin: 0 auto 20px; }
.philosophy h2 { font-size: clamp(34px, 5.2vw, 66px) !important; line-height: 1.08; }
.philosophy p { margin: 24px auto 0; max-width: 560px; color: var(--text-2); font-size: 18px; }

/* showcase */
.phones { list-style: none; margin: 0; padding: 0 32px; display: flex; justify-content: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.phones::-webkit-scrollbar { display: none; }
.phones li { flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phones li:nth-child(odd) { margin-top: 40px; }
.phones li > b { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }

/* cta #1 + qr */
.cta1__box { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(32px, 5vw, 56px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line-2); }
.cta1__box h2 { margin-bottom: 24px; }
.cta1__copy { flex: 1 1 320px; }
.qr-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.qr-card img { background: #fff; padding: 12px; border-radius: 18px; }
.qr-card figcaption { font-size: 13px; color: var(--text-2); max-width: 170px; }
@media (hover: none), (max-width: 960px) { .qr-card { display: none; } }

/* final cta (green) */
.cta .cta__box { background: var(--green); color: #121212; border: 0; }
.cta .cta__box h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; margin-top: 0; }
.cta__sub { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 600; color: rgba(18, 18, 18, .75); }
.cta__row { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 32px; }
.cta__row .hero__cta { margin-top: 0; }
.store--dark { background: #121212 !important; color: #fff !important; border: 0 !important; }
.qr-card--sm img { padding: 8px; border-radius: 14px; }
.qr-card--sm figcaption { color: rgba(18, 18, 18, .7); }

/* footer (home) */
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer__brand > p { margin-top: 12px; color: var(--text-2); }
.footer__stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__stores a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; transition: border-color .25s; }
.footer__stores a:hover { border-color: var(--green); }
.footer__stores svg { width: 16px; height: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__col p { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer__col a { color: var(--text-2); transition: color .25s; }
.footer__col a:hover { color: var(--text); }
.footer__grid + .footer__copy { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* qr modal */
.qr-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn .3s var(--ease); }
.qr-modal[hidden] { display: none; }
.qr-modal__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 40px 30px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line-2); text-align: center; animation: popIn .45s var(--ease-spring); }
.qr-modal__box img { background: #fff; padding: 14px; border-radius: 20px; margin-bottom: 10px; }
.qr-modal__box p { font-size: 18px; font-weight: 700; }
.qr-modal__box span { font-size: 14px; color: var(--text-2); }
.qr-modal__close { position: absolute; right: 14px; top: 10px; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--text-2); }
.qr-modal__close:hover { background: var(--surface-2); color: var(--text); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(10px); } }

/* download page */
.dl { min-height: 100svh; display: grid; place-items: center; padding: 40px 0; text-align: center; }
.dl__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dl__icon { border-radius: 18px; }
.dl h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.dl__lead { color: var(--text-2); }
.dl__back { margin-top: 12px; font-size: 14px; color: var(--text-3); }

/* ---------- CLEAN PASS (overrides) ---------- */
:root { --panel: #161716; --inner: #1e1f1e; --card: #111211; --mute: rgba(244, 246, 244, .36); }

.nav, .nav.is-scrolled { padding: 14px 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__inner {
  max-width: calc(var(--container) - 2 * var(--gutter)); padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(22, 23, 22, .82); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav__inner { box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .9); }
.nav .btn--primary { box-shadow: none; }
@media (max-width: 960px) { .nav__inner { width: calc(100% - 2 * var(--gutter)); margin-inline: var(--gutter); } }

.mute { color: var(--mute); }
.soon {
  color: var(--text-3); background: none; border: 1px solid var(--line-2);
  font-weight: 500; letter-spacing: .01em;
}
.kicker .soon { text-transform: none; letter-spacing: 0; }

.hero { padding-top: clamp(130px, 18vh, 170px); }
.hero .kicker { margin-bottom: 0; }
.hero__title { margin-top: 18px; }

/* stacked feature panels */
.stack { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.stack__list { display: grid; gap: 28px; }
.panel {
  position: sticky; top: 96px; display: flex; align-items: center;
  min-height: min(620px, calc(100vh - 130px)); padding: clamp(28px, 4vw, 56px);
  border-radius: 40px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 -24px 60px -28px rgba(0, 0, 0, .85);
}
.panel:nth-child(2) { top: 110px; } .panel:nth-child(3) { top: 124px; } .panel:nth-child(4) { top: 138px; }
.panel .split { width: 100%; gap: clamp(28px, 5vw, 72px); }
.panel .split__text h2 { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.05; }
.panel .split__text > p { margin-top: 18px; color: var(--text-2); font-size: 17px; max-width: 460px; }
.panel .split__text > p b { color: var(--text); }
.panel .split__visual {
  display: grid; place-items: center; min-height: 420px; padding: clamp(20px, 3vw, 40px);
  border-radius: 28px; background: var(--inner);
}
.panel .split__visual > * { width: 100%; box-shadow: none !important; }
.panel .xp li { background: var(--card); }
.panel .intervals__line { width: 100%; max-width: 380px; }
.intervals__line li { background: var(--card); }

/* quieter cards everywhere */
.pillar, .pcard, .fmt, .leagues li, .rewards li, .ov li, .topics li, .flow li { border-radius: 28px; }
.flow li, .topics li { border-radius: 999px; }
.pillar, .pcard, .fmt, .leagues li, .rewards li, .ov li { background: var(--panel); }
.pcard--mute, .fmt--soon { background: transparent; }

.rewards .ic { width: 36px; height: 36px; color: var(--green-2); transition: transform .5s var(--ease-spring); }
.rewards li:hover .ic { transform: scale(1.12) rotate(-6deg); }

.statement { background: none; min-height: 70vh; }

@media (max-width: 960px) {
  .panel { position: static; min-height: 0; border-radius: 28px; padding: 24px; }
  .panel .split__visual { min-height: 0; padding: 18px; border-radius: 20px; }
  .panel .split__text > p { max-width: none; }
}

/* ---------- DEVICE: real app screenshots in an iPhone frame ---------- */
.device {
  --r: 46px;
  --h: 560px;
  position: relative; display: inline-block; margin: 0; padding: 9px; border-radius: var(--r);
  background: linear-gradient(150deg, #353835 0%, #121312 34%, #1c1e1c 70%, #2b2e2b 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    inset 0 0 0 5px #070807,
    0 0 0 1px rgba(0, 0, 0, .7),
    0 50px 90px -42px rgba(0, 0, 0, .95);
}
.device::before, .device::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(#3b3f3b, #232623); }
.device::before { left: -3px; top: 20%; height: 13%; }
.device::after { right: -3px; top: 25%; height: 17%; }
.device img { display: block; width: auto; height: var(--h); max-width: none; border-radius: calc(var(--r) - 9px); background: #121212; }

.hero__visual { min-height: calc(var(--hero-h) + 40px); align-items: center; }
.hero { --hero-h: min(640px, calc(100svh - 190px)); }
.device--hero { --h: var(--hero-h); z-index: 2; animation: floaty 7s ease-in-out infinite; }
.device--back {
  --h: calc(var(--hero-h) * .82); --r: 40px;
  position: absolute; z-index: 1; left: 50%; top: 50%;
  translate: 4% -44%; rotate: 9deg; filter: brightness(.72) saturate(.9);
}
.hero__visual .mascot--hero { z-index: 3; }

.panel .split__visual { min-height: 0; padding: clamp(22px, 3vw, 36px); }
.panel .device { --h: min(540px, calc(100svh - 310px)); --r: 42px; }
.note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; font-size: 14px !important; color: var(--text-3) !important; }
.note .soon { margin: 0; }
.split__text .xp { margin: 26px 0 0; max-width: 420px; }

.fmt { display: flex; flex-direction: column; }
.fmt .device { --h: 330px; --r: 32px; padding: 6px; align-self: center; margin-top: auto; }
.fmt h3 + p { margin-bottom: 26px; }

.discover { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; max-width: 920px; margin: 0 auto; }
.discover .device { --h: 540px; --r: 42px; }
.discover .topics { justify-content: flex-start; margin: 0; max-width: none; }
.discover .topics li:first-child { background: var(--surface); color: var(--text); }

.device--ghost { display: grid; place-items: center; width: calc(var(--h) * 780 / 1702 + 12px); height: calc(var(--h) + 12px); background: none; border: 1.5px dashed var(--line-2); box-shadow: none; }
.device--ghost::before, .device--ghost::after { display: none; }
.device--ghost span { font-size: 13px; color: var(--text-3); }
.discover__text h3 { font-size: 20px; margin-bottom: 14px; }
.discover__text h3:not(:first-child) { margin-top: 32px; }
.discover__text p { color: var(--text-2); font-size: 16px; max-width: 420px; }
.phones { align-items: flex-start; padding-bottom: 40px; }
.phones .device { --h: 420px; --r: 38px; }
.phones li > b { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 960px) {
  .hero__visual { min-height: 0; margin-top: 12px; }
  .hero { --hero-h: min(560px, 118vw); }
  .device--back { display: none; }
  .panel .device { --h: min(520px, 118vw); }
  .discover { grid-template-columns: 1fr; justify-items: center; }
  .discover .topics { justify-content: center; }
  .discover__text { text-align: center; }
  .discover__text p { margin-inline: auto; }
  .discover .device { --h: min(520px, 118vw); }
}
@media (max-width: 640px) {
  .device { --r: 38px; padding: 7px; }
  .device img { border-radius: calc(var(--r) - 7px); }
  .phones .device { --h: 380px; }
  .fmt .device { --h: 300px; }
}

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal--scale { transform: translate3d(0, 28px, 0) scale(.96); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- LEGAL ---------- */
.legal { position: relative; padding: clamp(120px, 16vh, 160px) 0 clamp(72px, 10vw, 120px); overflow-x: clip; }
.legal__glow { position: absolute; width: 640px; height: 640px; right: -200px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(29, 185, 84, .35), transparent 65%); filter: blur(80px); pointer-events: none; }
.legal__head { position: relative; max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); transition: color .25s; }
.crumbs a:hover { color: var(--green-2); }
.legal h1 { margin-top: 18px; font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.legal__meta { margin-top: 14px; font-size: 14px; color: var(--green-2); font-weight: 500; }
.legal__intro { margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); color: var(--text-2); }
.legal__summary { position: relative; list-style: none; margin: 0 0 clamp(40px, 6vw, 72px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.legal__summary li { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); }
.legal__summary li::before { content: ""; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 9px; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233ddc74' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/60% no-repeat; }
.legal__summary b { font-size: 16px; font-weight: 700; }
.legal__summary span { font-size: 14px; color: var(--text-2); }
.legal__body { position: relative; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.toc { position: sticky; top: 96px; }
.toc__title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 1px; border-left: 1px solid var(--line); }
.toc a { position: relative; display: block; padding: 6px 0 6px 16px; font-size: 14px; color: var(--text-3); transition: color .25s; }
.toc a::before { content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--green); transform: scaleY(0); transition: transform .35s var(--ease); }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--text); }
.toc a.is-active::before { transform: scaleY(1); }

.prose { max-width: 720px; }
.prose section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:last-child { border-bottom: 0; margin-bottom: 0; }
.prose h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.2vw, 26px); margin-bottom: 18px; }
.prose h2 span { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-2); font-size: 14px; letter-spacing: 0; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--green-2); text-decoration: underline; text-decoration-color: rgba(61, 220, 116, .35); text-underline-offset: 3px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: currentColor; }
.prose .legal__mail { display: inline-flex; margin-top: 4px; padding: 12px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 600; text-decoration: none; }
.footer__copy a[aria-current] { color: var(--text-2); }

@media (max-width: 960px) {
  .legal__body { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .toc ol { columns: 2; column-gap: 24px; border: 0; }
  .toc a { padding-left: 0; }
  .toc a::before { display: none; }
}
@media (max-width: 760px) { .legal__summary { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* ---------- CREDITS ---------- */
.credits__head { text-align: left; }
.credits__jp { margin-top: 18px; font-size: 15px; font-weight: 600; letter-spacing: .2em; color: var(--green-2); }
.credits h1 { margin-top: 10px; }
.credit-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 44px); margin-bottom: 22px; border-radius: 28px;
  background: linear-gradient(150deg, #13301d 0%, #0f1a12 60%, var(--bg-2) 100%);
  border: 1px solid rgba(29, 185, 84, .25);
}
.credit-hero h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 12px; }
.credit-hero p { color: var(--text-2); }
.credit-hero a { color: var(--green-2); text-decoration: underline; text-decoration-color: rgba(61, 220, 116, .35); text-underline-offset: 3px; }
.credit-hero__badge {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 28px 20px; border-radius: 22px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2);
}
.credit-hero__label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.credit-hero__badge strong { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; color: var(--text); }
.credit-hero__badge a { font-size: 13px; text-decoration: none; }

.credit-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.credit-group { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.credit-groups--single { grid-template-columns: 1fr; }
.credit-group .credits__contact { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.credit-group > h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 18px; }
.credit-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.credit-group li + li { padding-top: 20px; border-top: 1px solid var(--line); }
.credit-group h3 { font-size: 17px; margin-bottom: 6px; }
.credit-group p { color: var(--text-2); font-size: 15px; }
.credit-group p + p { margin-top: 12px; }
.credit-group a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: color .25s, text-decoration-color .25s; }
.credit-group p a { color: var(--green-2); text-decoration-color: rgba(61, 220, 116, .35); }
.credit-group a:hover { color: var(--green-2); text-decoration-color: currentColor; }
.lic { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.credits__contact { font-size: 14px !important; color: var(--text-3) !important; }
@media (max-width: 760px) {
  .credit-hero, .credit-groups { grid-template-columns: 1fr; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .hero__chips { justify-content: center; }
  .hero__visual { margin-top: 24px; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .split { grid-template-columns: 1fr; }
  .pillars, .formats { grid-template-columns: 1fr; }
  .problem__split { grid-template-columns: 1fr; }
  .split--rev .split__text { order: 0; }
  .leagues { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .leagues li { padding: 14px 4px; }
  .leagues b { font-size: 11px; letter-spacing: .04em; }
  .rewards, .thumbs { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .phones { justify-content: flex-start; scroll-snap-type: x mandatory; }
  .phones li { scroll-snap-align: center; }
}
@media (max-width: 640px) {
  .mascot--hero { left: -4px; width: 112px; bottom: -4%; }
  .footer__copy { margin-left: 0; }
  .store { flex: 1 1 150px; justify-content: center; padding: 11px 14px; gap: 10px; }
  .store span { white-space: nowrap; font-size: 16px; }
  .brand__jp { display: none; }
  .leagues { grid-template-columns: repeat(3, 1fr); }
  .loop__ring { aspect-ratio: auto; }
  .loop__ring::before, .loop__core { display: none; }
  .loop__ring ol { display: grid; gap: 10px; }
  .loop__ring li { position: static; transform: none; width: auto; margin: 0; display: flex; gap: 12px; align-items: baseline; text-align: left; }
  .intervals__line li, .intervals__end { margin-left: 0 !important; }
  .intervals__line li::before, .intervals__end::before { left: -25px !important; }
  .cta1__box { justify-content: center; text-align: center; }
  .cta1__box .hero__cta { justify-content: center; }
}

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