/* Kigensei design pass, 4 Dec 2026. Loaded last, so these rules win.
   Goals: the result is named and shown on the first screen; one button; no decorative blobs, watermarks or
   gradient washes; running text at 16px or more; AA contrast (stone #665f53 on warm white 5.9:1, moss tag 6.9:1);
   a shorter page on phones; motion only where it helps and none for people who ask for less. */

/* ── Hero v2 ── */
.hero.hero-v2 { min-height: 0; display: block; padding: 116px 48px 40px; overflow: visible; }
.hero-v2 .hero-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-v2, .hero-v2 * { opacity: 1; animation: none; }
.hero-h1 { font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.005em; color: var(--ink); margin: 0 0 20px; max-width: 19ch; text-wrap: balance; }
.hero-promise { font-size: 1.125rem; line-height: 1.6; color: var(--ink); max-width: 33rem; margin: 0 0 28px; }
.hero-v2 .hero-cta-v2 { font-size: 0.95rem; letter-spacing: 0.08em; padding: 18px 30px; min-height: 56px; }
.hero-fine { margin: 16px 0 0; font-size: 1rem; line-height: 1.5; color: var(--stone); }
.hero-fine a { color: var(--ink); text-underline-offset: 3px; }

/* Example result card: the free tool's own result page, rebuilt in HTML from its real output */
.example-result { margin: 0; }
.example-result figcaption { font-size: 1rem; line-height: 1.5; color: var(--stone); margin: 0 0 12px; }
.example-tag { display: inline-block; vertical-align: 1px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--moss); padding: 3px 8px; margin-right: 6px; }
.ex-sheet { background: #fffdf9; border: 1px solid var(--mist); box-shadow: 0 1px 2px rgba(26,24,20,.06), 0 14px 36px rgba(26,24,20,.08); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ex-title { grid-column: 1 / -1; margin: 0 0 2px; font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.ex-card { position: relative; border: 1px solid var(--mist); background: var(--warm-white); padding: 16px 16px 18px; }
.ex-status { position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--moss); }
.ex-kanji { margin: 0 0 2px; font-family: "Iowan Old Style", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; font-size: 1.6rem; line-height: 1.2; color: var(--ink); }
.ex-name { margin: 0 0 10px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.ex-q { margin: 0 0 4px; font-size: 0.8rem; color: var(--stone); }
.ex-a { margin: 0; font-size: 1rem; line-height: 1.55; font-style: italic; color: var(--ink); }
.ex-intersect { grid-column: 1 / -1; background: var(--ink); padding: 18px 20px; }
.ex-intersect-label { margin: 0 0 6px; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.ex-intersect-text { margin: 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.05rem; line-height: 1.55; color: var(--on-dark); }

/* Promise chips sit just under the first screen */
.trust-row { padding: 8px 48px 56px; }
.trust-row .promise { max-width: 1180px; margin: 0 auto; opacity: 1; animation: none; }
.trust-row .promise li { font-size: 0.9rem; }

/* ── AI-template tells removed ── */
.hero-bg, .hero-kanji-bg { display: none; }
.tiles-section::before { content: none; }
.tile::before { display: none; }
.science-fact, .science-fact:hover { background: transparent; }

/* ── Running text at 16px or more ── */
.mode p, .modes-note, .myths-foot, .myth .found, .science-note, .how-step-body, .disclaimer-text, .section-body,
.pack-strip-lead, .pack-strip-card p, .science-fact-source, .evidence-limit, .myth .src,
footer .footer-tagline, footer .footer-legal, footer .operator, .share-card p, .confirm-box p,
.formula-card-content, .formula-subtitle, .pack-offers-lead, .pack-offer p, .inline-disclaimer { font-size: 1rem; }
.pack-strip-card p.pack-strip-price { font-size: 1.05rem; }
.science-fact-source { font-style: normal; }
/* legal.css pages (packs, teams) */
.card p, .card ul, footer.site { font-size: 1rem; }

/* ── Secure payment line beside each pay button ── */
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 0.875rem; line-height: 1.4; color: var(--stone); }
.pack-strip-card .pay-secure, .card .pay-secure, .pack-offer .pay-secure { font-size: 0.875rem; margin: 8px 0 0; flex: none; }
.pay-lock { flex: none; }

/* ── Phones: one-line menu, first screen shows the result, shorter page ── */
@media (max-width: 900px) {
  .hero.hero-v2 { padding: 92px 24px 28px; }
  .hero-v2 .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust-row { padding: 0 24px 40px; }
  .philosophy, .science { padding-top: 64px; padding-bottom: 64px; }
  .how { padding-top: 64px; padding-bottom: 64px; }
  .myths { padding-top: 64px; }
  .modes { padding-top: 64px; padding-bottom: 64px; }
  .tiles-section { padding-top: 56px; padding-bottom: 64px; }
  .section-header { margin-bottom: 40px; }
  .tiles-header { margin-bottom: 32px; }
  .how-steps { margin-top: 32px; }
  .how-step { padding: 24px 20px; }
  .how-step-num { font-size: 2rem; margin-bottom: 8px; }
  .science-grid { margin-top: 32px; gap: 32px; }
}
@media (max-width: 600px) {
  .hero.hero-v2 { padding: 84px 20px 24px; }
  .hero-h1 { font-size: 1.95rem; margin-bottom: 14px; }
  .hero-promise { font-size: 1.0625rem; margin-bottom: 20px; }
  .hero-v2 .hero-cta-v2 { width: 100%; justify-content: center; }
  .hero-fine { margin-top: 12px; }
  .ex-sheet { grid-template-columns: 1fr; padding: 16px; }
  .trust-row { padding: 0 20px 32px; }
  .tiles-grid { grid-template-columns: 1fr 1fr; }
  .tile { padding: 22px 16px 24px; }
  .tile-kanji { font-size: 2.2rem; }
  .tile-romaji { margin-bottom: 10px; }
  .tile-divider, .tile-arrow, .tile-number { display: none; }
  .tile-question { margin-bottom: 10px; }
  .mode { padding: 24px 20px; }
  .myth { padding: 22px 20px; }
  .science-fact { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 .hero-cta::before { transition: none; }
}
.hero-v2 .hero-cta-v2 { text-transform: none; letter-spacing: 0.01em; font-size: 1.0625rem; font-weight: 500; }
@media (max-width: 600px) { .hero-h1 { max-width: none; } }
.pack-strip-more { font-size: 1rem; }
@media (max-width: 600px) {
  .section-body { line-height: 1.7; margin-top: 16px; }
  .how-step-body, .mode p, .myth .found, .science-note { line-height: 1.6; }
  .mode-grid, .myth-grid { margin-top: 28px; gap: 12px; }
  .mode .go { margin-top: 10px; }
  .science-note { padding: 18px; margin-top: 20px; }
  .science-facts { gap: 16px; }
  .footer-top { gap: 16px; }
}
/* Recipe (the free tool): running text at 16px or more; small labels stay small */
.correction-box, .science-desc, .step-guidance, .iteration-body, .check-in-question, .completion-text p,
.entry-card p, .entry-notice, .entry-fine, .previews figcaption { font-size: 1rem; }
.entry-help { font-size: 0.95rem; }
.entry-card .entry-fine, p.entry-fine { font-size: 1rem !important; }
/* Inner pages: the menu stays on one line on phones (brand = home; Teams & schools stays in the page and footer links) */
@media (max-width: 600px) {
  header.top { padding: 8px 12px; gap: 8px; }
  header.top nav { flex-wrap: nowrap; gap: 0; }
  header.top nav a { padding: 0 8px; white-space: nowrap; }
  header.top nav a[href$="index.html"], header.top nav a[href$="teams.html"]:not([aria-current]) { display: none; }
}
.pack-strip-card p.pack-strip-price { color: var(--ink); flex: none; font-weight: 500; margin-bottom: 6px; }
