/* Layout: one 1080px column; day sections on beige, one full-bleed "3 a.m." night band in plum.
   Brand: Hagumori deck, option C (terracotta for day and community, baby blue for sleep and night). */
:root {
  --bg: #F5EDE2;          /* beige */
  --raised: #FFFBF5;      /* cream card */
  --ink: #2E2925;         /* brown */
  --muted: #6B5F57;
  --line: #E4D6C4;
  --cta: #B9624A;         /* terracotta: one main button per screen */
  --on-cta: #FFFBF5;
  --accent-ink: #9C4E38;  /* small terracotta text */
  --sleep: #A3C2D8;       /* baby blue */
  --sleep-ink: #3F6582;   /* deep blue */
  --chip: #F2C9BC;        /* pink bridge */
  --chip-ink: #7A3F2F;
  --pink: #F2C9BC;
  --field: #FFFFFF;
  --focus: #3F6582;

  /* night band: plum night in both themes */
  --night: #1A1820;
  --night-raised: #26232E;
  --night-line: #35313F;
  --night-ink: #F3EBE0;
  --night-muted: #B6ADBA;
  --night-blue: #A3C2D8;
  --night-heart: #E3906F;

  /* bear family (fixed brand colors) */
  --fur-terra: #B9624A;
  --fur-terra-shade: #9E4F3A;
  --fur-blue: #9DBBD3;
  --fur-blue-shade: #7F9FBA;
  --bear-pink: #F0A79C;
  --bear-muzzle: #FFF6EA;
  --bear-eye: #2A2220;

  --f-display: "Mochiy Pop One", "Fredoka", "Hiragino Maru Gothic ProN", "Zen Maru Gothic", system-ui, sans-serif;
  --f-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Fredoka", system-ui, sans-serif;
  --f-latin: "Fredoka", "Zen Maru Gothic", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1820; --raised: #24212A; --ink: #F3EBE0; --muted: #B8ADA7; --line: #37323E;
    --cta: #A3C2D8; --on-cta: #1A1820; --accent-ink: #E8A283;
    --sleep: #A3C2D8; --sleep-ink: #A3C2D8; --chip: #3D2C2C; --chip-ink: #F2C9BC; --pink: #D9A99B;
    --field: #1E1B24; --focus: #A3C2D8;
    --night: #121117; --night-raised: #1F1D26; --night-line: #2E2B36;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1820; --raised: #24212A; --ink: #F3EBE0; --muted: #B8ADA7; --line: #37323E;
  --cta: #A3C2D8; --on-cta: #1A1820; --accent-ink: #E8A283;
  --sleep: #A3C2D8; --sleep-ink: #A3C2D8; --chip: #3D2C2C; --chip-ink: #F2C9BC; --pink: #D9A99B;
  --field: #1E1B24; --focus: #A3C2D8;
  --night: #121117; --night-raised: #1F1D26; --night-line: #2E2B36;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--step-0);
  line-height: 1.8;
  overflow-x: hidden;
}
:lang(en) body, body:lang(en) { font-family: var(--f-latin); font-weight: 400; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.display { font-family: var(--f-display); letter-spacing: 0.01em; line-height: 1.35; }
:lang(en) .display { font-family: var(--f-latin); font-weight: 600; letter-spacing: -0.005em; line-height: 1.15; }
.eyebrow {
  font-family: var(--f-latin); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.08em; color: var(--accent-ink);
}
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--raised); padding: 8px 12px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

/* ---------- header ---------- */
.top { padding-block: 18px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.badge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--fur-terra); color: #FFFBF5;
  display: grid; place-items: center; font-family: "Mochiy Pop One", var(--f-display); font-size: 20px; line-height: 1;
  flex: none;
}
.badge span { transform: translateY(1px); }
.brand-ja { font-family: "Mochiy Pop One", var(--f-display); font-size: 1.25rem; color: var(--accent-ink); line-height: 1; }
.brand-en { font-family: var(--f-latin); font-weight: 600; font-size: 1.2rem; line-height: 1; }
.lang {
  font-family: var(--f-latin); font-weight: 500; font-size: var(--step--1); text-decoration: none;
  padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink);
}
.lang:hover { border-color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-block: 24px 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-size: var(--step-4); }
.hero h1 .soft { color: var(--accent-ink); }
.lead { font-size: var(--step-1); max-width: 34em; }
.photo { position: relative; }
.photo img { border-radius: var(--r-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.photo .tag {
  position: absolute; left: 18px; bottom: 18px; background: var(--raised); color: var(--ink);
  border-radius: 999px; padding: 6px 14px 6px 8px; display: flex; align-items: center; gap: 8px;
  font-size: var(--step--1); box-shadow: 0 6px 18px rgb(46 41 37 / 0.12);
}
.photo .tag svg { width: 26px; height: 26px; }

/* ---------- waitlist form ---------- */
.signup { display: grid; gap: 10px; max-width: 30rem; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup label.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup input[type="email"], .signup select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0;
}
.signup input[type="email"] { flex: 1 1 14rem; }
.signup select { width: 100%; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.signup input::placeholder { color: var(--muted); opacity: 0.8; }
.btn {
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; border: 0;
  background: var(--cta); color: var(--on-cta); border-radius: 14px; padding: 12px 22px;
  flex: 0 0 auto; transition: transform 0.15s ease, filter 0.15s ease;
}
:lang(en) .btn { font-weight: 600; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.fine { font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: var(--step--1); min-height: 1.4em; }
.msg.err { color: var(--accent-ink); }
.done {
  display: flex; gap: 14px; align-items: center; background: var(--raised); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px; max-width: 30rem;
}
.done svg { width: 56px; height: 56px; flex: none; }
.done strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--step-1); line-height: 1.4; }
:lang(en) .done strong { font-family: var(--f-latin); font-weight: 600; }

/* ---------- promises ---------- */
.section { padding-block: 72px; }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise {
  background: var(--raised); border-radius: var(--r-md); padding: 26px 24px 28px;
  display: grid; gap: 10px; align-content: start; border: 1px solid var(--line);
}
.promise { overflow: hidden; }
.promise-art { width: calc(100% + 48px); max-width: none; margin: -26px -24px 8px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.promise:nth-child(2) .promise-art { object-position: 50% 22%; }

/* ---------- illustrations ---------- */
.banner { margin: 0 0 36px; }
.banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r-lg); display: block; }
.banner-path img { aspect-ratio: 3 / 1; object-position: 50% 62%; }
.night-art { margin: 4px 0 0; }
.night-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 45%; border-radius: var(--r-md); display: block; }
.kind-head { display: grid; gap: 24px; align-content: start; }
.kind-art { margin: 0; }
.kind-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
.promise h3 { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.45; }
:lang(en) .promise h3 { font-family: var(--f-latin); font-weight: 600; }

/* ---------- night band ---------- */
.night { background: var(--night); color: var(--night-ink); padding-block: 88px; position: relative; overflow: hidden; }
.night .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.night .eyebrow { color: var(--night-blue); font-variant-numeric: tabular-nums; }
.night h2 { font-size: var(--step-3); }
.night-copy { display: grid; gap: 20px; min-width: 0; }
.night-copy > p { color: var(--night-muted); max-width: 32em; }
.night-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.night-list li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; }
.night-list .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--night-blue); margin-top: 0.55em; }
.night-list .dot.warm { background: var(--night-heart); }
.night-list strong { display: block; font-weight: 700; }
:lang(en) .night-list strong { font-weight: 600; }
.night-list span { color: var(--night-muted); font-size: 0.95rem; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, var(--night-ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, var(--night-ink) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 46% 12%, var(--night-ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 86%, var(--night-ink) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 22%, var(--night-ink) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 64%, var(--night-ink) 50%, transparent 51%); }

.lock {
  justify-self: center; width: 100%; max-width: 340px; background: #1E2633; border-radius: 40px;
  padding: 34px 18px 22px; display: grid; gap: 12px; position: relative; border: 1px solid var(--night-line);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.35);
}
.lock .clock { text-align: center; font-family: var(--f-latin); font-weight: 600; font-size: 4rem; line-height: 1; font-variant-numeric: tabular-nums; color: #F6F1EA; }
.lock .day { text-align: center; font-size: 0.85rem; color: #C9C3CF; margin-top: -4px; margin-bottom: 14px; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget { border-radius: 20px; padding: 12px 14px; min-height: 104px; display: grid; align-content: space-between; }
.widget.sleep { background: #E2ECF3; color: #2F4D66; }
.widget.sleep svg { width: 34px; height: 30px; }
.widget.hiroba { background: #FFFBF5; color: #2E2925; }
.widget .k { font-size: 0.78rem; font-weight: 700; }
.widget.hiroba .k { color: #9C4E38; }
.widget .v { font-family: var(--f-latin); font-weight: 600; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.widget .s { font-size: 0.72rem; color: #5B5049; }
.note { background: rgb(255 255 255 / 0.1); border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; color: #F3EBE0; }
.note .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #B9624A; color: #FFFBF5; font-family: "Mochiy Pop One", var(--f-display); font-size: 18px; }
.note .ic.blue { background: #2B3442; }
.note .ic svg { width: 30px; height: 28px; }
.note b { display: block; font-size: 0.8rem; }
.note small { display: block; font-size: 0.78rem; color: #C9C3CF; line-height: 1.4; }
.note small em { font-style: normal; color: var(--night-blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.lock .z { position: absolute; right: 26px; top: 26px; font-family: var(--f-latin); font-weight: 600; color: var(--night-blue); font-size: 1.1rem; }
.lock .z i { display: inline-block; font-style: normal; animation: float 3.6s ease-in-out infinite; }
.lock .z i:nth-child(2) { font-size: 0.8em; animation-delay: 0.6s; }
.lock .z i:nth-child(3) { font-size: 0.6em; animation-delay: 1.2s; }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-6px); opacity: 0.55; } }
.mock-caption { text-align: center; font-size: 0.75rem; color: var(--night-muted); margin-top: 10px; }

/* ---------- first version ---------- */
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.room { display: grid; grid-template-columns: 30px 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); align-items: start; }
.room .sq { width: 30px; height: 30px; border-radius: 9px; background: var(--fur-terra); margin-top: 2px; }
.room .sq.blue { background: var(--sleep); }
.room .sq.pink { background: var(--pink); }
.room h3 { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.4; margin-bottom: 4px; }
:lang(en) .room h3 { font-family: var(--f-latin); font-weight: 600; }
.room p { color: var(--muted); }

/* ---------- kind place ---------- */
.kind { background: var(--raised); border-radius: var(--r-lg); padding: 44px 40px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; border: 1px solid var(--line); }
.kind h2 { font-size: var(--step-3); }
.kind-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.kind-points li { display: grid; gap: 4px; }
.kind-points strong { font-weight: 700; display: flex; align-items: center; gap: 8px; }
:lang(en) .kind-points strong { font-weight: 600; }
.kind-points strong::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fur-terra); flex: none; }
.kind-points li:nth-child(even) strong::before { background: var(--sleep); }
.kind-points span { color: var(--muted); font-size: 0.95rem; }
.kind .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- growth ladder ---------- */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; position: relative; }
.ladder::before { content: ""; position: absolute; left: 8px; right: 8px; top: 9px; height: 2px; background: var(--line); }
.ladder li { position: relative; padding-top: 34px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ladder li::before { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fur-terra); }
.ladder li.now::before { background: var(--fur-terra); }
.ladder .age { font-family: var(--f-display); font-size: var(--step-1); line-height: 1.3; }
:lang(en) .ladder .age { font-family: var(--f-latin); font-weight: 600; }
.ladder .topics { display: flex; flex-wrap: wrap; gap: 6px; }
.ladder .topics span { font-size: 0.82rem; line-height: 1.4; padding: 4px 10px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); }
.ladder li.now .topics span:first-child { background: var(--chip); color: var(--chip-ink); border-color: transparent; font-weight: 700; }
.ladder-note { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }

/* ---------- final call ---------- */
.final { padding-block: 40px 88px; }
.final .card { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.final .family { width: 180px; height: 150px; }
.final h2 { font-size: var(--step-3); margin-bottom: 10px; }
.final .card > div { display: grid; gap: 18px; min-width: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: var(--step--1); color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.name-story { display: grid; gap: 4px; max-width: 34rem; }
.name-story b { color: var(--ink); font-weight: 700; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero .wrap, .night .wrap { grid-template-columns: 1fr; gap: 36px; }
  /* Phones: the bears come first, as a short banner, so the page opens on a picture. */
  .hero .wrap { gap: 20px; }
  .hero .photo { order: -1; max-width: none; }
  .hero .photo img { aspect-ratio: 16 / 10; object-position: 50% 58%; }
  .promises { grid-template-columns: 1fr; }
  .banner img { aspect-ratio: 16 / 9; }
  .banner-path img { aspect-ratio: 2 / 1; }
  .rooms { grid-template-columns: 1fr; }
  .kind { grid-template-columns: 1fr; padding: 32px 22px; gap: 26px; }
  .ladder { grid-template-columns: 1fr; gap: 22px; }
  .ladder::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .ladder li { padding-top: 0; padding-left: 34px; }
  .final .card { grid-template-columns: 1fr; gap: 20px; }
  .final .family { width: 140px; height: 116px; }
  .foot .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding-block: 8px 56px; }
  .section { padding-block: 56px; }
  .night { padding-block: 64px; }
  .kind-points { grid-template-columns: 1fr; }
  .signup .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lock .z i { animation: none; }
  .btn { transition: none; }
}
