/* ============================================================
   Moshibary — official site  v2.0
   "Engawa storybook" — washi paper, matcha kimono, vermillion seal
   Zero JavaScript. Zero external requests. No build step.
   System-font stack only. Cloudflare Pages ready.
   ============================================================ */

:root {
  --washi: #f6f1e6;
  --washi-deep: #ede5d0;
  --card: #fffdf6;
  --ink: #26241e;
  --ink-soft: #5d574a;
  --line: #e0d7c2;

  --matcha: #2e6b4e;
  --matcha-deep: #1d4a35;
  --matcha-soft: #e3eede;
  --matcha-bright: #8dbf7e;
  --shu: #d7484f;
  --shu-deep: #a93339;
  --kin: #e8b84b;
  --sakura: #f3b8bc;
  --sakura-soft: #fbe9ea;

  --night: #16241d;
  --night-card: #1f3328;
  --night-line: #31473a;
  --night-ink: #f1ead9;

  --font-display: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-hand: "Hiragino Maru Gothic ProN", "Yu Gothic", "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 16px 44px rgba(38, 36, 30, 0.11);
  --shadow-soft: 0 6px 18px rgba(38, 36, 30, 0.07);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--washi);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
  background-image:
    radial-gradient(rgba(38, 36, 30, 0.028) 1px, transparent 1px),
    radial-gradient(rgba(38, 36, 30, 0.018) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 4px 6px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--matcha); text-decoration: none; }
a:hover { color: var(--matcha-deep); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--washi); padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- screen-reader only ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ---------- typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.accent { color: var(--shu); }
.hand { font-family: var(--font-hand); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--matcha);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--shu); flex: none; }
.lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 40em; }

/* hanko seal */
.hanko {
  display: inline-grid; place-items: center;
  width: 3.1em; height: 3.1em; flex: none;
  background: var(--shu); color: #fff;
  font-family: var(--font-hand); font-weight: 600; line-height: 1.15;
  font-size: 0.78rem; text-align: center;
  border-radius: 8px; transform: rotate(-4deg);
  box-shadow: 0 3px 0 var(--shu-deep);
}

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--matcha); color: #fff !important;
  font-weight: 800; font-size: 1rem; text-decoration: none !important;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--matcha-deep);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--matcha-deep); }
.btn.shu { background: var(--shu); box-shadow: 0 4px 0 var(--shu-deep); }
.btn.shu:hover { box-shadow: 0 2px 0 var(--shu-deep); }
.btn.small { padding: 9px 18px; font-size: 0.9rem; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.88rem; font-weight: 700; color: var(--ink-soft);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--shu); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .chip .dot { animation: pulse 2.2s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 230, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 22px;
  min-height: 64px; padding-top: 6px; padding-bottom: 6px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.22rem;
  color: var(--ink) !important; text-decoration: none !important;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; }
.nav a:hover { color: var(--matcha-deep); text-decoration: none; }
.langs { display: flex; gap: 4px; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.langs a {
  padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 800;
  color: var(--ink-soft); text-decoration: none !important;
}
.langs a.on { background: var(--ink); color: var(--washi); }
.langs a:hover:not(.on) { background: var(--washi-deep); }
@media (max-width: 860px) { .nav { display: none; } .site-header .cta-head { display: none; } .langs { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.hero h1 { margin-top: 18px; }
.hero .lead { margin-top: 6px; }

.hero-stage { position: relative; min-height: 420px; z-index: 1; }
.sun-disc {
  position: absolute; inset: 0; margin: auto;
  width: min(430px, 88%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fae0b2 0%, #f6d9a8 46%, rgba(246, 217, 168, 0) 72%);
}
.moshi-img { position: relative; width: min(320px, 74%); margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(38, 36, 30, 0.18)); }
.tategaki {
  position: absolute; top: 8%; right: -6px;
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); letter-spacing: 0.28em;
  color: var(--ink); margin: 0;
}
.tategaki small {
  position: absolute; top: calc(100% + 14px); right: 0;
  writing-mode: horizontal-tb; display: block;
  width: max-content; max-width: 130px; text-align: right;
  font-family: var(--font-body); font-weight: 700; font-size: 0.62rem;
  letter-spacing: 0.14em; color: var(--ink-soft);
}

/* falling petals (decorative only) */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.petal {
  position: absolute; top: -30px;
  width: 14px; height: 12px;
  background: var(--sakura);
  border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .petal { animation: fall linear infinite; }
  .petal:nth-child(1) { left: 12%; animation-duration: 11s; animation-delay: 0s; }
  .petal:nth-child(2) { left: 32%; animation-duration: 14s; animation-delay: 3s; width: 11px; height: 9px; }
  .petal:nth-child(3) { left: 58%; animation-duration: 12s; animation-delay: 6s; }
  .petal:nth-child(4) { left: 76%; animation-duration: 15s; animation-delay: 1.5s; width: 10px; height: 9px; }
  .petal:nth-child(5) { left: 90%; animation-duration: 13s; animation-delay: 8s; }
  @keyframes fall {
    0%   { transform: translateY(-4vh) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: 0.85; }
    82%  { opacity: 0.85; }
    100% { transform: translateY(96vh) translateX(-60px) rotate(300deg); opacity: 0; }
  }
}

/* seigaiha wave divider */
.wave-band {
  height: 46px; margin-top: 34px;
  background:
    radial-gradient(circle at 50% 0, transparent 12px, var(--matcha-soft) 13px, var(--matcha-soft) 17px, transparent 18px),
    radial-gradient(circle at 0 0, transparent 12px, var(--matcha-soft) 13px, var(--matcha-soft) 17px, transparent 18px),
    radial-gradient(circle at 100% 0, transparent 12px, var(--matcha-soft) 13px, var(--matcha-soft) 17px, transparent 18px);
  background-size: 44px 44px;
  opacity: 0.9;
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--card); padding: 13px 0; }
.marquee-track { display: flex; gap: 44px; width: max-content; }
.marquee-track span { font-family: var(--font-hand); font-weight: 600; font-size: 1.06rem; color: var(--ink-soft); white-space: nowrap; }
.marquee-track .shu-txt { color: var(--shu); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 36s linear infinite; }
  @keyframes slide { to { transform: translateX(-50%); } }
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
section[id], [id] { scroll-margin-top: 84px; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- demo (CSS-only word tap) ---------- */
.demo-panel {
  position: relative;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 44px 40px 36px;
}
.demo-panel::before {
  content: attr(data-label);
  position: absolute; top: -14px; left: 28px;
  background: var(--kin); color: var(--ink);
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em;
  padding: 4px 14px; border-radius: 999px;
}
.demo-sentence { font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 2.1; margin: 0; }
.chunk { position: relative; display: inline-block; }
.chunk > button {
  all: unset; cursor: pointer; display: inline-block;
  font: inherit; color: inherit;
  border-bottom: 3px dotted var(--matcha-bright);
  padding: 0 2px; margin: 0 1px;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s ease;
}
.chunk > button:hover { background: var(--matcha-soft); }
.chunk > button:focus-visible { outline: 3px solid var(--shu); outline-offset: 2px; }
.chunk:focus-within > button { background: var(--matcha-soft); border-bottom-style: solid; }
.word-pop {
  visibility: hidden; opacity: 0;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150;
  margin: 0 auto; max-width: 430px;
  background: var(--ink); color: var(--washi);
  border-radius: 16px; padding: 18px 20px 16px;
  box-shadow: 0 18px 50px rgba(38, 36, 30, 0.35);
  font-family: var(--font-body); font-size: 0.95rem; line-height: 1.55;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.chunk:focus-within .word-pop { visibility: visible; opacity: 1; transform: translateY(0); }
@media (min-width: 760px) {
  .word-pop {
    position: absolute; left: 50%; right: auto; bottom: calc(100% + 14px);
    transform: translate(-50%, 6px); width: 300px;
  }
  .chunk:focus-within .word-pop { transform: translate(-50%, 0); }
  .word-pop::after {
    content: ""; position: absolute; top: 100%; left: 50%; margin-left: -8px;
    border: 8px solid transparent; border-top-color: var(--ink);
  }
}
.w-jp { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; display: inline-block; margin-right: 10px; }
.w-read { color: var(--kin); font-weight: 700; }
.w-mean { display: block; margin-top: 6px; color: #d9d2c2; }
.w-save { display: inline-block; margin-top: 10px; background: var(--matcha); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }
.demo-caption { margin: 26px 0 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 46em; }
.demo-caption strong { color: var(--ink); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  position: relative; overflow: hidden;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature img { width: 72px; height: 72px; margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.f-num {
  position: absolute; top: 6px; right: 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 4.4rem; line-height: 1; color: var(--washi-deep);
  user-select: none; pointer-events: none;
}
.feature > *:not(.f-num) { position: relative; }

.audio-strip {
  margin-top: 26px; display: flex; align-items: center; gap: 20px;
  background: var(--night); color: var(--night-ink);
  border-radius: var(--radius); padding: 22px 28px;
}
.audio-strip strong { font-size: 1.05rem; }
.audio-strip p { margin: 2px 0 0; color: #c9c1ac; font-size: 0.93rem; }
.eq { display: inline-flex; gap: 4px; align-items: flex-end; height: 30px; flex: none; }
.eq i { width: 5px; background: var(--kin); border-radius: 3px; height: 30%; }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eq 1.1s ease-in-out infinite; }
  .eq i:nth-child(2) { animation-delay: 0.15s; }
  .eq i:nth-child(3) { animation-delay: 0.3s; }
  .eq i:nth-child(4) { animation-delay: 0.45s; }
  .eq i:nth-child(5) { animation-delay: 0.6s; }
  @keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
}

/* ---------- story ---------- */
.story { background: var(--washi-deep); border-block: 1px solid var(--line); }
.story .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.story-cover-frame {
  position: relative; max-width: 400px; margin: 0 auto;
  padding: 14px; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transform: rotate(-2deg);
}
.story-cover-frame img { border-radius: var(--radius-sm); }
.story-cover-frame figcaption {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 6px 2px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 700;
}
.story-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
.story-list li { display: flex; gap: 12px; align-items: baseline; }
.story-list li::before { content: "✿"; color: var(--shu); flex: none; }

/* ---------- moshi ---------- */
.moshi-sec .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.moshi-portrait { position: relative; max-width: 330px; margin: 0 auto; }
.moshi-portrait .sun-disc { width: 100%; transform: scale(1.2); }
.moshi-portrait img { position: relative; }
.moshi-quotes { display: grid; gap: 14px; margin-top: 24px; }
.moshi-quote {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 14px 20px; box-shadow: var(--shadow-soft);
  display: flex; gap: 14px; align-items: center;
}
.moshi-quote .hand { font-size: 1.12rem; color: var(--matcha-deep); flex: none; }
.moshi-quote p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- trust (privacy) ---------- */
.trust { background: var(--night); color: var(--night-ink); }
.trust .kicker { color: var(--matcha-bright); }
.trust h2 { color: #fff; }
.trust .lead { color: #c9c1ac; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.trust-card {
  background: var(--night-card); border: 1px solid var(--night-line);
  border-radius: var(--radius); padding: 24px 22px;
}
.trust-card .t-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.trust-card h3 { color: #fff; font-size: 1.02rem; margin-bottom: 6px; }
.trust-card p { margin: 0; color: #c9c1ac; font-size: 0.9rem; }
.trust-links { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.trust-links a { color: var(--kin); font-weight: 800; }
.trust-links a:hover { color: #f3d187; }

/* ---------- faq ---------- */
.faq-list { max-width: 780px; display: grid; gap: 14px; }
.faq-list details {
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; gap: 14px;
  font-weight: 800; font-size: 1.02rem; padding: 18px 22px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "＋"; color: var(--shu); font-weight: 800; flex: none; transition: transform 0.2s ease; }
.faq-list details[open] summary::before { transform: rotate(45deg); }
.faq-list details > div { padding: 0 22px 20px 48px; color: var(--ink-soft); }
.faq-list details > div p { margin: 0 0 0.6em; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--matcha); color: #fff;
  border-radius: 28px; padding: 66px 32px;
  box-shadow: var(--shadow);
}
.cta-panel::before, .cta-panel::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.cta-panel::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.cta-panel::after { width: 380px; height: 380px; bottom: -180px; right: -100px; }
.cta-panel h2 { color: #fff; position: relative; }
.cta-panel p { position: relative; color: #ddebd9; max-width: 34em; margin: 0 auto 26px; }
.cta-panel .chip { position: relative; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
.cta-panel .btn { background: #fff; color: var(--matcha-deep) !important; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--washi-deep); padding: 48px 0 38px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer .brand { font-size: 1.08rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.footer-note { color: var(--ink-soft); margin-top: 12px; max-width: 34em; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); font-weight: 700; }
.legal-line { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 8px 26px; }

/* ---------- scroll reveal (progressive enhancement, no JS) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(26px); }
      to { opacity: 1; transform: none; }
    }
  }
}

/* ---------- language gate (root) ---------- */
.gate {
  min-height: 100svh; display: grid; place-items: center;
  padding: 40px 20px; text-align: center; position: relative; overflow: hidden;
}
.gate-inner { position: relative; z-index: 1; max-width: 560px; }
.gate .moshi-img { width: 190px; margin-bottom: 8px; }
.gate h1 { font-size: clamp(2rem, 6vw, 2.9rem); }
.gate .lead { margin: 0 auto 34px; }
.gate-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gate-door {
  display: grid; gap: 4px; justify-items: center;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 26px 12px 20px;
  box-shadow: var(--shadow-soft);
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.gate-door:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--matcha-bright); }
.gate-door .g-jp { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.gate-door .g-name { font-weight: 800; color: var(--matcha-deep); }
.gate-door .g-sub { font-size: 0.82rem; color: var(--ink-soft); }
.gate-foot { margin-top: 40px; font-size: 0.84rem; color: var(--ink-soft); }
.gate-foot a { margin: 0 8px; }

/* ---------- sub pages (legal / support / 404) ---------- */
.subpage-main { padding: 56px 0 90px; }
.doc { max-width: 780px; margin: 0 auto; }
.doc-head { margin-bottom: 34px; }
.doc-head .updated {
  display: inline-flex; gap: 8px; align-items: center;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
  font-size: 0.84rem; font-weight: 700; color: var(--ink-soft); padding: 6px 16px;
}
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.doc h2 { font-size: 1.42rem; margin-top: 2.2em; padding-top: 0.4em; }
.doc h3 { font-size: 1.08rem; margin-top: 1.6em; }
.doc .toc {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; margin: 30px 0 10px;
}
.doc .toc strong { display: block; margin-bottom: 8px; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.doc .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; font-size: 0.94rem; }
.doc .toc li { margin-bottom: 5px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 14px 0 22px; background: var(--card); border-radius: var(--radius-sm); overflow: hidden; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--washi-deep); font-size: 0.84rem; letter-spacing: 0.04em; }
.doc .callout {
  background: var(--matcha-soft); border: 1.5px solid var(--matcha-bright);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 18px 0;
  font-size: 0.95rem;
}
.doc .callout.shu-c { background: var(--sakura-soft); border-color: var(--sakura); }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; }

/* support cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.support-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-soft);
}
.support-card h2 { font-size: 1.15rem; margin: 0 0 8px; }
.support-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 12px; }

/* 404 */
.err-wrap { min-height: 72svh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.err-code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--washi-deep); -webkit-text-stroke: 2px var(--line); }
.err-wrap .moshi-img { width: 150px; margin: 0 auto 10px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage { min-height: 340px; order: -1; }
  .moshi-img { width: min(240px, 60%); }
  .tategaki { right: 4px; top: 4%; }
  .story .wrap, .moshi-sec .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid, .trust-grid, .support-grid { grid-template-columns: 1fr; }
  .gate-doors { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .audio-strip { flex-direction: column; align-items: flex-start; gap: 12px; }
  .demo-panel { padding: 36px 22px 30px; }
}

/* ---------- print (legal docs) ---------- */
@media print {
  .site-header, .site-footer, .wave-band, .petals { display: none !important; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .doc table, .doc .toc, .doc .callout { border-color: #999; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================
   Moshibary v3 polish layer
   Stronger hierarchy, clearer conversion path, responsive app preview.
   ============================================================ */

:root {
  --washi-glow: #fffaf0;
  --matcha-glow: #4f8c68;
  --shu-glow: #ef646b;
  --kin-soft: #f6dea3;
  --shadow-lift: 0 24px 70px rgba(28, 52, 39, 0.14);
  --shadow-float: 0 16px 38px rgba(27, 42, 33, 0.16);
}

html { scroll-padding-top: 82px; }
body { min-width: 320px; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

.landing-page {
  background-image:
    radial-gradient(circle at 82% 3%, rgba(243, 184, 188, 0.2), transparent 23rem),
    radial-gradient(circle at 9% 22%, rgba(141, 191, 126, 0.15), transparent 26rem),
    radial-gradient(rgba(38, 36, 30, 0.025) 1px, transparent 1px),
    radial-gradient(rgba(38, 36, 30, 0.015) 1px, transparent 1px);
  background-size: auto, auto, 7px 7px, 11px 11px;
  background-position: center, center, 0 0, 4px 6px;
}

.wrap { width: min(100%, var(--wrap)); }
.flush-top { padding-top: 0; }

/* Header refinement */
.site-header {
  background: rgba(246, 241, 230, 0.82);
  box-shadow: 0 1px 0 rgba(255,255,255,.7), 0 8px 28px rgba(38,36,30,.045);
}
.site-header .wrap { min-height: 72px; }
.brand { letter-spacing: -0.02em; }
.brand img {
  box-shadow: 0 0 0 1px rgba(46,107,78,.16), 0 5px 14px rgba(46,107,78,.12);
}
.nav a { position: relative; padding: 10px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px;
  background: var(--shu); border-radius: 99px; transition: right .18s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 5px;
  list-style: none; cursor: pointer; border: 1.5px solid var(--line); border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow-soft);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 18px; height: 2px; border-radius: 9px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
.mobile-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu[open] summary span:nth-child(2) { opacity: 0; }
.mobile-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(290px, calc(100vw - 32px));
  display: grid; padding: 10px; background: rgba(255,253,246,.98); border: 1.5px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lift);
}
.mobile-menu-panel a {
  color: var(--ink); font-weight: 800; padding: 12px 14px; border-radius: 11px; text-decoration: none;
}
.mobile-menu-panel a:hover, .mobile-menu-panel a:focus-visible { background: var(--matcha-soft); color: var(--matcha-deep); }

/* Buttons */
.btn {
  min-height: 48px; padding-inline: 28px;
  background: linear-gradient(135deg, var(--matcha) 0%, #377b59 100%);
  box-shadow: 0 5px 0 var(--matcha-deep), 0 12px 26px rgba(46,107,78,.16);
}
.btn.shu { background: linear-gradient(135deg, var(--shu) 0%, #bd3840 100%); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--matcha-deep); }

/* Hero */
.hero {
  isolation: isolate;
  padding: 88px 0 46px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.54), rgba(255,255,255,0) 42%),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(46,107,78,.025) 89px 90px);
  mask-image: linear-gradient(to bottom, #000 0 82%, transparent 100%);
}
.hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); gap: 54px; }
.hero-copy { max-width: 660px; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.1rem); letter-spacing: -.035em; line-height: 1.04; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 42em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.hero-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 2px;
  color: var(--ink); font-weight: 900; text-decoration: none;
}
.hero-link span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); transition: transform .18s ease; }
.hero-link:hover { color: var(--matcha-deep); text-decoration: none; }
.hero-link:hover span { transform: translateY(3px); }
.hero-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .8rem; font-weight: 800; letter-spacing: .035em; }
.hero-badges { margin-top: 22px; }
.hero-badges .chip { background: rgba(255,253,246,.76); backdrop-filter: blur(8px); }

.hero-stage { min-height: 520px; }
.hero-stage .sun-disc {
  width: 430px; left: auto; right: -35px; top: 20px; bottom: auto;
  background: radial-gradient(circle at 50% 42%, rgba(250,224,178,.95) 0%, rgba(246,217,168,.68) 48%, rgba(246,217,168,0) 72%);
  z-index: -1;
}
.hero-stage > picture { position: absolute; right: -2px; bottom: -4px; z-index: 4; width: 54%; }
.hero-stage > picture .moshi-img { width: 100%; margin: 0; }

.app-window {
  position: absolute; left: 0; top: 54px; z-index: 2; width: min(365px, 78%);
  padding: 20px 20px 18px; border: 1px solid rgba(224,215,194,.95); border-radius: 26px;
  background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(255,253,246,.9));
  box-shadow: var(--shadow-lift); transform: rotate(-2.2deg);
  backdrop-filter: blur(12px);
}
.app-window::before {
  content: ""; position: absolute; inset: 8px; border-radius: 20px; pointer-events: none;
  border: 1px dashed rgba(46,107,78,.14);
}
.app-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.mini-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: .92rem; }
.mini-brand i { width: 11px; height: 11px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 0 5px var(--sakura-soft); }
.mini-level { padding: 4px 9px; border-radius: 999px; background: var(--matcha-soft); color: var(--matcha-deep); font-size: .68rem; font-weight: 900; letter-spacing: .06em; }
.mini-kicker { margin: 30px 0 8px; color: var(--shu-deep); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.mini-japanese { margin: 0; font-family: var(--font-hand); font-size: clamp(1.28rem, 2.3vw, 1.75rem); font-weight: 600; color: var(--ink); }
.mini-reading { margin: 2px 0 15px; color: var(--ink-soft); font-size: .76rem; letter-spacing: .08em; }
.mini-tokens { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-tokens span { padding: 6px 10px; border-radius: 9px; background: var(--matcha-soft); border-bottom: 2px solid var(--matcha-bright); color: var(--matcha-deep); font-family: var(--font-hand); font-weight: 600; font-size: .86rem; }
.mini-tokens span:last-child { background: var(--sakura-soft); border-color: var(--sakura); color: var(--shu-deep); }
.mini-hint { margin: 16px 0 10px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.mini-progress { height: 7px; border-radius: 99px; background: var(--washi-deep); overflow: hidden; }
.mini-progress span { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--matcha), var(--matcha-bright)); }

.float-card {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1px solid rgba(224,215,194,.86); border-radius: 14px;
  background: rgba(255,253,246,.93); box-shadow: var(--shadow-float); backdrop-filter: blur(9px);
}
.float-card strong { font-family: var(--font-display); color: var(--shu); font-size: 1.05rem; }
.float-card span { color: var(--ink-soft); font-size: .72rem; font-weight: 900; letter-spacing: .04em; }
.float-card-review { left: 30px; bottom: 54px; transform: rotate(3deg); }
.float-card-kanji { right: 4px; top: 84px; transform: rotate(4deg); }
.float-card-kanji strong { font-family: var(--font-hand); color: var(--matcha-deep); }
.hero .tategaki { right: -27px; z-index: 7; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage > picture { animation: moshiFloat 4.8s ease-in-out infinite; }
  .float-card-review { animation: cardFloat 4.2s ease-in-out infinite .5s; }
  .float-card-kanji { animation: cardFloat 4.6s ease-in-out infinite 1.1s; }
  @keyframes moshiFloat { 0%,100% { transform: translateY(0) rotate(.2deg); } 50% { transform: translateY(-9px) rotate(-.5deg); } }
  @keyframes cardFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
}

/* Section polish */
.marquee { box-shadow: inset 0 1px rgba(255,255,255,.8), inset 0 -1px rgba(255,255,255,.8); }
section:not(.hero):not(.trust) { position: relative; }
.section-head { margin-bottom: 48px; }
.kicker { background: rgba(255,253,246,.62); padding: 5px 11px 5px 0; border-radius: 999px; }

.demo-panel {
  overflow: visible;
  background:
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,253,246,.98)),
    var(--card);
  box-shadow: var(--shadow-lift);
}
.demo-panel::after {
  content: ""; position: absolute; inset: 12px; border: 1px dashed rgba(46,107,78,.12); border-radius: 15px; pointer-events: none;
}
.demo-sentence, .demo-caption { position: relative; z-index: 1; }

.feature-grid { gap: 24px; }
.feature {
  min-height: 265px; padding: 30px 28px 26px;
  background: linear-gradient(155deg, rgba(255,255,255,.88), rgba(255,253,246,.95));
  box-shadow: 0 8px 22px rgba(38,36,30,.055);
}
.feature::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(90deg, var(--matcha), var(--matcha-bright), var(--sakura)); opacity: .72;
}
.feature:nth-child(2n)::after { background: linear-gradient(90deg, var(--shu), var(--sakura), var(--kin)); }
.feature img { filter: drop-shadow(0 10px 13px rgba(38,36,30,.1)); transition: transform .22s ease; }
.feature:hover img { transform: translateY(-3px) rotate(-2deg) scale(1.035); }
.feature h3 { font-size: 1.27rem; }

.audio-strip { border-radius: 20px; box-shadow: var(--shadow-soft); }
.story { overflow: hidden; }
.story::before {
  content: ""; position: absolute; inset: 7% 0; z-index: -1;
  background: linear-gradient(90deg, rgba(227,238,222,.58), rgba(251,233,234,.42));
  transform: skewY(-2deg);
}
.story-cover-frame { box-shadow: 0 28px 65px rgba(38,36,30,.18); }
.moshi-quote { transition: transform .18s ease, border-color .18s ease; }
.moshi-quote:hover { transform: translateX(5px); border-color: var(--matcha-bright); }

.trust {
  background:
    radial-gradient(circle at 88% 0, rgba(141,191,126,.13), transparent 27rem),
    radial-gradient(circle at 3% 100%, rgba(215,72,79,.12), transparent 25rem),
    var(--night);
}
.trust-card { position: relative; overflow: hidden; min-height: 195px; }
.trust-card::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -42px; bottom: -44px; background: rgba(141,191,126,.08); }
.trust-card .t-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.06); }

.faq-list details { box-shadow: 0 6px 16px rgba(38,36,30,.035); transition: border-color .18s ease, box-shadow .18s ease; }
.faq-list details:hover, .faq-list details[open] { border-color: var(--matcha-bright); box-shadow: var(--shadow-soft); }
.faq-list summary:focus-visible { outline-offset: -4px; }

.cta-panel {
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.12), transparent 12rem),
    linear-gradient(135deg, #245b41, var(--matcha) 52%, #3f805e);
  box-shadow: 0 30px 70px rgba(46,107,78,.22);
}

/* Gate */
.gate-page {
  background:
    radial-gradient(circle at 50% 20%, rgba(243,184,188,.22), transparent 20rem),
    radial-gradient(circle at 10% 90%, rgba(141,191,126,.18), transparent 24rem),
    var(--washi);
}
.gate::before, .gate::after {
  content: ""; position: absolute; width: 34vw; min-width: 260px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(46,107,78,.12); box-shadow: 0 0 0 24px rgba(46,107,78,.025), 0 0 0 48px rgba(46,107,78,.018);
}
.gate::before { left: -18vw; top: -18vw; }
.gate::after { right: -18vw; bottom: -18vw; border-color: rgba(215,72,79,.12); }
.gate-inner { max-width: 720px; }
.gate-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 16px; background: var(--shu); color: #fff; box-shadow: 0 5px 0 var(--shu-deep); transform: rotate(-4deg); }
.gate-mark span { font-family: var(--font-hand); font-weight: 600; font-size: .82rem; }
.gate .moshi-img { width: 176px; }
.gate-choice { margin: -18px 0 22px; color: var(--ink-soft); font-size: .82rem; font-weight: 800; letter-spacing: .04em; }
.gate-doors { gap: 18px; }
.gate-door { position: relative; overflow: hidden; min-height: 158px; align-content: center; }
.gate-door::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--matcha); opacity: .8; }
.gate-door:nth-child(2)::before { background: var(--shu); }
.gate-door:nth-child(3)::before { background: var(--kin); }

/* Subpages and 404 */
.subpage-main { background: linear-gradient(to bottom, rgba(255,255,255,.28), transparent 24rem); }
.doc { background: rgba(255,253,246,.38); border-radius: 28px; }
.doc h2[id] { scroll-margin-top: 100px; }
.support-card { transition: transform .18s ease, box-shadow .18s ease; }
.support-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.err-actions { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.err-actions .btn { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); gap: 34px; }
  .hero-stage { min-height: 485px; }
  .app-window { width: 340px; }
  .hero .tategaki { right: -8px; }
}

@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; }
  .mobile-menu { display: block; }
  .langs { margin-left: auto; }
  .hero { padding-top: 46px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { min-height: 430px; width: min(100%, 620px); margin: 0 auto; order: -1; }
  .hero-stage > picture { width: 42%; right: 8%; }
  .hero-stage .sun-disc { width: 360px; right: 0; }
  .app-window { left: 7%; top: 48px; width: 330px; }
  .float-card-review { left: 9%; bottom: 38px; }
  .float-card-kanji { right: 4%; top: 62px; }
  .hero .tategaki { right: 0; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .site-header .wrap { min-height: 66px; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 31px; height: 31px; }
  .langs a { padding-inline: 9px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.65rem); }
  .hero-stage { min-height: 370px; }
  .app-window { left: 0; top: 42px; width: min(305px, 82%); padding: 17px; border-radius: 22px; }
  .hero-stage > picture { width: 44%; right: 0; bottom: 3px; }
  .hero-stage .sun-disc { width: 310px; right: -55px; top: 30px; }
  .float-card { padding: 7px 9px; }
  .float-card-review { left: 2%; bottom: 16px; }
  .float-card-kanji { right: 0; top: 45px; }
  .hero .tategaki { display: none; }
  .hero-actions { align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .hero-link { justify-content: center; width: 100%; }
  .hero-note { text-align: center; line-height: 1.55; }
  .hero-badges { gap: 8px; }
  .hero-badges .chip { font-size: .8rem; padding: 6px 11px; }
  .demo-panel { border-radius: 18px; }
  .feature { min-height: 0; }
  .cta-panel { padding: 50px 20px; border-radius: 22px; }
  .gate { padding-block: 30px; }
  .gate .moshi-img { width: 145px; }
  .gate-choice { line-height: 1.5; }
  .gate-door { min-height: 125px; }
}

@media (hover: none) {
  .feature:hover, .support-card:hover, .gate-door:hover, .moshi-quote:hover { transform: none; }
}

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

/* ============================================================
   Moshibary v4 app showcase layer
   Real screenshots, language support emphasis, compliance note.
   ============================================================ */

.language-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.language-card {
  background: rgba(255,253,246,.82);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}
.language-card strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.language-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.55;
}
.language-card .lang-pill {
  display: inline-block;
  margin-bottom: 8px;
  background: var(--night);
  color: var(--washi);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.language-card:nth-child(2) .lang-pill { background: var(--shu); }

.hero-stage {
  display: grid;
  align-items: end;
}
.hero-shot {
  position: absolute;
  left: 24px;
  top: 16px;
  z-index: 4;
  width: min(280px, 62%);
}
.phone-frame {
  background: #121212;
  border-radius: 32px;
  padding: 11px;
  box-shadow: 0 22px 50px rgba(18,18,18,.22);
}
.phone-frame img {
  border-radius: 24px;
  width: 100%;
}
.shot-tag {
  position: absolute;
  right: -18px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,253,246,.96);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  box-shadow: var(--shadow-float);
  color: var(--ink);
  font-size: .8rem;
  font-weight: 900;
}
.shot-tag i {
  font-style: normal;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--matcha);
}
.hero-stage > picture.hero-moshi {
  position: absolute;
  right: -2px;
  bottom: -4px;
  z-index: 3;
  width: 45%;
}
.hero-stage > picture.hero-moshi .moshi-img { width: 100%; margin: 0; }
.hero-stage .feature-bubble {
  position: absolute;
  z-index: 6;
  max-width: 190px;
  background: rgba(255,253,246,.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
}
.hero-stage .feature-bubble strong {
  display: block;
  font-size: .85rem;
  margin-bottom: 2px;
}
.hero-stage .feature-bubble span {
  display: block;
  font-size: .76rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.hero-stage .feature-bubble.one { right: 28px; top: 118px; }
.hero-stage .feature-bubble.two { left: 0; bottom: 28px; }

.feature-headline {
  margin-bottom: 24px;
}
.app-showcase {
  padding-top: 26px;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}
.screen-card {
  background: linear-gradient(155deg, rgba(255,255,255,.92), rgba(255,253,246,.98));
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.screen-card.phone { grid-column: span 4; }
.screen-card.wide { grid-column: span 6; }
.screen-card.cover { grid-column: span 6; }
.screen-card h3 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}
.screen-card p,
.screen-card li {
  color: var(--ink-soft);
  font-size: .95rem;
}
.screen-copy {
  margin-top: 18px;
}
.screen-copy ul {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}
.screen-art {
  position: relative;
}
.screen-art .phone-frame,
.screen-art .wide-frame,
.story-card {
  width: 100%;
}
.wide-frame {
  background: #f5f2eb;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.wide-frame img {
  width: 100%;
  border-radius: 14px;
}
.story-card {
  background: linear-gradient(145deg, #fffef8, #fff8fb);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.story-card img {
  border-radius: 16px;
}
.story-meta {
  display: grid;
  gap: 10px;
}
.story-meta .mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.story-meta .mini-badges span {
  background: var(--sakura-soft);
  color: var(--shu-deep);
  border: 1px solid var(--sakura);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 800;
}
.note-box {
  margin-top: 26px;
  background: var(--matcha-soft);
  border: 1.5px solid var(--matcha-bright);
  border-radius: 20px;
  padding: 18px 20px;
}
.note-box strong {
  display: block;
  margin-bottom: 6px;
}
.note-box p { margin: 0; color: var(--ink-soft); }
.attribution-note {
  margin-top: 12px;
  font-size: .84rem;
  color: var(--ink-soft);
}
.attribution-note strong { color: var(--ink); }

@media (max-width: 1080px) {
  .screen-card.phone { grid-column: span 6; }
  .hero-stage > picture.hero-moshi { width: 42%; }
}
@media (max-width: 860px) {
  .language-strip,
  .screen-grid { grid-template-columns: 1fr; }
  .screen-card.phone,
  .screen-card.wide,
  .screen-card.cover { grid-column: span 1; }
  .hero-shot { left: 5%; width: min(250px, 64%); }
  .hero-stage .feature-bubble.one { right: 0; top: 88px; }
  .hero-stage .feature-bubble.two { left: 0; bottom: 20px; }
}
@media (max-width: 620px) {
  .language-card { padding: 14px 15px; }
  .hero-shot { position: absolute; top: 34px; left: 0; width: min(220px, 66%); }
  .phone-frame { border-radius: 28px; padding: 9px; }
  .phone-frame img { border-radius: 20px; }
  .hero-stage > picture.hero-moshi { width: 45%; }
  .hero-stage .feature-bubble {
    max-width: 145px;
    padding: 10px 11px;
    border-radius: 15px;
  }
  .shot-tag {
    right: -8px;
    bottom: 16px;
    font-size: .72rem;
    padding: 7px 10px;
  }
}

/* ---------- pricing and support completion ---------- */
.pricing-section {
  background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(227,238,222,.28));
  border-block: 1px solid var(--line);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.price-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.price-card.featured {
  border-color: var(--matcha-bright);
  box-shadow: var(--shadow);
}
.price-card.featured::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--matcha), var(--matcha-bright), var(--kin));
}
.price-label {
  display: inline-block;
  margin-bottom: 15px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--washi-deep);
  color: var(--ink-soft);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.price-card.featured .price-label {
  background: var(--matcha);
  color: #fff;
}
.price-card h3 { font-size: 1.35rem; }
.price-card p { color: var(--ink-soft); }
.price-card ul { margin: 18px 0 0; padding-left: 20px; color: var(--ink-soft); }
.price-card li { margin-bottom: 8px; }
.price-dynamic {
  color: var(--matcha-deep) !important;
  font-weight: 900;
  font-size: 1.08rem;
}
.pricing-fineprint {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: .9rem;
}
.support-notice {
  margin: 34px 0;
  padding: 24px 26px;
  background: var(--matcha-soft);
  border: 1.5px solid var(--matcha-bright);
  border-radius: var(--radius);
}
.support-notice h2 { margin-top: 0; }
.support-notice p { margin-bottom: 0; }
@media (max-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Final polish: remove long-scroll feeling in screenshot cards */
.screen-card.phone .phone-frame {
  max-height: 620px;
  overflow: hidden;
}
.screen-card.phone .phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-shot.phone-frame {
  max-height: 520px;
  overflow: hidden;
}
.hero-shot.phone-frame img {
  width: 100%;
  display: block;
}
.screen-card.wide .wide-frame {
  max-height: 520px;
  overflow: hidden;
}
.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.trust-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: var(--ink);
  font-weight: 800;
}
.trust-links a:hover {
  background: var(--matcha-soft);
  border-color: var(--matcha-bright);
}
@media (max-width: 620px) {
  .screen-card.phone .phone-frame { max-height: 520px; }
  .hero-shot.phone-frame { max-height: 420px; }
}

/* Learning approach notice */
.learning-section {
  padding: 14px 0 54px;
}
.learning-section .note-box {
  margin-top: 0;
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.learning-section .note-box strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

/* ============================================================
   Final navigation + screenshot presentation
   Only real page links remain in the header/footer.
   ============================================================ */
.site-header .minimal-header {
  justify-content: space-between;
}
.site-header .minimal-header .langs {
  margin-left: auto;
}

.hero-stage {
  min-height: 560px;
  display: grid;
  place-items: center;
}
.hero-shot {
  position: relative;
  inset: auto;
  width: min(390px, 88%);
  margin: 0 auto;
  transform: rotate(-1.2deg);
}
.hero-shot.phone-frame {
  max-height: none;
  padding: 12px;
  border-radius: 34px;
  background: #111;
  box-shadow: 0 30px 80px rgba(18,18,18,.25);
}
.hero-shot.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.hero-stage .sun-disc {
  left: 50%;
  right: auto;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(500px, 100%);
}

.showcase-list {
  display: grid;
  gap: 48px;
}
.showcase-row {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,253,246,.98));
  border: 1.5px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.showcase-row.reverse .showcase-media { order: 2; }
.showcase-row.reverse .showcase-copy { order: 1; }
.showcase-media {
  display: grid;
  place-items: center;
  min-width: 0;
}
.app-shot-frame {
  width: min(100%, 460px);
  padding: 11px;
  background: #121212;
  border-radius: 30px;
  box-shadow: 0 24px 54px rgba(18,18,18,.2);
}
.app-shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 21px;
}
.showcase-row:nth-child(4) .app-shot-frame {
  width: min(100%, 610px);
  background: #f1ede4;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.showcase-row:nth-child(4) .app-shot-frame img {
  border-radius: 15px;
}
.showcase-copy h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}
.showcase-copy > p {
  font-size: 1.03rem;
  color: var(--ink-soft);
}
.showcase-copy ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.showcase-copy li {
  position: relative;
  padding-left: 27px;
  color: var(--ink-soft);
}
.showcase-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--matcha);
  font-weight: 900;
}
.footer-grid-compact {
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr);
}

@media (max-width: 860px) {
  .hero-stage { min-height: 500px; }
  .hero-shot { width: min(360px, 84%); }
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-row.reverse .showcase-media,
  .showcase-row.reverse .showcase-copy { order: initial; }
  .app-shot-frame { width: min(100%, 430px); }
}
@media (max-width: 560px) {
  .site-header .minimal-header { gap: 10px; }
  .hero-stage { min-height: 420px; }
  .hero-shot { width: min(315px, 92%); }
  .showcase-list { gap: 28px; }
  .showcase-row { padding: 20px; border-radius: 22px; }
  .app-shot-frame { padding: 8px; border-radius: 25px; }
  .app-shot-frame img { border-radius: 18px; }
  .footer-grid-compact { grid-template-columns: 1fr; }
}
