:root {
  --paper: #fff8f0;
  --card: #fff0e1;
  --card-strong: #ffe6cd;
  --ink: #2b211a;
  --muted: #76675a;
  --brand: #8a5518;
  --brand-dark: #6d4210;
  --accent: #ef7b33;
  --line: #f1e1cf;
  --mint: #d3eddd;
  --sky: #d9eaf7;
  --sun: #ffe39a;
  --shadow: 0 24px 60px rgba(84, 52, 16, .14);
  --shadow-soft: 0 10px 30px rgba(84, 52, 16, .08);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin-top: 0; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -.02em; text-wrap: balance; }
h2 { margin-bottom: 14px; font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.12; }
h3 { margin-bottom: 8px; font-size: 1.25rem; font-weight: 750; line-height: 1.2; }
*:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.shell { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { display: inline-block; margin-bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--card-strong); color: var(--brand-dark); font-family: var(--round); font-size: .85rem; font-weight: 750; }
.section { padding-block: clamp(44px, 6vw, 76px); }
.section-intro { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-intro p { margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--round); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: var(--shadow-soft); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.text-link { color: var(--muted); font-size: .95rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 16px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.store-button:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43, 33, 26, .25); }
.store-button svg { flex: 0 0 28px; width: 28px; height: 28px; }
.store-button span { display: flex; flex-direction: column; line-height: 1.15; }
.store-button small { font-size: .74rem; font-weight: 500; opacity: .75; }
.store-button strong { font-family: var(--round); font-size: 1.16rem; font-weight: 750; letter-spacing: -.01em; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 850; line-height: 1.03; letter-spacing: -.035em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.25rem); line-height: 1.55; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero-art { position: relative; display: flex; justify-content: center; min-height: 520px; padding-block: 10px 30px; }
.hero-art::before { content: ""; position: absolute; inset: 6% 2% 4% 6%; z-index: 0; border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; background: radial-gradient(circle at 30% 25%, var(--sun), #ffd0a3 70%); }
.blob { position: absolute; z-index: 0; border-radius: 50%; }
.blob-mint { top: 2%; right: 4%; width: 92px; height: 92px; background: var(--mint); }
.blob-sky { bottom: 4%; left: 0; width: 64px; height: 64px; background: var(--sky); }

.phone { position: relative; z-index: 1; width: min(250px, 44vw); overflow: hidden; border: 9px solid var(--ink); border-radius: 40px; background: #fff7f2; box-shadow: var(--shadow); aspect-ratio: 600 / 1299; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .phone-back { transform: rotate(-7deg) translate(18px, 26px); }
.hero-art .phone-front { margin-left: -56px; transform: rotate(5deg); }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; overflow: hidden; padding: 34px 34px 0; border-radius: 34px; }
.mode-explore { background: var(--mint); }
.mode-find { background: var(--sky); }
.mode-card p { margin-bottom: 30px; color: rgba(43, 33, 26, .78); }
.mode-tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--round); font-size: .92rem; font-weight: 750; }
.mode-tag svg { width: 16px; height: 16px; }
.mode-card .phone { align-self: end; width: 190px; margin-bottom: -105px; border-width: 7px; border-radius: 32px; box-shadow: var(--shadow-soft); }

/* Scenes */
.scene-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.scene-card { overflow: hidden; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.scene-card:hover { transform: translateY(-4px) rotate(-1deg); }
.scene-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.scene-card div { padding: 14px 16px 18px; }
.scene-card h3 { margin-bottom: 4px; font-size: 1.12rem; }
.scene-card p { margin-bottom: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }

/* Parents */
.parents { border-radius: 44px; background: var(--card); }
.parents-inner { padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { display: flex; gap: 18px; padding: 24px; border-radius: 26px; background: var(--paper); }
.feature-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sun); color: var(--brand-dark); }
.feature:nth-child(2) .feature-icon { background: var(--mint); }
.feature:nth-child(3) .feature-icon { background: var(--sky); }
.feature:nth-child(4) .feature-icon { background: #ffd4bb; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.12rem; }
.feature p { margin-bottom: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }

/* Download band */
.download { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 4vw, 40px); padding: clamp(28px, 5vw, 48px); border-radius: 40px; background: linear-gradient(120deg, #ffd9ae, var(--sun)); }
.download img { width: 104px; height: 104px; border-radius: 26px; box-shadow: var(--shadow); }
.download h2 { margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.download p { margin-bottom: 0; color: rgba(43, 33, 26, .75); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: clamp(48px, 7vw, 80px); padding-block: 26px 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Legal page */
.legal-page { padding-block: clamp(28px, 5vw, 56px) 20px; }
.legal-page > h1 { max-width: 800px; margin-bottom: 12px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 850; line-height: 1.05; letter-spacing: -.03em; }
.legal-lead { margin-bottom: 0; color: var(--muted); }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.summary li { padding: 20px; border-radius: 22px; background: var(--card); font-family: var(--round); font-weight: 700; line-height: 1.3; }
.summary li::before { content: "✓"; display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--mint); color: #1f6b4c; font-size: .95rem; font-weight: 800; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: clamp(32px, 7vw, 90px); margin-top: clamp(40px, 6vw, 64px); }
.legal-toc { position: sticky; top: 24px; align-self: start; padding: 20px 22px; border-radius: 22px; background: var(--card); font-size: .93rem; }
.legal-toc strong { display: block; margin-bottom: 10px; font-family: var(--round); }
.legal-toc ol { margin: 0; padding: 0; list-style: none; }
.legal-toc li + li { margin-top: 8px; }
.legal-toc a { color: var(--muted); font-weight: 600; text-decoration: none; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.legal-copy section { padding-bottom: 34px; scroll-margin-top: 24px; }
.legal-copy h2 { margin-bottom: 12px; font-size: 1.5rem; }
.legal-copy p, .legal-copy li { color: #55473b; }
.legal-copy ul { padding-left: 1.2em; }
.legal-copy li + li { margin-top: 6px; }
.legal-copy a { color: var(--brand); font-weight: 650; text-underline-offset: 3px; }
.legal-english { margin-top: 10px; padding: 30px; border-radius: 26px; background: var(--card); }
.legal-english h2 { font-size: 1.3rem; }

@media (max-width: 980px) {
  .scene-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mode-card { grid-template-columns: 1fr; padding-bottom: 0; }
  .mode-card .phone { justify-self: center; margin-bottom: -170px; }
  .download { grid-template-columns: auto minmax(0, 1fr); }
  .download .store-buttons { grid-column: 1 / -1; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { width: min(100% - 32px, 560px); }
  .site-nav .nav-extra { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-art { min-height: 0; }
  .hero-art .phone { width: min(200px, 46vw); border-width: 7px; border-radius: 32px; }
  .hero-art .phone-front { margin-left: -44px; }
  .store-button { flex: 1 1 200px; justify-content: center; }
  .modes { grid-template-columns: 1fr; }
  .mode-card { padding: 26px 24px 0; border-radius: 28px; }
  .scene-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .parents { border-radius: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { padding: 20px; }
  .download { grid-template-columns: 1fr; justify-items: start; border-radius: 30px; }
  .download img { width: 84px; height: 84px; border-radius: 22px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .legal-page > h1 { font-size: clamp(1.6rem, 7.6vw, 2.4rem); overflow-wrap: break-word; hyphens: auto; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-english { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store-button, .scene-card { transition: none; }
}
