/* AreWeToxic design system: pink cream + dark film panels + toxic-lime scan beam, hot pink brand. Mobile first. */
:root {
  --bg: #fff6f9; --bg2: #ffeaf2; --surface: #ffffff; --ink: #1c1a2e; --ink2: #3b3852; --muted: #6b6880; --line: #f2dfe7;
  --brand: #ff2e7e; --brand-ink: #e0136a; --brand-soft: #ffe0ee;
  --film: #15142a; --film2: #201e3a; --scan: #b6ff3b; --scan-soft: rgba(182, 255, 59, .16);
  --green: #12a971; --green-soft: #dcf6ea; --amber: #e9950c; --amber-soft: #fff1d6; --red: #ef3b55; --red-soft: #ffe3e7;
  --violet: #6f5cff; --violet-soft: #ebe8ff;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 2px rgba(28, 26, 46, .05), 0 8px 24px rgba(28, 26, 46, .07);
  --shadow-lg: 0 24px 60px rgba(28, 26, 46, .16);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 8.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { max-width: 100%; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.hl { background: linear-gradient(transparent 58%, rgba(182, 255, 59, .55) 58%); padding: 0 .08em; }
.hl-red { color: var(--brand); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 246, 249, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 1.2rem var(--display); text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--brand); font-weight: 800; }
.logo svg { width: 32px; height: 32px; flex: none; }
.navlink { font-weight: 600; font-size: .92rem; text-decoration: none; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.navlink:hover { background: var(--bg2); }

/* buttons */
.btn { --b: var(--brand); appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--b); color: #fff; font: 700 1.03rem var(--font); text-decoration: none; box-shadow: 0 6px 18px rgba(255, 46, 126, .32), inset 0 -2px 0 rgba(0, 0, 0, .12); transition: transform .15s, box-shadow .15s, background .15s; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-1px); background: var(--brand-ink); box-shadow: 0 10px 24px rgba(255, 46, 126, .38); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); }
.btn.shine::after { animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.btn.block { width: 100%; }
.btn.dark { background: var(--ink); box-shadow: 0 6px 18px rgba(28, 26, 46, .25); }
.btn.dark:hover { background: #2c2944; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg2); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: .92rem; white-space: nowrap; }
/* Guide headers (logo + Guides + "Get my score") on 360-400px phones: one line, no sideways scroll. */
@media (max-width: 400px) { .nav-right .navlink { padding: 10px 8px; } .nav-right .btn.sm { padding: 0 13px; } }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.linkbtn { background: none; border: 0; color: var(--ink2); font: 600 .9rem var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 6px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 10px; }

/* cards + pills */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .82rem; }
.pill.dark { background: var(--film); color: #fff; border-color: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .01em; }
.tag.red { background: var(--red-soft); color: #b71f37; } .tag.green { background: var(--green-soft); color: #0b7a51; }
.tag.amber { background: var(--amber-soft); color: #8a5800; } .tag.violet { background: var(--violet-soft); color: #4b39d6; } .tag.gray { background: #f3eaee; color: var(--ink2); }

/* film (dark scan) panel */
.film { background: radial-gradient(120% 80% at 50% 0%, #2a2752 0%, var(--film) 60%); color: #e9e8ff; border-radius: 26px; position: relative; overflow: hidden; }
.film::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
/* Scan beam: a full-height layer whose ::after band travels down via transform only (no layout shift). */
.beam { position: absolute !important; z-index: 3 !important; left: -10%; right: -10%; top: 0; height: 100%; animation: beam 3.6s cubic-bezier(.45, .05, .55, .95) infinite; pointer-events: none; z-index: 3; will-change: transform; }
.beam::after { content: ''; position: absolute; left: 0; right: 0; top: -90px; height: 90px; background: linear-gradient(180deg, transparent, var(--scan-soft) 70%, rgba(182, 255, 59, .55) 98%, transparent); border-bottom: 2px solid var(--scan); box-shadow: 0 6px 28px rgba(182, 255, 59, .55); }
@keyframes beam { from { transform: translateY(0); } to { transform: translateY(calc(100% + 90px)); } }

/* chat bubbles */
.bub { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .9rem; line-height: 1.35; position: relative; word-wrap: break-word; }
.bub.l { background: #2d2b4d; color: #f1f0ff; border-bottom-left-radius: 6px; align-self: flex-start; }
.bub.r { background: #5a4bf0; color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.quote { background: var(--bg); border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: 9px 12px; font-size: .92rem; position: relative; }
.quote .who { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.quote .ok { font-size: .7rem; font-weight: 700; color: var(--green); margin-left: 6px; }

/* forms */
label.field { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.input, textarea.input, select.input { width: 100%; margin-top: 6px; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: 500 1rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.err { color: #c21d36; background: var(--red-soft); border-radius: 12px; padding: 10px 12px; font-size: .9rem; font-weight: 600; margin: 10px 0; }
.err:empty { display: none; }

/* reveal (core.js adds .in) */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: .1s; } [data-reveal="3"] { transition-delay: .2s; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; z-index: 99; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* spinner */
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

footer.foot { padding: 34px 0 44px; border-top: 1px solid var(--line); margin-top: 30px; font-size: .88rem; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
footer.foot a { text-decoration: none; font-weight: 600; color: var(--ink2); padding: 8px 0; display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .beam { display: none; }
}
