:root {
  --cream: #fbf6ee;
  --paper: #fffdf8;
  --ink: #171514;
  --muted: #6f675f;
  --line: #e8dfd2;
  --yellow: #f7c91f;
  --coral: #f5654d;
  --blue: #2997c9;
  --green: #7bc83e;
  --purple: #9a5bd8;
  --shadow: 0 24px 70px rgba(31, 23, 16, .16);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
figure { margin: 0; }

.shell { width: min(calc(100% - 32px), 760px); margin-inline: auto; }
.wide-shell { width: min(calc(100% - 48px), 1180px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  border-bottom: 1px solid rgba(23, 21, 20, .08);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}
.character-logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
}
.character-logo img {
  width: auto;
  height: 100%;
  object-fit: contain;
}
.character-logo img:nth-child(2) { height: 92%; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); }
nav a { color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(520px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
  padding-block: clamp(48px, 8vw, 108px);
  overflow: hidden;
}
.eyebrow, .section-kicker {
  margin: 0 0 18px;
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a6a00;
}
.inline-character-row {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
}
.inline-character-row img { width: auto; height: 100%; object-fit: contain; }
.inline-character-row img:nth-child(2) { height: 92%; }
.hero h1, h2 {
  margin: 0;
  letter-spacing: -.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.hero h1 { font-size: clamp(2.55rem, 3.7vw, 3.33rem); }
.hero h1 em { color: var(--coral); font-style: normal; }
.hero-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-lead {
  max-width: 37rem;
  margin: 32px 0 0;
  color: #413b36;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 650;
  line-height: 1.95;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid #dfd5c8;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  color: #554d46;
  font-size: .9rem;
  font-weight: 700;
}
.app-store-link {
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}
.app-store-link:hover,
.app-store-link:focus-visible {
  transform: translateY(-1px);
  border-color: #bcae9d;
  background: #fff;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(123, 200, 62, .16);
}
.text-link {
  display: block;
  width: fit-content;
  margin-top: 26px;
  font-weight: 850;
  text-decoration-thickness: 2px;
}
.hero-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 550px);
  justify-self: center;
  transform: rotate(3deg);
}
.hero-gallery::before {
  content: "";
  position: absolute;
  inset: 7% -7% -5% 7%;
  z-index: -1;
  border-radius: 50%;
  background: var(--yellow);
}
.hero-visual {
  width: 100%;
  overflow: visible;
  border-radius: 22px;
}
.hero-visual img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  box-shadow: var(--shadow);
}

.manifesto {
  background: var(--green);
  padding-block: clamp(76px, 11vw, 144px);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: .35fr 1.1fr .75fr;
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}
.manifesto h2, .section-heading h2, .child-copy h2, .privacy-band h2 {
  font-size: clamp(2rem, 3.3vw, 3.1rem);
}
.manifesto p:not(.section-kicker) {
  max-width: 42rem;
  margin: 28px 0 0;
  font-size: 1.12rem;
  font-weight: 650;
}
.symbol-key { display: grid; gap: 14px; }
.symbol-key div {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px;
  border: 2px solid rgba(23,21,20,.8);
  border-radius: 18px;
  background: rgba(255,255,255,.3);
}
.symbol-character { width: 44px; height: 48px; object-fit: contain; }
.symbol-key span { font-weight: 850; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: .85fr .8fr .8fr;
  gap: clamp(34px, 6vw, 80px);
  padding-block: clamp(72px, 9vw, 112px);
  align-items: center;
}
.section-heading { grid-column: 1 / 3; }
.section-heading h2 { max-width: 780px; }
.step-list {
  grid-column: 1 / 3;
  display: grid;
  gap: 4px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.step-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid #d9d0c5;
}
.step-list li:last-child { border-bottom: 1px solid #d9d0c5; }
.step-list > li > span { color: var(--blue); font-size: 1.3rem; font-weight: 900; }
.step-list h3 { margin: 0; font-size: 1.45rem; }
.step-list p { margin: 5px 0 0; color: var(--muted); }
.feature-shot {
  width: min(100%, 270px);
  overflow: visible;
  border-radius: 24px;
  justify-self: end;
}
.feature-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  box-shadow: var(--shadow);
}
.blue-shot {
  grid-column: 3;
  grid-row: 1 / 3;
  transform: rotate(-2deg);
}

.story-section {
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 112px);
  background: #191716;
  color: #fff;
}
.light-heading { margin-bottom: 54px; }
.light-heading p { max-width: 600px; color: #cfc7c0; font-size: 1.08rem; }
.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(64vw, 260px);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px max(24px, calc((100vw - 1180px) / 2)) 32px;
  scrollbar-color: var(--yellow) #393431;
}
.story-rail figure {
  overflow: visible;
  border-radius: 24px;
  scroll-snap-align: start;
}
.story-rail img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  box-shadow: 0 20px 52px rgba(0,0,0,.35);
}
.rail-hint { margin-top: 18px; color: #afa69f; font-size: .85rem; font-weight: 750; letter-spacing: .08em; }

.child-view {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: clamp(46px, 9vw, 120px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 112px);
}
.child-copy > p:not(.section-kicker) {
  max-width: 600px;
  margin: 28px 0;
  color: #504840;
  font-size: 1.08rem;
  font-weight: 620;
}
.quiet-list { margin: 30px 0 0; padding: 0; list-style: none; }
.quiet-list li {
  padding: 14px 0 14px 34px;
  border-top: 1px solid #d9d0c5;
  font-weight: 780;
}
.quiet-list li:last-child { border-bottom: 1px solid #d9d0c5; }
.quiet-list li::before { content: "✓"; float: left; margin-left: -32px; color: var(--purple); font-weight: 950; }
.purple-shot { transform: rotate(2deg); }

.characters {
  padding: clamp(64px, 8vw, 96px) clamp(24px, 5vw, 70px);
  border-radius: 42px;
  background: var(--yellow);
  text-align: center;
}
.centered { display: grid; justify-items: center; }
.centered > p:last-child { max-width: 620px; margin: 22px auto 48px; font-size: 1.08rem; font-weight: 650; }
.character-shot {
  width: min(100%, 330px);
  overflow: visible;
  margin: auto;
  border-radius: 28px;
}
.character-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  box-shadow: var(--shadow);
}

.privacy-band { padding-block: clamp(72px, 9vw, 112px); }
.privacy-grid { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(40px, 9vw, 120px); align-items: center; }
.privacy-grid > div:last-child > p { color: #4c453f; font-size: 1.08rem; font-weight: 650; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.privacy-links a {
  padding: 12px 16px;
  border: 1px solid #cfc4b7;
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
}

.site-footer { padding: 56px 0; background: #171514; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 40px; align-items: center; }
.footer-grid > div:nth-child(2) { display: flex; gap: 20px; }
.footer-grid a { color: #fff; font-size: .88rem; }
.footer-grid p { margin: 0; color: #aaa19a; font-size: .82rem; text-align: right; }
.footer-brand { color: #fff; }
.footer-brand .character-logo { height: 34px; }

/* Legal and support pages */
body:not(.landing) header { padding: 28px 0 16px; border-bottom: 1px solid var(--line); }
body:not(.landing) .brand { margin: 0; font-size: 1.2rem; font-weight: 800; }
body:not(.landing) .brand a { text-decoration: none; }
body:not(.landing) nav { margin-top: 10px; flex-wrap: wrap; }
body:not(.landing) main { padding: 24px 0 52px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px,5vw,36px); }
.card h1 { margin: 0 0 20px; font-size: clamp(1.7rem,6vw,2.3rem); line-height: 1.35; }
.card h2 { margin: 2rem 0 .5rem; font-size: 1.25rem; letter-spacing: 0; line-height: 1.45; }
.card h3 { margin: 1.4rem 0 .4rem; font-size: 1.05rem; }
.meta, .notice, body:not(.landing) footer { color: var(--muted); font-size: .92rem; }
.notice { border-left: 4px solid var(--coral); padding: 10px 14px; background: #fff4ef; }
body:not(.landing) footer { padding: 20px 0 36px; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 54px; padding-top: 64px; }
  .hero h1 { font-size: clamp(2.3rem, 6vw, 3rem); }
  .hero-gallery { width: min(92vw, 540px); }
}

@media (max-width: 840px) {
  .wide-shell { width: min(calc(100% - 32px), 680px); }
  .header-inner { min-height: 68px; }
  .header-inner nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 54px; padding-top: 64px; }
  .hero h1 { font-size: clamp(2.2rem, 7.2vw, 3rem); }
  .hero-gallery { width: min(92vw, 540px); }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-grid > .section-kicker { margin-bottom: -4px; }
  .steps { grid-template-columns: 1fr; }
  .section-heading, .step-list, .blue-shot { grid-column: 1; grid-row: auto; }
  .blue-shot, .feature-shot { justify-self: center; width: min(70vw, 280px); }
  .child-view { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid p { text-align: left; }
}

@media (max-width: 520px) {
  .wide-shell { width: calc(100% - 24px); }
  .header-inner nav { gap: 0; }
  .hero { padding-block: 46px 78px; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.2rem); }
  .hero-lead { font-size: 1rem; line-height: 1.85; }
  .hero-gallery { width: 100%; gap: 10px; }
  .manifesto h2, .section-heading h2, .child-copy h2, .privacy-band h2 { font-size: 1.9rem; }
  .story-rail { grid-auto-columns: min(68vw, 250px); gap: 14px; padding-inline: 18px; }
  .characters { width: calc(100% - 24px); padding-inline: 16px; border-radius: 28px; }
  .shell { width: calc(100% - 20px); }
  .card { padding: 18px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
