/* BabyDance AI — 舞池贴纸海报系统（frontend-design skill 审定）
   基底：柠檬奶油纸 + 葡萄墨；三撞色：舞曲粉/电葡萄/阳光黄。
   Type: Fraunces 650（展示）+ Caveat 500（贴纸手写）+ 系统无衬线（正文）。
   硬阴影 + 描边按钮 = 贴纸/海报物理感；禁渐变、禁卡片海。 */

:root {
  --paper: #FFF6E4;
  --card: #FFFDF7;
  --ink: #2A1E3F;
  --ink-soft: #574a70;
  --pink: #E93A7D;
  --grape: #6C4BF4;
  --sun: #FFC53D;
  --line: #E9DCC8;
  --shadow: 0 0 0 2px var(--ink);
  --shadow-lift: 6px 6px 0 rgba(42, 30, 63, 0.9);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-hand: "Caveat", cursive;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img, video { max-width: 100%; }
a { color: var(--grape); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0.2em 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0.4em 0; }
h3 { font-size: 1.25rem; margin: 0.3em 0; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; border-radius: 4px; }

.wrap, section { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ── topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none;
}
.wordmark .mark { display: inline-flex; width: 30px; height: 30px; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.topbar nav a:hover { color: var(--pink); }
.nav-cta {
  background: var(--sun); color: var(--ink) !important;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 8px 16px; box-shadow: 3px 3px 0 var(--ink);
}

/* ── buttons ── */
.cta, .ghost {
  display: inline-block;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem;
  text-decoration: none; text-align: center; cursor: pointer;
  border-radius: 999px; padding: 13px 26px;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cta {
  background: var(--sun); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: var(--shadow-lift);
}
.cta:hover { transform: translate(-1px, -1px); box-shadow: 7px 7px 0 rgba(42, 30, 63, 0.9); }
.cta:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(42, 30, 63, 0.9); }
.cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: var(--shadow-lift); }
.ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
}
.ghost:hover { background: var(--card); }
button.cta, button.ghost { font-size: 1.02rem; }

/* ── hero ── */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 36px; align-items: center;
  padding-top: 48px; padding-bottom: 40px;
}
.kicker {
  font-weight: 800; font-size: 0.92rem;
  color: var(--pink); margin: 0 0 6px;
}
.hero .sub, .prose .sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34em; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 10px; }
.priceline { font-weight: 700; color: var(--ink-soft); font-size: 0.98rem; margin: 4px 0 0; }
.fineprint { font-size: 0.85rem; color: var(--ink-soft); }
.fineprint.center { text-align: center; max-width: 46em; margin: 18px auto 0; }

.hero-stage { position: relative; justify-self: center; }
.phone {
  margin: 0; width: min(270px, 68vw);
  aspect-ratio: 9 / 16;
  border: 3px solid var(--ink); border-radius: 28px;
  box-shadow: 10px 10px 0 var(--grape);
  overflow: hidden; transform: rotate(2deg);
  background: var(--ink);
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sticker {
  position: absolute; top: -18px; right: -26px;
  font-family: var(--font-hand); font-size: 1.7rem; line-height: 1.05;
  color: #fff; background: var(--pink);
  border: 2px solid #fff; border-radius: 999px;
  padding: 14px 20px; transform: rotate(7deg);
  box-shadow: 4px 4px 0 var(--ink);
  text-align: center; text-transform: lowercase;
}

/* ── dances grid ── */
.dances, .how, .honest, .faq-home { padding-top: 34px; padding-bottom: 34px; }
.sec-head { max-width: 640px; margin-bottom: 20px; }
.sec-head p { color: var(--ink-soft); margin: 4px 0 0; }
.dance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.style-pick {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(42, 30, 63, 0.85);
  padding: 10px; cursor: pointer; text-align: left;
  font-family: var(--font-body); color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.style-pick:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(42, 30, 63, 0.85); }
.style-pick video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px; background: var(--ink); }
.style-pick[aria-pressed="true"] { border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
.style-pick[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--pink); color: #fff; border: 2px solid var(--ink);
  display: grid; place-items: center; font-weight: 800;
}
.sp-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--ink); color: var(--paper);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
}
.sp-name { font-weight: 800; font-size: 1.02rem; padding: 4px 4px 0; }
.sp-desc { font-size: 0.85rem; color: var(--ink-soft); padding: 0 4px 4px; }
.style-custom { justify-content: center; align-items: center; min-height: 240px; }
.sp-noSample { width: 44px; height: 44px; border: 2px dashed var(--grape); border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; }
.style-custom .sp-name { text-align: center; }
.style-custom .sp-desc { text-align: center; }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.step .no {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grape); color: #fff; border: 2px solid var(--ink);
  font-weight: 800; margin-bottom: 8px;
}
.step h3 { margin-top: 2px; }
.step p { margin: 4px 0 0; color: var(--ink-soft); font-size: 0.96rem; }

/* ── honest split ── */
.honest .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split-col { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.split-col h3 { font-size: 1.5rem; color: var(--pink); margin-top: 0; }
.split-col p { margin: 6px 0 0; color: var(--ink-soft); }

/* ── faq home ── */
.faq-list { max-width: 720px; }
details { border-bottom: 1px solid var(--line); padding: 12px 4px; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--ink-soft); }

/* ── cta band ── */
.cta-band {
  max-width: 1120px; margin: 30px auto 0;
  background: var(--ink); color: var(--paper);
  border-radius: 22px; padding: 38px 34px;
  text-align: center;
}
.cta-band h2 { color: var(--paper); margin: 0 0 6px; }
.cta-band p { color: #cfc6e2; max-width: 40em; margin: 0 auto 20px; }

/* ── create wizard ── */
.create { max-width: 780px; margin: 0 auto; padding-top: 30px; padding-bottom: 50px; }
.wiz-nav {
  list-style: none; display: flex; gap: 8px; padding: 0; margin: 18px 0 26px;
  flex-wrap: wrap;
}
.wiz-nav li {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--ink-soft); font-size: 0.95rem;
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px;
}
.wiz-nav li span {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--line); color: var(--ink);
}
.wiz-nav li.on { border-color: var(--ink); color: var(--ink); background: var(--card); }
.wiz-nav li.on span { background: var(--sun); border: 2px solid var(--ink); }
.wiz-nav li.done span { background: var(--grape); color: #fff; }
.wiz-sub { color: var(--ink-soft); margin-top: 0; }
.wiz-actions { display: flex; gap: 12px; margin-top: 18px; }

.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 4px; }
.chip {
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; text-align: left; font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 2px;
}
.chip[aria-pressed="true"] { border-color: var(--pink); box-shadow: 3px 3px 0 var(--pink); }
.chip-name { font-weight: 800; }
.chip-desc { font-size: 0.82rem; color: var(--ink-soft); }
#traits-wrap, #custom-wrap { margin-top: 12px; }
input[type="text"], input[type="email"], input:not([type]) {
  width: 100%; font-size: 1rem; padding: 11px 13px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink);
}
input:focus-visible { outline: 3px solid var(--grape); outline-offset: 1px; }
label { font-weight: 700; font-size: 0.95rem; display: block; margin-top: 12px; }

.baby-stage { margin-top: 16px; text-align: center; }
.baby-frame {
  margin: 0 auto; width: min(300px, 80vw);
  border: 3px solid var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--pink); transform: rotate(-1.5deg);
  background: var(--card);
}
.baby-frame img { display: block; width: 100%; }
.baby-status { font-weight: 700; color: var(--grape); margin: 12px 0 0; }
.alt-path { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.inline-file { display: inline; color: var(--grape); text-decoration: underline; cursor: pointer; font-weight: 800; }
.confirm { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }
.confirm input { margin-top: 3px; width: auto; }
.drop-note { font-size: 0.85rem; color: var(--grape); font-weight: 700; }

.style-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 14px 0 4px; }
.create .style-pick video { aspect-ratio: 9 / 14; }

.render-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.render-pick {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 10px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 12px;
  padding: 12px 14px; cursor: pointer;
}
.render-pick:has(input:checked) { border-color: var(--pink); box-shadow: 3px 3px 0 var(--pink); }
.render-pick input { width: auto; }
.rp-count { font-weight: 800; }
.rp-note { grid-column: 2; font-size: 0.82rem; color: var(--ink-soft); }
.rp-price { grid-row: span 2; font-weight: 800; font-size: 1.2rem; color: var(--pink); }

.wallet-line { font-size: 1.02rem; color: var(--ink-soft); margin: 6px 0 14px; }
.wallet-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  padding: 18px 26px; margin: 10px 0 16px;
}
.wallet-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; }
.wallet-label { font-size: 0.9rem; color: var(--ink-soft); }
.summary { background: var(--card); border: 2px dashed var(--grape); border-radius: 10px; padding: 10px 14px; margin: 14px 0; font-size: 0.95rem; }
.sum-file { font-weight: 700; }
.status { font-weight: 700; color: var(--grape); }
.status.err { color: var(--pink); }

/* ── result ── */
.result { max-width: 640px; margin: 0 auto; padding-top: 34px; padding-bottom: 60px; text-align: center; }
.takes { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 18px 0; }
.take { margin: 0; width: min(260px, 80vw); }
.take video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 3px solid var(--ink); border-radius: 16px; background: var(--ink); }
.take figcaption { display: flex; justify-content: space-between; font-size: 0.9rem; padding-top: 6px; }
.take a { font-weight: 700; }
.take-hint { color: var(--ink-soft); }
.share { display: inline-block; margin-top: 10px; font-weight: 700; }
.orders { list-style: none; padding: 0; }
.orders li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ── SEO article ── */
.crumbs { max-width: 1120px; margin: 0 auto; padding: 22px 20px 0; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; max-width: 1120px; margin: 0 auto; padding: 10px 20px 40px; }
.prose { max-width: 44em; }
.prose h1 { margin-top: 0.1em; }
.page-sample { margin: 22px 0; width: min(320px, 100%); }
.page-sample video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 3px solid var(--ink); border-radius: 16px; background: var(--ink); display: block; }
.plate-tag { display: inline-block; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; font-size: 0.75rem; font-weight: 800; padding: 3px 10px; margin-bottom: 8px; }
.page-sample figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.sec { margin-top: 26px; }
.sec h2 { font-size: 1.45rem; }
.sec p, .prose > p { color: #3d3253; }
.method-tag { display: inline-block; margin-left: 10px; font-size: 0.72rem; font-weight: 800; background: var(--line); border-radius: 999px; padding: 2px 9px; vertical-align: middle; }
.faq details { border-bottom-color: var(--line); }
.rail { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; }
.card .price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.card .per { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 12px; }
.card.links a { display: block; padding: 5px 0; font-weight: 600; text-decoration: none; }
.card.links a:hover { color: var(--pink); }

/* ── legal ── */
.legal-body { max-width: 720px; margin: 0 auto; padding: 10px 20px 60px; }
.legal-body h2 { font-size: 1.25rem; margin-top: 1.4em; }
.legal-body p { color: #3d3253; }

/* ── examples gallery ── */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 10px 20px 26px; max-width: 1120px; margin: 0 auto; }
.gallery figure { margin: 0; flex: 0 0 min(250px, 66vw); }
.gallery video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 3px solid var(--ink); border-radius: 16px; background: var(--ink); }
.gallery figcaption { font-size: 0.88rem; padding-top: 6px; }
.gallery .scene-note { display: block; color: var(--ink-soft); }

/* ── footer ── */
.site-footer {
  background: var(--ink); color: #cfc6e2;
  margin-top: 50px; padding: 40px 20px 26px;
}
.site-footer .cols { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; }
.site-footer .wordmark { color: var(--paper); }
.site-footer .blurb { font-size: 0.92rem; max-width: 26em; }
.site-footer a { color: #cfc6e2; text-decoration: none; display: block; padding: 3px 0; font-size: 0.93rem; }
.site-footer a:hover { color: var(--sun); }
.foot-head { font-weight: 800; color: var(--paper); margin: 14px 0 6px; font-size: 0.95rem; }
.site-footer .legal { max-width: 1120px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid #4a3d63; font-size: 0.82rem; }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .hero-copy { order: 2; }
  .hero-stage { order: 1; }
  .actions { justify-content: center; }
  .dance-grid { grid-template-columns: repeat(2, 1fr); }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .honest .split { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .rail .card { flex: 1 1 240px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { gap: 10px; }
  .topbar nav a:not(.nav-cta) { display: none; }
  .chip-grid { grid-template-columns: 1fr 1fr; }
  .render-grid { grid-template-columns: 1fr; }
  .dance-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .phone { width: min(230px, 62vw); }
  .sticker { right: -8px; font-size: 1.4rem; padding: 10px 14px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .ghost, .style-pick { transition: none; }
  .phone { transform: none; }
}
