/* Pufffolio landing page — dark theme, colours matched to the Muse Space version.
   Tokens: --bg #1b1424, --surface #271c36, --surface-2 #2f2242, --text #fff3e2,
   --dim #c9b8d9, --border #453364, --accent #ffb25e, --up #5fd68a, --down #ff6b6b */
:root {
  --bg: #1b1424;
  --surface: #271c36;
  --surface-2: #2f2242;
  --frame: #221830;
  --text: #fff3e2;
  --dim: #c9b8d9;
  --border: #453364;
  --accent: #ffb25e;
  --accent-ink: #2a1a08;
  --up: #5fd68a;
  --down: #ff6b6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

h1, h2, h3, h4, .brand, .price-amount, .demo-value, .btn {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
}

.page {
  max-width: 1024px; /* ~max-w-5xl */
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 32px 0 8px; }
.brand {
  font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: .5px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.08;
  margin: 18px 0 16px;
  font-weight: 800;
}
.hero-sub {
  color: var(--dim);
  font-size: clamp(18px, 2.6vw, 21px);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .08s ease, opacity .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { opacity: .92; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-big { font-size: 21px; padding: 14px 32px; }
.btn[disabled] { opacity: .55; cursor: default; }

.toggle-btn {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 18px; font-weight: 700;
  background: var(--surface-2);
  color: var(--dim);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 22px;
  cursor: pointer;
}
.toggle-btn.pressed { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---------- Mood demo ---------- */
.demo-card {
  margin-top: 36px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.demo-mochi { flex: 0 0 240px; margin: 0 auto; }
.demo-mochi img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 20px; background: var(--frame); display: block;
}
.demo-body { flex: 1 1 320px; text-align: center; }
.demo-label { color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 14px; }
.demo-value { font-size: clamp(38px, 6vw, 54px); font-weight: 800; margin-top: 6px; }
.demo-change { font-size: 22px; font-weight: 800; }
.demo-change.up { color: var(--up); }
.demo-change.down { color: var(--down); }
.demo-quote { font-size: 20px; font-style: italic; margin: 14px auto 18px; max-width: 460px; }
.demo-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.demo-caption { margin: 12px 0 0; font-weight: 700; }
.demo-caption.dim { color: var(--dim); font-weight: 600; font-size: 16px; margin-top: 4px; }

/* ---------- Sections ---------- */
.section { margin-top: 64px; }
.section h2 {
  text-align: center;
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  margin: 0 0 12px;
}
.section-intro {
  text-align: center; color: var(--dim);
  max-width: 760px; margin: 0 auto 30px;
  font-size: 19px;
}

/* ---------- Mascots ---------- */
.mascot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .mascot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mascot-grid { grid-template-columns: repeat(3, 1fr); } }

.mascot-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  display: flex; flex-direction: column;
}
.mascot-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 16px; background: var(--frame); display: block;
}
.mascot-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px;
}
.mascot-head h3 { margin: 0; font-size: 23px; font-weight: 800; }
.badge {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  color: var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 14px; font-weight: 800;
  white-space: nowrap;
}
.mascot-card p { color: var(--dim); margin: 8px 0 14px; flex: 1; }
.vote-bar {
  height: 10px; border-radius: 999px; background: var(--surface-2);
  overflow: hidden; margin-bottom: 8px;
}
.vote-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.vote-count { font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.mascot-card .btn { width: 100%; text-align: center; }
.your-pick {
  text-align: center; font-weight: 800; font-size: 19px; color: var(--up);
  padding: 10px 0 4px;
}
.cancel-vote {
  background: none; border: none; color: var(--dim);
  font: inherit; font-size: 16px; font-weight: 700;
  text-decoration: underline; cursor: pointer; padding: 6px;
}
.cancel-vote:hover { color: var(--text); }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.feature-card p { margin: 0; color: var(--dim); }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 26px; }
.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.price-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 26px;
}
.price-card.plus { border-color: var(--accent); }
.price-card h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.plus-banner {
  background: var(--surface-2);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  margin-bottom: 18px;
}
.price-amount { font-size: 46px; font-weight: 800; }
.price-period { color: var(--dim); font-weight: 700; margin-bottom: 16px; }
.price-list { list-style: none; margin: 0 0 20px; padding: 0; }
.price-list li { padding: 7px 0 7px 30px; position: relative; color: var(--text); }
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--up); font-weight: 800; }
.price-card .btn { width: 100%; text-align: center; }
.price-caption { color: var(--dim); font-size: 16px; text-align: center; margin: 12px 0 0; }
.pricing-note { text-align: center; font-weight: 700; margin: 26px auto 0; max-width: 720px; }
.pricing-note.dim { color: var(--dim); font-weight: 600; font-size: 16px; margin-top: 6px; }

/* ---------- Waitlist ---------- */
.waitlist-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  padding: 34px 28px;
}
.accent-line { text-align: center; color: var(--accent); font-weight: 800; font-size: 19px; margin: 0 auto 24px; max-width: 720px; }
#waitlist-form { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
#waitlist-form label { font-weight: 800; margin: 14px 0 6px; font-size: 18px; }
#waitlist-form input, #waitlist-form select {
  font: inherit;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: 13px 16px;
  width: 100%;
}
#waitlist-form input:focus, #waitlist-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#waitlist-form .btn { margin-top: 22px; }
.form-error { color: var(--down); font-weight: 700; margin: 12px 0 0; }

.success-panel { text-align: center; }
.success-panel h3 { font-size: 30px; font-weight: 800; margin: 10px 0 8px; }
.success-panel h4 { font-size: 24px; font-weight: 800; margin: 4px 0 8px; }
.success-panel p { color: var(--dim); max-width: 520px; margin: 0 auto 14px; }
.success-mochi { width: 150px; aspect-ratio: 4/5; object-fit: cover; border-radius: 16px; background: var(--frame); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 64px;
  text-align: center;
  color: var(--dim);
  font-size: 16px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}

button, a.btn, input, select { cursor: pointer; }
input, select { cursor: auto; }
select { cursor: pointer; }
