/* ───────────────────────────────────────────────
   Mummoo.net — Marketing landing
   Linear/Vercel-grade minimal · Mummoo Lavender DNA
   ─────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.css');

:root {
  /* Surfaces — warm off-white, near-black ink (low saturation) */
  --canvas:        #FBFAF7;
  --canvas-2:      #F4F2EC;
  --surface:       #FFFFFF;
  --ink:           #0A0A0A;
  --ink-2:         #18181B;
  --ink-3:         #52525B;
  --ink-4:         #A1A1AA;
  --ink-5:         #D4D4D8;
  --border:        rgba(10, 10, 10, 0.08);
  --border-soft:   rgba(10, 10, 10, 0.04);
  --border-strong: rgba(10, 10, 10, 0.14);

  /* Brand */
  --lavender:      #8B5CF6;
  --lavender-deep: #6D38E0;
  --lavender-soft: #EEEDFE;
  --lavender-ink:  #3C3489;

  /* Accents from app */
  --blossom:       #D4537E;
  --blossom-soft:  #FBEAF0;
  --mint:          #1D9E75;
  --mint-soft:     #E1F5EE;

  /* Pastels (avatar palette samples) */
  --peach: #FFD6A5;
  --sky:   #9BF6FF;
  --rose:  #FFC6FF;
  --sage:  #CAFFBF;
  --sand:  #FDFFB6;
  --blush: #FFB4A2;
  --lilac: #BDB2FF;

  /* Type system */
  --font-sans: 'Geist', 'Pretendard Variable', 'Pretendard', 'Noto Sans JP', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --font-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;

  /* Layout */
  --max:    1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

html { overflow-x: hidden; }
body { overflow-x: hidden; }

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Subtle film-grain noise on canvas */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ─── Type scale ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lavender); margin-right: 8px;
  transform: translateY(-1px);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  word-break: keep-all;
}

p { margin: 0; line-height: 1.55; color: var(--ink-3); word-break: keep-all; }

/* ─── Container ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ─── Header ─── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 247, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: url(assets/app-icon.png) center / cover no-repeat;
  box-shadow: 0 4px 14px -4px rgba(139, 92, 246, 0.5), inset 0 0 0 0.5px rgba(255,255,255,0.18);
}
.nav {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; color: var(--ink-3);
}
.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

.header-right { display: flex; align-items: center; gap: 14px; }

/* ─── Language switcher ─── */
.lang-switch {
  display: flex; gap: 1px;
  background: var(--border-soft);
  padding: 3px; border-radius: 999px;
  border: 1px solid var(--border-soft);
}
.lang-switch a, .lang-switch button {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  padding: 5px 10px; border-radius: 999px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.15s;
}
.lang-switch a.active, .lang-switch button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.lang-switch a:hover:not(.active), .lang-switch button:hover:not(.active) { color: var(--ink); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 8px 20px -8px rgba(0,0,0,0.4);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink-3);
  background: transparent;
}
.btn-ghost:hover { color: var(--ink); }

.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-lg.btn-primary { box-shadow: 0 2px 0 rgba(255,255,255,0.12) inset, 0 14px 28px -12px rgba(0,0,0,0.45); }

/* ─── Hero ─── */
.hero {
  padding: 88px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 7.2vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.hero h1 .em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(110deg, #8B5CF6 0%, #D4537E 60%, #6D38E0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 460px;
}
.hero-ctas {
  margin-top: 40px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}

.appstore-badge {
  display: inline-flex;
  border-radius: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 14px 28px -16px rgba(0,0,0,0.5);
}
.appstore-badge:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(0,0,0,0.55); }
.appstore-badge:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 9px; }
.appstore-badge img { border-radius: 9px; }
.cta-badge-wrap { display: flex; justify-content: center; }

.hero-meta {
  margin-top: 40px;
  display: flex; gap: 28px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.hero-meta > div { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }

/* iPhone wrapper — hero */
.hero-device-wrap {
  position: relative;
  display: flex; justify-content: center;
}
.hero-device-wrap::before {
  content: ''; position: absolute;
  width: 130%; height: 130%; left: -15%; top: -15%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(212, 83, 126, 0.12) 0%, transparent 50%);
  filter: blur(40px);
  z-index: -1;
}

/* Floating emoji flecks around hero phone */
.float-emoji {
  position: absolute;
  font-family: var(--font-emoji);
  font-size: 28px;
  user-select: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}

/* ─── Marquee (logos / countries) ─── */
.marquee-section {
  padding: 32px 0 32px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.marquee-label {
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-4);
  text-align: center;
  margin-bottom: 18px;
}
.marquee {
  display: flex; gap: 56px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item {
  font-family: var(--font-emoji);
  font-size: 28px;
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.marquee-item .emoji-line {
  font-family: var(--font-emoji);
  font-size: 30px;
  letter-spacing: 0.06em;
  padding: 4px 22px 4px 0;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.marquee-item:last-child .emoji-line { border-right: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Section header ─── */
.section {
  padding: 120px 0;
  position: relative;
  overflow-x: hidden;
}
.section-header {
  max-width: 720px;
  margin-bottom: 88px;
}
.section-header h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 18px;
}
.section-header p {
  font-size: 18px;
  margin-top: 22px;
  max-width: 560px;
  color: var(--ink-3);
}

/* ─── Feature rows ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}
.feature-row:first-of-type { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-mockup { order: 1; }

.feature-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lavender-deep);
  background: var(--lavender-soft);
  padding: 6px 12px; border-radius: 999px;
}
.feature-text h3 {
  font-size: clamp(32px, 3.4vw, 44px);
  margin-top: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.feature-text p.lead {
  font-size: 17px;
  margin-top: 20px;
  max-width: 460px;
  color: var(--ink-3);
}
.feature-bullets {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-bullets li {
  list-style: none;
  display: flex; gap: 12px;
  font-size: 14px; color: var(--ink-2);
  align-items: flex-start;
  word-break: keep-all;
}
.feature-bullets li .b-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink); margin-top: 9px; flex-shrink: 0;
}

.feature-mockup {
  display: flex; justify-content: center;
  position: relative;
}
.feature-mockup::before {
  content: ''; position: absolute;
  width: 80%; height: 80%; left: 10%; top: 10%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.10) 0%, transparent 65%);
  filter: blur(36px);
  z-index: -1;
}

/* ─── Big quote / philosophy ─── */
.philosophy {
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}
.philosophy blockquote {
  margin: 0 auto; max-width: 980px;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
  /* Display quote: break at word/phrase boundaries like headings — keeps Korean
     words intact and lets ja/zh break only at allowed CJK points (no mid-word). */
  word-break: keep-all;
}
.philosophy blockquote .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--lavender-deep);
}
.philosophy-emojis {
  font-family: var(--font-emoji);
  font-size: 28px;
  letter-spacing: 0.1em;
  margin-top: 40px;
  opacity: 0.85;
}

/* ─── CTA ─── */
.cta {
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139, 92, 246, 0.16) 0%, transparent 60%);
  z-index: 0;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  text-wrap: balance;
}
.cta p {
  font-size: 19px;
  margin: 26px auto 40px;
  max-width: 560px;
}
.cta-emojis {
  font-family: var(--font-emoji);
  font-size: 40px;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

/* ─── Footer ─── */
.footer {
  padding: 64px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--canvas);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: color 0.15s; }
.footer ul a:hover { color: var(--lavender-deep); }
.footer-tagline {
  font-size: 14px;
  margin-top: 18px;
  max-width: 280px;
  color: var(--ink-3);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-4);
  letter-spacing: 0.02em;
}

/* ─── Legal pages (terms / privacy) ─── */
.legal-main {
  padding: 56px 0 96px;
  position: relative;
  z-index: 1;
}
.legal-shell {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.legal-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 28px;
}
.legal-breadcrumb a { color: var(--ink-3); transition: color 0.15s; }
.legal-breadcrumb a:hover { color: var(--ink); }
.legal-breadcrumb .sep { opacity: 0.5; }
.legal-breadcrumb .current { color: var(--ink); }

.legal-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 36px;
  margin-bottom: 56px;
}
.legal-header h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.legal-header .legal-meta {
  display: flex; gap: 20px; align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.legal-header .legal-meta .doc-switch {
  display: inline-flex; gap: 4px;
  margin-left: auto;
}
.legal-header .legal-meta .doc-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink-3);
  transition: all 0.15s;
  white-space: nowrap;
}
.legal-header .legal-meta .doc-switch a.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: var(--ink);
}
.legal-header .legal-meta .doc-switch a:hover:not(.active) {
  color: var(--ink);
  border-color: var(--border-strong);
}

.legal-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 64px;
  max-width: 680px;
  word-break: keep-all;
}

.legal-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
  padding: 24px 28px;
  margin-bottom: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.legal-toc-title {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.legal-toc a {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.15s;
  border-bottom: 1px solid var(--border-soft);
}
.legal-toc a:hover { color: var(--lavender-deep); }
.legal-toc a .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-4);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 22px;
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 88px;
}
.legal-section .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--lavender-deep);
  display: block;
  margin-bottom: 12px;
}
.legal-section h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--ink);
}
.legal-section h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 28px 0 10px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-2);
  margin-bottom: 14px;
  word-break: keep-all;
}
.legal-section ul {
  margin: 8px 0 18px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.legal-section ul li {
  display: flex; gap: 12px;
  font-size: 15px; line-height: 1.65; color: var(--ink-2);
  word-break: keep-all;
}
.legal-section ul li::before {
  content: '';
  flex-shrink: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink-4);
  margin-top: 11px;
}
.legal-section ol.legal-ol {
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: legal-ol;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-section ol.legal-ol > li {
  position: relative;
  padding-left: 28px;
  counter-increment: legal-ol;
  font-size: 15px; line-height: 1.65; color: var(--ink-2);
  word-break: keep-all;
}
.legal-section ol.legal-ol > li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.65;
}
.legal-section ol.legal-ol > li > span { display: block; }
.legal-section ol.legal-ol .legal-ol-sub {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.legal-section ol.legal-ol .legal-ol-sub li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}
.legal-section ol.legal-ol .legal-ol-sub li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-4);
}
.legal-section .callout {
  margin: 20px 0;
  padding: 20px 22px;
  background: var(--lavender-soft);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--lavender-ink);
  word-break: keep-all;
}

.legal-business {
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
}
.legal-business h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.legal-business dl {
  margin: 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 24px;
  font-size: 14px;
}
.legal-business dt { color: var(--ink-4); }
.legal-business dd { margin: 0; color: var(--ink-2); }

.legal-foot-cta {
  margin-top: 80px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex; align-items: center; gap: 24px;
  background: var(--surface);
}
.legal-foot-cta .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8B5CF6 0%, #6D38E0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-emoji);
  font-size: 22px;
  flex-shrink: 0;
}
.legal-foot-cta .text { flex: 1; }
.legal-foot-cta .text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.legal-foot-cta .text span {
  font-size: 13px;
  color: var(--ink-3);
}
.legal-foot-cta a.contact-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--lavender-deep);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .legal-main { padding: 32px 0 64px; }
  .legal-header { padding-bottom: 28px; margin-bottom: 40px; }
  .legal-header h1 { font-size: clamp(32px, 8vw, 44px); }
  .legal-header .legal-meta { flex-direction: column; align-items: flex-start; gap: 14px; }
  .legal-header .legal-meta .doc-switch { margin-left: 0; }
  .legal-intro { font-size: 16px; margin-bottom: 40px; }
  .legal-toc { grid-template-columns: 1fr; padding: 20px; margin-bottom: 48px; }
  .legal-section { margin-bottom: 40px; }
  .legal-section h2 { font-size: 22px; }
  .legal-section p, .legal-section ul li, .legal-section ol.legal-ol > li { font-size: 14px; }
  .legal-business { grid-template-columns: 1fr; gap: 18px; }
  .legal-business dl { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-business dt { margin-top: 8px; }
  .legal-foot-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  /* Hide "← Home" label, keep arrow only — breadcrumb already has Home link */
  .legal-home-link .label { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .hero { padding: 56px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: clamp(40px, 12vw, 72px); }
  .feature-row { grid-template-columns: 1fr; gap: 56px; padding: 56px 0; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-mockup { order: 2; }
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { display: none; }
  .philosophy, .cta { padding: 96px 0; }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .hero-meta { flex-direction: column; gap: 10px; }
  /* Scale down 372px iPhone mockups so they fit narrow viewports */
  .hero-device-wrap,
  .feature-mockup {
    transform: scale(0.82);
    transform-origin: center top;
  }
  .hero-device-wrap { margin-bottom: -120px; }
  .feature-mockup { margin: -40px 0 -80px; }
}
@media (max-width: 400px) {
  .hero-device-wrap,
  .feature-mockup { transform: scale(0.72); }
  .hero-device-wrap { margin-bottom: -160px; }
  .feature-mockup { margin: -60px 0 -120px; }
}

/* CJK wrapping: keep-all keeps Korean words intact at spaces, but Japanese/
   Chinese have no spaces, so a whole paragraph becomes one unbreakable run and
   overflows. overflow-wrap:anywhere lets those space-less runs break to fit,
   without changing Korean's space-based wrapping. */
p,
.legal-intro,
.legal-section p,
.legal-section ul li,
.legal-section ol.legal-ol > li,
.legal-section .callout,
.feature-bullets li {
  overflow-wrap: anywhere;
}

/* Japanese & Chinese: standard CJK line-filling (break between characters).
   keep-all (above) preserves Korean words at spaces, but for space-less ja/zh
   it leaves text breaking only at brackets/punctuation, producing ragged early
   line breaks. <html lang> is set per locale (legal.js / app.js), so scope the
   override by language; Korean & English keep keep-all. */
:is(:lang(ja), :lang(zh)) :is(
  p,
  .legal-intro,
  .legal-section p,
  .legal-section ul li,
  .legal-section ol.legal-ol > li,
  .legal-section .callout,
  .feature-bullets li) {
  word-break: normal;
}

/* Headings inherit word-break:keep-all from the base h1-h4 rule, which for
   space-less ja/zh leaves zero break points and overflows the container (same
   failure mode as the paragraph fix above). Restore normal CJK breaking, but
   use line-break:strict + text-wrap:balance so multi-line headings still
   break at phrase/punctuation boundaries (kinsoku) rather than raggedly. */
:is(:lang(ja), :lang(zh)) :is(h1, h2, h3, h4, .philosophy blockquote) {
  word-break: normal;
  line-break: strict;
  text-wrap: balance;
}
