/* ============================================================
   Moji — marketing site
   Palette lifted straight from the app's own UI:
   blue = hiragana, purple = katakana, amber = kanji,
   flame = streak / brand accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-soft: #F7F7F8;
  --bg-soft-2: #FBFBFC;
  --border: #EAEAEC;
  --ink: #111111;
  --muted: #74747A;
  --muted-2: #ADADB2;

  --blue: #3B6EF6;
  --blue-tint: #E8F0FF;
  --purple: #8B5CF6;
  --purple-tint: #F1EAFF;
  --amber: #E08A2E;
  --amber-tint: #FFF1E0;

  --flame: #C93227;
  --flame-dark: #A5281F;
  --flame-tint: #FBE9E7;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-card: 0 2px 8px rgba(17, 17, 17, 0.05);
  --shadow-lift: 0 16px 40px rgba(17, 17, 17, 0.10);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--flame);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ---------------- Nav ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-lift); }

.btn-flame {
  background: var(--flame);
  color: #fff;
}
.btn-flame:hover { box-shadow: 0 12px 28px rgba(255, 122, 26, 0.35); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 11px; }

.btn-disabled {
  opacity: 0.55;
  cursor: default;
}
.btn-disabled:hover { box-shadow: none; }

/* ---------------- Hero ---------------- */

.hero {
  padding: 76px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--flame-tint);
  color: var(--flame-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 20px;
}

.hero h1 .hl { color: var(--flame); }

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted-2);
}

.hero-proof .dots {
  display: flex;
}
.hero-proof .dots span {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: var(--font-display);
}
.hero-proof .dots span:first-child { margin-left: 0; }

/* ---- Hero demo card (the "signature" piece) ---- */

.demo-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.demo-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 9px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.demo-tab.active {
  color: #fff;
  border-color: transparent;
}
.demo-tab[data-key="hiragana"].active { background: var(--blue); }
.demo-tab[data-key="katakana"].active { background: var(--purple); }
.demo-tab[data-key="kanji"].active { background: var(--amber); }

.demo-stage {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 24px 24px;
  text-align: center;
  min-height: 258px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.demo-char {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.25s ease;
  margin-bottom: 10px;
}

.demo-reading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.demo-meaning {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.demo-ring-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.demo-progress-track {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.demo-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: background 0.25s ease, width 0.4s ease;
}

.demo-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-2);
}

/* ---------------- Section shell ---------------- */

section { padding: 88px 0; }

.section-head {
  max-width: 560px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head h2 {
  font-size: 34px;
  margin: 10px 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.center { text-align: center; }

/* ---------------- Steps (how it works) ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--flame);
  margin-bottom: 16px;
}

.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------------- Category feature cards ---------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.cat-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
}

.cat-card h3 { font-size: 17px; margin-bottom: 4px; }
.cat-card .cat-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

.cat-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.cat-fill { height: 100%; border-radius: 3px; }

/* small stat feature row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.stat-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--flame-tint);
  color: var(--flame-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.stat-card h4 { font-family: var(--font-display); font-size: 15.5px; margin: 0 0 4px; }
.stat-card p { font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .steps, .cat-grid, .stat-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(135deg, var(--flame), #E2554A);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.cta-band h2 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.9); font-size: 16px; margin-bottom: 28px; }
.cta-band .btn-primary { background: #fff; color: var(--flame-dark); }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }
.cta-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 300px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Legal / support pages ---------------- */

.legal-hero {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border);
}

.legal-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
}
.legal-hero .back:hover { color: var(--ink); }

.legal-hero h1 { font-size: 34px; margin-bottom: 8px; }
.legal-hero .updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-2);
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.legal-body h2 {
  font-size: 20px;
  margin: 40px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 15.5px;
  margin: 22px 0 8px;
}

.legal-body p, .legal-body li {
  font-size: 15px;
  color: #3A3A3D;
  line-height: 1.7;
}

.legal-body ul { padding-left: 20px; margin: 10px 0; }
.legal-body li { margin-bottom: 6px; }

.legal-body a { color: var(--blue); text-decoration: underline; }

.legal-note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--muted);
  margin: 24px 0;
}

/* Support page */

.support-hero {
  padding: 70px 0 20px;
  text-align: center;
}

.support-card {
  max-width: 560px;
  margin: 40px auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.support-card .mail-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--flame-tint);
  color: var(--flame-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
}

.support-card h3 { font-size: 19px; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

.faq-grid {
  max-width: 720px;
  margin: 64px auto 0;
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.faq-item h4 { font-family: var(--font-display); font-size: 15.5px; margin: 0 0 6px; }
.faq-item p { font-size: 14px; color: var(--muted); }