:root {
  --bg: #0d1015;
  --bg-soft: #151a20;
  --surface: #1a2028;
  --paper: #f3eee5;
  --paper-2: #e7dfd1;
  --ink: #191816;
  --red: #e14e46;
  --red-dark: #a82e2b;
  --teal: #53d8bd;
  --teal-dark: #1a6153;
  --white: #ffffff;
  --muted: #aeb6c2;
  --paper-muted: #5c564e;
  --line: rgba(255,255,255,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], main[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
.hero-inner > *, .gap-section > *, .showcase-card > *, .curriculum-inner > *, .privacy-inner > *, .faq > *, .download-inner > * { min-width: 0; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,16,21,.82);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
}
.nav-inner {
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.025em; font-size: 19px; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--red); color: white; font-family: Georgia, "Noto Serif JP", serif; font-size: 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: #b6bec8; text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: white; }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; padding: 10px 15px; border-radius: 11px; background: white; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800; }
.nav-cta:hover { background: #f4ede3; }

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: "書"; position: absolute; z-index: -2; right: -5vw; top: -13vw; color: rgba(255,255,255,.025); font-family: Georgia,"Noto Serif JP",serif; font-size: min(66vw,820px); line-height: 1; }
.hero-noise { position: absolute; inset: 0; z-index: -1; opacity: .23; background-image: radial-gradient(rgba(255,255,255,.28) .55px, transparent .55px); background-size: 9px 9px; mask-image: linear-gradient(to bottom,black,transparent 78%); }
.hero-inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 82px 0 94px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 48px; align-items: center; }
.eyebrow, .section-label { margin: 0 0 16px; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.hero h1 { max-width: 720px; margin: 0 0 24px; font-family: Georgia,"Noto Serif JP",serif; font-size: clamp(48px,5.3vw,72px); line-height: 1.07; letter-spacing: -.04em; font-weight: 650; }
.hero h1 em { display: block; color: var(--red); font-style: normal; }
.hero-lede { max-width: 650px; margin: 0; color: #b4bcc7; font-size: 19px; line-height: 1.68; }
.hero-offer { max-width: 650px; margin: 22px 0 0; color: white; font-size: 18px; line-height: 1.5; }
.hero-offer strong { color: var(--teal); }
.device-store-label { display: none; margin: 18px 0 0; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
html.platform-ios .device-store-label,
html.platform-android .device-store-label { display: block; }
.store-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
html.platform-ios .store-apple,
html.platform-android .store-google { order: -1; }
html.platform-ios .store-apple img,
html.platform-android .store-google img { height: 60px; }
html.platform-ios .store-google img,
html.platform-android .store-apple img { height: 44px; opacity: .9; }
.store-qr, .qr-note { display: none; }
.store-qr figure { margin: 0; }
.store-qr img { width: 112px; height: 112px; background: #fff; border-radius: 10px; }
.store-qr figcaption { margin-top: 6px; color: #aeb6c2; font-size: 12px; text-align: center; }
.qr-note { max-width: 420px; margin: 8px 0 0; color: #8f99a5; font-size: 12px; line-height: 1.5; }
@media (min-width: 981px) {
  html:not(.platform-ios):not(.platform-android) .store-qr { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; }
  html:not(.platform-ios):not(.platform-android) .qr-note { display: block; }
}
.store-row a, .download-actions > a { border-radius: 10px; transition: transform .18s ease, opacity .18s ease; }
.store-row a:hover, .download-actions > a:hover { transform: translateY(-2px); opacity: .88; }
.store-row img, .download-actions img { height: 54px; width: auto; }
.hero-facts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: #8f99a5; font-size: 12px; }
.hero-facts span::before { content: "✓"; color: var(--teal); margin-right: 6px; font-weight: 900; }

.hero-visual { width: 100%; margin: 0; position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: radial-gradient(ellipse,rgba(225,78,70,.18),transparent 68%); pointer-events: none; }
.app-preview { display: block; width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: #10101a; box-shadow: 0 20px 55px rgba(0,0,0,.28); }
/* The source artwork is landscape: preserve every caption and the complete app screen. */
.app-preview img { width: 100%; height: auto; aspect-ratio: 2540 / 1520; object-fit: contain; border-radius: 17px; }
.hero-visual figcaption { margin-top: 14px; text-align: center; color: #aeb6c2; font-size: 12px; }
.hero-visual figcaption span { padding: 0 6px; color: var(--red); }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #11161c; }
.proof-inner { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 25px 0; display: grid; grid-template-columns: repeat(4,1fr); }
.proof-inner > div { padding: 0 24px; border-right: 1px solid var(--line); text-align: center; }
.proof-inner > div:first-child { padding-left: 0; }.proof-inner > div:last-child { border-right: 0; padding-right: 0; }
.proof-inner strong { display: block; color: white; font-family: Georgia,serif; font-size: 23px; }
.proof-inner span { color: #87919e; font-size: 12px; }

.section { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 112px 0; }
.section h2, .download-section h2 { margin: 0; font-family: Georgia,"Noto Serif JP",serif; font-size: clamp(38px,4.7vw,62px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; }
.section p { color: var(--paper-muted); font-size: 17px; line-height: 1.72; }
.section .section-label { color: var(--red); font-size: 12px; }
.recognition { background: var(--paper); }
.gap-section { color: var(--ink); background: var(--paper); display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; }
.recognition .gap-section { width: min(100%, 1276px); margin-inline: auto; padding-inline: clamp(24px, 6vw, 48px); }
.gap-copy p:last-child { max-width: 620px; }
.gap-card { display: grid; grid-template-columns: 1fr 62px 1fr; align-items: stretch; padding: 14px; background: #fffaf1; border: 1px solid #d8cdbc; border-radius: 26px; box-shadow: 0 24px 60px rgba(52,39,26,.11); }
.gap-side { min-height: 300px; padding: 28px; border-radius: 17px; display: flex; flex-direction: column; }
.muted-side { background: #e8e0d4; }.active-side { background: var(--ink); color: white; }
.gap-label { color: #877f75; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }
.active-side .gap-label { color: #d8aba7; }
.gap-kanji { margin: auto 0; font-family: Georgia,"Noto Serif JP",serif; font-size: 86px; line-height: 1; }
.gap-side p { margin: 0; color: #6c655d; font-size: 14px; }.active-side p { color: #c7c1ba; }
.gap-arrow { display: grid; place-items: center; color: var(--red); font-size: 28px; font-weight: 900; }

.method { background: var(--paper-2); color: var(--ink); }
.method-inner { padding-top: 104px; padding-bottom: 104px; }
.section-head { max-width: 780px; }.section-head > p:last-child { max-width: 700px; }
.section-head.centered { margin: 0 auto 52px; text-align: center; }
.section-head.centered p:last-child { margin-left: auto; margin-right: auto; }
.product-section .section-head > p:not(.section-label) { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 50px; }
.step-card { position: relative; min-height: 330px; overflow: hidden; padding: 30px; border: 1px solid rgba(25,24,22,.1); border-radius: 22px; background: rgba(255,255,255,.52); }
.step-number { position: absolute; top: 10px; right: 18px; color: rgba(25,24,22,.07); font-family: Georgia,serif; font-size: 76px; line-height: 1; }
.step-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 64px; background: var(--red); color: white; border-radius: 15px; font-family: Georgia,"Noto Serif JP",serif; font-size: 27px; }
.step-card h3 { margin: 0 0 10px; font-family: Georgia,serif; font-size: 27px; }
.step-card p { margin: 0; font-size: 15px; }

.product-section { padding-top: 116px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.showcase-card { display: grid; align-content: start; gap: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg,#1a2028,#11161c); }
.showcase-large { grid-column: 1 / -1; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; padding: 36px; }
.showcase-copy { max-width: 510px; position: relative; z-index: 2; }
.card-kicker { color: var(--teal); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .15em; }
.showcase-copy h3 { margin: 12px 0; font-family: Georgia,serif; font-size: clamp(30px,3.2vw,46px); line-height: 1.13; letter-spacing: -.03em; }
.showcase-copy p { margin: 0; color: #9fa9b5; font-size: 15px; line-height: 1.65; }

.curriculum { background: var(--paper); color: var(--ink); }
.curriculum-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 76px; align-items: center; }
.path-card { padding: 34px; border-radius: 26px; background: var(--ink); color: white; box-shadow: 0 28px 70px rgba(45,33,21,.2); }
.path-head { display: flex; justify-content: space-between; margin-bottom: 24px; font-family: Georgia,serif; font-size: 27px; }
.path-head span:last-child { color: #5d5650; }
.grade-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 15px; align-items: center; margin-top: 12px; padding: 14px; border-radius: 14px; background: #292622; color: #d7d1ca; }
.grade-free { background: #315347; color: white; }
.grade-badge { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.1); font-weight: 900; }
.grade-row div { display: grid; }.grade-row small { color: #999087; }.grade-free small { color: #b9d6ca; }
.row-status { color: #968e85; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.grade-free .row-status { color: var(--teal); }
.curriculum-copy > p:not(.section-label) { max-width: 640px; }
.feature-list { display: grid; gap: 19px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.feature-list li > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #ddd2c2; color: var(--teal-dark); font-weight: 900; }
.feature-list li div { display: grid; }.feature-list small { color: var(--paper-muted); line-height: 1.5; }

.privacy-block { border-top: 1px solid var(--line); background: #12171d; }
.privacy-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.privacy-grid { display: grid; gap: 12px; }
.privacy-grid > div { padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #181e25; }
.privacy-grid strong { color: white; }.privacy-grid p { margin: 5px 0 0; color: #939da9; font-size: 14px; }
.text-link { align-self: end; width: fit-content; color: var(--teal); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.download-section { position: relative; overflow: hidden; background: var(--red); }
.download-section::after { content: "練"; position: absolute; top: -190px; right: -20px; color: rgba(255,255,255,.07); font-family: Georgia,"Noto Serif JP",serif; font-size: 520px; line-height: 1; }
.download-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: auto; padding: 92px 0; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.download-inner h2 { max-width: 760px; }.download-inner p:not(.section-label) { max-width: 700px; margin: 18px 0 0; color: #ffe1de; font-size: 18px; }
.section-label.light { color: white; opacity: .78; }
.download-actions { width: 280px; display: grid; justify-items: stretch; gap: 10px; }
.download-actions > a { display: flex; justify-content: center; padding: 2px; }
.download-actions small { margin-top: 7px; color: #f8d6d2; font-size: 11px; line-height: 1.55; text-align: center; }
.download-inner .download-actions .device-store-label { max-width: none; margin: 0; color: white; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.4; text-align: center; }
.download-actions small a { color: white; }

.faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { padding: 22px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; cursor: pointer; list-style: none; font-weight: 780; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--red); font-size: 22px; line-height: 1; }.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 13px 34px 0 0; color: #9ba5b0; font-size: 15px; }.faq-list a { color: var(--teal); }

.site-footer { padding: 58px 0 26px; border-top: 1px solid var(--line); background: #090c10; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: auto; display: flex; justify-content: space-between; gap: 60px; padding-bottom: 34px; }
.footer-brand p { max-width: 430px; margin: 15px 0 0; color: #7f8995; font-size: 14px; }
.footer-links { display: flex; align-items: flex-start; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #aeb6c0; text-decoration: none; font-size: 13px; }.footer-links a:hover { color: white; }
.footer-bottom { width: min(1180px, calc(100% - 40px)); margin: auto; padding-top: 22px; border-top: 1px solid var(--line); color: #929ca8; font-size: 12px; }.footer-bottom a { color: inherit; }
.mobile-cta { display: none; }

/* Legal pages — preserve existing policy and terms content */
.wrap { max-width: 760px; margin: 0 auto; padding: 48px 24px 96px; }
.legal { color: var(--white); }
.legal h1 { font-size: 30px; font-weight: 800; margin: 0 0 4px; }
.legal .eff { color: #6f7986; font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; color: var(--white); }
.legal p, .legal li { color: #aeb6c2; }
.legal ul { padding-left: 22px; }.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal); text-decoration: none; }.legal a:hover { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 28px; color: #78828e !important; font-size: 14px; }
.legal .footer { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); color: #6f7986; font-size: 14px; text-align: center; }
.legal .footer a { color: #6f7986; }
.legal p, .legal a { overflow-wrap: anywhere; }

.pricing-block { background: var(--paper); color: var(--ink); }
.pricing-block .section-label { color: var(--red-dark); }
.pricing-block .section-head > p:last-child { max-width: 760px; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.price-card { min-width: 0; padding: 28px 24px; border-radius: 22px; background: #fffaf1; border: 1px solid rgba(25,24,22,.1); }
.price-card h3 { margin: 0; font-family: Georgia, "Noto Serif JP", serif; font-size: 28px; line-height: 1.15; color: var(--ink); }
.price-card .price-amount { margin: 12px 0; color: var(--ink); font-family: Georgia, serif; font-size: 42px; line-height: 1; }
.price-card .price-amount span { margin-left: 4px; color: var(--paper-muted); font-family: Inter, ui-sans-serif, sans-serif; font-size: 16px; }
.price-card p:not(.price-amount) { margin: 0; font-size: 15px; }
.price-card.price-free { background: #315347; color: white; }
.price-card.price-free h3, .price-card.price-free .price-amount { color: white; }
.price-card.price-free p:not(.price-amount) { color: #d5ebe3; }
.price-note { max-width: 820px; margin: 22px 0 0; font-size: 15px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 68px; gap: 34px; }
  .hero-copy { text-align: center; }.eyebrow { justify-content: center; }.hero h1, .hero-lede, .hero-offer { margin-left: auto; margin-right: auto; }.store-row, .hero-facts { justify-content: center; }
  .price-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 700px; justify-self: center; }
  .gap-section, .curriculum-inner, .privacy-inner, .faq { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }.step-card { min-height: 0; }.step-icon { margin-bottom: 40px; }
  .showcase { grid-template-columns: 1fr; }.showcase-large { grid-column: auto; grid-template-columns: 1fr; }
  .download-inner { grid-template-columns: 1fr; }.download-actions { width: min(100%,360px); }
}

@media (max-width: 700px) {
  .nav-inner, .hero-inner, .proof-inner, .section, .download-inner, .footer-inner, .footer-bottom { width: min(100% - 32px,1180px); }
  .nav-inner { height: 64px; }.nav-cta { display: none; }
  .hero-inner { padding: 42px 0 48px; gap: 30px; }.hero h1 { font-size: clamp(38px,10.5vw,54px); line-height: 1.08; }.hero h1 em { display: block; }.hero-lede { font-size: 16px; }
  .store-row { gap: 10px; }.store-row img { height: 44px; }
  .hero-facts { gap: 8px 12px; font-size: 11px; }
  .proof-inner { grid-template-columns: 1fr 1fr; }.proof-inner > div { padding: 12px; border-bottom: 1px solid var(--line); }.proof-inner > div:nth-child(2) { border-right: 0; }.proof-inner > div:nth-child(3), .proof-inner > div:nth-child(4) { border-bottom: 0; }
  .section { padding: 64px 0; }.section h2, .download-section h2 { font-size: clamp(32px,9vw,40px); }
  .gap-card { grid-template-columns: 1fr; }.gap-arrow { padding: 10px; transform: rotate(90deg); }.gap-side { min-height: 260px; }
  .showcase-card, .showcase-large { padding: 22px 16px; gap: 22px; }.showcase-copy h3 { font-size: 30px; }
  .path-card { padding: 22px 16px; }.grade-row { grid-template-columns: 44px 1fr; }.row-status { display: none; }
  .download-inner { padding: 64px 0; }.footer-inner { display: grid; gap: 28px; }.footer-links { justify-content: flex-start; gap: 10px 20px; }.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .mobile-cta { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; padding: 13px 18px; border-radius: 14px; background: var(--red); color: white; text-decoration: none; box-shadow: 0 16px 38px rgba(0,0,0,.42); font-weight: 850; }
  .mobile-cta small { display: block; font-weight: 550; opacity: .8; }
}

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

/* Static guides and reference content. */
.reading-page{width:min(820px,calc(100% - 40px));margin:0 auto;padding:48px 0 72px;line-height:1.85;overflow-wrap:anywhere}
.reading-page h1{font-size:clamp(2.1rem,5vw,3.3rem);line-height:1.15;letter-spacing:-.035em;margin:28px 0}
.reading-page h2{font-size:1.5rem;line-height:1.3;margin:42px 0 14px}.reading-page p,.reading-page li{color:#cbd2df}
.reading-page a,.reading-footer a,.browser-alternative a{color:#65e3c9}.reading-lede{font-size:1.2rem}.reading-page figure{margin:32px 0}.reading-page figcaption{color:#aeb6c2;font-size:.85rem;margin-top:10px}
.reading-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:30px 0}.reading-cards>a{border:1px solid var(--line);border-radius:18px;padding:25px;background:var(--surface);text-decoration:none;color:white}.reading-cards a:hover{border-color:var(--teal)}
.reading-cards h2,.reading-cards h3{font-size:1.35rem;line-height:1.3;margin:0 0 10px}.reading-cards p{color:#b8c3d2;margin:0}.reading-footer{width:min(820px,calc(100% - 40px));margin:auto;padding:30px 0;font-size:.9rem;color:#b8c3d2}.browser-alternative{max-width:780px;color:#b8c3d2;line-height:1.8}
.kanji-reference{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:9px}.kanji-reference-item{border:1px solid var(--line);border-radius:10px;padding:12px 5px;text-align:center;min-width:0}.kanji-reference-item>span{display:block;font-size:2rem;color:white}.kanji-reference-item small{display:block;font-size:.72rem;line-height:1.4;color:#b8c3d2}
@media(max-width:650px){.reading-cards{grid-template-columns:1fr}.kanji-reference{grid-template-columns:repeat(4,minmax(0,1fr))}.reading-page{width:calc(100% - 36px)}}

/* Match text contrast to each light or dark section. */
.recognition .section-label,.method .section-label,.curriculum .section-label{color:var(--red-dark)}
.gap-label{color:#625b52}.gap-side p{color:#58524a}.active-side p{color:#c7c1ba}
.step-number{color:#80786b}.path-head span:last-child{color:#b8a99b}
.section p.browser-alternative{color:#b8c3d2}
.download-section,.mobile-cta{background:var(--red-dark)}
.download-inner p:not(.section-label),.download-actions small{color:white}
.section-label.light,.mobile-cta small{opacity:1}

/* Browser self-check: no automated recognition or drawing uploads. */
[hidden]{display:none!important}
button:focus-visible,canvas:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.hero-demo{margin:22px 0 0}.content-facts{padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--bg-soft)}
.content-facts p{display:flex;align-items:baseline;gap:16px;margin:12px 0}.content-facts strong{font-size:2rem;color:var(--teal)}.content-facts span{color:#cbd2df}.content-facts a{display:inline-block;margin-top:16px;color:var(--teal)}
.writing-drill{margin:40px 0;padding:26px;border:1px solid var(--line);border-radius:20px;background:var(--surface);scroll-margin-top:90px}
.writing-drill h2{margin-top:0}.writing-drill h3{margin:12px 0;font-size:1.25rem}.drill-progress{color:var(--teal)!important;font-size:.85rem;letter-spacing:.05em;text-transform:uppercase;font-weight:750}
.drill-surfaces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;margin:20px 0}.drill-surfaces>div{min-width:0}.drill-model-slot{display:grid;min-height:280px}.drill-model-placeholder{display:grid;place-content:center;min-height:280px;margin:0;padding:24px;border:1px dashed #79918a;border-radius:12px;text-align:center}.drill-model-wrap{padding:16px;background:#f3eee5;color:#182b2a;border-radius:12px;text-align:center;min-height:280px}.drill-model-wrap svg{width:100%;max-width:230px;display:block;margin:auto}.drill-model-wrap>span{font-size:.85rem}
.writing-drill canvas{display:block;background:#fffdf5;width:100%;max-width:300px;height:auto;aspect-ratio:1;border:2px solid #cbd2df;border-radius:10px;touch-action:none;cursor:crosshair}
.drill-count,.drill-license{font-size:.85rem;line-height:1.6}.drill-controls{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.writing-drill button{appearance:none;border:1px solid #79918a;background:#f3eee5;color:#182b2a;font:inherit;font-size:.9rem;line-height:1.4;font-weight:700;padding:12px 16px;border-radius:9px;cursor:pointer;min-height:44px}.writing-drill button:hover{background:#fff}.writing-drill button[aria-pressed=true]{background:#53d8bd;border-color:#53d8bd}.writing-drill [data-drill-hide],.writing-drill [data-drill-next]{background:#53d8bd;border-color:#53d8bd}
.writing-drill button:disabled{opacity:.55;cursor:not-allowed}
.drill-status{min-height:3.2em;padding:12px 0}.drill-comparison{border-top:1px solid var(--line);margin-top:20px;padding-top:8px}.drill-complete h3:focus{outline:none}.drill-license{border-top:1px solid var(--line);padding-top:18px;margin-top:25px}.drill-complete .store-row{margin:20px 0}
@media(max-width:550px){.writing-drill{padding:18px}.drill-surfaces{grid-template-columns:1fr}.drill-model-slot{max-width:300px}.drill-model-wrap svg{max-width:200px}.drill-controls{gap:8px}.writing-drill button{flex:1 1 auto}.content-facts p{flex-wrap:wrap;gap:4px 12px}}

/* Static KanjiVG comparisons retain the original numbered geometry. */
.confusion-models{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}
.reading-page .confusion-models figure{margin:0;padding:18px;border-radius:14px;background:var(--paper);color:var(--ink)}
.confusion-models img{width:100%;max-width:180px;height:auto;margin:0 auto}
.reading-page .confusion-models figcaption{color:var(--ink);font-size:.9rem;text-align:center;line-height:1.5}
@media(max-width:450px){.confusion-models{grid-template-columns:1fr;gap:14px}}


/* Comparison stays a semantic table; small screens scroll within its own region. */
.app-comparison{max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid var(--line);border-radius:12px;overscroll-behavior-x:contain}
.app-comparison:focus-visible{outline:3px solid var(--teal);outline-offset:4px}
.app-comparison table{width:100%;min-width:720px;border-collapse:collapse;font-size:.9rem;line-height:1.65}
.app-comparison caption{text-align:left;padding:16px;font-weight:700;background:var(--bg-soft)}
.app-comparison th,.app-comparison td{text-align:left;vertical-align:top;padding:16px;border-bottom:1px solid var(--line)}
.app-comparison thead th{background:var(--surface)}
.app-comparison tbody th{width:18%;color:white}.app-comparison td{width:27%;color:#cbd2df}
.app-comparison tbody tr:last-child>*{border-bottom:0}
