:root {
  --ink: #1e2c2a;
  --ink-soft: #52605d;
  --sage-50: #f8faf7;
  --sage-100: #edf4f1;
  --sage-200: #dceae5;
  --sage-500: #2e6f68;
  --ochre: #927129;
  --violet: #6e5d91;
  --line: #d9e2de;
  --paper: #fffefa;
  --serif: 'Hiragino Mincho ProN', 'Yu Mincho', YuMincho, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic',
    YuGothic, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--sage-50);
  font-family: var(--sans);
  line-height: 1.7;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

img { display: block; max-width: 100%; }

button { font: inherit; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(30, 44, 42, 0.08);
  background: rgba(248, 250, 247, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.44rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; border-radius: 8px; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.header-nav { display: flex; align-items: center; gap: 8px; }

.header-nav a {
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.header-nav a:hover { color: var(--sage-500); }

.header-download,
.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.header-download,
.button-primary { color: var(--paper); background: var(--ink); }

.button-secondary { border: 1px solid var(--ink); color: var(--ink); background: transparent; }

.header-download:hover,
.button-primary:hover,
.button-secondary:hover { transform: translateY(-2px); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  border-bottom: 1px solid var(--line);
  background: var(--sage-100);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(90deg, rgba(237, 244, 241, 0.98) 0%, rgba(237, 244, 241, 0.92) 39%, rgba(237, 244, 241, 0.2) 70%, rgba(237, 244, 241, 0.04) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 690px;
  align-items: center;
}

.hero-copy { max-width: 580px; padding: 84px 0; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 { font-family: var(--serif); font-weight: 700; letter-spacing: 0.04em; }

h1 {
  max-width: 7.5em;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.3vw, 5.5rem);
  line-height: 1.22;
}

.hero-lead {
  max-width: 31em;
  margin-bottom: 30px;
  color: #42514e;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 600;
}

.store-links { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.store-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  transition: transform 160ms ease;
}

.store-badge:hover { transform: translateY(-2px); }
.store-badge img { width: auto; height: 52px; }
.store-badge.google img { height: 62px; margin: -5px 0; }

.hero-note { margin: 19px 0 0; color: var(--ink-soft); font-size: 0.82rem; }

.section { padding: clamp(72px, 9vw, 124px) 0; }

.section-head { max-width: 720px; margin-bottom: 44px; }

.section-head h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.35; }
.section-head p:last-child { margin-bottom: 0; color: var(--ink-soft); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.category-card {
  min-height: 300px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.category-card .category-number { display: block; margin-bottom: 47px; font-family: var(--serif); font-size: 1.03rem; }
.category-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 1.56rem; letter-spacing: 0.04em; }
.category-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.94rem; }
.category-card.train { border-top: 5px solid var(--sage-500); }
.category-card.learn { border-top: 5px solid var(--ochre); }
.category-card.play { border-top: 5px solid var(--violet); }
.category-card.train .category-number { color: var(--sage-500); }
.category-card.learn .category-number { color: var(--ochre); }
.category-card.play .category-number { color: var(--violet); }

.feature-section { background: #eef4f1; }

.feature-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr); gap: clamp(35px, 7vw, 100px); align-items: center; }

.feature-copy h2 { margin-bottom: 22px; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.35; }
.feature-copy > p { color: var(--ink-soft); }

.feature-list { display: grid; gap: 18px; margin: 32px 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.feature-list strong { display: block; margin-bottom: 2px; font-family: var(--serif); font-size: 1.1rem; }
.feature-list p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.feature-marker { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--paper); background: var(--sage-500); font-size: 0.75rem; font-weight: 800; }

.device-stage { position: relative; min-height: 580px; }
.device-stage::before { position: absolute; inset: 10% 0 0 5%; border-radius: 26px; content: ''; background: var(--sage-200); }
.phone-shot { position: absolute; z-index: 1; right: 14%; bottom: 0; width: min(310px, 70%); overflow: hidden; border: 9px solid #1d2927; border-radius: 35px; box-shadow: 0 30px 50px rgba(30, 44, 42, 0.2); }

.screens-section { overflow: hidden; }
.screen-intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.screen-intro h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.35; }
.screen-intro p { max-width: 31em; margin: 0; color: var(--ink-soft); }

.screen-grid { display: grid; grid-template-columns: repeat(5, minmax(176px, 1fr)); gap: 17px; align-items: start; overflow-x: auto; padding: 8px 2px 18px; scrollbar-color: var(--sage-500) transparent; }
.screen-card { min-width: 176px; margin: 0; }
.screen-card img { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 17px 36px rgba(30, 44, 42, 0.12); }
.screen-card figcaption { margin-top: 13px; color: var(--ink-soft); font-size: 0.87rem; font-weight: 700; }

.closing { padding: clamp(72px, 9vw, 120px) 0; color: var(--paper); background: var(--ink); }
.closing-inner { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.closing h2 { margin-bottom: 13px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.35; }
.closing p { max-width: 36em; margin-bottom: 0; color: #cad5d1; }

.site-footer { padding: 44px 0 32px; background: var(--paper); }
.footer-grid { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.footer-title { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.footer-copy { margin: 0; color: var(--ink-soft); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 17px; }
.footer-links a { color: var(--ink-soft); font-size: 0.86rem; text-underline-offset: 3px; }
.copyright { margin: 28px 0 0; color: #78837f; font-size: 0.75rem; }

.legal-page { min-height: 100vh; }
.legal-main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(70px, 9vw, 120px) 0; }
.legal-main h1 { max-width: none; margin-bottom: 22px; font-size: clamp(2.7rem, 5vw, 4.1rem); }
.legal-main h2 { margin: 48px 0 12px; font-size: 1.35rem; }
.legal-main p,
.legal-main li { color: var(--ink-soft); }
.legal-main a { color: var(--sage-500); font-weight: 700; text-underline-offset: 3px; }
.contact-card { margin-top: 34px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.contact-card dt { margin-bottom: 5px; font-weight: 800; }
.contact-card dd { margin: 0 0 24px; color: var(--ink-soft); }
.contact-card dd:last-child { margin-bottom: 0; }
.updated { margin-top: 42px; font-size: 0.85rem; }

@media (max-width: 760px) {
  .header-inner,
  .container { width: min(100% - 32px, 1120px); }
  .header-download { display: none; }
  .menu-button { display: grid; place-items: center; }
  .header-nav { position: fixed; inset: 70px 16px auto; display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 42px rgba(30, 44, 42, 0.15); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 160ms ease, transform 160ms ease; }
  .header-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .header-nav a { padding: 12px; }
  .hero,
  .hero-inner { min-height: 670px; }
  .hero::after { background: linear-gradient(90deg, rgba(237, 244, 241, 0.98) 0%, rgba(237, 244, 241, 0.92) 60%, rgba(237, 244, 241, 0.42) 100%); }
  .hero-art { object-position: 63% center; }
  .hero-copy { padding: 66px 0 145px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.1rem); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; padding: 25px; }
  .category-card .category-number { margin-bottom: 27px; }
  .feature-layout { grid-template-columns: 1fr; }
  .device-stage { min-height: 500px; }
  .phone-shot { right: 13%; width: min(278px, 72%); }
  .screen-intro,
  .closing-inner,
  .footer-grid { display: block; }
  .screen-intro p { margin-top: 18px; }
  .closing .store-links { margin-top: 28px; }
  .footer-links { justify-content: start; margin-top: 22px; }
}

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