/* I Love Today: "Chunky Rainbow Badges" look.
   Rounded heavy type (Fredoka + Nunito); chunky press-down buttons with a thick darker bottom border. */

:root {
  --bg: #eaf4ff;
  --ink: #101a33;
  --ink-2: #3a4766;
  --muted: #475575;
  --line: #c9ddf5;
  --accent: #2563eb;
  --accent-shade: #1e3a8a;
  --orange: #f97316; --orange-shade: #c2410c; --orange-tint: #fff4eb; --orange-line: #fed7aa;
  --yellow: #facc15; --yellow-shade: #a16207; --yellow-tint: #fffbeb; --yellow-line: #fde68a;
  --green: #22c55e;  --green-shade: #15803d;  --green-tint: #f0fdf4;  --green-line: #bbf7d0;
  --blue: #3b82f6;   --blue-shade: #1e40af;   --blue-tint: #eff6ff;   --blue-line: #bfdbfe;
  --pink: #ec4899;   --pink-shade: #9d174d;   --pink-tint: #fdf2f8;   --pink-line: #fbcfe8;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: #1d4ed8; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 28px; }
.logo-mark { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--accent); border-radius: 16px; border-bottom: 5px solid var(--accent-shade); }
.site-nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nav-link { padding: 14px 20px; text-decoration: none; font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Chunky buttons: the bottom border is the "3D" edge; pressing squashes it. */
.btn {
  display: inline-block; padding: 18px 30px; font: inherit; font-weight: 800; font-size: 18px;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border: 0; border-bottom: 6px solid var(--accent-shade); border-radius: 18px;
  background: var(--accent); color: #fff; transition: transform .06s ease, border-bottom-width .06s ease;
}
.btn:hover { color: #fff; filter: brightness(1.06); }
.btn:active { transform: translateY(4px); border-bottom-width: 2px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-white { background: #fff; color: var(--ink); border: 2px solid var(--line); border-bottom-width: 6px; }
.btn-white:hover { color: var(--ink); }
.btn-yellow { background: var(--yellow); color: #2e2402; border-bottom-color: var(--yellow-shade); }
.btn-yellow:hover { color: #2e2402; }
.btn-small { padding: 12px 18px; font-size: 14px; border-radius: 14px; border-bottom-width: 4px; }
.btn-small:active { transform: translateY(3px); border-bottom-width: 1px; }
.btn-ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); border-bottom-width: 4px; }
.btn-ghost:hover { color: var(--ink); }
.btn:focus-visible, input:focus-visible { outline: 4px solid var(--yellow); outline-offset: 2px; }

/* Hero */
.hero { padding: 48px 24px 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.dots { display: flex; gap: 10px; justify-content: center; }
.dots span { width: 22px; height: 22px; border-radius: 999px; }
.dot-o { background: var(--orange); border-bottom: 4px solid var(--orange-shade); }
.dot-y { background: var(--yellow); border-bottom: 4px solid var(--yellow-shade); }
.dot-g { background: var(--green);  border-bottom: 4px solid var(--green-shade); }
.dot-b { background: var(--blue);   border-bottom: 4px solid var(--blue-shade); }
.dot-p { background: var(--pink);   border-bottom: 4px solid var(--pink-shade); }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 128px); line-height: .96; }
.hero h1 .bang { color: var(--pink); }
.lede { margin: 0; font-size: 22px; line-height: 1.5; max-width: 36ch; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding-bottom: 96px; }
.step { border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.step .n { font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; }
.step h2 { margin: 0; font-size: 28px; }
.step p { margin: 0; font-size: 18px; line-height: 1.5; }
.step-o { background: var(--orange); color: #2a1405; border-bottom: 8px solid var(--orange-shade); }
.step-y { background: var(--yellow); color: #2e2402; border-bottom: 8px solid var(--yellow-shade); }
.step-g { background: var(--green);  color: #052e14; border-bottom: 8px solid var(--green-shade); }

/* Badges */
.band { background: #fff; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band-inner { padding: 96px 24px; display: flex; flex-direction: column; gap: 48px; }
.band h2 { margin: 0; font-size: clamp(40px, 5.5vw, 72px); line-height: 1; }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 12px; border-radius: 24px; text-align: center; }
.badge-icon { display: inline-flex; width: 80px; height: 80px; align-items: center; justify-content: center; border-radius: 999px; }
.badge-name { font-family: var(--display); font-weight: 700; font-size: 20px; }
.badge-hint { font-size: 14px; color: var(--muted); margin-top: -6px; }
.b-o { background: var(--orange-tint); border-bottom: 6px solid var(--orange-line); } .b-o .badge-icon { background: var(--orange); border-bottom: 6px solid var(--orange-shade); }
.b-y { background: var(--yellow-tint); border-bottom: 6px solid var(--yellow-line); } .b-y .badge-icon { background: var(--yellow); border-bottom: 6px solid var(--yellow-shade); }
.b-g { background: var(--green-tint);  border-bottom: 6px solid var(--green-line); }  .b-g .badge-icon { background: var(--green);  border-bottom: 6px solid var(--green-shade); }
.b-b { background: var(--blue-tint);   border-bottom: 6px solid var(--blue-line); }   .b-b .badge-icon { background: var(--blue);   border-bottom: 6px solid var(--blue-shade); }
.b-p { background: var(--pink-tint);   border-bottom: 6px solid var(--pink-line); }   .b-p .badge-icon { background: var(--pink);   border-bottom: 6px solid var(--pink-shade); }

/* Join panel */
.join { padding: 96px 24px; }
.join-panel { background: var(--accent); color: #fff; border-bottom: 10px solid var(--accent-shade); border-radius: 40px; padding: clamp(32px, 6vw, 72px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.join-panel h2 { margin: 0; font-size: clamp(40px, 5.5vw, 68px); line-height: 1; }
.join-panel p { margin: 0; font-size: 20px; line-height: 1.5; }
.signup { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.signup label, .field-label { font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; }
.input { flex: 1 1 220px; min-width: 0; padding: 18px 20px; font: inherit; font-size: 18px; color: var(--ink); background: #fff; border: 0; border-radius: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; font-weight: 700; font-size: 17px; }
.form-msg.ok::before { content: "\2713  "; }

/* Footer */
.site-footer { border-top: 2px solid var(--line); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-weight: 700; color: var(--muted); }

/* Demo console */
.console { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; padding-bottom: 64px; align-items: start; }
@media (max-width: 900px) { .console { grid-template-columns: 1fr; } }
.card { background: #fff; border: 2px solid var(--line); border-bottom-width: 8px; border-radius: 28px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.card h2 { margin: 0; font-size: 28px; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.card .input { border: 2px solid var(--line); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.pill-green { background: var(--green-tint); color: var(--green-shade); }
.pill-yellow { background: var(--yellow-tint); color: var(--yellow-shade); }
.pill-pink { background: var(--pink-tint); color: var(--pink-shade); }
.sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sub-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--blue-tint); border-radius: 18px; border-bottom: 4px solid var(--blue-line); }
.sub-email { font-weight: 800; word-break: break-all; }
.sub-meta { font-size: 13px; color: var(--muted); }
.sub-actions { display: flex; gap: 8px; }
.empty { color: var(--muted); font-weight: 700; }
.preview-frame { width: 100%; height: 900px; border: 0; border-radius: 18px; background: var(--bg); }
.result-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.steps-live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.steps-live li { color: var(--muted); }
.steps-live li.on { color: var(--ink); }
.steps-live li.on::before { content: "\25CF  "; color: var(--accent); }
.err { color: #b91c1c; font-weight: 700; }
