/* ============================================================
   Animalish — matches the app and the Play Store art:
   cream pages, pastel bands, teal actions, butter highlights,
   brown ink. Roboto (EN) and Noto Sans JP (JA).
   ============================================================ */

:root {
  color-scheme: light;

  --bg:          #FFFAF3;
  --cream:       #FBF1E1;
  --butter:      #FFF1C4;
  --mint:        #D2EEE6;
  --peach:       #FCDDD3;
  --lavender:    #E7E0F6;
  --sky:         #DAEAFA;

  --ink:         #2A1F1A;
  --ink-soft:    #6C5C51;
  --ink-faint:   #A8978B;
  --line:        #EADFCB;
  --white:       #FFFFFF;

  --teal:        #2E9398;
  --teal-dark:   #237A7E;
  --highlight:   #FFE066;
  --coral:       #FF6C4F;
  --gold:        #E9B949;

  --radius-sm:   12px;
  --radius:      20px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --shadow-soft: 0 4px 14px rgba(42, 31, 26, 0.07);
  --shadow:      0 14px 34px rgba(42, 31, 26, 0.12);
  --shadow-pop:  0 22px 50px rgba(42, 31, 26, 0.18);

  --font: 'Roboto', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  --max: 1160px;
}

html[lang="ja"] { --font: 'Noto Sans JP', 'Roboto', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0; line-height: 1.3; }

p { margin: 0 0 1em; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
::selection { background: var(--highlight); color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ===== Layout ============================================== */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }
.center { text-align: center; }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.band-cream    { background: var(--cream); }
.band-butter   { background: var(--butter); }
.band-mint     { background: var(--mint); }
.band-peach    { background: var(--peach); }
.band-lavender { background: var(--lavender); }
.band-sky      { background: var(--sky); }
.band-ink      { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: var(--white); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
html[lang="ja"] .kicker { text-transform: none; letter-spacing: .02em; }

.title { font-size: clamp(32px, 4.6vw, 52px); }
.lede  { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 52px; }

/* Butter highlight under a word, like the store art. */
.hl {
  background: linear-gradient(transparent 52%, var(--highlight) 52%, var(--highlight) 92%, transparent 92%);
  padding: 0 .08em;
  border-radius: 4px;
}

/* ===== Buttons ============================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 17px; line-height: 1;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 8px 20px rgba(46, 147, 152, .3); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); box-shadow: 0 10px 26px rgba(46, 147, 152, .38); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink-faint); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Google Play badge-style button */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 24px 0 18px;
  background: #111; color: #fff; border-radius: 14px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17, 17, 17, .28); }
.play-badge svg { width: 30px; height: 30px; flex: none; }
.play-badge small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; line-height: 1.2; }
.play-badge strong { display: block; font-size: 21px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
html[lang="ja"] .play-badge small { text-transform: none; letter-spacing: 0; }

/* ===== Nav ================================================= */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 243, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 21px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: var(--shadow-soft); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > a:not(.btn) {
  color: var(--ink-soft); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav-links > a:not(.btn):hover { color: var(--ink); background: rgba(42, 31, 26, .05); text-decoration: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch svg { width: 16px; height: 16px; }
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ================================================ */

.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 0;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(255, 224, 102, .45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(210, 238, 230, .9), transparent 60%),
    var(--butter);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 72px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  padding: 7px 16px 7px 7px; border-radius: 999px;
  font-size: 14px; font-weight: 500; box-shadow: var(--shadow-soft); margin-bottom: 22px;
}
.pill b { background: var(--teal); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }

.hero h1 { font-size: clamp(46px, 7.4vw, 92px); margin-bottom: 20px; }
html[lang="ja"] .hero h1 { font-size: clamp(38px, 5.6vw, 70px); }

/* A highlighted phrase never breaks across lines. */
.hero h1 .hl, .pet h3 .hl, .moment h3 .hl { white-space: nowrap; }
.swap { display: inline-block; position: relative; }
.swap-word { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.swap-word.is-out { opacity: 0; transform: translateY(12px); }

.hero-sub { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-soft); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--teal); }

.hero-stage { position: relative; align-self: center; padding: 18px 8px 44px 30px; }
.hero-print { max-width: 520px; margin-left: auto; transform: rotate(-2deg); }

/* ===== Photo prints: real pets, framed like the Play listing ===== */

.print {
  margin: 0; position: relative; background: var(--white); padding: 10px;
  border: 3px solid var(--ink); border-radius: 28px; box-shadow: var(--shadow-pop);
}
.print img { width: 100%; height: auto; border-radius: 18px; }
.print .tag {
  position: absolute; top: 18px; right: -12px; white-space: nowrap;
  background: var(--highlight); color: var(--ink); border: 3px solid var(--ink); border-radius: 999px;
  padding: 3px 14px; font-size: 15px; font-weight: 900; box-shadow: var(--shadow-soft);
}

/* The app's speech bubble, stuck on a photo next to the phone. */
.say {
  position: absolute; z-index: 3; width: 128px; aspect-ratio: 120 / 108;
  display: grid; place-items: center; filter: drop-shadow(0 8px 14px rgba(42, 31, 26, .2));
}
.say svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.say b { position: relative; margin-top: -12%; font-size: 21px; font-weight: 900; line-height: 1.02; text-align: center; color: var(--ink); }
html[lang="ja"] .say b { font-size: 18px; line-height: 1.15; }
.say-hero { left: 0; bottom: 30px; animation: bob 5s ease-in-out infinite; }
.say-final { left: 0; bottom: 18px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }

.sparkle { position: absolute; width: 22px; height: 22px; color: var(--white); opacity: .95; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle.teal { color: var(--teal); opacity: .5; }
@keyframes twinkle { 0%, 100% { transform: scale(.7); opacity: .4; } 50% { transform: scale(1.1); opacity: 1; } }

/* ===== Dressed animal (art + outfit layer) ================== */

.dressed { position: relative; display: block; }
.dressed > img { width: 100%; height: auto; }
.dressed .outfit { position: absolute; transform-origin: 50% 50%; pointer-events: none; transition: opacity .2s ease; }

/* ===== Moments ============================================= */

.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.moment {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.moment:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.moment-art { aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; }
.moment-art img { width: 100%; height: 100%; object-fit: cover; }
.moment-body { padding: 24px 26px 28px; }
.moment h3 { font-size: 24px; margin-bottom: 8px; }
.moment p { margin: 0; }
.before { color: var(--ink-faint); font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.because { color: var(--teal); font-size: 15px; font-weight: 700; margin: 0; }

/* ===== Pets ================================================ */

.pets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 26px; }
.pet .print { transform: rotate(-2deg); margin-bottom: 22px; }
.pet:nth-child(even) .print { transform: rotate(2deg); }
.pet h3 { font-size: 22px; margin-bottom: 6px; }

/* ===== Demo ================================================ */

.demo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-left { padding: 44px; display: flex; flex-direction: column; gap: 24px; }
.demo-right { background: var(--cream); display: grid; place-items: center; padding: 30px; position: relative; min-height: 420px; }
.demo-right .dressed { width: min(100%, 360px); }

.bubble {
  position: relative; align-self: flex-start;
  background: var(--butter); color: var(--ink);
  padding: 18px 22px; border-radius: 22px 22px 22px 6px;
  font-size: 21px; font-weight: 700; line-height: 1.35; max-width: 100%;
}
.bubble small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); margin-bottom: 4px; }

.picker { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px; }
.pick {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--line); color: var(--ink);
  font-weight: 700; font-size: 16px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.pick img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 18% 85%; background: var(--white); }
.pick:hover { border-color: var(--ink-faint); }
.pick[aria-pressed="true"] { border-color: var(--teal); background: rgba(46, 147, 152, .08); }

.player { display: flex; align-items: center; gap: 16px; }
.play-btn {
  width: 64px; height: 64px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--teal); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(46, 147, 152, .35); transition: transform .15s ease, background .15s ease;
}
.play-btn:hover { background: var(--teal-dark); transform: scale(1.04); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn .i-pause { display: none; }
.is-playing .play-btn .i-play { display: none; }
.is-playing .play-btn .i-pause { display: block; }

.wave { display: flex; align-items: center; gap: 4px; height: 48px; flex: 1; }
.wave i { display: block; width: 5px; border-radius: 3px; background: var(--teal); opacity: .35; height: 20%; transition: height .12s ease; }
.is-playing .wave i { opacity: 1; animation: wave 1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.demo-note { font-size: 14px; color: var(--ink-faint); margin: 0; }

/* ===== Steps =============================================== */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px 28px;
  box-shadow: var(--shadow-soft); position: relative;
}
.step-num {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--highlight); font-weight: 900; font-size: 20px; margin-bottom: 18px;
}
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ===== Feature rows ======================================== */

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 110px; }
.feature.flip .feature-media { order: 2; }
.feature-media {
  border-radius: var(--radius-xl); overflow: hidden; position: relative;
  aspect-ratio: 1 / 1.02;
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature h3 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.feature p { font-size: 18px; color: var(--ink-soft); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ===== Outfit try-on ======================================= */

.tryon {
  display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 48px; row-gap: 0; align-items: center;
  grid-template-areas: "stage head" "stage controls";
}
.tryon-head { grid-area: head; align-self: end; }
.tryon-controls { grid-area: controls; align-self: start; }
.tryon-stage {
  grid-area: stage;
  background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow);
  padding: 34px; position: relative; min-height: 460px;
  display: grid; place-items: center;
}
.tryon-stage .dressed { width: min(100%, 400px); }
.tryon-tag {
  position: absolute; left: 22px; top: 22px;
  background: var(--butter); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700;
}
.tabs { display: inline-flex; background: var(--white); padding: 5px; border-radius: 999px; box-shadow: var(--shadow-soft); margin-bottom: 22px; }
.tab {
  border: 0; background: transparent; cursor: pointer; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
}
.tab[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.outfit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.outfit-btn {
  background: var(--white); border: 2px solid transparent; border-radius: 16px; cursor: pointer;
  padding: 10px 6px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  box-shadow: var(--shadow-soft); color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.2;
  transition: transform .15s ease, border-color .15s ease;
}
.outfit-btn img { height: 40px; width: auto; max-width: 70px; object-fit: contain; }
.outfit-btn .none { height: 40px; display: grid; place-items: center; color: var(--ink-faint); font-size: 26px; }
.outfit-btn:hover { transform: translateY(-2px); }
.outfit-btn[aria-pressed="true"] { border-color: var(--teal); }
.outfit-btn em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--ink-faint); }

.unlock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.unlock { background: rgba(255, 255, 255, .7); border-radius: 18px; padding: 16px; }
.unlock b { display: block; font-size: 15px; }
.unlock span { font-size: 14px; color: var(--ink-soft); }

/* ===== Next animals ======================================== */

.roster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.critter {
  background: var(--white); border-radius: var(--radius); padding: 18px 12px 16px; text-align: center;
  box-shadow: var(--shadow-soft); position: relative;
}
.critter img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; margin-bottom: 8px; }
.critter b { display: block; font-size: 17px; }
.critter span { font-size: 14px; color: var(--ink-soft); }
.critter.is-soon::after {
  content: attr(data-badge); position: absolute; top: 10px; right: 10px;
  background: var(--butter); color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}

/* ===== Plans =============================================== */

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px;
  box-shadow: var(--shadow-soft); display: flex; flex-direction: column; position: relative;
  border: 2px solid transparent;
}
.plan h3 { font-size: 24px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.plan .dot { width: 14px; height: 14px; border-radius: 50%; }
.plan .plan-sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; min-height: 48px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; font-weight: 500; }
.plan li { display: flex; gap: 10px; }
.plan li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23237A7E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.plan.is-featured { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-8px); }
.plan-badge {
  position: absolute; top: -14px; left: 24px;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 900;
  padding: 5px 12px; border-radius: 999px; letter-spacing: .03em;
}
.plans-note { margin-top: 30px; color: var(--ink-soft); font-size: 15px; }

/* ===== FAQ ================================================= */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
  font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--ink-soft); border-bottom: 3px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--ink-soft); }

/* ===== Final CTA =========================================== */

.final {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 224, 102, .55), transparent 70%),
    var(--mint);
  padding: 64px 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
}
.final h2 { font-size: clamp(34px, 4.4vw, 54px); }
.final p { color: var(--ink-soft); font-size: 19px; margin-bottom: 28px; }
.final-art { position: relative; padding: 8px 8px 8px 40px; }
.final-art .print { max-width: 340px; margin-left: auto; transform: rotate(2deg); }

/* ===== Footer ============================================== */

.footer { padding: 64px 0 34px; background: var(--cream); margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h4 { font-size: 14px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
html[lang="ja"] .footer h4 { text-transform: none; }
.footer a { display: block; color: var(--ink-soft); padding: 4px 0; font-weight: 500; }
.footer a:hover { color: var(--ink); }
.footer .brand { display: inline-flex; color: var(--ink); padding: 0; }
.footer-tag { color: var(--ink-soft); margin-top: 14px; max-width: 320px; }
.copyright { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* ===== Inner pages (legal, contact, deletion, errors) ====== */

.page-head { padding: 64px 0 36px; background: var(--butter); margin-bottom: 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 10px; }
.page-head p { color: var(--ink-soft); font-size: 19px; margin: 0; max-width: 640px; }

.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin: 2em 0 .5em; }
.prose h3 { font-size: 20px; margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose code { background: var(--cream); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose .updated { color: var(--ink-faint); font-size: 15px; }

.card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-soft); }
.card h3 { font-size: 20px; margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.notice { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 22px; font-weight: 500; }
.notice-error { background: #FDE3DC; color: #8A2B17; }
.notice-ok { background: var(--mint); }

.form { display: grid; gap: 20px; background: var(--white); padding: 34px; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.form label { display: grid; gap: 8px; font-weight: 700; font-size: 15px; }
.form label em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 13px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.form textarea { resize: vertical; min-height: 140px; }
.form .btn { justify-self: start; }
.form-meta { color: var(--ink-soft); font-size: 15px; margin-top: 18px; }

.error-page { padding: 90px 0 40px; text-align: center; }
.error-page .dressed { width: 260px; margin: 0 auto 26px; }
.error-page h1 { font-size: clamp(34px, 5vw, 50px); }
.error-page p { color: var(--ink-soft); font-size: 19px; margin-bottom: 28px; }

/* ===== Reveal on scroll ==================================== */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ===== Responsive ========================================== */

@media (max-width: 1080px) {
  .roster { grid-template-columns: repeat(3, 1fr); }
  .pets { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan.is-featured { transform: none; }
}

@media (max-width: 920px) {
  .section { padding: 72px 0; }
  .hero-grid, .demo, .feature, .tryon, .final { grid-template-columns: 1fr; }
  .tryon { grid-template-areas: "head" "stage" "controls"; row-gap: 24px; }
  .hero { padding-top: 34px; }
  .hero-copy { padding-bottom: 10px; text-align: left; }
  .hero-stage { max-width: 540px; margin: 0 auto; width: 100%; }
  .moments, .steps, .cards { grid-template-columns: 1fr; }
  .moments { max-width: 520px; margin: 0 auto; }
  .feature { gap: 30px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .feature-media { max-width: 520px; width: 100%; margin: 0 auto; }
  .demo-left { padding: 32px 26px; }
  .demo-right { min-height: 320px; }
  .final { padding: 44px 28px; }
  .final-art .print { margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); padding: 10px var(--gutter) 20px;
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(42, 31, 26, .08);
    display: none;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 10px; font-size: 17px; }
  .nav-links .btn { margin: 10px 0 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .play-badge { min-height: 56px; }
  .roster { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .outfit-grid { grid-template-columns: repeat(3, 1fr); }
  .unlock-row { grid-template-columns: 1fr; }
  .tryon-stage { padding: 52px 20px 20px; min-height: 0; }
  .tryon-stage .dressed { width: min(78%, 300px); }
  .pets { grid-template-columns: 1fr; max-width: 400px; }
  .hero-stage { padding: 10px 4px 30px 18px; }
  .say { width: 104px; }
  .say b { font-size: 17px; }
  html[lang="ja"] .say b { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.is-hidden, [hidden] { display: none !important; }
