:root {
  --ink: #28232c;
  --muted: #716a78;
  --paper: #fffdf8;
  --cream: #f8f3ed;
  --rose: #d993aa;
  --rose-soft: #f6dce4;
  --mint: #6b9f9a;
  --mint-soft: #dcefeb;
  --indigo: #717ca8;
  --yellow: #f2cf73;
  --line: #e5d8ca;
  --shadow: 0 18px 60px rgba(67, 48, 37, .12);
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --jp: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

/* Crisp homepage product UI: rendered as live type instead of a transformed bitmap. */
.home-phone-frame {
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;
  border: 2px solid #171611;
  border-radius: 42px;
  background: #171611;
  transform: translateX(-50%) !important;
  will-change: auto;
}

.home-phone-speaker {
  z-index: 3;
}

.home-phone-ui {
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 0;
  padding: 44px 15px 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #1d1b19;
  border-radius: 31px;
  background:
    radial-gradient(circle at 88% 17%, rgba(244, 117, 109, .18) 0 13%, transparent 13.5%),
    radial-gradient(circle at 4% 2%, rgba(92, 177, 164, .17) 0 18%, transparent 18.5%),
    #fff9ef;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.phone-ui-bar,
.phone-card-kicker,
.phone-ui-actions,
.phone-ui-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-ui-bar {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}

.phone-ui-brand {
  color: #337d73;
}

.phone-ui-level {
  padding: 3px 7px;
  color: #fff;
  border-radius: 999px;
  background: #f05245;
  letter-spacing: .06em;
}

.phone-ui-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(29, 27, 25, .12);
}

.phone-ui-progress span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: #f05245;
}

.phone-vocab-card {
  min-height: 0;
  flex: 1;
  padding: 15px 14px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1.5px solid #1d1b19;
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 5px 6px 0 rgba(29, 27, 25, .1);
}

.phone-card-kicker {
  width: 100%;
  margin-bottom: auto;
  color: #6c6760;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.phone-word {
  width: 100%;
  margin: 8px 0 3px;
  color: #171611;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(28px, 3.4vw, 43px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .06em;
  text-align: center;
}

.phone-word rt {
  color: #337d73;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: .26em;
  font-weight: 800;
  letter-spacing: .12em;
}

.phone-meaning {
  width: 100%;
  color: #f05245;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.phone-example {
  width: 100%;
  margin: auto 0 0;
  padding-top: 11px;
  border-top: 1px dashed rgba(29, 27, 25, .22);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.6;
}

.phone-example mark {
  padding: 0 2px;
  color: inherit;
  background: linear-gradient(transparent 58%, #f5e66a 58%);
}

.phone-translation {
  margin: 3px 0 0;
  color: #77716a;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.phone-ui-actions,
.phone-ui-rating {
  gap: 7px;
}

.phone-ui-actions span,
.phone-ui-rating span {
  box-sizing: border-box;
  flex: 1;
  padding: 8px 4px;
  border: 1.5px solid #1d1b19;
  border-radius: 10px;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.phone-ui-actions span:first-child {
  color: #337d73;
  background: #d9f1eb;
}

.phone-ui-rating span:first-child {
  color: #a2463c;
  background: #ffe1d8;
}

.phone-ui-rating span:last-child {
  color: #23695f;
  background: #dff4d8;
}

@media (max-width: 640px) {
  .home-phone-frame {
    padding: 7px;
    border-radius: 30px;
  }

  .home-phone-ui {
    padding: 34px 10px 10px;
    gap: 6px;
    border-radius: 23px;
  }

  .phone-vocab-card {
    padding: 10px 9px 9px;
    border-radius: 13px;
    box-shadow: 3px 4px 0 rgba(29, 27, 25, .1);
  }

  .phone-ui-bar,
  .phone-ui-actions span,
  .phone-ui-rating span {
    font-size: 7px;
  }

  .phone-ui-actions span,
  .phone-ui-rating span {
    padding: 6px 2px;
    border-radius: 7px;
  }

  .phone-card-kicker,
  .phone-translation {
    font-size: 6px;
  }

  .phone-word {
    font-size: clamp(24px, 8vw, 31px);
  }

  .phone-meaning {
    font-size: 9px;
  }

  .phone-example {
    padding-top: 7px;
    font-size: 8px;
  }
}

/* Homepage 2026: editorial Japanese product system */
body[data-section="home"] {
  --home-ink: #171713;
  --home-paper: #f3efe4;
  --home-paper-2: #e9e3d4;
  --home-red: #ed5143;
  --home-green: #164e43;
  --home-lime: #d8e66a;
  --home-blue: #b9d8ef;
  --home-mincho: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  overflow-x: clip;
  background: var(--home-paper);
  color: var(--home-ink);
}

body[data-section="home"] .site-header {
  border-color: rgba(23, 23, 19, .2);
  background: rgba(243, 239, 228, .9);
  transition: background .3s ease, box-shadow .3s ease;
}

body[data-section="home"].home-scrolled .site-header {
  background: rgba(250, 248, 241, .96);
  box-shadow: 0 10px 35px rgba(23, 23, 19, .08);
}

body[data-section="home"] .nav-download {
  border-color: var(--home-ink);
  background: var(--home-red);
  color: var(--home-ink) !important;
  box-shadow: 3px 3px 0 var(--home-ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

body[data-section="home"] .nav-download:hover {
  color: var(--home-ink);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--home-ink);
}

body[data-section="home"] .home-hero {
  position: relative;
  height: auto;
  min-height: min(900px, calc(100svh - 72px));
  padding: clamp(52px, 6vw, 88px) 0 78px;
  overflow: hidden;
  border-bottom: 1px solid var(--home-ink);
  background: var(--home-paper);
  color: var(--home-ink);
}

.home-hero-noise {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: radial-gradient(rgba(23, 23, 19, .22) .55px, transparent .7px);
  background-size: 6px 6px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, #000, transparent 48%);
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr);
  gap: clamp(42px, 6vw, 90px);
  align-items: center;
}

.home-hero-copy { min-width: 0; }

.home-edition {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(42px, 6vw, 72px);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--home-ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

body[data-section="home"] .home-kicker {
  margin-bottom: 16px;
  color: var(--home-green);
  letter-spacing: .14em;
}

body[data-section="home"] .home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(58px, 6.1vw, 98px);
  font-weight: 950;
  line-height: .98;
  letter-spacing: -.065em;
}

.home-hero h1 > span { display: block; }
.home-title-accent { color: var(--home-red); }

body[data-section="home"] .hero-jp {
  width: fit-content;
  margin: 24px 0 0;
  padding: 5px 10px 7px;
  background: var(--home-ink);
  color: var(--home-paper);
  font-family: var(--home-mincho);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: .04em;
  transform: rotate(-1deg);
}

body[data-section="home"] .home-hero .lead {
  max-width: 590px;
  margin-top: 24px;
  color: #4c4a42;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.85;
  text-shadow: none;
}

body[data-section="home"] .hero-actions { align-items: center; margin-top: 30px; }

body[data-section="home"] .hero-actions .button.rose {
  min-height: 58px;
  padding: 0 20px 0 24px;
  border: 1px solid var(--home-ink);
  border-radius: 0;
  background: var(--home-red);
  color: var(--home-ink);
  box-shadow: 5px 5px 0 var(--home-ink);
  gap: 28px;
  justify-content: space-between;
  transition: transform .2s ease, box-shadow .2s ease;
}

body[data-section="home"] .hero-actions .button.rose:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--home-ink);
}

.home-text-button {
  min-height: 52px;
  padding-inline: 12px;
  border: 0;
  border-bottom: 1px solid var(--home-ink);
  border-radius: 0;
  background: transparent;
  color: var(--home-ink);
}

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: #6a675d;
  font-size: 12px;
}

.home-trust span { display: inline-flex; align-items: center; gap: 5px; }
.home-trust span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--home-green); }
.home-trust b { color: var(--home-ink); }

.home-product-stage {
  --pointer-x: 0;
  --pointer-y: 0;
  position: relative;
  width: min(100%, 610px);
  min-height: 670px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--home-ink);
  background: #a9cfc7;
  box-shadow: 12px 12px 0 var(--home-ink);
  isolation: isolate;
}

.home-stage-grid {
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image: linear-gradient(rgba(23, 23, 19, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 23, 19, .35) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.home-stage-caption {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 20px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .14em;
}

.home-stage-stamp {
  position: absolute;
  z-index: 5;
  top: 30px;
  right: 28px;
  display: grid;
  width: 90px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--home-ink);
  border-radius: 50%;
  background: var(--home-lime);
  font-family: var(--home-mincho);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  transform: rotate(8deg);
}

.home-stage-sun {
  position: absolute;
  z-index: -1;
  top: 116px;
  left: 50%;
  width: 355px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--home-red);
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(23, 23, 19, .25);
}

.home-phone-frame {
  position: absolute;
  z-index: 2;
  top: 62px;
  left: 50%;
  width: min(54%, 292px);
  padding: 9px;
  overflow: hidden;
  border: 2px solid var(--home-ink);
  border-radius: 36px;
  background: var(--home-ink);
  box-shadow: 16px 22px 45px rgba(23, 23, 19, .27);
  transform: translate3d(calc(-50% + var(--pointer-x) * 10px), calc(var(--pointer-y) * 8px), 0) rotate(-4deg);
  transition: transform .2s ease-out;
}

.home-phone-frame img { display: block; width: 100%; border-radius: 27px; }

.home-phone-speaker {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 34%;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: var(--home-ink);
  transform: translateX(-50%);
}

.home-float-card {
  position: absolute;
  z-index: 3;
  border: 1px solid var(--home-ink);
  background: #fffdf6;
  color: var(--home-ink);
  box-shadow: 7px 7px 0 rgba(23, 23, 19, .92);
}

.home-float-word {
  top: 250px;
  left: 22px;
  width: 190px;
  padding: 17px;
  transform: translate3d(calc(var(--pointer-x) * -14px), calc(var(--pointer-y) * -10px), 0) rotate(-4deg);
  transition: transform .22s ease-out;
}

.home-float-word span, .home-float-word small { display: block; color: #6b675d; font-size: 10px; font-weight: 800; }
.home-float-word strong { display: block; margin: 10px 0 7px; font-family: var(--home-mincho); font-size: 34px; }
.home-float-word rt { font-size: 9px; }

.home-float-progress {
  right: 22px;
  bottom: 90px;
  width: 184px;
  padding: 16px;
  transform: translate3d(calc(var(--pointer-x) * 16px), calc(var(--pointer-y) * 12px), 0) rotate(3deg);
  transition: transform .24s ease-out;
}

.home-float-progress > div { display: flex; align-items: flex-end; justify-content: space-between; font-size: 10px; font-weight: 900; }
.home-float-progress > div strong { font-size: 19px; }
.home-float-progress i { display: block; height: 7px; margin: 13px 0 9px; border: 1px solid var(--home-ink); background: #ded9cd; }
.home-float-progress i b { display: block; width: 67%; height: 100%; background: var(--home-red); }
.home-float-progress small { font-size: 10px; font-style: normal; }

.home-cat-seal {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--home-ink);
  border-radius: 999px;
  background: var(--home-paper);
  transform: rotate(2deg);
}

.home-cat-seal img { width: 44px; height: 44px; border-radius: 50%; }
.home-cat-seal span { font-family: var(--jp); font-size: 10px; font-weight: 900; line-height: 1.15; }

.home-stage-foot {
  position: absolute;
  right: 18px;
  bottom: 15px;
  margin: 0;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

body[data-section="home"] .hero-next {
  bottom: 20px;
  color: var(--home-ink);
  font-size: 9px;
  letter-spacing: .16em;
}

body[data-section="home"] .hero-next b { border-color: var(--home-ink); }

.home-kana {
  position: absolute;
  z-index: 1;
  color: transparent;
  font-family: var(--home-mincho);
  font-size: clamp(120px, 16vw, 260px);
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(23, 23, 19, .12);
  pointer-events: none;
}

.home-kana-a { left: -2vw; bottom: -40px; transform: rotate(-12deg); }
.home-kana-ka { top: 1vw; left: 46%; font-size: clamp(80px, 10vw, 150px); transform: rotate(8deg); }
.home-kana-ne { right: -2vw; bottom: -22px; transform: rotate(13deg); }

.home-word-ribbon {
  overflow: hidden;
  border-bottom: 1px solid var(--home-ink);
  background: var(--home-ink);
  color: var(--home-paper);
}

.home-word-track {
  display: flex;
  width: max-content;
  animation: homeMarquee 26s linear infinite;
}

.home-word-track span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--home-mincho);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.home-word-track span::after { content: "✦"; margin-left: 36px; color: var(--home-lime); font-family: sans-serif; font-size: 12px; }
.home-word-track i { color: #aaa69c; font-family: var(--jp); font-size: 9px; font-style: normal; letter-spacing: .12em; }

.home-proof { padding: clamp(92px, 10vw, 150px) 0; border-bottom: 1px solid var(--home-ink); background: #fffdf6; }

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 50px;
  align-items: end;
  margin-bottom: clamp(42px, 6vw, 72px);
}

.home-section-heading .eyebrow { margin-bottom: 17px; color: var(--home-green); }
.home-section-heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.045em; }
.home-section-heading > p { margin: 0 0 5px; color: #68645b; font-size: 16px; line-height: 1.85; }

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--home-ink);
  border-left: 1px solid var(--home-ink);
}

.home-proof-grid article {
  min-height: 210px;
  padding: 18px;
  border-right: 1px solid var(--home-ink);
  border-bottom: 1px solid var(--home-ink);
  background: var(--home-paper);
}

.home-proof-grid article > span { display: block; font-size: 9px; font-weight: 950; letter-spacing: .13em; }
.home-proof-grid article strong { display: block; margin-top: 52px; font-family: var(--home-mincho); font-size: clamp(34px, 4vw, 54px); font-weight: 800; letter-spacing: -.04em; }
.home-proof-grid article p { margin: 8px 0 0; color: #6a675e; font-size: 13px; }
.home-proof-grid article:nth-child(2) { background: var(--home-blue); }
.home-proof-grid article:nth-child(3) { background: var(--home-lime); }
.home-proof-grid article:nth-child(4) { background: #f3b7ad; }
.home-proof-grid .home-proof-levels { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; min-height: 145px; background: var(--home-green); color: white; }
.home-proof-grid .home-proof-levels strong { margin: 0; text-align: center; }
.home-proof-grid .home-proof-levels p { color: #d8e7df; text-align: right; }

.home-content-section { border-bottom: 1px solid var(--home-ink); background: var(--home-paper); }

.home-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.home-bento-card {
  position: relative;
  min-width: 0;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--home-ink);
  background: #fffdf6;
  color: var(--home-ink);
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-bento-card:hover { color: var(--home-ink); transform: translateY(-5px); box-shadow: 7px 7px 0 var(--home-ink); }
.home-card-top { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 13px; border-bottom: 1px solid currentColor; font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.home-card-kicker { margin: 24px 0 8px; font-size: 10px; font-weight: 950; letter-spacing: .12em; }
.home-bento-card h3 { margin: 0; font-size: clamp(28px, 3vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
.home-bento-card > p:not(.home-card-kicker) { max-width: 480px; color: #656159; font-size: 14px; line-height: 1.7; }
.home-bento-card.is-vocab { grid-column: span 7; min-height: 620px; background: var(--home-red); }
.home-bento-card.is-vocab > div:nth-child(2) { width: 67%; }
.home-bento-card.is-grammar { grid-column: span 5; background: var(--home-lime); }
.home-bento-card.is-kanji { grid-column: span 5; background: var(--home-green); color: white; }
.home-bento-card.is-kanji > p { color: #d5e4dd; }
.home-bento-card.is-reading, .home-bento-card.is-listening, .home-bento-card.is-expression { grid-column: span 4; }
.home-bento-card.is-reading { background: #f7d7a2; }
.home-bento-card.is-listening { background: var(--home-blue); }
.home-bento-card.is-expression { background: #f2c7d8; }

.home-word-stack { position: absolute; right: -20px; bottom: 20px; width: 48%; }
.home-word-stack span { display: grid; grid-template-columns: 82px 1fr; align-items: center; min-height: 93px; margin-top: -1px; border: 1px solid var(--home-ink); background: var(--home-paper); transform: rotate(var(--turn, 0deg)); }
.home-word-stack span:nth-child(1) { --turn: 3deg; }
.home-word-stack span:nth-child(2) { --turn: -2deg; margin-left: -30px; }
.home-word-stack span:nth-child(3) { --turn: 2deg; margin-left: 15px; }
.home-word-stack b { display: grid; height: 100%; place-items: center; border-right: 1px solid var(--home-ink); font-family: var(--home-mincho); font-size: 48px; }
.home-word-stack small { padding: 12px; font-weight: 800; }

.home-bento-card.is-grammar h3 { margin-top: 24px; font-family: var(--home-mincho); font-size: clamp(58px, 6vw, 84px); }
.home-grammar-line { position: absolute; right: 24px; bottom: 24px; left: 24px; display: flex; align-items: center; gap: 12px; }
.home-grammar-line i { height: 8px; flex: 1; background: repeating-linear-gradient(90deg, var(--home-ink) 0 8px, transparent 8px 13px); }
.home-grammar-line b { font-size: 12px; }

.home-kanji-cloud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 30px; }
.home-kanji-cloud span { display: grid; aspect-ratio: 1.35; place-items: center; border: 1px solid rgba(255,255,255,.45); font-family: var(--home-mincho); font-size: clamp(26px, 3vw, 42px); }
.home-kanji-cloud span:nth-child(2), .home-kanji-cloud span:nth-child(6) { background: var(--home-red); color: var(--home-ink); }

.home-reading-sample { position: absolute; right: 22px; bottom: 20px; margin: 0; color: rgba(23,23,19,.55); font-family: var(--home-mincho); font-size: 16px; line-height: 2; writing-mode: vertical-rl; }

.home-audio-wave { position: absolute; right: 24px; bottom: 25px; left: 24px; display: flex; height: 70px; align-items: center; gap: 4px; }
.home-audio-wave i { width: 5px; height: calc(7px + var(--wave) * 7px); background: var(--home-ink); animation: homeWave 1.2s ease-in-out calc(var(--wave) * -.09s) infinite alternate; }
.home-audio-wave b { display: grid; width: 52px; aspect-ratio: 1; margin-left: auto; place-items: center; border: 1px solid var(--home-ink); border-radius: 50%; background: var(--home-red); font-size: 13px; }

.home-expression-bubbles { position: absolute; right: 15px; bottom: 18px; left: 15px; min-height: 110px; }
.home-expression-bubbles span { position: absolute; padding: 8px 12px; border: 1px solid var(--home-ink); border-radius: 999px; background: #fffdf6; font-family: var(--home-mincho); font-weight: 800; }
.home-expression-bubbles span:nth-child(1) { top: 0; left: 4%; transform: rotate(-8deg); }
.home-expression-bubbles span:nth-child(2) { top: 38px; right: 3%; transform: rotate(5deg); }
.home-expression-bubbles span:nth-child(3) { bottom: 0; left: 25%; transform: rotate(2deg); }

.home-app-showcase { position: relative; overflow: hidden; border-bottom: 1px solid var(--home-ink); background: var(--home-green); color: #fffdf6; }
.home-app-showcase::before { content: "日本語"; position: absolute; right: -2vw; bottom: -8vw; color: transparent; font-family: var(--home-mincho); font-size: 25vw; font-weight: 900; line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.12); }
.home-showcase-grid { position: relative; display: grid; grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr); gap: clamp(50px, 7vw, 100px); align-items: center; }
.home-showcase-copy { position: relative; z-index: 2; }
.home-showcase-copy .eyebrow { color: var(--home-lime); }
.home-showcase-copy h2 { color: #fffdf6; font-size: clamp(48px, 5vw, 72px); }
.home-showcase-copy .lead { color: #d5e4dd; }
.home-learning-loop { margin: 38px 0; padding: 0; list-style: none; }
.home-learning-loop li { display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.25); }
.home-learning-loop li:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.home-learning-loop li > span { color: var(--home-lime); font-size: 10px; font-weight: 950; }
.home-learning-loop strong { display: block; margin-bottom: 4px; }
.home-learning-loop p { margin: 0; color: #c2d3cb; font-size: 13px; }
.home-arrow-link { display: inline-flex; align-items: center; gap: 16px; color: inherit; font-weight: 900; text-decoration: none; }
.home-arrow-link span { transition: transform .2s ease; }
.home-arrow-link:hover span { transform: translate(3px, -3px); }
.home-showcase-copy .home-arrow-link { color: var(--home-lime); }

.home-screen-rail { position: relative; display: flex; min-height: 710px; align-items: center; justify-content: center; }
.home-screen-rail figure { position: absolute; width: 36%; margin: 0; }
.home-screen-rail figure:nth-child(1) { left: 1%; transform: rotate(-8deg) translateY(35px); }
.home-screen-rail figure:nth-child(2) { z-index: 2; width: 43%; transform: translateY(-10px); }
.home-screen-rail figure:nth-child(3) { right: 1%; transform: rotate(8deg) translateY(45px); }
.home-screen-rail figure > span { display: block; margin-bottom: 7px; color: #d3e4dc; font-size: 9px; font-weight: 950; letter-spacing: .13em; text-align: center; }
.home-screen-rail img { display: block; width: 100%; border: 7px solid var(--home-ink); border-radius: 28px; box-shadow: 13px 17px 32px rgba(0,0,0,.28); }
.home-screen-rail figcaption { margin-top: 9px; color: #d3e4dc; font-size: 11px; font-weight: 800; text-align: center; }
.home-screen-note { position: absolute; z-index: 4; right: 0; bottom: 25px; display: flex; width: 210px; padding: 14px; border: 1px solid var(--home-ink); background: var(--home-lime); color: var(--home-ink); flex-direction: column; box-shadow: 6px 6px 0 var(--home-ink); transform: rotate(-3deg); }
.home-screen-note b { font-size: 9px; letter-spacing: .1em; }
.home-screen-note span { margin-top: 5px; font-family: var(--home-mincho); font-size: 22px; font-weight: 800; }

.home-level-band { border-bottom: 1px solid var(--home-ink); background: #fffdf6; }
.home-level-cards { gap: 0; border-top: 1px solid var(--home-ink); border-left: 1px solid var(--home-ink); }
body[data-section="home"] .home-level-cards .level-card { position: relative; min-height: 330px; padding: 18px; border: 0; border-right: 1px solid var(--home-ink); border-bottom: 1px solid var(--home-ink); background: var(--home-paper); color: var(--home-ink); transition: background .25s ease, color .25s ease; }
body[data-section="home"] .home-level-cards .level-card::before { display: none; }
body[data-section="home"] .home-level-cards .level-card:hover { background: var(--home-ink); color: #fffdf6; }
.home-level-card span { font-style: normal; }
.home-level-index { font-size: 9px; font-weight: 950; letter-spacing: .12em; }
body[data-section="home"] .home-level-cards .level-card strong { margin: 48px 0 4px; font-family: var(--home-mincho); font-size: clamp(45px, 5vw, 68px); }
body[data-section="home"] .home-level-cards .level-card em { font-size: 12px; font-style: normal; font-weight: 900; }
body[data-section="home"] .home-level-cards .level-card p { color: #68645b; font-size: 12px; line-height: 1.6; }
body[data-section="home"] .home-level-cards .level-card:hover p { color: #bbb7ad; }
body[data-section="home"] .home-level-cards .level-card small { color: #68645b; font-size: 9px; }
body[data-section="home"] .home-level-cards .level-card:hover small { color: #bbb7ad; }
body[data-section="home"] .home-level-cards .level-card > b { position: absolute; right: 15px; bottom: 12px; font-size: 19px; }
body[data-section="home"] .home-level-cards .n5 { background: #c4ddd7; }
body[data-section="home"] .home-level-cards .n4 { background: #c7dbed; }
body[data-section="home"] .home-level-cards .n3 { background: #f1c3d0; }
body[data-section="home"] .home-level-cards .n2 { background: #f2c99a; }
body[data-section="home"] .home-level-cards .n1 { background: var(--home-lime); }

.home-demo { border-bottom: 1px solid var(--home-ink); background: var(--home-red); }
body[data-section="home"] .home-demo .demo-layout { grid-template-columns: .86fr 1.14fr; }
.home-demo .eyebrow { color: var(--home-ink); }
.home-demo h2 { font-size: clamp(46px, 5vw, 70px); }
.home-demo .lead, .home-demo .demo-status { color: #5a332e; }
body[data-section="home"] .home-demo .flashcard { min-height: 510px; padding: 26px; border: 1px solid var(--home-ink); background: #fffdf6; box-shadow: 10px 10px 0 var(--home-ink); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
body[data-section="home"] .home-demo .flashcard:hover { transform: rotate(-1deg) translateY(-3px); box-shadow: 14px 15px 0 var(--home-ink); }
body[data-section="home"] .home-demo .flashcard.flipped { background: var(--home-lime); transform: rotate(1deg); }
.home-demo .flashcard-top { padding-bottom: 13px; border-bottom: 1px solid var(--home-ink); color: var(--home-ink); font-size: 9px; letter-spacing: .12em; }
.home-demo .flashcard-main { min-height: 365px; }
.home-demo .flashcard-main small { font-family: var(--home-mincho); }
.home-demo .flashcard .jp { font-family: var(--home-mincho); font-size: clamp(60px, 7vw, 96px); }
.home-demo .flashcard .answer-word { font-family: var(--jp); font-size: clamp(43px, 5vw, 66px); }
.home-demo .flashcard-hint { display: flex; justify-content: center; gap: 8px; border-color: var(--home-ink); }
.home-demo .flashcard-hint span { padding: 4px 8px; border: 1px solid var(--home-ink); color: var(--home-ink); font-size: 9px; font-weight: 900; }

.home-guides { border-bottom: 1px solid var(--home-ink); background: var(--home-paper); }
.home-guides .home-section-heading { align-items: end; }
.home-guides .home-section-heading > .home-arrow-link { justify-self: end; }
.home-guides .article-grid { gap: 0; border-top: 1px solid var(--home-ink); border-left: 1px solid var(--home-ink); }
body[data-section="home"] .home-guides .article-card { display: flex; min-height: 360px; padding: 22px; border: 0; border-right: 1px solid var(--home-ink); border-bottom: 1px solid var(--home-ink); background: #fffdf6; flex-direction: column; }
.home-guide-meta { display: flex; justify-content: space-between; gap: 12px; color: #716e65; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.home-guides .article-card h3 { margin: 48px 0 14px; font-size: clamp(23px, 2.6vw, 34px); line-height: 1.25; }
.home-guides .article-card > p { color: #69655c; line-height: 1.7; }
.home-guides .article-card .text-link { margin-top: auto; color: var(--home-green); }

.home-faq { background: #fffdf6; }
.home-faq-jp { color: var(--home-red) !important; font-family: var(--home-mincho); font-size: clamp(24px, 2.8vw, 38px) !important; font-weight: 800; line-height: 1.45 !important; text-align: right; }
body[data-section="home"] .home-faq .faq-list { max-width: none; border-top: 1px solid var(--home-ink); }
body[data-section="home"] .home-faq .faq-list details { padding: 0; border-color: var(--home-ink); }
body[data-section="home"] .home-faq .faq-list summary { position: relative; padding: 25px 54px 25px 0; font-size: clamp(17px, 2vw, 22px); list-style: none; }
body[data-section="home"] .home-faq .faq-list summary::-webkit-details-marker { display: none; }
body[data-section="home"] .home-faq .faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 50%; display: grid; width: 32px; aspect-ratio: 1; place-items: center; border: 1px solid var(--home-ink); border-radius: 50%; transform: translateY(-50%); }
body[data-section="home"] .home-faq .faq-list details[open] summary::after { content: "−"; background: var(--home-lime); }
body[data-section="home"] .home-faq .faq-list p { max-width: 750px; margin: 0; padding: 0 0 25px; line-height: 1.8; }

body[data-section="home"] .cta-band { border-top: 1px solid var(--home-ink); background: var(--home-ink); }

body[data-section="home"].home-motion-ready [data-reveal] {
  opacity: 1;
  transform: translateY(24px);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

body[data-section="home"].home-motion-ready [data-reveal].is-visible { transform: translateY(0); }
.home-proof-grid [data-reveal]:nth-child(2), .home-level-cards [data-reveal]:nth-child(2) { transition-delay: .08s; }
.home-proof-grid [data-reveal]:nth-child(3), .home-level-cards [data-reveal]:nth-child(3) { transition-delay: .16s; }
.home-proof-grid [data-reveal]:nth-child(4), .home-level-cards [data-reveal]:nth-child(4) { transition-delay: .24s; }
.home-proof-grid [data-reveal]:nth-child(5), .home-level-cards [data-reveal]:nth-child(5) { transition-delay: .32s; }

@keyframes homeMarquee { to { transform: translateX(-50%); } }
@keyframes homeWave { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes homeHeroCopyIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes homeStageIn { from { opacity: 0; transform: translateY(35px) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes homeFloat { 50% { translate: 0 -8px; } }

.home-hero-copy { animation: homeHeroCopyIn .8s .05s both cubic-bezier(.2,.7,.2,1); }
.home-product-stage { animation: homeStageIn .9s .18s both cubic-bezier(.2,.7,.2,1); }
.home-stage-stamp, .home-cat-seal { animation: homeFloat 4.8s ease-in-out infinite; }
.home-cat-seal { animation-delay: -2.1s; }

@media (max-width: 1080px) {
  .home-hero-grid { grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); gap: 40px; }
  .home-product-stage { min-height: 610px; }
  .home-float-word { left: 14px; width: 170px; }
  .home-float-progress { right: 14px; width: 165px; }
  .home-bento-card.is-vocab { min-height: 560px; }
  .home-screen-rail { min-height: 640px; }
}

@media (max-width: 900px) {
  body[data-section="home"] .nav-links { background: #fffdf6; }
  body[data-section="home"] .home-hero { min-height: auto; padding-top: 54px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-edition { margin-bottom: 42px; }
  body[data-section="home"] .home-hero h1 { max-width: 700px; font-size: clamp(62px, 12vw, 92px); }
  .home-product-stage { width: min(100%, 650px); min-height: 680px; margin: 28px auto 20px; justify-self: center; }
  .home-kana-ka { left: auto; right: -3vw; }
  .home-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .home-section-heading > p { max-width: 600px; }
  .home-proof-grid { grid-template-columns: repeat(2, 1fr); }
  .home-proof-grid .home-proof-levels { grid-column: 1 / -1; }
  .home-bento-card.is-vocab, .home-bento-card.is-grammar, .home-bento-card.is-kanji { grid-column: span 6; }
  .home-bento-card.is-vocab { min-height: 520px; }
  .home-bento-card.is-vocab > div:nth-child(2) { width: 100%; }
  .home-word-stack { width: 55%; }
  .home-bento-card.is-reading, .home-bento-card.is-listening, .home-bento-card.is-expression { grid-column: span 6; }
  .home-showcase-grid { grid-template-columns: 1fr; }
  .home-showcase-copy { max-width: 680px; }
  .home-screen-rail { width: min(100%, 680px); margin-inline: auto; }
  .home-level-cards { grid-template-columns: repeat(3, 1fr); }
  body[data-section="home"] .home-level-cards .level-card { min-height: 280px; }
  body[data-section="home"] .home-demo .demo-layout { display: grid; grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 580px) {
  body[data-section="home"] .home-hero { height: auto; min-height: 0; padding: 36px 0 60px; }
  .home-edition { margin-bottom: 34px; font-size: 8px; }
  .home-edition span:last-child { display: none; }
  body[data-section="home"] .home-kicker { font-size: 10px; }
  body[data-section="home"] .home-hero h1 { font-size: clamp(48px, 14vw, 66px); line-height: 1.02; }
  body[data-section="home"] .hero-jp { font-size: 15px; }
  body[data-section="home"] .home-hero .lead { font-size: 16px; line-height: 1.75; }
  body[data-section="home"] .home-hero .hero-actions { display: flex; }
  body[data-section="home"] .home-hero .hero-actions .button { width: auto; }
  body[data-section="home"] .home-hero .hero-actions .button.rose { width: 100%; }
  .home-text-button { display: none; }
  .home-trust { gap: 7px 14px; }
  .home-product-stage { min-height: 490px; margin-top: 12px; box-shadow: 7px 7px 0 var(--home-ink); }
  .home-stage-caption { top: 12px; left: 13px; font-size: 7px; }
  .home-stage-stamp { top: 18px; right: 15px; width: 66px; font-size: 12px; }
  .home-stage-sun { top: 72px; width: 250px; }
  .home-phone-frame { top: 48px; width: 56%; padding: 6px; border-radius: 27px; }
  .home-phone-frame img { border-radius: 21px; }
  .home-phone-speaker { top: 11px; height: 14px; }
  .home-float-word { top: 182px; left: 9px; width: 132px; padding: 11px; box-shadow: 4px 4px 0 var(--home-ink); }
  .home-float-word strong { margin-block: 7px 4px; font-size: 25px; }
  .home-float-progress { right: 8px; bottom: 53px; width: 133px; padding: 11px; box-shadow: 4px 4px 0 var(--home-ink); }
  .home-float-progress > div strong { font-size: 14px; }
  .home-cat-seal { left: 10px; bottom: 11px; }
  .home-cat-seal img { width: 33px; height: 33px; }
  .home-stage-foot { display: none; }
  .home-kana { display: none; }
  .home-word-track span { padding: 11px 19px; font-size: 16px; }
  .home-word-track span::after { margin-left: 24px; }
  .home-proof, body[data-section="home"] .section { padding: 76px 0; }
  .home-section-heading { margin-bottom: 36px; }
  .home-section-heading h2 { font-size: clamp(37px, 11vw, 50px); }
  .home-proof-grid { grid-template-columns: 1fr 1fr; }
  .home-proof-grid article { min-height: 165px; padding: 13px; }
  .home-proof-grid article strong { margin-top: 35px; font-size: 31px; }
  .home-proof-grid .home-proof-levels { display: grid; grid-template-columns: 1fr; gap: 10px; min-height: 170px; }
  .home-proof-grid .home-proof-levels strong { text-align: left; }
  .home-proof-grid .home-proof-levels p { text-align: left; }
  .home-bento { grid-template-columns: 1fr; }
  .home-bento-card.is-vocab, .home-bento-card.is-grammar, .home-bento-card.is-kanji, .home-bento-card.is-reading, .home-bento-card.is-listening, .home-bento-card.is-expression { grid-column: auto; min-height: 360px; }
  .home-bento-card.is-vocab { min-height: 530px; }
  .home-word-stack { right: -8px; width: 70%; }
  .home-word-stack span { grid-template-columns: 68px 1fr; min-height: 76px; }
  .home-word-stack b { font-size: 38px; }
  .home-kanji-cloud { grid-template-columns: repeat(3, 1fr); }
  .home-showcase-grid { gap: 42px; }
  .home-screen-rail { min-height: 500px; overflow: visible; }
  .home-screen-rail figure { width: 44%; }
  .home-screen-rail figure:nth-child(1) { left: -8%; }
  .home-screen-rail figure:nth-child(2) { width: 52%; }
  .home-screen-rail figure:nth-child(3) { right: -8%; }
  .home-screen-rail img { border-width: 5px; border-radius: 20px; }
  .home-screen-note { right: 3px; bottom: 8px; width: 156px; padding: 10px; }
  .home-screen-note span { font-size: 17px; }
  .home-level-cards { grid-template-columns: 1fr; }
  body[data-section="home"] .home-level-cards .level-card { min-height: 230px; }
  body[data-section="home"] .home-level-cards .level-card strong { margin-top: 25px; }
  body[data-section="home"] .home-demo .flashcard { min-height: 450px; padding: 18px; box-shadow: 6px 7px 0 var(--home-ink); }
  .home-demo .flashcard-main { min-height: 320px; }
  .home-demo .flashcard-hint { flex-wrap: wrap; }
  .home-guides .home-section-heading > .home-arrow-link { justify-self: start; }
  body[data-section="home"] .home-guides .article-grid { grid-template-columns: 1fr; }
  body[data-section="home"] .home-guides .article-card { min-height: 310px; }
  .home-faq-jp { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .home-word-track, .home-audio-wave i, .home-stage-stamp, .home-cat-seal, .home-hero-copy, .home-product-stage { animation: none !important; }
  body[data-section="home"].home-motion-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .home-phone-frame { transform: translateX(-50%); transition: none; }
  .home-float-card { transition: none; }
  .home-float-word { transform: rotate(-4deg); }
  .home-float-progress { transform: rotate(3deg); }
  .home-bento-card, .home-arrow-link span { transition: none; }
}

/* Typed SEO/AEO content system */
.article-hero {
  padding: 74px 0 64px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7f1e7 0 62%, #e6f1ed 62% 100%);
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 60px;
  align-items: end;
}

.article-hero h1 { max-width: 920px; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.1; }
.article-hero .lead { max-width: 780px; }
.article-hero-grid > aside { padding: 18px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.article-hero-grid > aside span, .article-hero-grid > aside small { display: block; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.article-hero-grid > aside strong { display: block; margin: 8px 0 16px; font-family: var(--jp); font-size: 42px; }

.content-article { background: #fffdfa; }
.article-shell { max-width: 980px; padding-block: 58px 100px; }
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid #714e00; background: #fff2b8; color: #573c00; }
.draft-banner strong { flex: none; }
.draft-banner span { font-size: 13px; }
.freshness-notice { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; padding: 14px 16px; border-left: 4px solid #be6b39; background: #fff3e7; color: #62472f; font-size: 12px; }
.freshness-notice strong { color: #8d4523; }
.content-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.content-meta > span { padding: 6px 10px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 11px; font-weight: 800; }
.content-meta .content-level { border-color: var(--ink); background: var(--ink); color: white; }

.content-answer { position: relative; margin: 0 0 38px; padding: 28px 30px 28px 122px; border: 1px solid var(--ink); background: #e7f3ef; box-shadow: 7px 7px 0 rgba(41, 36, 31, .16); }
.content-answer > span { position: absolute; top: 0; bottom: 0; left: 0; display: grid; width: 94px; place-items: center; border-right: 1px solid var(--ink); background: var(--mint); color: white; font-size: 12px; font-weight: 900; letter-spacing: .08em; writing-mode: vertical-rl; }
.content-answer p { margin: 0; color: #302f2b; font-size: 20px; font-weight: 700; line-height: 1.9; }

.content-takeaways { margin: 64px 0; }
.content-takeaways h2, .content-toc > span { font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.content-takeaways ol { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; padding: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); list-style: none; }
.content-takeaways li { display: flex; min-height: 155px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: white; flex-direction: column; }
.content-takeaways li b { color: var(--rose); font-size: 11px; }
.content-takeaways li span { margin-top: auto; font-weight: 800; line-height: 1.65; }

.content-toc { margin: 64px 0; padding: 25px; border: 1px solid var(--line); background: #f6f2e9; }
.content-toc ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 18px 0 0; padding: 0; list-style: none; }
.content-toc li { border-top: 1px solid var(--line); }
.content-toc a { display: flex; gap: 14px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.content-toc a:hover { color: var(--rose); }
.content-toc a b { color: var(--muted); font-size: 10px; }

.content-section-label { color: var(--rose); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.article-section { padding: 62px 0; border-top: 1px solid var(--line); }
.article-section h2, .content-quiz h2, .content-faq h2, .content-sources h2, .related-content h2, .graded-reading h2 { max-width: 760px; margin: 10px 0 25px; font-size: clamp(31px, 4vw, 45px); line-height: 1.25; }
.article-section > p, .content-quiz > p, .content-sources > p, .graded-reading > p { color: #554f55; font-size: 17px; line-height: 2; }
.article-section > ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.article-section > ul li { position: relative; padding: 12px 15px 12px 42px; border: 1px solid var(--line); background: white; }
.article-section > ul li::before { content: "✓"; position: absolute; left: 16px; color: var(--mint); font-weight: 900; }

.japanese-sentence { margin: 20px 0; border: 1px solid var(--line); background: white; }
.japanese-sentence blockquote { margin: 0; padding: 25px; font-family: var(--jp); font-size: 23px; font-weight: 800; line-height: 1.9; }
.sentence-reading { margin: -15px 25px 20px; color: var(--muted); font-family: var(--jp); font-size: 14px; }
.japanese-sentence figcaption { display: flex; gap: 8px; padding: 14px 25px; border-top: 1px solid var(--line); background: #faf7f1; flex-direction: column; }
.japanese-sentence figcaption small { color: var(--muted); }

.content-table-scroll { max-width: 100%; margin: 28px 0 48px; overflow-x: auto; border: 1px solid var(--ink); background: white; }
.content-table-scroll table { width: 100%; min-width: 680px; border-collapse: collapse; }
.content-table-scroll caption { padding: 14px 16px; border-bottom: 1px solid var(--ink); background: var(--ink); color: white; font-weight: 900; text-align: left; }
.content-table-scroll th, .content-table-scroll td { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content-table-scroll thead th { background: #e6f1ed; font-size: 12px; }
.content-table-scroll tbody th { font-family: var(--jp); }
.vocabulary-table { font-size: 13px; }

.mistake-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.mistake-card { padding: 20px; border: 1px solid var(--line); background: white; }
.mistake-card > p { color: var(--muted); }
.mistake-card .mistake-wrong, .mistake-card .mistake-correct { display: grid; gap: 7px; padding: 11px; }
.mistake-card .mistake-wrong { background: #fff0ef; }
.mistake-card .mistake-correct { background: #eaf6f1; }
.mistake-card span { font-size: 10px; font-weight: 900; }
.mistake-card del, .mistake-card ins { font-size: 17px; font-weight: 800; text-decoration-thickness: 2px; }

.grammar-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 35px 0 70px; }
.grammar-card { padding: 24px; border: 1px solid var(--ink); background: #f1f6d4; }
.grammar-card > span { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.grammar-card h3 { margin: 14px 0; font-family: var(--jp); font-size: 32px; }

.graded-reading { margin: 70px -40px; padding: 50px 40px; border: 1px solid var(--ink); background: #f5f0e6; }
.reading-controls { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.reading-controls button { padding: 9px 13px; border: 1px solid var(--ink); background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.reading-controls button[aria-pressed="false"], .reading-controls button[aria-expanded="true"] { background: var(--ink); color: white; }
.japanese-reading { padding: clamp(22px, 5vw, 52px); border: 1px solid var(--ink); background: white; }
.japanese-reading p { font-family: var(--jp); font-size: clamp(19px, 2.5vw, 25px); line-height: 2.05; }
.japanese-reading.hide-furigana rt { visibility: hidden; }
.reading-translation { margin-top: 12px; padding: 18px; border: 1px solid var(--line); background: white; }
.reading-translation summary { cursor: pointer; font-weight: 900; }
.reading-translation p { line-height: 1.85; }
.summary-practice { margin-top: 24px; padding: 18px; border-left: 4px solid var(--rose); background: #fff; }

.content-quiz { margin: 80px 0; padding: 44px; border: 1px solid var(--ink); background: #e8f1ed; }
.quiz-question { margin: 28px 0 0; padding: 24px; border: 1px solid var(--ink); background: white; }
.quiz-question legend { max-width: 90%; padding: 0 8px; font-size: 17px; font-weight: 900; }
.quiz-options { display: grid; gap: 8px; margin: 16px 0; }
.quiz-options label { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }
.quiz-options label:has(input:focus-visible) { outline: 3px solid #245f5b; outline-offset: 2px; }
.quiz-options input { margin-top: 4px; }
.quiz-feedback { min-height: 24px; font-weight: 900; }
.quiz-feedback.is-correct::before { content: "答對："; color: #287357; }
.quiz-feedback.is-wrong::before { content: "再確認："; color: #a33c32; }
.quiz-question details { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.quiz-question details summary { cursor: pointer; font-weight: 800; }

.content-faq { margin: 80px 0; }
.content-faq details { border-top: 1px solid var(--ink); }
.content-faq details:last-child { border-bottom: 1px solid var(--ink); }
.content-faq summary { padding: 20px 0; cursor: pointer; font-size: 17px; font-weight: 900; }
.content-faq details p { max-width: 760px; color: var(--muted); line-height: 1.85; }

.content-sources { margin: 80px 0 30px; padding: 35px; border: 1px solid var(--line); background: #f8f6f1; }
.content-sources ol { padding-left: 22px; }
.content-sources li { margin: 16px 0; }
.content-sources li > span, .content-sources li > small { display: block; color: var(--muted); font-size: 12px; }
.source-notes { color: #795637; }
.review-info { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0; margin: 28px 0 60px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.review-info > div, .review-info > a { display: flex; min-height: 86px; padding: 14px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); flex-direction: column; justify-content: center; }
.review-info span { color: var(--muted); font-size: 10px; font-weight: 900; }
.review-info strong { margin-top: 5px; font-size: 12px; }
.review-info > a { color: var(--ink); font-weight: 900; text-decoration: none; }

.reading-navigation { display: grid; grid-template-columns: repeat(2, 1fr); margin: 50px 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.reading-navigation > * { display: flex; min-height: 110px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: var(--ink); flex-direction: column; justify-content: center; text-decoration: none; }
.reading-navigation small { color: var(--muted); font-weight: 900; }
.reading-navigation .is-empty { color: var(--muted); }

.related-content { margin-top: 75px; }
.related-content > div { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.related-content a { display: flex; min-height: 180px; padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: white; color: var(--ink); flex-direction: column; text-decoration: none; }
.related-content a:hover { background: #e7f3ef; }
.related-content a span, .related-content a small { color: var(--muted); font-size: 11px; }
.related-content a strong { margin: 18px 0 8px; font-size: 20px; }

.article-app-cta { padding: 72px max(20px, calc((100% - 1120px) / 2)); background: #245f5b; color: white; }
.article-app-cta > span { color: #cfe0d9; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.article-app-cta h2 { max-width: 750px; color: white; font-size: clamp(34px, 4.7vw, 60px); }
.article-app-cta p { max-width: 700px; color: #d5e4df; font-size: 17px; }
.article-app-cta > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.content-hub-editorial { border-top: 1px solid var(--line); background: #f8f5ee; }
.content-hub-intro { display: grid; grid-template-columns: 1fr 230px; gap: 50px; align-items: start; }
.content-hub-intro article p { color: var(--muted); font-size: 16px; line-height: 1.9; }
.content-hub-intro aside { display: flex; padding: 20px; border: 1px solid var(--ink); background: #e6f1ed; flex-direction: column; }
.content-hub-intro aside strong { margin-bottom: 15px; font-size: 19px; }
.content-hub-intro aside span { padding: 9px 0; border-top: 1px solid rgba(41,36,31,.25); }
.content-hub-intro aside small { margin-top: 14px; color: var(--muted); }
.content-queue { margin-top: 45px; border: 1px solid var(--ink); background: white; }
.content-queue > p { margin: 0; padding: 20px; border-bottom: 1px solid var(--ink); }
.content-queue ol { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.content-queue li { display: flex; min-height: 190px; padding: 15px; border-right: 1px solid var(--ink); flex-direction: column; font-weight: 800; }
.content-queue li:last-child { border-right: 0; }
.content-queue li span, .content-queue li small { color: var(--muted); font-size: 10px; }
.content-queue li small { margin-top: auto; }
.content-hub-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 45px; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.content-hub-list a { display: flex; min-height: 220px; padding: 18px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: white; color: var(--ink); flex-direction: column; text-decoration: none; }
.content-hub-list a span, .content-hub-list a p { color: var(--muted); font-size: 11px; }
.content-hub-list a strong { margin: 20px 0 8px; font-size: 19px; }

.reading-level-editorial { border-top: 1px solid var(--line); background: #f7f3ea; }
.reading-level-facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.reading-level-facts > div { padding: 20px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.reading-level-facts dt { color: var(--muted); font-size: 11px; font-weight: 900; }
.reading-level-facts dd { margin: 8px 0 0; line-height: 1.7; }
.reading-level-plan { display: grid; grid-template-columns: 1.3fr .7fr; gap: 35px; margin-top: 42px; }
.reading-level-plan ol { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.reading-level-plan li { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.reading-level-plan li > span { color: var(--rose); font-weight: 900; }
.reading-level-plan li div { display: flex; flex-direction: column; }
.reading-level-plan li small { color: var(--muted); }
.reading-level-plan aside { padding: 22px; border-left: 4px solid var(--mint); background: white; }
.author-card { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); background: white; }

:where(a, button, input, summary):focus-visible { outline: 3px solid #245f5b; outline-offset: 3px; }

@media (max-width: 900px) {
  .article-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-hero-grid > aside { width: 190px; }
  .content-queue ol { grid-template-columns: repeat(3, 1fr); }
  .content-queue li { border-bottom: 1px solid var(--ink); }
  .content-hub-list { grid-template-columns: repeat(2, 1fr); }
  .review-info { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .article-hero { padding: 48px 0 38px; }
  .article-hero h1 { font-size: 39px; }
  .article-shell { padding-block: 36px 70px; }
  .draft-banner { align-items: flex-start; flex-direction: column; }
  .content-answer { padding: 74px 19px 20px; }
  .content-answer > span { top: 0; right: 0; bottom: auto; width: auto; height: 49px; border-right: 0; border-bottom: 1px solid var(--ink); writing-mode: horizontal-tb; }
  .content-answer p { font-size: 17px; }
  .content-takeaways ol, .content-toc ol, .mistake-grid, .grammar-card-grid, .related-content > div, .reading-navigation, .reading-level-facts, .reading-level-plan, .content-hub-intro, .content-hub-list { grid-template-columns: 1fr; }
  .content-takeaways li { min-height: 120px; }
  .article-section { padding: 48px 0; }
  .article-section > p, .content-quiz > p, .graded-reading > p { font-size: 16px; }
  .graded-reading { margin: 55px -14px; padding: 38px 14px; }
  .content-quiz { margin-inline: -14px; padding: 34px 14px; }
  .quiz-question { padding: 18px 13px; }
  .content-sources { padding: 25px 16px; }
  .review-info { grid-template-columns: 1fr; }
  .content-queue ol { grid-template-columns: 1fr; }
  .content-queue li { min-height: 125px; border-right: 0; }
  .author-card { grid-template-columns: 64px 1fr; }
  .author-card img { width: 64px; height: 64px; }
  .article-app-cta { padding-bottom: 105px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.72; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(229,216,202,.8); background: rgba(255,253,248,.93); backdrop-filter: blur(16px); }
.nav-shell { width: min(1180px, calc(100% - 40px)); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; color: var(--mint); font-family: var(--jp); font-size: 11px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #514b55; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rose); }
.nav-download { padding: 9px 15px; border: 1px solid var(--ink); background: var(--ink); color: white !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: white; font-size: 20px; }
.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 690px; padding: 76px 0 52px; overflow: hidden; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 58px; }
.eyebrow { margin: 0 0 14px; color: var(--mint); font-family: var(--jp); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.25; letter-spacing: 0; }
h1 { margin: 0; font-size: 68px; }
h2 { margin: 0; font-size: 44px; }
h3 { margin: 0; font-size: 21px; }
.lead { max-width: 700px; margin: 24px 0 0; color: var(--muted); font-size: 20px; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--ink); background: var(--ink); color: white; text-decoration: none; font-weight: 800; }
.button.secondary { background: transparent; color: var(--ink); }
.button.rose { border-color: var(--rose); background: var(--rose); }
.button:hover { transform: translateY(-2px); }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero-visual { position: relative; min-width: 0; min-height: 560px; }
.feature-graphic { width: 100%; border: 1px solid #eaded1; box-shadow: var(--shadow); }
.phone-shot { position: absolute; right: 5%; bottom: -110px; width: 43%; border: 9px solid #2f2017; border-radius: 28px; box-shadow: 0 24px 70px rgba(52,35,27,.22); }
.proof-strip { border-block: 1px solid var(--line); background: white; }
.proof-grid { min-height: 108px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.proof-item { padding: 18px; border-right: 1px solid var(--line); text-align: center; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: 24px; }
.proof-item span { color: var(--muted); font-size: 13px; }
.section { padding: 92px 0; }
.section.tint { background: #f4f8f5; }
.section.rose-tint { background: #fcf2f5; }
.section-head { max-width: 760px; margin-bottom: 38px; }
.section-head p { color: var(--muted); font-size: 18px; }
.feature-grid, .guide-grid, .price-grid, .article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .guide-card, .price-card, .article-card { padding: 24px; border: 1px solid var(--line); background: white; }
.feature-card img { width: 100%; aspect-ratio: 4/3; margin-bottom: 20px; object-fit: cover; }
.feature-card p, .guide-card p, .article-card p { color: var(--muted); }
.feature-tag { display: inline-flex; margin-bottom: 12px; padding: 4px 9px; background: var(--mint-soft); color: #477b76; font-size: 12px; font-weight: 800; }
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.screens img { border: 7px solid #2f2017; border-radius: 24px; box-shadow: var(--shadow); }
.demo-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.flashcard { min-height: 420px; padding: 28px; border: 2px solid var(--rose); background: white; box-shadow: var(--shadow); cursor: pointer; user-select: none; }
.flashcard-top { display: flex; justify-content: space-between; color: var(--rose); font-size: 12px; font-weight: 900; }
.flashcard-main { min-height: 270px; display: grid; place-items: center; text-align: center; }
.flashcard .jp { font-family: var(--jp); font-size: 72px; font-weight: 900; }
.flashcard .reading { color: var(--muted); font-family: var(--jp); }
.flashcard .answer { display: none; }
.flashcard.flipped .question { display: none; }
.flashcard.flipped .answer { display: block; }
.flashcard-hint { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.level-table { width: 100%; border-collapse: collapse; background: white; }
.level-table th, .level-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.level-table th { background: var(--mint-soft); }
.level-chip { display: inline-flex; min-width: 44px; justify-content: center; padding: 4px 8px; background: var(--ink); color: white; font-weight: 900; }
.steps { counter-reset: step; display: grid; gap: 12px; }
.step { position: relative; padding: 22px 22px 22px 74px; border: 1px solid var(--line); background: white; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--rose-soft); color: #9f5f77; font-weight: 900; }
.faq-list { max-width: 860px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary { cursor: pointer; font-size: 18px; font-weight: 800; }
.faq-list p { color: var(--muted); }
.price-card { position: relative; }
.price-card.featured { border: 2px solid var(--rose); }
.price { margin: 18px 0; font-size: 40px; font-weight: 900; }
.price small { font-size: 14px; color: var(--muted); }
.check-list { padding: 0; list-style: none; color: var(--muted); }
.check-list li { margin: 9px 0; }
.check-list li::before { content: "✓"; margin-right: 8px; color: var(--mint); font-weight: 900; }
.cta-band { padding: 66px 0; background: var(--ink); color: white; }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-grid p { color: #d8d2dc; }
.page-hero { padding: 76px 0 54px; border-bottom: 1px solid var(--line); background: var(--cream); }
.page-hero h1 { max-width: 900px; font-size: 58px; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.content { max-width: 820px; margin: 0 auto; }
.content h2 { margin-top: 54px; font-size: 32px; }
.content h3 { margin-top: 32px; }
.content p, .content li { color: #5f5963; }
.answer-box { margin: 26px 0; padding: 22px; border-left: 4px solid var(--mint); background: #eef7f4; }
.article-card a, .guide-card a { color: var(--ink); text-decoration: none; }
.article-card a:hover, .guide-card a:hover { color: var(--rose); }
.site-footer { padding: 56px 0 30px; border-top: 1px solid var(--line); background: #f6f1ea; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-grid h3 { font-size: 14px; }
.footer-grid a { display: block; margin: 9px 0; color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.mobile-cta { display: none; }

/* Content-site additions */
.home-hero { position: relative; height: min(820px, calc(100svh - 112px)); min-height: 620px; overflow: hidden; background: #1f2024; color: white; }
.home-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.home-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,24,25,.88) 0%, rgba(22,24,25,.64) 43%, rgba(22,24,25,.1) 76%), linear-gradient(0deg, rgba(22,24,25,.58) 0%, transparent 38%); }
.home-hero-content { position: relative; z-index: 1; display: flex; height: 100%; max-width: 720px; margin-left: max(calc((100% - 1120px) / 2), 20px); flex-direction: column; justify-content: center; }
.home-hero h1 { max-width: 680px; font-size: 76px; }
.home-hero .eyebrow { color: #b8ded7; }
.home-hero .lead { color: #f4f1ed; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero-jp { margin: 10px 0 0; font-family: var(--jp); font-size: 24px; font-weight: 800; }
.button.glass { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.12); color: white; backdrop-filter: blur(10px); }
.button.light { border-color: white; background: white; color: var(--ink); }
.button.outline-light { border-color: rgba(255,255,255,.72); background: transparent; color: white; }
.home-hero .hero-note { color: #ece7e0; }
.hero-next { position: absolute; z-index: 2; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; transform: translateX(-50%); font-size: 13px; font-weight: 800; }
.hero-next b { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { min-width: 0; padding: 26px; border: 1px solid var(--line); background: white; }
.tool-card h2, .tool-card h3 { margin-bottom: 10px; font-size: 22px; }
.tool-card p { color: var(--muted); }
.tool-card a { text-decoration: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: #4b7774; font-weight: 800; text-decoration: none; }
.app-showcase { background: #eef4f0; }
.screens figure { margin: 0; }
.screens figcaption { padding-top: 10px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 800; }
.level-band { background: #fff; }
.level-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.level-cards.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.level-card { display: flex; min-width: 0; min-height: 230px; padding: 22px; border: 1px solid var(--line); border-top: 5px solid var(--mint); background: white; flex-direction: column; text-decoration: none; }
.level-card.n5 { border-top-color: #6b9f9a; }.level-card.n4 { border-top-color: #6f87ad; }.level-card.n3 { border-top-color: #d993aa; }.level-card.n2 { border-top-color: #c78d58; }.level-card.n1 { border-top-color: #4c4855; }
.level-card span { color: var(--muted); font-weight: 900; }.level-card strong { margin: 9px 0; font-size: 25px; }.level-card p { color: var(--muted); }.level-card small { margin-top: auto; }
.level-cards.compact .level-card { min-height: 160px; }
.demo-status { margin-top: 24px; color: var(--muted); }
.quick-answer { max-width: 880px; margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--mint); background: #eef7f4; }
.quick-answer strong { color: #477b76; }.quick-answer p { margin: 4px 0 0; color: #514b55; }
.level-summary { display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 52px; border: 1px solid var(--line); background: white; }
.level-summary div { padding: 20px; border-right: 1px solid var(--line); }.level-summary div:last-child { border-right: 0; }.level-summary span { display: block; color: var(--muted); font-size: 12px; }.level-summary strong { font-size: 24px; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }.content-wide { max-width: 1050px; margin-inline: auto; }
.focus-list { display: grid; gap: 10px; padding-left: 24px; }
.side-panel { position: sticky; top: 100px; padding: 22px; border-left: 4px solid var(--rose); background: #fff7f8; }
.side-panel h2 { margin-bottom: 14px; font-size: 22px; }.side-panel a, .side-panel span { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: white; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; }
.table-scroll th { background: #eaf3f0; font-size: 13px; }
.index-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }.index-toolbar a { font-weight: 800; }
.word-index { display: grid; border-top: 1px solid var(--line); }
.word-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.5fr) 180px; gap: 18px; align-items: center; padding: 14px 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.word-row:hover { background: #f4f8f5; }.word-row ruby { font-family: var(--jp); font-size: 20px; font-weight: 800; }.word-row rt { font-size: 10px; }.word-row small { color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }.pagination a, .pagination span { display: grid; min-width: 42px; min-height: 42px; place-items: center; border: 1px solid var(--line); text-decoration: none; }.pagination a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: white; }
.term-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }.term-facts div { min-width: 0; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }.term-facts dt { color: var(--muted); font-size: 12px; font-weight: 800; }.term-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.example, .example-feature { margin: 18px 0; padding: 22px; border-left: 4px solid var(--rose); background: #fff7f1; }.example p, .example-feature p:first-child { font-family: var(--jp); font-size: 22px; font-weight: 800; }.example footer, .example-feature p:last-child { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 20px; }.tag-list span { padding: 4px 9px; background: var(--mint-soft); color: #477b76; font-size: 12px; font-weight: 800; }
.related { margin-top: 56px; }.related h2 { font-size: 28px; }.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.related-grid a { display: flex; min-width: 0; padding: 15px; border: 1px solid var(--line); flex-direction: column; text-decoration: none; }.related-grid span { color: var(--muted); font-size: 13px; }
.app-benefit { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin-top: 60px; padding: 24px; background: #edf5f2; }.app-benefit img { aspect-ratio: 1; object-fit: cover; }
.grammar-index, .kanji-grid, .lesson-grid, .expression-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grammar-index article a, .lesson-card, .expression-grid a { display: flex; min-width: 0; min-height: 160px; padding: 18px; border: 1px solid var(--line); background: white; flex-direction: column; text-decoration: none; }.grammar-index small, .lesson-card small, .expression-grid small { margin-top: auto; color: var(--muted); }.jp-pattern { margin-bottom: 8px; font-family: var(--jp); font-size: 22px; font-weight: 900; }
.kanji-grid { grid-template-columns: repeat(6, 1fr); }.kanji-grid a { display: flex; min-width: 0; min-height: 150px; padding: 14px; border: 1px solid var(--line); background: white; flex-direction: column; text-align: center; text-decoration: none; }.kanji-grid b { font-family: var(--jp); font-size: 44px; }.kanji-grid small { margin-top: auto; color: var(--muted); overflow-wrap: anywhere; }
.kanji-hero { font-family: var(--jp); font-size: 88px; }
.examples, .word-examples, .questions { display: grid; gap: 12px; }.examples article, .word-examples article { position: relative; padding: 18px; border: 1px solid var(--line); background: white; }.examples article > span { position: absolute; right: 12px; top: 8px; color: var(--rose); font-weight: 900; }.examples p:first-of-type, .word-examples p { font-family: var(--jp); font-size: 19px; font-weight: 800; }.examples p:last-child, .word-examples span { color: var(--muted); }
.reading-passage, .transcript { padding: 28px; border-left: 4px solid var(--mint); background: #f2f7f5; font-family: var(--jp); font-size: 18px; line-height: 2; }.translation, .questions details, .form-guide { margin-top: 12px; border: 1px solid var(--line); background: white; }.translation summary, .questions summary, .form-guide summary { padding: 16px 18px; cursor: pointer; font-weight: 800; }.translation > :not(summary), .questions details > :not(summary), .form-guide > div { padding-inline: 18px; }.questions details > :last-child, .translation > :last-child, .form-guide > div { padding-bottom: 18px; }
.audio-promo { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; margin-bottom: 32px; padding: 18px; background: #edf5f2; }.audio-promo > div { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--mint); color: white; }
.kana-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }.kana-grid article { min-width: 0; min-height: 180px; padding: 16px; border: 1px solid var(--line); background: white; }.kana-grid b { display: block; font-family: var(--jp); font-size: 44px; }.kana-grid strong, .kana-grid span { display: block; }.kana-grid span, .kana-grid p { color: var(--muted); font-size: 12px; }
.verb-groups { display: grid; gap: 28px; }.verb-group { padding: 28px; border: 1px solid var(--line); background: white; }.verb-group h3 { font-size: 28px; }.form-list { display: grid; gap: 12px; }.form-guide summary { display: flex; justify-content: space-between; gap: 20px; }.form-guide summary span { font-size: 20px; }.form-guide summary small { color: var(--muted); }
.rule-grid, .pair-grid, .category-grid, .daily-recipe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.rule-grid article, .pair-grid article, .category-grid article, .daily-recipe article { padding: 20px; border: 1px solid var(--line); background: white; }.subhead { margin-top: 64px; }
.compare-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.compare-index > article { padding: 24px; border: 1px solid var(--line); background: white; }.compare-index h2, .compare-detail h2 { font-size: 28px; }.mini-compare { display: grid; gap: 5px; margin: 18px 0; color: var(--muted); }.compare-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.compare-detail article { padding: 26px; border: 1px solid var(--line); background: white; }
.topic-nav { position: sticky; top: 72px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; background: var(--paper); }.topic-nav a { flex: none; padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; font-size: 13px; font-weight: 800; }.phrase-sections { padding-bottom: 80px; }.phrase-section { padding-top: 72px; }.phrase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.phrase-grid article { padding: 18px; border: 1px solid var(--line); background: white; }.jp-phrase { margin: 0; font-family: var(--jp); font-size: 21px; font-weight: 900; }.romaji { margin: 4px 0; color: var(--muted); font-size: 12px; }
.category-grid article strong { font-size: 34px; }.category-grid article p { margin: 0; color: var(--muted); }.expression-grid a { min-height: 150px; }.expression-grid b { font-family: var(--jp); font-size: 28px; }.expression-grid span { color: var(--mint); font-size: 11px; font-weight: 900; }.expression-grid strong { margin-top: 8px; }
.guide-article > section { padding-bottom: 18px; border-bottom: 1px solid var(--line); }.guide-article h2 { font-size: 32px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.plan-grid article { position: relative; min-height: 240px; padding: 24px; border: 1px solid var(--line); background: white; }.plan-grid article > span { position: absolute; right: 16px; top: 8px; color: var(--rose-soft); font-size: 72px; font-weight: 900; }.plan-grid h2 { position: relative; font-size: 24px; }.daily-recipe article strong { color: var(--rose); font-size: 24px; }
.howto-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }.howto-grid article { position: relative; min-height: 210px; padding: 26px 26px 26px 82px; border: 1px solid var(--line); background: white; }.howto-grid article > span { position: absolute; left: 24px; top: 24px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--mint-soft); color: #477b76; font-weight: 900; }.howto-grid h2 { font-size: 25px; }
.price-grid.four { grid-template-columns: repeat(4, 1fr); }.price-card { min-width: 0; }.plan-badge { position: absolute; right: 16px; top: 16px; padding: 4px 9px; background: var(--rose); color: white; font-size: 12px; font-weight: 900; }.savings { color: #9b6177; font-weight: 800; }.centered { text-align: center; }
.download-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }.download-art { position: relative; }.download-art > img:first-child { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }.download-icon { position: absolute; right: 18px; bottom: 18px; width: clamp(92px, 28vw, 120px); height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; box-sizing: border-box; border: 5px solid white; border-radius: 24px; box-shadow: var(--shadow); }.feature-list { font-size: 16px; }.store-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }.store-buttons a { display: flex; min-height: 72px; padding: 12px 16px; border: 1px solid var(--ink); background: var(--ink); color: white; flex-direction: column; justify-content: center; text-decoration: none; }.store-buttons strong { font-size: 19px; }.store-buttons span { color: #ddd7df; font-size: 12px; }
.timeline { max-width: 840px; }.timeline article { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }.timeline time { color: var(--mint); font-weight: 900; }.timeline h2 { font-size: 28px; }
.center-action { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }.legal-copy h2 { font-size: 30px; }.legal-copy li { margin-block: 8px; color: #5f5963; }
.search-shell { max-width: 900px; }.search-form label { display: block; margin-bottom: 8px; font-weight: 900; }.search-form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.search-form input { min-width: 0; height: 52px; padding: 0 16px; border: 1px solid #bdb4ab; background: white; font-size: 17px; }.search-count { color: var(--muted); }.search-results { display: grid; gap: 10px; margin-top: 24px; }.search-result { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; border: 1px solid var(--line); background: white; text-decoration: none; }.search-result h2 { font-size: 22px; }.search-result p { margin: 4px 0 0; color: var(--muted); }.search-result span { color: var(--mint); font-size: 12px; font-weight: 900; }
.source-note { color: var(--muted); font-size: 13px; }.lesson-card p { color: var(--muted); }.lesson-card h3 { margin-bottom: 8px; }.level-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feature-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.feature-detail-grid article { min-width: 0; border: 1px solid var(--line); background: white; }.feature-detail-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }.feature-detail-grid article div { padding: 24px; }.feature-detail-grid h2 { font-size: 28px; }.feature-detail-grid p { color: var(--muted); }

@media (max-width: 900px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .page-hero h1 { font-size: 48px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-toggle span { display: block; width: 20px; height: 2px; margin: 2px 0; background: var(--ink); }
  .nav-links { position: fixed; inset: 72px 0 auto; display: none; padding: 22px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero { min-height: auto; padding-top: 54px; }
  .hero-grid, .demo-layout { display: block; }
  .hero-grid > *, .demo-layout > * { min-width: 0; }
  .hero-visual { min-height: 480px; }
  .phone-shot { bottom: -55px; }
  .feature-grid, .guide-grid, .price-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(3, 1fr); }
  .proof-item { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-hero { height: 760px; }
  .home-hero-content { margin-left: 28px; }
  .home-hero h1 { font-size: 64px; }
  .tool-grid, .grammar-index, .lesson-grid, .expression-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-cards, .level-cards.compact { grid-template-columns: repeat(3, 1fr); }
  .level-summary { grid-template-columns: repeat(3, 1fr); }
  .level-summary div:nth-child(3) { border-right: 0; }
  .level-summary div { border-bottom: 1px solid var(--line); }
  .two-column, .download-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .kanji-grid, .kana-grid { grid-template-columns: repeat(4, 1fr); }
  .rule-grid, .pair-grid, .category-grid, .daily-recipe { grid-template-columns: repeat(2, 1fr); }
  .price-grid.four { grid-template-columns: repeat(2, 1fr); }
  .feature-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .shell, .nav-shell { width: min(calc(100% - 28px), 1120px); }
  .nav-shell { height: 64px; }
  .nav-links { top: 64px; }
  .brand span { font-size: 14px; }
  .hero { padding: 42px 0 28px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: 100%; min-height: 250px; margin-top: 34px; overflow: hidden; }
  .feature-graphic { margin-top: 14px; }
  .phone-shot { width: 31%; right: 5%; bottom: -24px; border-width: 4px; border-radius: 14px; }
  .proof-grid, .feature-grid, .guide-grid, .price-grid, .article-grid, .screens, .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; }
  .section { padding: 64px 0; }
  .screens { padding-inline: 24px; }
  .cta-grid { align-items: flex-start; flex-direction: column; }
  .level-table { font-size: 13px; }
  .level-table th, .level-table td { padding: 10px; }
  .mobile-cta { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: flex; min-height: 52px; align-items: center; justify-content: center; background: var(--ink); color: white; text-decoration: none; font-weight: 900; box-shadow: var(--shadow); }
  body { padding-bottom: 72px; }
  .home-hero { height: calc(100svh - 150px); min-height: 520px; }
  .home-hero-bg { object-position: 64% center; }
  .home-hero-shade { background: linear-gradient(0deg, rgba(20,22,23,.88) 0%, rgba(20,22,23,.54) 65%, rgba(20,22,23,.16) 100%); }
  .home-hero-content { width: calc(100% - 28px); max-width: none; margin: 0 auto; justify-content: flex-end; padding-bottom: 84px; }
  .home-hero h1 { font-size: 48px; }
  .hero-jp { font-size: 19px; }
  .home-hero .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hero-next { display: none; }
  .tool-grid, .level-cards, .level-cards.compact, .grammar-index, .lesson-grid, .expression-grid, .plan-grid, .howto-grid, .compare-index, .compare-detail, .phrase-grid, .rule-grid, .pair-grid, .category-grid, .daily-recipe, .price-grid.four { grid-template-columns: 1fr; }
  .level-card { min-height: 170px; }
  .level-summary { grid-template-columns: repeat(2, 1fr); }
  .level-summary div:nth-child(odd) { border-right: 1px solid var(--line); }
  .level-summary div:nth-child(even) { border-right: 0; }
  .word-row { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
  .word-row small { grid-row: 3; }
  .term-facts { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .app-benefit { grid-template-columns: 1fr; }
  .app-benefit img { width: 100%; max-height: 240px; }
  .kanji-grid, .kana-grid { grid-template-columns: repeat(3, 1fr); }
  .kana-grid article { min-height: 150px; padding: 12px; }
  .kana-grid p { display: none; }
  .kana-grid b { font-size: 38px; }
  .form-guide summary { flex-direction: column; }
  .audio-promo { grid-template-columns: 44px 1fr; }
  .audio-promo .button { grid-column: 1 / -1; }
  .topic-nav { top: 64px; }
  .store-buttons { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 1fr; gap: 4px; }
  .search-form > div { grid-template-columns: 1fr; }
  .search-result { grid-template-columns: 1fr; }
  .flashcard .jp { font-size: 54px; }
}

/* Public resource library: editorial guides outside, complete product assets inside the App. */
.public-resource-section {
  background:
    linear-gradient(135deg, rgba(107, 159, 154, .12), transparent 46%),
    linear-gradient(315deg, rgba(242, 207, 115, .17), transparent 42%),
    var(--paper);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fffdf8;
  box-shadow: 8px 8px 0 var(--ink);
  flex-direction: column;
}

.resource-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -65px;
  top: -65px;
  border: 1px solid rgba(40, 35, 44, .18);
  border-radius: 50%;
}

.resource-card.resource-1 { background: #dcefeb; }
.resource-card.resource-2 { background: #fff2dc; }
.resource-card.resource-3 { background: #f8e4e4; }
.resource-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.resource-card-top span, .resource-card-top b { position: relative; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.resource-card-top b { font-size: 32px; letter-spacing: 0; }
.resource-provider { margin: 48px 0 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.resource-card h3 { margin: 0; font-family: var(--jp); font-size: clamp(25px, 2.2vw, 35px); line-height: 1.18; }
.resource-card h3 a { text-decoration: none; }
.resource-card > p:not(.resource-provider) { color: #514b55; }
.resource-best { display: grid; gap: 4px; margin-top: auto; padding-top: 26px; border-top: 1px solid rgba(40, 35, 44, .24); }
.resource-best span { color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.resource-link { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; color: var(--ink); font-weight: 900; text-decoration: none; }
.resource-link span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }

.resource-inline-cta {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding: 24px 28px;
  border: 1px solid var(--ink);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--ink);
}
.resource-inline-cta strong { font-size: 21px; }
.resource-inline-cta p { margin: 4px 0 0; }

.asset-boundary {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  margin-top: 48px;
  padding: 30px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}
.asset-boundary > span { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.asset-boundary h2 { margin: 0 0 8px; color: white; font-size: 29px; }
.asset-boundary p { margin: 0; color: #ddd7df; }

.public-learning-loop, .public-track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.public-learning-loop article, .public-track-grid article { min-height: 220px; padding: 25px; border: 1px solid var(--line); background: white; }
.public-learning-loop article > span, .public-track-grid article > span { color: var(--mint); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.public-learning-loop h3, .public-track-grid h2 { margin-top: 46px; font-size: 25px; }
.public-learning-loop p, .public-track-grid p { color: var(--muted); }

.resource-detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: start; }
.resource-detail-layout .asset-boundary { position: sticky; top: 96px; display: block; margin-top: 0; }
.resource-detail-layout .asset-boundary > span { display: block; margin-bottom: 58px; }
.resource-overview { padding: 38px; border: 1px solid var(--line); background: white; }
.resource-overview h2 { font-size: 36px; }
.resource-overview dl { display: grid; margin: 30px 0; border-top: 1px solid var(--line); }
.resource-overview dl div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.resource-overview dt { color: var(--muted); font-size: 12px; font-weight: 900; }
.resource-overview dd { margin: 0; font-weight: 800; }
.external-resource-button { display: inline-flex; gap: 20px; }
.resource-source { color: var(--muted); font-size: 12px; }
.resource-steps { display: grid; gap: 10px; padding: 0; list-style: none; counter-reset: none; }
.resource-steps li { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: center; padding: 22px; border: 1px solid var(--line); background: white; }
.resource-steps span { color: var(--rose); font-size: 30px; font-weight: 900; }
.resource-steps p { margin: 0; font-size: 18px; font-weight: 700; }
.resource-return { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 30px; }
.resource-return p { font-size: 20px; font-weight: 900; }

@media (max-width: 900px) {
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 350px; }
  .resource-detail-layout { grid-template-columns: 1fr; }
  .resource-detail-layout .asset-boundary { position: static; }
}

@media (max-width: 580px) {
  .resource-card { min-height: 390px; padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
  .resource-inline-cta, .resource-return { align-items: stretch; flex-direction: column; }
  .resource-inline-cta .button, .resource-return .button { width: 100%; }
  .asset-boundary { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .asset-boundary h2 { font-size: 25px; }
  .public-learning-loop, .public-track-grid { grid-template-columns: 1fr; }
  .resource-overview { padding: 24px; }
  .resource-overview h2 { font-size: 30px; }
  .resource-overview dl div { grid-template-columns: 1fr; gap: 4px; }
  .resource-steps li { grid-template-columns: 54px 1fr; gap: 12px; padding: 18px; }
}

/* Mobile-first safety layer. Keep every public page inside the visual viewport. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
dd,
a,
strong,
span {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  html { scroll-padding-top: 76px; }
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  main { width: 100%; overflow: clip; }

  .shell,
  .nav-shell,
  .article-shell {
    width: calc(100% - 28px);
    max-width: 100%;
    margin-inline: auto;
  }

  .site-header { backdrop-filter: blur(18px); }
  .nav-shell { height: 64px; gap: 12px; }
  .brand { max-width: calc(100% - 58px); }
  .brand img { width: 38px; height: 38px; flex: none; }
  .brand span { min-width: 0; font-size: 14px; line-height: 1.25; }
  .brand small { font-size: 10px; }
  .nav-toggle { display: inline-grid; width: 46px; height: 46px; flex: none; place-items: center; touch-action: manipulation; }
  .nav-toggle span { width: 22px; height: 2px; }
  .nav-links {
    inset: 64px 0 auto;
    max-height: calc(100dvh - 64px);
    padding: 14px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border-bottom: 1px solid var(--ink);
    box-shadow: 0 18px 36px rgba(40, 35, 44, .16);
    overscroll-behavior: contain;
  }
  .nav-links a { display: flex; min-height: 48px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .nav-download { justify-content: center; margin-top: 8px; border-bottom: 1px solid var(--ink); }

  .page-hero { padding: 42px 0 34px; overflow: clip; }
  .page-hero .shell > * { max-width: 100%; }
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(35px, 10.5vw, 46px);
    line-height: 1.12;
    letter-spacing: -.025em;
    text-wrap: pretty;
  }
  .page-hero .lead { max-width: 100%; margin-top: 18px; font-size: 17px; line-height: 1.75; }
  .breadcrumb { display: flex; flex-wrap: wrap; gap: 3px 0; margin-bottom: 16px; }
  .quick-answer { max-width: 100%; margin-top: 24px; padding: 18px; }
  .quick-answer p { line-height: 1.75; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; }

  .section,
  body[data-section="home"] .section { padding: 58px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2,
  .home-section-heading h2 { font-size: clamp(31px, 9vw, 40px); line-height: 1.16; text-wrap: pretty; }
  .section-head p,
  .home-section-heading > p { font-size: 16px; line-height: 1.75; }

  .button { min-height: 52px; padding: 12px 17px; touch-action: manipulation; }
  .hero-actions,
  .button-row { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .hero-actions .button,
  .button-row .button,
  .cta-grid .button { width: 100%; }
  .cta-band { padding: 50px 0; }
  .cta-grid { align-items: stretch; flex-direction: column; }
  .cta-grid h2 { font-size: clamp(30px, 9vw, 39px); }
  .cta-grid .button-row { margin-top: 8px; }

  .mobile-cta {
    z-index: 95;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    padding-inline: 18px;
    border: 1px solid #fffdf8;
    box-shadow: 5px 5px 0 rgba(40, 35, 44, .28);
    text-align: center;
    touch-action: manipulation;
  }

  .resource-grid { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .resource-grid > *,
  .resource-card > *,
  .resource-detail-layout > *,
  .public-learning-loop > *,
  .public-track-grid > * { min-width: 0; max-width: 100%; }
  .resource-card { width: 100%; min-height: 0; padding: 22px; contain: inline-size; }
  .resource-card h3 { max-width: 100%; font-size: clamp(25px, 8vw, 33px); line-height: 1.2; }
  .resource-card h3 a { display: block; max-width: 100%; }
  .resource-provider { margin-top: 38px; }
  .resource-best { margin-top: 28px; }
  .resource-inline-cta { padding: 22px; }
  .resource-inline-cta strong { font-size: 19px; line-height: 1.45; }
  .resource-detail-layout { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .resource-overview { width: 100%; padding: 22px; }
  .resource-overview h2 { font-size: clamp(28px, 8.5vw, 36px); }
  .asset-boundary { width: 100%; padding: 22px; }
  .resource-steps li { grid-template-columns: 48px minmax(0, 1fr); }
  .resource-steps p { font-size: 16px; line-height: 1.7; }

  body[data-section="home"] .home-hero { padding: 30px 0 50px; }
  .home-hero-grid,
  .home-hero-copy,
  .home-product-stage,
  .home-bento,
  .home-bento-card,
  .home-showcase-grid,
  .home-screen-rail,
  .home-level-cards,
  .home-demo .demo-layout { width: 100%; max-width: 100%; min-width: 0; }
  body[data-section="home"] .home-hero h1 { max-width: 100%; font-size: clamp(43px, 12.5vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
  body[data-section="home"] .home-hero h1 span { display: block; max-width: 100%; }
  body[data-section="home"] .home-hero .lead { max-width: 100%; font-size: 16px; line-height: 1.75; }
  body[data-section="home"] .hero-jp { max-width: 100%; white-space: normal; }
  body[data-section="home"] .home-hero .hero-actions { display: grid; }
  body[data-section="home"] .home-hero .hero-actions .button { width: 100%; }
  .home-product-stage { min-height: 485px; overflow: hidden; contain: layout paint; }
  .home-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-proof-grid article { min-width: 0; }
  .home-proof-grid article strong { font-size: clamp(26px, 8vw, 33px); overflow-wrap: anywhere; }
  .home-bento { grid-template-columns: minmax(0, 1fr); }
  .home-bento-card { overflow: hidden; contain: inline-size; }
  .home-bento-card h3 { font-size: clamp(30px, 9vw, 42px); }
  .home-word-stack { max-width: 74%; }
  .home-screen-rail { overflow: hidden; }
  body[data-section="home"] .home-level-cards { grid-template-columns: minmax(0, 1fr); }
  body[data-section="home"] .home-level-cards .level-card { min-height: 230px; }
  body[data-section="home"] .home-demo .flashcard { min-height: 430px; padding: 20px; box-shadow: 6px 6px 0 var(--home-ink); }
  .home-demo .flashcard-top { flex-wrap: wrap; gap: 8px; }
  .home-demo .flashcard-main { min-height: 300px; }
  .home-demo .flashcard .jp { font-size: clamp(48px, 16vw, 68px); }

  .feature-grid,
  .guide-grid,
  .price-grid,
  .article-grid,
  .screens,
  .footer-grid,
  .tool-grid,
  .level-cards,
  .level-cards.compact,
  .grammar-index,
  .lesson-grid,
  .expression-grid,
  .plan-grid,
  .howto-grid,
  .compare-index,
  .compare-detail,
  .phrase-grid,
  .rule-grid,
  .pair-grid,
  .category-grid,
  .daily-recipe,
  .price-grid.four,
  .public-learning-loop,
  .public-track-grid { grid-template-columns: minmax(0, 1fr); }

  .feature-card,
  .guide-card,
  .price-card,
  .article-card,
  .lesson-card { min-width: 0; max-width: 100%; }
  .level-table,
  .table-scroll table { min-width: 620px; }
  .table-scroll,
  .content-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-inline: contain; }
  .search-form input { min-height: 52px; font-size: 16px; }

  .article-shell { padding-block: 34px 78px; }
  .draft-banner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .content-answer { margin-bottom: 34px; padding: 22px; }
  .content-answer > span { position: static; display: inline-flex; width: auto; margin-bottom: 12px; padding: 5px 9px; border: 0; writing-mode: horizontal-tb; }
  .content-answer p { font-size: 17px; line-height: 1.8; }
  .content-takeaways { margin: 46px 0; }
  .content-takeaways ol,
  .content-toc ol { grid-template-columns: minmax(0, 1fr); }
  .content-takeaways li { min-height: 112px; }
  .content-toc { margin: 46px 0; padding: 20px; }
  .article-section { padding: 44px 0; }
  .article-section h2,
  .content-quiz h2,
  .content-faq h2,
  .content-sources h2,
  .related-content h2,
  .graded-reading h2 { font-size: clamp(29px, 8.5vw, 38px); }
  .article-section > p,
  .content-quiz > p,
  .content-sources > p,
  .graded-reading > p { font-size: 16px; line-height: 1.9; }
  .graded-reading,
  .content-quiz { max-width: calc(100% + 28px); margin-inline: -14px; }
  .article-app-cta { padding-bottom: 90px; }

  .footer-grid { gap: 28px; }
  .footer-grid > div { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .footer-grid a { min-height: 40px; margin: 0; padding: 8px 0; }
  .footer-bottom { padding-bottom: 20px; }

  summary,
  .faq-list summary,
  .form-guide summary { min-height: 48px; touch-action: manipulation; }
  :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
}

@media (max-width: 380px) {
  .shell,
  .nav-shell,
  .article-shell { width: calc(100% - 24px); }
  .page-hero h1 { font-size: clamp(33px, 10vw, 39px); }
  body[data-section="home"] .home-hero h1 { font-size: clamp(40px, 12vw, 46px); }
  .home-proof-grid { grid-template-columns: minmax(0, 1fr); }
  .home-proof-grid .home-proof-levels { grid-column: auto; }
  .resource-card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .resource-card h3 { font-size: 25px; }
  .resource-steps li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
  .resource-steps span { font-size: 24px; }
}

/* Crisp App showcase: browser-rendered interface instead of scaled screenshots. */
.home-ui-phone {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--home-ink);
  border-radius: 30px;
  background: var(--home-ink);
  box-shadow: 13px 17px 32px rgba(0, 0, 0, .28);
  color: var(--home-ink);
  font-family: var(--jp);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.home-ui-notch {
  position: absolute;
  z-index: 3;
  top: 7px;
  left: 50%;
  width: 38%;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: var(--home-ink);
  transform: translateX(-50%);
}

.home-ui-screen {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 24px 11px 12px;
  overflow: hidden;
  border-radius: 23px;
  background:
    radial-gradient(circle at 92% 4%, rgba(237, 81, 67, .16) 0 17%, transparent 17.5%),
    #fffaf0;
  flex-direction: column;
  gap: 9px;
}

.home-ui-status,
.home-ui-brandrow,
.home-ui-meter small,
.home-ui-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-ui-status { font-size: 6px; }
.home-ui-status span { font-size: 5px; letter-spacing: .14em; }
.home-ui-brandrow { padding-bottom: 7px; border-bottom: 1px solid rgba(23, 23, 19, .2); }
.home-ui-brandrow small { color: var(--home-green); font: 900 6px/1 var(--sans); letter-spacing: .12em; }
.home-ui-brandrow b { display: grid; min-width: 25px; min-height: 18px; padding: 2px 5px; place-items: center; border-radius: 99px; background: var(--home-red); color: white; font: 900 6px/1 var(--sans); }
.home-ui-heading { margin-top: 5px; }
.home-ui-heading small { display: block; margin-bottom: 5px; color: #6b655c; font-size: 6px; font-weight: 800; }
.home-ui-heading strong { display: block; font-size: clamp(13px, 1.55vw, 21px); line-height: 1.22; letter-spacing: -.025em; }

.home-ui-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 7px; }
.home-ui-levels span { display: flex; min-height: 62px; padding: 7px 4px; border: 1px solid #ddd3c3; border-radius: 9px; background: white; flex-direction: column; justify-content: flex-end; }
.home-ui-levels span.is-active { border-color: var(--home-red); background: #ffe5df; box-shadow: inset 0 0 0 1px var(--home-red); }
.home-ui-levels b { font: 950 15px/1 var(--sans); }
.home-ui-levels small { margin-top: 4px; color: #777067; font-size: 5px; }
.home-ui-primary { display: flex; min-height: 27px; align-items: center; justify-content: space-between; margin-top: auto; padding: 6px 8px; border: 1px solid var(--home-ink); background: var(--home-lime); font: 900 6px/1 var(--sans); }

.home-ui-audio { display: grid; grid-template-columns: 28px 1fr auto; gap: 6px; align-items: center; margin: 8px 0 2px; padding: 8px; border: 1px solid #ddd3c3; border-radius: 10px; background: white; }
.home-ui-audio button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--home-green); color: white; font-size: 8px; }
.home-ui-audio > div { display: flex; height: 25px; gap: 2px; align-items: center; }
.home-ui-audio i { width: 2px; height: calc(3px + var(--audio) * 3px); border-radius: 9px; background: var(--home-red); }
.home-ui-audio small { color: #736c64; font: 800 5px/1 var(--sans); }
.home-ui-question { margin: 4px 0 0; font-size: clamp(7px, .8vw, 10px); font-weight: 800; }
.home-ui-options { display: grid; gap: 5px; margin-top: auto; }
.home-ui-options span { display: flex; min-height: 28px; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #ddd3c3; border-radius: 7px; background: white; font-size: clamp(6px, .65vw, 9px); font-weight: 800; }
.home-ui-options b { display: grid; width: 15px; height: 15px; place-items: center; border: 1px solid var(--home-ink); border-radius: 50%; font: 900 5px/1 var(--sans); }

.home-ui-meter { padding: 8px 0; }
.home-ui-meter > span { display: block; height: 5px; overflow: hidden; border: 1px solid var(--home-ink); background: white; }
.home-ui-meter i { display: block; width: 67%; height: 100%; background: var(--home-red); }
.home-ui-meter small { margin-top: 5px; color: #6b655c; font-size: 5px; }
.home-ui-review-card { display: flex; min-height: 130px; padding: 11px; border: 1px solid #ddd3c3; border-radius: 11px; background: white; box-shadow: 3px 4px 0 rgba(23, 23, 19, .12); flex-direction: column; justify-content: center; text-align: center; }
.home-ui-review-card small { color: var(--home-green); font: 900 5px/1.3 var(--sans); letter-spacing: .08em; }
.home-ui-review-card strong { margin: 13px 0 7px; font-size: clamp(18px, 2vw, 26px); }
.home-ui-review-card rt { font-size: .35em; }
.home-ui-review-card p { margin: 0; color: #746d64; font-size: 6px; }
.home-ui-rating { gap: 5px; margin-top: auto; }
.home-ui-rating span { display: grid; min-height: 27px; padding: 5px; border: 1px solid var(--home-ink); background: #ffe0da; flex: 1; place-items: center; font: 900 5px/1 var(--sans); }
.home-ui-rating span:last-child { background: #dcecc5; }

@media (max-width: 700px) {
  .home-screen-rail {
    display: flex;
    width: calc(100% + 14px);
    min-height: 0;
    margin-right: -14px;
    padding: 14px 14px 44px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 16px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
  }
  .home-screen-rail::-webkit-scrollbar { display: none; }
  .home-screen-rail figure,
  .home-screen-rail figure:nth-child(1),
  .home-screen-rail figure:nth-child(2),
  .home-screen-rail figure:nth-child(3) {
    position: static;
    width: min(76vw, 286px);
    min-width: min(76vw, 286px);
    margin: 0;
    flex: 0 0 auto;
    scroll-snap-align: start;
    transform: none;
  }
  .home-ui-phone { border-radius: 31px; }
  .home-ui-heading strong { font-size: clamp(18px, 5.8vw, 23px); }
  .home-ui-question { font-size: 10px; }
  .home-ui-options span { font-size: 9px; }
  .home-ui-review-card strong { font-size: 26px; }
  .home-screen-note { position: static; width: min(64vw, 210px); min-width: min(64vw, 210px); align-self: center; flex: 0 0 auto; transform: rotate(-2deg); }
}
