/* ===== Tokens ===== */
:root {
  --ink: #14161f;
  --ink-2: #2a2e3d;
  --muted: #5d6275;
  --paper: #f9f8fc;
  --paper-2: #f1eef8;
  --card: #ffffff;
  --line: #e3deef;
  --brand: #9900fe;
  --brand-dark: #7a00cc;
  --brand-soft: #f3e6ff;
  --accent: #ff9ad5;
  --green: #1f9d6b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 31, .06), 0 8px 24px rgba(20, 22, 31, .08);
  --max: 1120px;
  --font: "Plus Jakarta Sans", 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%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.jp { font-family: var(--font-jp); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: #eef0f6; }
.section--dark .lead, .section--dark p { color: #c3c7d6; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(153, 0, 254, .35); }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 34px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo-mark {
  transform: rotate(-6deg);
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--font-jp); font-weight: 700; font-size: 1.2rem;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--brand); }
.nav-links .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) { display: block; padding: 12px 0; }
  .nav-links .btn { width: 100%; margin-top: 8px; }
}

/* ===== Hero ===== */
.hero { padding: 72px 0 88px; overflow: hidden; position: relative; }
.hero::before {
  content: "漢"; position: absolute; right: -60px; top: -40px;
  font-family: var(--font-jp); font-size: 520px; line-height: 1; color: rgba(153, 0, 254, .05);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero h1 .hl { background: var(--brand); color: #fff; padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: 1.2rem; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.trust-row li::before { content: "✓"; color: var(--green); font-weight: 800; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 48px; }
}

/* ===== Mnemonic card ===== */
.mnemonic {
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  padding: 28px; border: 1px solid var(--line); position: relative;
}
.mnemonic-tag {
  position: absolute; top: -14px; left: 24px; background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.mnemonic-kanji { font-family: var(--font-jp); font-size: 7rem; font-weight: 900; color: var(--brand); line-height: 1; text-align: center; margin: 12px 0 8px; }
.mnemonic-meaning { text-align: center; font-weight: 800; font-size: 1.3rem; margin-bottom: 18px; }
.mnemonic-parts { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.part { background: var(--paper-2); border-radius: var(--radius-sm); padding: 8px 14px; text-align: center; }
.part b { font-family: var(--font-jp); font-size: 1.6rem; display: block; line-height: 1.2; }
.part small { color: var(--muted); font-size: .8rem; }
.plus { font-weight: 800; color: var(--muted); }
.mnemonic-story { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .98rem; margin: 0; }

/* ===== Pain points ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 1px 2px rgba(20, 22, 31, .04);
}
.card p:last-child { margin-bottom: 0; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.pain .card { border-top: 4px solid var(--brand); }
.section-head { margin-bottom: 44px; }
.bridge { margin-top: 40px; font-size: 1.15rem; font-weight: 600; text-align: center; }

/* ===== Method steps ===== */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 76px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 28px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}

.flip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 860px) { .flip-row { grid-template-columns: 1fr; } }
.flip {
  perspective: 1000px; background: none; border: 0; padding: 0; cursor: pointer;
  height: 260px; font: inherit; color: inherit; text-align: center;
}
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  box-shadow: var(--shadow);
}
.flip-face .k { font-family: var(--font-jp); font-size: 5rem; font-weight: 900; line-height: 1.1; }
.flip-face .hint { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.flip-back { transform: rotateY(180deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.flip-back strong { font-size: 1.3rem; display: block; margin-bottom: 8px; color: var(--accent); }
.flip-back p { margin: 0; font-size: .98rem; color: #dfe2ec; }

/* ===== Challenge timeline ===== */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.phase { background: #1f2230; border: 1px solid #333849; border-radius: var(--radius); padding: 28px; }
.phase-days { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.phase-num { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1.1; margin: 6px 0; }
.phase-num small { font-size: 1rem; font-weight: 600; color: #aeb3c4; }
.phase ul { margin: 12px 0 0; padding-left: 1.1em; color: #c3c7d6; }
.phase li { margin-bottom: 6px; }
.progress { height: 8px; background: #333849; border-radius: 99px; overflow: hidden; margin-top: 16px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 99px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 860px) { .stat-strip { grid-template-columns: 1fr; } }
.stat-strip div { border-left: 3px solid var(--brand); padding-left: 16px; }
.stat-strip b { display: block; font-size: 1.6rem; color: #fff; }
.honest-note { margin-top: 36px; font-size: .95rem; color: #aeb3c4; border-top: 1px solid #333849; padding-top: 20px; }

/* ===== What you get ===== */
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature-list { list-style: none; padding: 0; margin: 12px 0 0; }
.feature-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.feature--highlight { border: 2px solid var(--brand); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; vertical-align: middle;
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: 22px; background: var(--ink); color: #fff;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo picture { display: contents; }
.about-photo .jp { font-size: 9rem; opacity: .9; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0; }
.about-stats div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.about-stats b { display: block; font-size: 1.6rem; color: var(--brand); line-height: 1.2; }
.about-stats span { font-size: .9rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.socials a:hover { border-color: var(--brand); color: var(--brand); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ===== Pricing ===== */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; position: relative; display: flex; flex-direction: column; }
.plan--best { border: 2px solid var(--brand); box-shadow: 0 14px 40px rgba(153, 0, 254, .15); }
.plan--best .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 6px 14px; }
.plan-name { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.plan-price { font-size: 3.2rem; font-weight: 800; line-height: 1.1; margin: 10px 0 4px; }
.plan-price small { font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.plan-sub { color: var(--muted); margin-bottom: 20px; min-height: 1.6em; }
.plan-sub b { color: var(--green); }
.plan .feature-list { margin-bottom: 28px; flex: 1; }
.guarantee {
  display: flex; gap: 18px; align-items: center; max-width: 820px; margin: 32px auto 0;
  background: var(--card); border: 1px dashed var(--green); border-radius: var(--radius); padding: 22px 26px;
}
.guarantee-icon { font-size: 2.4rem; flex-shrink: 0; }
.guarantee p { margin: 0; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; transition: border-color .15s;
}
.faq details[open] { border-color: var(--ink-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 600; color: var(--brand); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary h3 { display: inline; font-size: inherit; margin: 0; letter-spacing: normal; }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ul { padding-left: 1.2em; margin: 0 0 1em; }
.faq-more { text-align: center; margin-top: 28px; }

/* FAQ page */
.page-hero { padding: 64px 0 40px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.faq-toc a {
  display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.faq-toc a:hover { border-color: var(--brand); color: var(--brand); }
.faq-group { padding: 40px 0 16px; scroll-margin-top: 80px; }
.faq-group > h2 { font-size: 1.6rem; max-width: 820px; margin: 0 auto 20px; }
.inline-cta {
  max-width: 820px; margin: 24px auto; background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.inline-cta p { margin: 0; font-weight: 600; }
.inline-cta p span { display: block; font-weight: 400; color: #c3c7d6; font-size: .95rem; }
table.kanji-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.kanji-table th, .kanji-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.kanji-table th { background: var(--paper-2); }

/* ===== Final CTA ===== */
.final-cta { text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta .lead { color: #c3c7d6; margin: 0 auto 28px; }
.final-cta .hero-note { color: #aeb3c4; margin-top: 16px; }

/* ===== Footer ===== */
.site-footer { background: #0d0f16; color: #aeb3c4; padding: 48px 0 32px; font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer a { color: #dfe2ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .logo { color: #fff; margin-bottom: 10px; }
.copyright { margin-top: 28px; border-top: 1px solid #22263a; padding-top: 20px; }

/* ===== Mobile sticky CTA ===== */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  transform: translateY(140%); transition: transform .25s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(20, 22, 31, .3); }
@media (max-width: 760px) {
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 96px; }
}

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flip-inner { transition: none; }
}

/* ===== Community posts ===== */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.post {
  background: var(--card); color: var(--ink); border-radius: 14px; padding: 18px 20px 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.section--dark .post p { color: var(--ink-2); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-head b { display: block; font-size: .92rem; line-height: 1.2; }
.post-head span:not(.avatar) { font-size: .78rem; color: var(--muted); font-weight: 600; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-wrap { position: relative; flex-shrink: 0; width: 40px; height: 40px; }
.avatar--emoji { display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.avatar--fox { background: linear-gradient(135deg, var(--brand), var(--accent)); }
.avatar--tea { background: linear-gradient(135deg, #1f9d6b, #a8e6c1); }
.lvl {
  position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%;
  background: #3b5bdb; color: #fff; border: 2px solid var(--card);
  font-style: normal; font-size: .62rem; font-weight: 800; display: grid; place-items: center;
}
.post h3 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.post p { font-size: .93rem; line-height: 1.6; margin-bottom: 12px; }
.post-note { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.post-foot { margin-top: auto; display: flex; gap: 16px; align-items: center; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.poll { margin-left: auto; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: .75rem; }
.posts-note { text-align: center; font-size: .85rem; margin-top: 24px; }
.section--dark .posts-note { color: #8e93a6; }

@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, 1fr); } }
/* Phones: swipeable row instead of a long stack */
@media (max-width: 640px) {
  .posts {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -20px; padding: 4px 20px 16px; scrollbar-width: none;
  }
  .posts::-webkit-scrollbar { display: none; }
  .post { flex: 0 0 84%; scroll-snap-align: center; }
  .posts-note::before { content: "Swipe for more →  "; font-weight: 600; }
}

/* ===== System tabs ===== */
.tab-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  background: var(--paper-2); padding: 6px; border-radius: 16px; max-width: 760px; margin: 0 auto 28px;
}
.tab-list button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: transparent; border-radius: 11px; padding: 12px 10px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink-2); transition: background .15s, color .15s;
}
.tab-list button .jp { font-weight: 900; font-size: 1.15rem; color: var(--brand); }
.tab-list button:hover { background: rgba(153, 0, 254, .08); }
.tab-list button[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(153, 0, 254, .3); }
.tab-list button[aria-selected="true"] .jp { color: #fff; }
.tab-list button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 560px) { .tab-list { grid-template-columns: repeat(2, 1fr); } }

.tab-panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 36px; }
.tab-panel + .tab-panel { margin-top: 20px; } /* no-JS fallback: all panels stack */
.tabs.tabs-ready .tab-panel + .tab-panel { margin-top: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.panel-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .panel-grid { grid-template-columns: 1fr; gap: 28px; } .tab-panel { padding: 24px 20px; } }
.tab-panel h3 { font-size: 1.5rem; }

.flow { counter-reset: flow; list-style: none; padding: 0; margin: 16px 0 0; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 14px 44px; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: .9rem;
}
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 4px; width: 2px; background: var(--brand-soft); }

.flip-label { font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.flip-row--stack { margin-top: 0; }
.flip-row--stack .flip { height: 230px; }
.flip-row--stack .flip-face { padding: 16px; }
.flip-row--stack .flip-back p { font-size: .88rem; }
@media (max-width: 560px) { .flip-row--stack .flip { height: 170px; } }

.aspects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; list-style: none; padding: 0; margin: 16px 0 20px; }
.aspects li { background: var(--paper-2); border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 700; font-size: .85rem; line-height: 1.3; }
.aspects b { display: block; color: var(--brand); font-size: 1.1rem; }
@media (max-width: 560px) { .aspects { grid-template-columns: repeat(2, 1fr); } }

.demo-stack { display: grid; gap: 16px; }
.demo-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; position: relative; }
.demo-card p:last-child { margin-bottom: 0; }
.demo-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.demo-word { font-family: var(--font-jp); font-weight: 900; font-size: 3.2rem; line-height: 1.3; text-align: center; }
.demo-word rt, .ctx-row rt, .demo-sentence rt { font-family: var(--font); font-weight: 700; font-size: .32em; color: var(--muted); }
.demo-sentence rt { font-size: .5em; }
.demo-meaning { text-align: center; font-weight: 800; margin-bottom: 10px; }
.ctx-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 4px 0 12px; }
.ctx-row ruby { font-family: var(--font-jp); font-weight: 900; font-size: 2.2rem; line-height: 1.5; }
.ctx-row small { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; line-height: 1.3; }
.demo-sentence { font-family: var(--font-jp); font-weight: 700; font-size: 1.45rem; line-height: 2; margin: 0 0 10px; }
.trans { font-size: .95rem; padding: 8px 12px; border-radius: 8px; background: var(--card); margin-top: 6px; }
.trans span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trans--lit { background: var(--brand-soft); }
.trans--lit span { color: var(--brand); }

.loop { background: var(--ink); border-radius: 18px; padding: 24px; color: #fff; display: grid; gap: 6px; }
.loop-step { display: flex; gap: 14px; align-items: center; background: #1f2230; border: 1px solid #333849; border-radius: 12px; padding: 14px 16px; }
.loop-step b { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; }
.loop-step span { color: #c3c7d6; font-size: .92rem; line-height: 1.4; }
.loop-step strong { display: block; color: #fff; font-size: 1.05rem; }
.loop-arrow { text-align: center; color: var(--accent); font-weight: 800; }
.loop-back { text-align: center; color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 6px; }

/* ===== Compare ===== */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare-col { border-radius: 20px; padding: 28px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); }
.compare-col li::before { position: absolute; left: 0; top: 10px; font-weight: 800; }
.compare-col--diy { background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.compare-col--diy li::before { content: "✕"; color: #c0392b; }
.compare-col--ka { background: var(--brand); color: #fff; box-shadow: 0 14px 40px rgba(153, 0, 254, .25); }
.compare-col--ka li { border-top-color: rgba(255, 255, 255, .2); font-weight: 600; }
.compare-col--ka li::before { content: "✓"; color: #fff; }

/* FAQ byline */
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .95rem; margin: 0; }
.byline img { width: 36px; height: 36px; border-radius: 50%; }
.faq details { scroll-margin-top: 84px; }

/* Grammar demos */
.particle-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin: 4px 0 12px; }
.particle-row b { display: block; font-family: var(--font-jp); font-weight: 900; font-size: 2.4rem; line-height: 1.2; color: var(--brand); }
.particle-row small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.demo-sentence u { text-decoration: none; padding: 0 .1em; border-radius: 4px; }
.demo-sentence--wrong { color: var(--muted); margin-bottom: 0; }
.demo-sentence--wrong u { background: #fde2e2; color: #c0392b; }
.demo-sentence--right u { background: #d9f5e8; color: var(--green); }
.demo-sentence .mark { font-family: var(--font); font-size: .9em; margin-left: 8px; }
.demo-sentence--wrong .mark { color: #c0392b; }
.demo-sentence--right .mark { color: var(--green); }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.word-chips span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px 4px; font-size: .88rem; font-weight: 600; }
.word-chips ruby { font-family: var(--font-jp); font-weight: 700; font-size: 1.1rem; }
.word-chips rt { font-family: var(--font); font-size: .55em; color: var(--muted); }
.more-link { margin: 8px 0 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.more-link a { color: var(--brand); }
.honest-note a { color: var(--accent); }
