:root {
  --paper: #f6efe3;
  --cream: #fdfaf3;
  --card: rgba(253, 250, 243, 0.92);
  --ink: #453128;
  --muted: #8a7160;
  --line: rgba(96, 68, 50, 0.16);
  --stitch: rgba(146, 105, 72, 0.38);
  --amber: #c07f2e;
  --amber-deep: #9c6118;
  --amber-soft: #f5e3c4;
  --rose: #cf7a5f;
  --rose-soft: #f6ded4;
  --shadow: 0 18px 50px rgba(96, 60, 30, 0.12);
  --display: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #251c15;
    --cream: #2e241b;
    --card: rgba(48, 38, 28, 0.9);
    --ink: #f2e7d8;
    --muted: #b39d8a;
    --line: rgba(242, 222, 195, 0.14);
    --stitch: rgba(226, 196, 158, 0.32);
    --amber: #e0a054;
    --amber-deep: #f0bc74;
    --amber-soft: #4a3820;
    --rose: #e0967d;
    --rose-soft: #4a2f27;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(224, 160, 84, 0.14), transparent 42%),
    radial-gradient(circle at 5% 30%, rgba(207, 122, 95, 0.1), transparent 40%),
    var(--paper);
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.75;
}
img { max-width: 100%; }
a { color: var(--amber-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.45; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* stitched fabric card edge */
.stitch { position: relative; }
.stitch::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1.5px dashed var(--stitch);
  border-radius: inherit;
  pointer-events: none;
  transform: scale(0.985);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand-mark { font-size: 20px; }
.brand-name { font-family: var(--display); font-size: 22px; }
.site-nav { display: none; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--amber-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #fffaf2;
  background: linear-gradient(160deg, var(--amber), var(--amber-deep));
  box-shadow: 0 10px 24px rgba(156, 97, 24, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(156, 97, 24, 0.42); transform: translateY(-1px); }
.btn-ghost {
  color: var(--amber-deep);
  background: var(--card);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--stitch); }
.btn-small { min-height: 40px; padding: 9px 18px; font-size: 13px; color: #fffaf2; background: var(--ink); margin-left: auto; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 36px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 48px) clamp(56px, 8vw, 110px);
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(27px, 4.4vw, 44px);
  letter-spacing: 0.01em;
}
.hero-lead { margin: 0 0 30px; max-width: 34em; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-face { display: flex; justify-content: center; }
.face-frame {
  position: relative;
  width: min(100%, 400px);
  padding: 14px;
  border-radius: 34px;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
}
.face-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}
.face-ribbon {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 18px;
  border-radius: 4px;
  color: #fffaf2;
  background: var(--rose);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.18em;
  box-shadow: 0 6px 14px rgba(150, 80, 55, 0.3);
  transform: rotate(-3deg);
}

/* ---------- sections ---------- */
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
}
.section h2 { margin: 0 0 26px; font-size: clamp(24px, 3.6vw, 36px); }

.feeling-body { max-width: 44em; font-size: clamp(15px, 1.7vw, 18px); }
.feeling-body p { margin: 0 0 18px; }

/* ---------- care loop ---------- */
.loop-diagram {
  position: relative;
  max-width: 560px;
  margin: 10px auto 30px;
  aspect-ratio: 1;
}
.loop-ring {
  position: absolute;
  inset: 11%;
  border: 2px dashed var(--stitch);
  border-radius: 50%;
}
.loop-face {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--cream);
  box-shadow: var(--shadow);
}
.loop-step {
  position: absolute;
  width: 42%;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(96, 60, 30, 0.1);
  text-align: center;
}
.loop-step strong { display: block; font-family: var(--display); font-size: 16px; }
.loop-step span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.step-care { top: -2%; left: 29%; }
.step-remember { right: -2%; bottom: 8%; }
.step-return { left: -2%; bottom: 8%; }

.loop-example {
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.bubble {
  margin: 0;
  padding: 12px 18px;
  border-radius: 20px;
  font-size: 15px;
  width: fit-content;
  max-width: 100%;
}
.bubble-you {
  justify-self: end;
  color: var(--ink);
  background: var(--amber-soft);
  border-bottom-right-radius: 6px;
}
.bubble-moka {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble-moka img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- scenes ---------- */
.scene-grid { display: grid; gap: 18px; }
.scene-card {
  padding: 12px 12px 20px;
  border-radius: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(96, 60, 30, 0.09);
}
.scene-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.scene-card h3 { margin: 16px 8px 6px; font-size: 21px; }
.scene-card p { margin: 0 8px; color: var(--muted); font-size: 14px; }
.scene-card:nth-child(2) { transform: none; }

/* ---------- profile card ---------- */
.oshi-card {
  position: relative;
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(150deg, var(--cream), var(--rose-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.oshi-face img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.oshi-info { padding: 24px 26px 28px; }
.oshi-name { margin: 0; font-family: var(--display); font-size: 32px; }
.oshi-name span { margin-left: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0.28em; }
.oshi-tagline { margin: 4px 0 18px; color: var(--rose); font-weight: 700; font-size: 14px; }
.oshi-info dl { display: grid; gap: 12px; margin: 0; }
.oshi-info dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
.oshi-info dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.oshi-info dd { margin: 0; font-size: 14px; }
.oshi-ribbon {
  position: absolute;
  top: 18px;
  right: -34px;
  padding: 5px 42px;
  color: #fffaf2;
  background: var(--amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(38deg);
  box-shadow: 0 4px 10px rgba(96, 60, 30, 0.25);
}

/* ---------- promises ---------- */
.promise-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise-list li {
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
}
.promise-list strong { font-family: var(--display); font-size: 17px; }
.promise-list p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 10px; max-width: 760px; }
.faq-list details {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}
.faq-list summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.faq-list summary::before { content: "？"; margin-right: 10px; color: var(--amber); font-family: var(--display); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0; padding: 0 20px 18px 44px; color: var(--muted); font-size: 14px; }

/* ---------- waitlist ---------- */
.waitlist-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.waitlist-note { margin: -10px 0 22px; color: var(--muted); font-size: 14px; }
.waitlist-card form { display: grid; gap: 8px; }
.waitlist-card label { font-size: 13px; font-weight: 700; }
.waitlist-card input, .waitlist-card textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--cream);
  margin-bottom: 8px;
}
.waitlist-card input:focus, .waitlist-card textarea:focus { border-color: var(--amber); outline: none; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 4px 0; }
.waitlist-card .btn { margin-top: 8px; }
.form-status { min-height: 24px; margin: 6px 0 0; font-size: 14px; font-weight: 700; }
.form-status.ok { color: #3d7a52; }
.form-status.err { color: #b4492f; }
@media (prefers-color-scheme: dark) {
  .form-status.ok { color: #8fd0a4; }
  .form-status.err { color: #f09a82; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 48px) 44px;
  display: grid;
  gap: 10px;
}
.footer-brand { margin: 0; font-family: var(--display); font-size: 20px; }
.footer-brand small { margin-left: 8px; color: var(--muted); font-family: var(--body); font-size: 12px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--amber-deep); }
.footer-copy { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-card:nth-child(2) { transform: translateY(18px); }
  .oshi-card { grid-template-columns: 46% 1fr; }
  .oshi-face img { aspect-ratio: auto; height: 100%; }
  .promise-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .face-frame { transform: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
