/* Rate Me palette: hot pink -> coral on black. Scoped to pages that load this file;
   the old amber guides keep their look. */
body.rate-body, body.rate-home {
  --accent-amber: #ff2e7e;
  --accent-amber-light: #ff6fa6;
  --accent-amber-glow: rgba(255, 46, 126, .30);
  --accent-indigo: #7c3aed;
  --accent-indigo-glow: rgba(124, 58, 237, .22);
  --rate-grad: linear-gradient(135deg, #ff2e7e 0%, #ff6a3d 100%);
}
body.rate-body .btn, body.rate-home .btn, body.rate-home .nav-cta-btn {
  background: var(--rate-grad); color: #fff;
  box-shadow: 0 10px 30px rgba(255, 46, 126, .25);
}
body.rate-body .btn:hover, body.rate-home .btn:hover { box-shadow: 0 14px 40px rgba(255, 46, 126, .4); }
body.rate-body .btn.ghost, body.rate-home .btn.ghost { background: var(--bg-card-hover); color: var(--text-primary); box-shadow: none; }
body.rate-body .score.picked, body.rate-home .score.picked { background: var(--rate-grad); color: #fff; border-color: transparent; }
body.rate-body .prompt.picked, body.rate-home .prompt.picked { border-color: #ff2e7e; background: rgba(255, 46, 126, .14); }
body.rate-body .bar i, body.rate-home .bar i { background: var(--rate-grad); }
body.rate-home .hero-amber-text, body.rate-home .brand-name {
  background: var(--rate-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.rate-home .mesh-glow-1 { background: radial-gradient(circle, rgba(255, 46, 126, .18), transparent 70%); }
body.rate-home .mesh-glow-2 { background: radial-gradient(circle, rgba(255, 106, 61, .14), transparent 70%); }
body.rate-home .mesh-glow-3 { background: radial-gradient(circle, rgba(124, 58, 237, .14), transparent 70%); }
body.rate-home ::selection, body.rate-body ::selection { background: #ff2e7e; color: #fff; }
body.rate-home .pill-badge .status-dot-core, body.rate-home .pill-badge .status-dot-ping { background: #ff2e7e; }
body.rate-home .score-card { background: linear-gradient(160deg, rgba(255,46,126,.18), rgba(124,58,237,.12)), var(--bg-card); }
body.rate-home .score-chip-k { background: var(--rate-grad); color: #fff; }
body.rate-home .guide-cta a.store, body.rate-body .guide-cta a.store { background: var(--rate-grad) !important; color: #fff !important; }

/* "Rate me" mini app. Colours and fonts come from main.css tokens. */
.rate-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.rate-wrap {
  position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto;
  padding: max(2.5rem, 8vh) 1.25rem 2rem; flex: 1; text-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 1.1rem;
}
.rate-wrap h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.15; color: var(--text-primary); text-wrap: balance; }
.rate-wrap h1.big { font-size: clamp(4rem, 18vw, 6rem); line-height: 1; letter-spacing: -.03em; }
.rate-wrap h1.big span { font-size: .35em; color: var(--text-dim); letter-spacing: 0; }
.rate-wrap h2 { font-size: 1.4rem; color: var(--text-primary); }
.rate-wrap .eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-amber); }
.rate-wrap .label { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.rate-wrap .muted { color: var(--text-muted); }
.rate-wrap .small { font-size: .85rem; color: var(--text-dim); }
.rate-wrap .loop { margin-top: .5rem; font-weight: 600; color: var(--text-primary); }
.rate-wrap .loop em { font-style: normal; color: var(--accent-amber-light); }
.rate-wrap p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent-amber); color: #000; font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 0 0 0 var(--accent-amber-glow);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-amber-glow); }
.btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.btn.small { padding: .7rem 1.1rem; font-size: .95rem; }
.btn.ghost { background: var(--bg-card-hover); color: var(--text-primary); border: 1px solid var(--border-hover); }
.btn.ghost:hover { box-shadow: none; border-color: var(--accent-amber); }

.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: .5rem 0; }
.score {
  aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--border-subtle); cursor: pointer;
  background: var(--bg-card); color: var(--text-primary); font: inherit; font-weight: 800; font-size: 1.5rem;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.score:hover { background: var(--bg-card-hover); border-color: var(--accent-amber); transform: translateY(-2px); }
.score.picked { background: var(--accent-amber); color: #000; border-color: var(--accent-amber); }
.scores.done .score { pointer-events: none; opacity: .45; }
.scores.done .score.picked { opacity: 1; }

.thanks { margin-top: .5rem; padding: 1.5rem 1.25rem; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); display: grid; gap: .7rem; }
.thanks[hidden] { display: none; }

/* create form */
.form { display: grid; gap: 1rem; text-align: left; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: .4rem; }
.form input[type="text"] {
  width: 100%; padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--border-hover);
  background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 1.05rem;
}
.form input[type="text"]:focus { outline: none; border-color: var(--accent-amber); }
.prompts { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.prompt {
  padding: .85rem .9rem; border-radius: 14px; border: 1px solid var(--border-subtle); cursor: pointer;
  background: var(--bg-card); color: var(--text-primary); font: inherit; font-weight: 600; font-size: .95rem; text-align: left;
}
.prompt:hover { border-color: var(--border-hover); }
.prompt.picked { border-color: var(--accent-amber); background: rgba(245,158,11,.14); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-muted); }
.check input { margin-top: .25rem; accent-color: var(--accent-amber); }
.err { color: var(--accent-rose); font-size: .9rem; min-height: 1.2em; }

/* results */
.share-box { text-align: left; padding: 1.1rem; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); display: grid; gap: .6rem; }
.share-box label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.share-box .row { display: flex; gap: .5rem; }
.share-box .row .btn { flex: 1; }
.share-box input { flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--bg-black); color: var(--text-primary); font: inherit; font-size: .9rem; }
.bars { display: grid; gap: .35rem; text-align: left; }
.bar { display: grid; grid-template-columns: 1.6rem 1fr 2rem; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-dim); }
.bar i { display: block; height: 10px; border-radius: 999px; background: var(--accent-amber); min-width: 2px; transition: width 400ms; }
.bar em { font-style: normal; text-align: right; }
.result-card { padding: 1.5rem; border-radius: 20px; background: linear-gradient(160deg, rgba(245,158,11,.18), rgba(99,102,241,.14)); border: 1px solid var(--border-hover); display: grid; gap: .4rem; }
.result-card b { font-size: 2.2rem; color: var(--text-primary); }

.rate-foot { position: relative; z-index: 1; padding: 1.5rem; text-align: center; font-size: .8rem; color: var(--text-faint); }
.rate-foot a { color: var(--text-dim); text-decoration: none; }
.rate-foot a:hover { color: var(--accent-amber); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); padding: .7rem 1.1rem; border-radius: 999px; background: var(--text-primary); color: #000; font-weight: 600; font-size: .9rem; z-index: 50; opacity: 0; transition: opacity 200ms; pointer-events: none; }
.toast.show { opacity: 1; }

/* ---------- vibe pass: rounded display font, stickers, bounce ---------- */
body.rate-body, body.rate-home { --font-display: 'Fredoka', 'Plus Jakarta Sans', sans-serif; }
body.rate-body h1, body.rate-body h2, body.rate-body .btn, body.rate-body .score, body.rate-body .prompt, body.rate-body .label,
body.rate-home .hero-title, body.rate-home .section-title, body.rate-home .btn, body.rate-home .nav-cta-btn, body.rate-home .prompt,
body.rate-home .score-big, body.rate-home .score-label, body.rate-home .step-title, body.rate-home .bento-title, body.rate-home .faq-question,
body.rate-home .final-cta-title, body.rate-home .origin-title, body.rate-home .metric-number, body.rate-home .brand-name, body.rate-home .guide-head h1 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em;
}
body.rate-home .hero-title { font-weight: 700; }
body.rate-body h1.big, body.rate-home .score-big { font-weight: 700; }
.grad-text { background: var(--rate-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sticker { position: absolute; font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); pointer-events: none; user-select: none; animation: bob 4s ease-in-out infinite; }
.sticker-h { position: static; display: inline-block; font-size: .9em; transform: rotate(10deg); animation: wiggle 3s ease-in-out infinite; vertical-align: -.05em; }
.sticker-1 { top: -1.4rem; left: -1rem; transform: rotate(-12deg); }
.sticker-2 { right: -1.2rem; bottom: 4.5rem; transform: rotate(14deg); animation-delay: -1.3s; }
.sticker-3 { left: -1.6rem; bottom: 2rem; font-size: 2.2rem; transform: rotate(-6deg); animation-delay: -2.4s; }
.sticker-v { position: static; display: block; font-size: 3.4rem; margin: -.25rem auto .25rem; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes wiggle { 0%,100% { rotate: 10deg; } 50% { rotate: -6deg; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-3deg); } 100% { transform: scale(1.06); } }

body.rate-body .score, body.rate-home .prompt, body.rate-body .prompt { border-radius: 20px; border-width: 2px; }
body.rate-body .score:hover, body.rate-body .prompt:hover, body.rate-home .prompt:hover { transform: translateY(-3px) rotate(-1.5deg); }
body.rate-body .score.picked { animation: pop 350ms cubic-bezier(.2,1.4,.4,1) forwards; }
body.rate-body .btn, body.rate-home .btn, body.rate-home .nav-cta-btn { border-radius: 999px; transition: transform 180ms cubic-bezier(.2,1.4,.4,1), box-shadow 180ms; }
body.rate-body .btn:hover, body.rate-home .btn:hover, body.rate-home .nav-cta-btn:hover { transform: translateY(-2px) scale(1.03); }
body.rate-body .btn:active, body.rate-home .btn:active { transform: scale(.97); }
body.rate-home .score-card { transform: rotate(-2deg); border-radius: 28px; }
body.rate-home .score-chip { transform: rotate(6deg); }
body.rate-home .bento-card, body.rate-home .step-card { border-radius: 24px; transition: transform 200ms cubic-bezier(.2,1.4,.4,1), border-color 200ms; }
body.rate-home .bento-card:hover { transform: translateY(-4px) rotate(-1deg); }
body.rate-home .bento-card:nth-child(even):hover { transform: translateY(-4px) rotate(1deg); }
body.rate-home .form input[type="text"], body.rate-body .form input[type="text"] { border-radius: 18px; border-width: 2px; }
body.rate-body .thanks { border-radius: 24px; }

@media (prefers-reduced-motion: reduce) { .sticker, .sticker-h, .sticker-v, body.rate-body .score.picked { animation: none; } }

/* ---------- colour pass: deep violet -> pink background, confetti ---------- */
body.rate-body, body.rate-home {
  --bg-black: #14062b;
  --bg-card: rgba(255, 255, 255, 0.06);
  --bg-card-hover: rgba(255, 255, 255, 0.10);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.24);
  --text-secondary: #ebe3f5;
  --text-muted: #c9b8dc;
  --text-dim: #a893c4;
  --text-faint: #7d6b96;
  background: #14062b;
}
body.rate-body, body.rate-home { position: relative; }
body.rate-body::before, body.rate-home::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% 10%, rgba(255, 46, 126, .45), transparent 60%),
    radial-gradient(55vw 55vw at 10% 90%, rgba(255, 106, 61, .35), transparent 60%),
    radial-gradient(50vw 50vw at 50% 50%, rgba(124, 58, 237, .35), transparent 65%),
    linear-gradient(160deg, #1a0738 0%, #2a0b4e 45%, #3b0f4f 100%);
}
body.rate-home .ambient-mesh { display: none; }
body.rate-home .site-grain { opacity: .06; }
body.rate-home .site-header { background: rgba(20, 6, 43, .72); border-bottom-color: rgba(255,255,255,.08); }
body.rate-home .site-footer { background: rgba(10, 3, 22, .6); }
body.rate-home .nav-link { color: var(--text-muted); }
body.rate-home .nav-link:hover { color: #fff; }
body.rate-body .rate-wrap, body.rate-body .rate-foot, body.rate-home main, body.rate-home .site-footer { position: relative; z-index: 1; }
body.rate-home .guide-body > p:first-child { background: rgba(255,46,126,.12); border-left-color: #ff6fa6; }
body.rate-home .guide-body a { color: #ffb0cc; }
body.rate-home .guide-body li::marker, body.rate-home .crumbs a:hover { color: #ff6fa6; }
body.rate-home .guide-cta, body.rate-home .guide-more a, body.rate-home .hub-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
body.rate-home .guide-cta .store { background: linear-gradient(135deg, #ff2e7e 0%, #ff8a3d 100%) !important; color: #fff !important; }
body.rate-body .score, body.rate-home .prompt, body.rate-body .prompt { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
body.rate-body .score:hover, body.rate-home .prompt:hover, body.rate-body .prompt:hover { background: rgba(255,255,255,.14); border-color: #ff6fa6; }
body.rate-home .form input[type="text"], body.rate-body .form input[type="text"], body.rate-body .share-box input { background: rgba(0,0,0,.28); border-color: rgba(255,255,255,.2); }
body.rate-home .score-card { background: linear-gradient(160deg, rgba(255,46,126,.35), rgba(124,58,237,.35)), rgba(20,6,43,.6); border-color: rgba(255,255,255,.22); }
body.rate-home .metric-card, body.rate-home .step-card, body.rate-home .bento-card, body.rate-home .origin-card, body.rate-home .faq-item, body.rate-home .final-cta, body.rate-body .thanks, body.rate-body .share-box {
  background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); backdrop-filter: blur(10px);
}
body.rate-home .faq-answer p { color: var(--text-muted); }
body.rate-home .hairline { background: rgba(255,255,255,.1); }
body.rate-home .score-chip { background: #1a0738; }
body.rate-body .bar i, body.rate-home .bar i { background: linear-gradient(90deg, #ff2e7e, #ffb03d); }
body.rate-body .btn, body.rate-home .btn, body.rate-home .nav-cta-btn { background: linear-gradient(135deg, #ff2e7e 0%, #ff8a3d 100%); box-shadow: 0 10px 30px rgba(255, 46, 126, .35); }
body.rate-body .toast { background: #fff; color: #14062b; }
body.rate-home .hero-amber-text, body.rate-home .brand-name, .grad-text { background: linear-gradient(135deg, #ff6fa6 0%, #ffb03d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.rate-home .score-big, body.rate-body h1.big { color: #fff; }
body.rate-home .hero-title, body.rate-home .section-title, body.rate-body h1, body.rate-body h2 { color: #fff; }

/* emoji confetti after a vote */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti span { position: absolute; top: -8vh; font-size: 2rem; animation: fall 1.6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(540deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }
