/* ==========================================================================
   Mumento — launch page
   Brand: warm cream, wine, blush. Nunito + Zen Maru Gothic.
   ========================================================================== */

:root {
  --cream: #FBF7F3;
  --cream-deep: #F3ECE7;
  --blush: #F6E4E1;
  --wine: #9B2C3F;
  --wine-deep: #7E2233;
  --ink: #3F3735;
  --ink-2: #4F4744;
  --ink-3: #6E6461;
  --line: #EEE5DF;
  --sage: #DFE7D6;
  --sage-ink: #41593A;
  --butter: #F4C04E;
  --sky: #E6EEF6;
  --danger: #B3261E;

  --font: 'Nunito', 'Zen Maru Gothic', system-ui, -apple-system, sans-serif;
  --font-ja: 'Zen Maru Gothic', 'Nunito', system-ui, -apple-system, sans-serif;
  --font-brand: 'Nunito', system-ui, -apple-system, sans-serif;

  --container: 1160px;
  --radius: 28px;
  --shadow-soft: 0 16px 40px -24px rgba(90, 40, 40, .35);
  --shadow-lift: 0 26px 50px -30px rgba(90, 40, 40, .45);
  --ease: cubic-bezier(.2, .7, .3, 1);

  color-scheme: light;
}

html[lang="ja"] { --font: var(--font-ja); }

/* The app name looks the same in every language. */
.brand-word, .app-brand, .brand-name, .lock-notice-app { font-family: var(--font-brand); }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
svg { flex: none; }

h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }

[hidden] { display: none !important; }

a { color: var(--wine); }
a:hover { color: var(--wine-deep); }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0 26px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); color: #fff; }

.btn-dark {
  background: var(--ink);
  color: #fff;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.btn-dark:hover { background: #2C2625; color: #fff; }

.btn-cream {
  background: var(--cream);
  color: var(--wine);
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
}
.btn-cream:hover { background: #fff; color: var(--wine-deep); }

/* ---------- Header ----------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 243, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -26px rgba(90, 40, 40, .6);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--wine);
}
.brand-mark { color: var(--wine); }
.brand-word {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 22px;
  background: #F1E8E3;
}
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.lang-btn[lang="ja"] { font-family: var(--font-ja); font-weight: 700; }
.lang-btn:hover { color: var(--wine); }
.lang-btn[aria-current="page"] {
  background: #fff;
  box-shadow: 0 1px 3px rgba(63, 55, 53, .15);
  color: var(--ink);
}

/* ---------- Shared section type ---------------------------------------- */

.section-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-lead {
  margin: 10px 0 0;
  max-width: 560px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Hero ------------------------------------------------------- */

.hero {
  background: var(--cream);
  padding: 56px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 600px;
}

.badge {
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--blush);
  color: var(--wine-deep);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.hero-title {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 78px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: wrap;
}
.hero-title .accent { color: var(--wine); }

.hero-lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Notify form */

.notify { width: 100%; max-width: 520px; scroll-margin-top: 110px; }

.notify-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  transition: box-shadow .2s var(--ease);
}
.notify-form:focus-within {
  box-shadow: 0 0 0 2px rgba(155, 44, 63, .4), var(--shadow-soft);
}
.notify-form.is-error {
  box-shadow: 0 0 0 2px var(--danger), var(--shadow-soft);
}

.notify-form input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  border-radius: 999px;
}
.notify-form input::placeholder { color: #8A807C; font-weight: 600; }
.notify-form .btn { flex: none; }

.form-note {
  margin: 10px 0 0;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}
.form-error {
  margin: 10px 0 0;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--danger);
}
.form-error[hidden], .form-done[hidden] { display: none; }

.form-done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.done-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
}
.done-title { margin: 0; font-size: 17px; font-weight: 900; }
.done-body {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

/* Hero art */

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-blob {
  position: absolute;
  z-index: -1;
  width: min(440px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
}

/* ---------- Phone device ---------------------------------------------- */

.device {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  height: 620px;
  padding: 20px 16px 18px;
  border-radius: 46px;
  background: var(--cream);
  box-shadow: 0 0 0 9px #2A2322, 0 40px 80px -30px rgba(60, 20, 20, .55);
  overflow: hidden;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--wine);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.app-brand span { color: var(--ink); }

.avatars { display: flex; }
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  font-size: 11px;
  font-weight: 900;
}
.avatar-m { background: var(--blush); color: var(--wine); }
.avatar-r { background: var(--sage); color: var(--sage-ink); margin-left: -8px; }

.mini-card {
  background: #fff;
  border-radius: 16px;
}
.mood {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 16px;
}
.mood-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #9FC093;
}
.mood-text { min-width: 0; line-height: 1.3; }
.mood-label {
  display: block;
  font-size: 9.5px;
  font-weight: 900;
  color: #4E6E45;
}
.mood-note {
  display: block;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.tz > div { padding: 8px 11px; line-height: 1.25; }
.tz > div + div { border-left: 1px solid #F1E9E4; }
.tz-k {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--ink-3);
}
.tz-v {
  display: block;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.tz-v em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-3);
}

.counter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.counter-k {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-3);
}
.counter-n {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.counter-d { margin-top: 2px; font-size: 17px; font-weight: 900; }

.milestone { padding: 11px 13px; }
.milestone-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 900;
}
.milestone-left { color: var(--wine); }
.bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: #F3E8E3;
  overflow: hidden;
}
.bar i {
  display: block;
  width: 63%;
  height: 100%;
  border-radius: 3px;
  background: var(--wine);
}

.hug {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 13px;
}
.hug-text {
  flex: 1;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
}
.hug-btn {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: var(--wine);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* ---------- Features --------------------------------------------------- */

.features { background: #fff; padding: 80px 0; }

.features-title { max-width: 700px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.feature-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
}

.feature-card h3 { margin: 0; padding: 20px 22px 0; font-size: 18px; font-weight: 900; line-height: 1.25; }
.feature-card p { margin: 0; padding: 8px 22px 24px; font-size: 14.5px; font-weight: 600; line-height: 1.6; color: var(--ink-3); }

.feature-art { position: relative; height: 148px; overflow: hidden; }
.feature-art * { transition: transform .35s var(--ease); }

/* Count */

.art-count {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 22px;
  background: var(--blush);
  color: var(--wine-deep);
}
.art-total { display: flex; align-items: baseline; gap: 6px; }
.art-n { font-size: 50px; font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--wine); }
.art-d { font-size: 14px; font-weight: 900; }
.art-bar { height: 7px; border-radius: 999px; background: rgba(155, 44, 63, .16); overflow: hidden; }
.art-bar i { display: block; width: 96.3%; height: 100%; border-radius: inherit; background: var(--wine); }
.art-bar-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 800; }

/* Photos */

.art-photos { background: #F4E6D5; }
.art-photo {
  position: absolute;
  top: 26px;
  left: 50%;
  width: 78px;
  height: 92px;
  margin-left: -39px;
  border: 4px solid #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 18px -10px rgba(90, 50, 30, .55);
}
.art-photo svg { width: 100%; height: 100%; }
.art-photo.p1 { transform: translateX(-46px) rotate(-10deg); }
.art-photo.p2 { transform: translateX(46px) rotate(10deg); }
.art-photo.p3 { top: 18px; }
.feature-card:hover .art-photo.p1 { transform: translateX(-56px) rotate(-14deg); }
.feature-card:hover .art-photo.p2 { transform: translateX(56px) rotate(14deg); }
.feature-card:hover .art-photo.p3 { transform: translateY(-4px); }
.art-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Hug */

.art-hug { background: var(--wine); color: var(--cream); }
.art-heart { position: absolute; top: 34px; left: 50%; margin-left: -23px; }
.art-ring {
  position: absolute;
  top: 57px;
  left: 50%;
  border: 1.5px solid rgba(251, 247, 243, .22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.art-ring.r1 { width: 84px; height: 84px; }
.art-ring.r2 { width: 128px; height: 128px; border-color: rgba(251, 247, 243, .12); }
.feature-card:hover .art-heart { transform: scale(1.14); }
.feature-card:hover .art-ring.r1 { transform: translate(-50%, -50%) scale(1.1); }
.feature-card:hover .art-ring.r2 { transform: translate(-50%, -50%) scale(1.14); }
.art-pill {
  position: absolute;
  bottom: 12px;
  left: 50%;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
}

/* Home Screen */

.art-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(175deg, #CDBAB0, #9C8880);
}
.art-widget {
  display: flex;
  flex-direction: column;
  width: 108px;
  height: 108px;
  padding: 10px 11px;
  border-radius: 20px;
  background: var(--wine);
  color: var(--cream);
  box-shadow: 0 12px 20px -12px rgba(60, 20, 20, .7);
}
.art-widget-n { margin-top: auto; font-size: 32px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.art-widget-d { margin-top: 2px; font-size: 9.5px; font-weight: 800; }
.feature-card:hover .art-widget { transform: translateY(-3px) scale(1.03); }
.art-icons { display: grid; grid-template-columns: repeat(2, 42px); gap: 8px; opacity: .85; }
.art-tile { height: 42px; border-radius: 11px; }
.art-tile.a1 { background: #F0DCCF; }
.art-tile.a2 { background: #DFE7D6; }
.art-tile.a3 { background: #E6EEF6; }
.art-tile.a4 { background: #F4DFA8; }

/* ---------- Screens ---------------------------------------------------- */

.screens {
  background: var(--cream-deep);
  padding: 80px 0 44px;
}

.screens-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.rail-controls { display: flex; gap: 8px; padding-bottom: 4px; }
.rail-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(63, 55, 53, .12);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s, opacity .18s, transform .18s;
}
.rail-btn:hover:not(:disabled) { background: var(--wine); color: #fff; }
.rail-btn:disabled { opacity: .35; cursor: default; }

.rail {
  display: flex;
  gap: 40px;
  /* Full width, with the first phone lined up to the page column. */
  --rail-gutter: max(24px, calc((100% - var(--container)) / 2 + 24px));
  padding: 40px var(--rail-gutter) 56px;
  overflow-x: auto;
  scroll-padding-inline: var(--rail-gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #D9C9C2 transparent;
}
.rail:focus-visible { outline-offset: -4px; border-radius: 12px; }
.rail.is-looping {
  padding-inline: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
}
.rail.is-looping::-webkit-scrollbar { display: none; }
/* One loop less one phone (8 x 224px - 216px), so a screen and its copy are never both in view. */
.rail.is-looping { max-width: 1576px; margin-inline: auto; }
@media (min-width: 1577px) {
  .rail.is-looping {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  }
}

.slide {
  flex: 0 0 202px;
  scroll-snap-align: start;
}

.device-sm {
  width: 202px;
  height: 436px;
  padding: 30px 10px 20px;
  gap: 7px;
  border-radius: 34px;
  box-shadow: 0 0 0 7px #2A2322, 0 30px 60px -28px rgba(60, 20, 20, .5);
}
/* Camera island and home indicator */
.device-sm::before,
.device-sm::after {
  content: '';
  position: absolute;
  left: 50%;
  z-index: 2;
  border-radius: 999px;
  transform: translateX(-50%);
}
.device-sm::before { top: 8px; width: 54px; height: 15px; background: #2A2322; }
.device-sm::after { bottom: 6px; width: 62px; height: 3px; background: currentColor; opacity: .4; }

.slide-caption { margin-top: 18px; }
.slide-caption h3 { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.3; }
.slide-caption p {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-3);
}

/* Screen 1 — Moments */

.screen-title { display: block; text-wrap: balance; margin: 2px 0 2px 2px; font-size: 20px; font-weight: 900; }

.next-ms {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--wine);
  color: #fff;
}
.next-ms > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.next-ms-k { font-size: 8px; font-weight: 800; opacity: .9; }
.next-ms-v { font-size: 13px; font-weight: 900; line-height: 1.2; }
.next-ms-day {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.moments-meta {
  margin-top: 2px;
  padding-left: 2px;
  font-size: 8px;
  font-weight: 800;
  color: var(--wine-deep);
}

.moment-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
}
.moment-name { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 900; line-height: 1.2; }
.thumb { flex: none; width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.thumb svg, .photo svg { width: 100%; height: 100%; }
.who {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 2px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
}
.who-m { background: var(--blush); color: var(--wine); }
.who-r { background: var(--sage); color: var(--sage-ink); }

.ms-pill {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--blush);
  color: var(--wine-deep);
  font-size: 10px;
  font-weight: 900;
}

/* Screen 2 — Moment detail */

.screen-moment { gap: 8px; }

.photo {
  display: block;
  flex: none;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
}

.day-tag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--blush);
  color: var(--wine-deep);
  font-size: 8.5px;
  font-weight: 900;
}

.moment-title { display: block; text-wrap: balance; margin: 0; font-size: 17px; font-weight: 900; line-height: 1.15; }
.moment-note {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-2);
}

.feeling {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: auto;
  padding: 7px 9px;
  border-radius: 12px;
  background: #F3F6EF;
}
.feeling-k { font-size: 8px; font-weight: 900; color: var(--sage-ink); }
.feeling-v { font-size: 10px; font-weight: 600; line-height: 1.35; }

/* Screen 3 — Milestone */

.screen-milestone {
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding-inline: 14px;
  background: var(--wine);
  color: #fff;
  text-align: center;
}

.mascot-pair { display: flex; gap: 8px; margin-bottom: 12px; }
.mascot-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
}
.chip-joy { background: var(--butter); }
.chip-uni { background: var(--sky); }

.milestone-k { font-size: 10.5px; font-weight: 800; opacity: .92; }
.milestone-n {
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.milestone-d { font-size: 14px; font-weight: 900; }
.milestone-btn {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--wine);
  font-size: 10.5px;
  font-weight: 900;
}

.confetti { position: absolute; border-radius: 4px; }
.confetti.c1 { top: 58px; left: 26px; width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }
.confetti.c2 { top: 104px; right: 28px; width: 12px; height: 5px; border-radius: 3px; background: var(--blush); transform: rotate(30deg); }
.confetti.c3 { bottom: 96px; left: 22px; width: 10px; height: 4px; border-radius: 2px; background: #DCE8F3; transform: rotate(-20deg); }
.confetti.c4 { bottom: 60px; right: 34px; width: 6px; height: 6px; border-radius: 50%; background: var(--blush); }
.confetti.c5 { top: 44px; right: 62px; width: 9px; height: 4px; border-radius: 2px; background: var(--butter); transform: rotate(-35deg); }
.confetti.c6 { top: 136px; left: 20px; width: 5px; height: 5px; border-radius: 50%; background: #DCE8F3; }
.confetti.c7 { bottom: 42px; left: 62px; width: 7px; height: 7px; border-radius: 50%; background: var(--butter); }
.confetti.c8 { bottom: 128px; right: 18px; width: 10px; height: 4px; border-radius: 2px; background: #DFE7D6; transform: rotate(50deg); }

/* Screen 4 — Lock screen */

.screen-lock {
  align-items: center;
  gap: 0;
  padding: 36px 12px 20px;
  background:
    radial-gradient(circle at 50% 70%, rgba(244, 192, 78, .3), transparent 42%),
    linear-gradient(175deg, #B98E8A, #5E3C3E);
  color: #fff;
}
.lock-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  opacity: .95;
}
.lock-time {
  margin-top: 2px;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.lock-widgets { display: flex; gap: 8px; margin-top: 16px; }
.lock-ring {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-size: 12px;
  font-weight: 900;
}
.lock-rect {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 118px;
  height: 48px;
  padding: 5px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.lock-rect-k { font-size: 8px; font-weight: 800; opacity: .9; }
.lock-rect-v { font-size: 9.5px; font-weight: 900; line-height: 1.2; }

.lock-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding: 8px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .24);
}
.lock-notice-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--wine);
  color: var(--cream);
}
.lock-notice-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.25;
}
.lock-notice-app { font-size: 8px; opacity: .85; }

.lock-controls {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding-inline: 8px;
}
.lock-control {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .28);
}

/* Screen 5 — Home screen */

.screen-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 8px;
  padding: 32px 12px 20px;
  background: linear-gradient(175deg, #CDBAB0, #9C8880);
  color: #fff;
}

.hw-big {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 96px;
  padding: 9px 11px;
  border-radius: 16px;
  background: var(--wine);
  color: var(--cream);
}
.hw-mark { opacity: .95; }
.hw-big-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.hw-n { display: block; font-size: 30px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.hw-d { display: block; font-size: 8.5px; font-weight: 800; }
.hw-left { font-size: 8.5px; font-weight: 800; opacity: .9; }

.hw-small {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
  aspect-ratio: 1;
  padding: 9px;
  border-radius: 16px;
}
.hw-white { background: var(--cream); color: var(--ink); }
.hw-white .hw-n-sm { font-size: 26px; font-weight: 900; line-height: 1; color: var(--wine); }
.hw-wine {
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--wine);
  color: #fff;
}
.hw-apps {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 4px;
}
.hw-app { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; }
.hw-app.a1 { background: #F0DCCF; }
.hw-app.a2 { background: #DFE7D6; }
.hw-app.a3 { background: #E6EEF6; }
.hw-app.a4 { background: #F4DFA8; }
.hw-app-brand { background: var(--wine); color: var(--cream); }

.hw-dock {
  position: absolute;
  right: 8px;
  bottom: 14px;
  left: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .28);
}

/* Screen 6 — Year in review */

.screen-review { gap: 8px; padding-inline: 13px; background: var(--wine); color: #fff; }

.story-bars { display: flex; gap: 3px; }
.story-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.story-bars i.on { background: #fff; }

.review-k { margin-top: 6px; font-size: 9px; font-weight: 800; opacity: .92; }
.review-title { display: block; text-wrap: balance; margin: 0; font-size: 21px; font-weight: 900; line-height: 1.12; letter-spacing: -.01em; }

.review-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 4px; }
.review-pic { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.review-pic svg { width: 100%; height: 100%; }
.review-pic span {
  position: absolute;
  bottom: 5px;
  left: 5px;
  padding: 2px 5px;
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
  font-size: 7.5px;
  font-weight: 900;
}

.review-fact { display: flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 10px; font-weight: 700; line-height: 1.35; }

.review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: auto; }
.review-btn {
  display: grid;
  place-items: center;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  font-size: 9.5px;
  font-weight: 900;
}
.review-btn-next { background: var(--cream); color: var(--wine); }

/* Screen 7 — Map of moments */

.screen-map {
  background-color: #EAE3D7;
  background-image:
    linear-gradient(rgba(63, 55, 53, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 55, 53, .06) 1px, transparent 1px);
  background-size: 31px 31px;
}

.map-land {
  position: absolute;
  top: 62px;
  left: 50px;
  width: 170px;
  height: 270px;
  border-radius: 70px;
  background: #F3EEE5;
  transform: rotate(18deg);
}

.map-top { position: relative; display: flex; align-items: center; gap: 5px; }
.map-back {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
}
.map-count {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
}

.map-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 14px -6px rgba(60, 30, 20, .5);
}
.map-pin svg { width: 100%; height: 100%; border-radius: 6px; }
.map-pin-main { top: 130px; left: 86px; width: 32px; height: 32px; }
.map-pin-main b {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 7px;
  font-weight: 900;
}
.map-pin-2 { top: 202px; left: 62px; }
.map-pin-3 { top: 232px; left: 130px; }

.map-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 6px 8px 6px 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.map-card .thumb { width: 32px; height: 32px; }
.map-card-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.map-place { font-size: 11px; font-weight: 900; line-height: 1.25; }
.map-meta { font-size: 8px; font-weight: 700; line-height: 1.3; color: var(--ink-3); }

/* Screen 8 — Printable keepsake */

.screen-keepsake { gap: 7px; }

.keep-nav { position: relative; text-align: center; font-size: 10.5px; font-weight: 900; line-height: 1.4; }
.keep-cancel { position: absolute; left: 2px; top: 1px; font-size: 8.5px; font-weight: 800; color: var(--ink-3); }

.keep-preview {
  display: grid;
  place-items: center;
  flex: none;
  height: 128px;
  border-radius: 14px;
  background: #EEE0DA;
}
.book { display: flex; width: 138px; height: 92px; box-shadow: var(--shadow-soft); }
.book-cover {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 7px;
  border-radius: 3px 0 0 3px;
  background: var(--wine);
  color: var(--cream);
}
.book-names { margin-top: auto; font-size: 6.5px; font-weight: 800; }
.book-year { font-size: 11px; font-weight: 900; line-height: 1.15; }
.book-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 5px;
  border-radius: 0 3px 3px 0;
  background: #fff;
}
.book-photo { display: block; flex: 1; min-height: 0; overflow: hidden; }
.book-photo svg { width: 100%; height: 100%; }
.book-caption { margin-top: 3px; font-size: 5.5px; font-weight: 900; line-height: 1.2; }
.book-day { font-size: 4.5px; font-weight: 700; color: var(--ink-3); }

.keep-label { margin: 2px 0 -3px 2px; font-size: 8px; font-weight: 800; color: var(--ink-3); }
.keep-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 10px; background: #EEE0DA; }
.keep-seg span {
  display: grid;
  place-items: center;
  min-height: 22px;
  border-radius: 8px;
  font-size: 8.5px;
  font-weight: 800;
}
.keep-seg .on { background: #fff; font-weight: 900; }

.keep-card { border-radius: 12px; background: #fff; }
.keep-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 29px;
  padding: 0 9px;
  font-size: 8.5px;
  font-weight: 800;
}
.keep-row + .keep-row { border-top: 1px solid var(--line); }
.keep-val { color: var(--ink-3); font-size: 7.5px; text-align: right; }
.keep-toggle { position: relative; flex: none; width: 26px; height: 15px; border-radius: 999px; background: var(--wine); }
.keep-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.keep-cta {
  display: grid;
  place-items: center;
  min-height: 34px;
  margin-top: auto;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

/* ---------- Privacy ---------------------------------------------------- */

.privacy { background: var(--cream); padding: 80px 0; }

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.privacy-lead {
  margin: 14px 0 0;
  max-width: 480px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(63, 55, 53, .03);
}

/* ---------- Closing ---------------------------------------------------- */

.closing { padding: 0 0 80px; background: var(--cream); }

.closing-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 40px;
  background: var(--wine);
  color: var(--cream);
  text-align: center;
}
.closing-mark { color: var(--cream); }
.closing-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.closing-lead {
  margin: 0;
  max-width: 460px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

/* ---------- Footer ----------------------------------------------------- */

.site-footer { padding: 0 0 40px; background: var(--cream); }.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-3);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a, .footer-link { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.footer-link { position: relative; }

/* Bigger tap areas, without changing how these look. */
.lang-btn::after, .footer-link::after { content: ''; position: absolute; }
.lang-btn::after { inset: -6px -1px; }
.footer-link::after { inset: -12px -6px; }

/* ---------- Privacy page ----------------------------------------------- */

.privacy-page { max-width: 680px; padding-block: 48px 72px; }
.privacy-page h1 { margin: 0 0 16px; font-size: 34px; font-weight: 900; line-height: 1.2; }
.privacy-page h2 { margin: 28px 0 6px; font-size: 18px; font-weight: 900; line-height: 1.3; }
.privacy-page p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.65; color: var(--ink-2); }
.privacy-page .privacy-date { margin-top: 32px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- 404 -------------------------------------------------------- */

.error-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: calc(100vh - 220px);
  padding: 72px 24px;
  text-align: center;
}
.error-mark { color: var(--wine); }
.error-code {
  margin: 0;
  font-size: clamp(72px, 12vw, 132px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--wine);
}
.error-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.error-lead {
  margin: 0 0 8px;
  max-width: 440px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- Language typography ---------------------------------------- */

html[lang="ja"] .hero-title {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.28;
  letter-spacing: 0;
  text-wrap: wrap;
  word-break: auto-phrase;
  line-break: strict;
}
html[lang="ja"] .hero-lead { font-size: 17.5px; line-height: 1.75; }
html[lang="ja"] .section-title {
  letter-spacing: 0;
  line-height: 1.3;
  word-break: auto-phrase;
  line-break: strict;
}
html[lang="ja"] .closing-title {
  letter-spacing: 0;
  line-height: 1.35;
  word-break: auto-phrase;
  line-break: strict;
}
html[lang="ja"] .badge { letter-spacing: .01em; }
html[lang="ja"] .form-note { word-break: auto-phrase; }
html[lang="ja"] .feature-card h3 { line-height: 1.4; }
html[lang="ja"] .slide-caption h3 { line-height: 1.4; }

/* ---------- Reveal ----------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.no-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }

/* ---------- Responsive ------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: clamp(44px, 7.2vw, 72px); }
}

@media (max-width: 880px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-copy { max-width: 640px; }
  .hero-art { order: 2; }
  .privacy-grid { grid-template-columns: 1fr; gap: 28px; }
  .screens { padding-top: 64px; }
  .feature-grid { margin-top: 32px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 20px; }
  .header-cta { display: none; }
  .rail-controls { display: none; }
  .hero-title { font-size: clamp(40px, calc(27px + 3.5vw), 52px); }
  .hero-lead { font-size: 17px; }
  .features, .privacy { padding: 64px 0; }
  .closing { padding-bottom: 64px; }
  .closing-panel { border-radius: 32px; }
  .footer-inner { justify-content: center; text-align: center; }
  .slide { flex-basis: 196px; }
  .device-sm { width: 196px; height: 422px; }
}

@media (max-width: 560px) {
  .notify-form { flex-direction: column; gap: 6px; padding: 6px; border-radius: 26px; }
  .notify-form input { flex: none; min-height: 48px; padding: 0 16px; }
  .notify-form .btn { width: 100%; min-height: 50px; }
  .feature-grid { grid-template-columns: 1fr; }
  .rail { padding-block: 32px 40px; }
}

@media (max-width: 380px) {
  .brand-word { font-size: 24px; }
  .lang-btn { min-width: 42px; padding: 0 9px; font-size: 13px; }
  .device { transform: scale(.88); margin-block: -36px; }
  .hero-title { font-size: 38px; }
}

/* Phones held sideways: keep the signup form on the first screen. */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: static; }
  .header-inner { min-height: 0; padding-block: 8px; }
  .hero { padding: 8px 0 56px; }
  .hero-copy { gap: 10px; }
  .hero-title { font-size: 36px; }
  .hero-lead { font-size: 15px; line-height: 1.45; }
  .hero .badge { padding: 4px 12px; font-size: 12.5px; }
}

/* ---------- Motion preferences ----------------------------------------- */

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