/* =========================================================
   Slate Creek Roasters — launch alert pages
   Design tokens mirror the StormRush design system:
   neutral/primary/secondary ramps, Kanit italic display type,
   pill buttons with cyan→green gradient, 24px cards.
   ========================================================= */

:root {
  /* Neutral ramp (green-tinted darks) */
  --neutral-0: #020d07;
  --neutral-5: #0c130f;
  --neutral-10: #18251e;
  --neutral-15: #213028;
  --neutral-20: #2e4237;
  --neutral-30: #456353;
  --neutral-50: #7ba28d;
  --neutral-70: #a0bbac;
  --neutral-90: #b8ccc1;
  --neutral-100: #f3f6f5;

  /* Primary (electric green) */
  --primary-20: #0a6637;
  --primary-35: #0fa859;
  --primary-40: #12c468;
  --primary-50: #41f999;
  --primary-80: #98f5c5;

  /* Secondary (electric cyan) */
  --secondary-40: #0096a7;
  --secondary-50: #2eeaff;
  --secondary-80: #99f5ff;

  /* Accent (roast amber, used sparingly) */
  --amber: #f5b13d;

  /* Overlays */
  --overlay-04: rgba(255, 255, 255, 0.04);
  --overlay-08: rgba(255, 255, 255, 0.08);
  --overlay-16: rgba(255, 255, 255, 0.16);
  --text-64: rgba(255, 255, 255, 0.64);
  --text-40: rgba(255, 255, 255, 0.4);

  /* Semantic */
  --bg: var(--neutral-5);
  --surface: var(--neutral-10);
  --surface-2: var(--neutral-15);
  --text: var(--neutral-100);
  --text-muted: var(--text-64);
  --border: var(--overlay-08);
  --grad-cta: linear-gradient(90deg, #b9f6ff 0%, #6af1ab 55%, #41f999 100%);
  --grad-glow: radial-gradient(60% 60% at 70% 40%, rgba(65, 249, 153, 0.28) 0%, rgba(46, 234, 255, 0.10) 45%, rgba(12, 19, 15, 0) 75%);

  --font: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 24px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-btn: 0 4px 10px rgba(0, 0, 0, 0.16);
  --container: 1376px;
  --gutter: 32px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.display,
h1, h2, h3 {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
h1, .h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.04; font-weight: 700; text-transform: uppercase; }
h2, .h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
h3, .h3 { font-size: 22px; line-height: 1.16; }
p { margin: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(12, 13, 19, 0.32);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 15px;
  color: var(--neutral-100);
  align-self: flex-start;
}
.eyebrow svg { width: 16px; height: 16px; color: var(--primary-50); }
.grad-text {
  background: linear-gradient(90deg, var(--secondary-50), var(--primary-50) 60%, #f5f100);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 2px solid var(--secondary-50); outline-offset: 3px; }
.btn-primary {
  background: var(--grad-cta);
  color: var(--neutral-0);
  box-shadow: var(--shadow-btn), 0 0 24px rgba(65, 249, 153, 0.25);
  padding: 9px 16px;
  font-size: 14px;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  background: var(--overlay-08);
  color: var(--neutral-100);
  padding: 9px 16px;
  font-size: 14px;
}
.btn-ghost:hover { background: var(--overlay-16); }
.btn-lg { padding: 14px 40px; font-size: 22px; text-transform: uppercase; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 19, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word {
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.header-nav { display: flex; align-items: center; gap: 8px; }
.header-nav .nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}
.header-nav .nav-link:hover { color: var(--text); background: var(--overlay-04); }

/* ---------- Hero banners (3-up like the source) ---------- */
.hero { padding: 24px 0 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
  isolation: isolate;
}
.banner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 13, 7, 0.92) 0%, rgba(2, 13, 7, 0.62) 50%, rgba(2, 13, 7, 0.15) 100%);
}
.banner-main {
  grid-row: span 2;
  min-height: 560px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.banner-main::after {
  background:
    linear-gradient(90deg, rgba(2, 13, 7, 0.95) 0%, rgba(2, 13, 7, 0.78) 45%, rgba(2, 13, 7, 0.2) 100%),
    var(--grad-glow);
}
.banner-main .lead { font-size: 18px; color: var(--neutral-90); max-width: 30ch; text-transform: uppercase; letter-spacing: 0.02em; }
.banner-main h1 { max-width: 12ch; }
.banner-main > *:not(.banner-bg):not(.banner-product) { position: relative; z-index: 1; }
.banner-main .signup { max-width: 460px; }
.banner-product {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: min(30%, 250px);
  height: auto;
  z-index: 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(65, 249, 153, 0.25));
}
.banner-side {
  min-height: 272px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}
.banner-side .big {
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
}
.banner-side p { color: var(--neutral-90); font-size: 17px; max-width: 26ch; }

/* ---------- Signup form ---------- */
.signup { width: 100%; max-width: 520px; }
.signup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: rgba(2, 13, 7, 0.6);
  border: 1px solid var(--overlay-16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.signup-row input[type="email"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  padding: 10px 16px;
  font-size: 16px;
}
.signup-row input::placeholder { color: var(--text-40); }
.signup-row:focus-within { border-color: var(--primary-50); box-shadow: 0 0 0 3px rgba(65, 249, 153, 0.18); }
.signup .btn-primary { padding: 12px 24px; font-size: 16px; text-transform: uppercase; font-weight: 600; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.consent input { margin-top: 2px; accent-color: var(--primary-40); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--primary-80); }
.form-msg { min-height: 20px; margin-top: 8px; font-size: 14px; }
.form-msg.error { color: #ff8a8a; }
.form-msg.ok { color: var(--primary-50); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Category pill bar ---------- */
.chips {
  display: flex;
  gap: 8px;
  margin: 32px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 112px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--overlay-04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  flex: 1;
}
.chip svg { width: 24px; height: 24px; color: var(--neutral-70); }
.chip strong { color: var(--text); font-weight: 500; font-size: 15px; font-style: italic; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { margin: 12px auto 0; max-width: 60ch; color: var(--text-muted); }

/* Perks — illustrated feature trio */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.perk { text-align: center; }
.perk-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--surface);
}
.perk-media img { width: 100%; height: 100%; object-fit: cover; }
.perk-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 19, 15, 0) 40%, rgba(12, 19, 15, 0.85) 100%);
}
.perk h3 { margin-bottom: 8px; }
.perk p { color: var(--text-muted); max-width: 36ch; margin: 0 auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: var(--neutral-0);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); }

/* Spec + product block */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.product-visual {
  position: relative;
  border-radius: var(--radius-card);
  background: radial-gradient(70% 70% at 50% 45%, rgba(65, 249, 153, 0.22) 0%, rgba(46, 234, 255, 0.08) 40%, var(--neutral-10) 72%);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  padding: 48px 24px;
  min-height: 460px;
}
.product-visual img { width: min(70%, 320px); height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.product-visual .render-note {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 12px;
  color: var(--text-40);
}
.specs {
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
}
.specs h3 { margin-bottom: 20px; }
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list span:first-child { color: var(--text-muted); }
.spec-list span:last-child { text-align: right; font-weight: 500; }

/* Reward tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier.featured {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-cta) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 40px rgba(65, 249, 153, 0.12);
}
.badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--overlay-08);
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
  color: var(--neutral-90);
}
.tier.featured .badge { background: var(--grad-cta); color: var(--neutral-0); }
.tier .price {
  font-style: italic;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
}
.tier .price small { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.tier ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--neutral-90); font-size: 15px; }
.tier li { display: flex; gap: 8px; }
.tier li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--primary-40) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23020d07' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.tiers-note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--text-40); }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 8px; }
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0 24px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--neutral-70);
  border-bottom: 2px solid var(--neutral-70);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 20px; color: var(--text-muted); }

/* Big CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 72px 100px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.cta-banner .banner-bg { object-position: center 60%; }
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 13, 7, 0.96) 0%, rgba(2, 13, 7, 0.8) 45%, rgba(0, 81, 90, 0.35) 100%);
}
.cta-banner h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 14ch; }
.cta-banner .sub { font-style: italic; font-size: 22px; color: var(--text-muted); }

/* Footer */
.site-footer { padding: 96px 0 40px; text-align: center; }
.site-footer .logo { justify-content: center; margin-bottom: 28px; }
.site-footer .logo-mark { width: 48px; height: 48px; }
.site-footer .logo-word { font-size: 22px; }
.legal { max-width: 940px; margin: 0 auto; display: grid; gap: 12px; font-size: 14px; color: var(--text-muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 48px;
  margin: 36px 0 20px;
}
.footer-links a { font-style: italic; color: var(--text-muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); }
.copyright { font-style: italic; font-size: 15px; }
.credits { margin-top: 16px; font-size: 12px; color: var(--text-40); }
.credits a { color: var(--text-40); }

/* Legal pages */
.doc { max-width: 820px; margin: 0 auto; padding: 56px 0 24px; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); text-transform: none; font-weight: 500; margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 36px 0 12px; }
.doc p, .doc li { color: var(--neutral-90); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: var(--primary-80); }
.doc .updated { color: var(--text-40); font-size: 14px; }

/* Thank-you */
.thanks {
  min-height: calc(100vh - 64px - 260px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.thanks .check {
  width: 88px; height: 88px; margin: 0 auto 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-cta);
  box-shadow: 0 0 60px rgba(65, 249, 153, 0.35);
}
.thanks h1 { text-transform: none; font-weight: 500; margin-bottom: 12px; }
.thanks p { color: var(--text-muted); max-width: 48ch; margin: 0 auto 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .banner-main { grid-column: span 2; grid-row: auto; min-height: 520px; }
  .banner-side { min-height: 240px; }
  .cta-banner { padding: 56px 48px; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .header-nav .nav-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .banner-main { grid-column: auto; padding: 32px 24px; min-height: 0; }
  .banner-main::after { background: linear-gradient(180deg, rgba(2, 13, 7, 0.92) 0%, rgba(2, 13, 7, 0.75) 55%, rgba(2, 13, 7, 0.35) 100%), var(--grad-glow); }
  .banner-product { width: 140px; right: 50%; top: auto; transform: translateX(50%); bottom: 24px; }
  .banner-side { padding: 24px; min-height: 200px; }
  .perks, .steps, .tiers, .product { grid-template-columns: 1fr; }
  .product-visual { min-height: 360px; }
  .section { padding-top: 64px; }
  .cta-banner { padding: 40px 24px; min-height: 0; }
  .chip { min-width: 104px; }
}
@media (max-width: 480px) {
  .signup-row { flex-direction: column; border-radius: 20px; }
  .signup .btn-primary { width: 100%; }
  .logo-word { font-size: 13px; }
  .btn-lg { font-size: 18px; padding: 12px 28px; }
  .specs, .step, .tier { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Source / disclosure links inside banners */
.banner-main .small a { color: var(--primary-80); }
.tiers-note a { color: var(--primary-80); }

/* =========================================================
   Registration page (mirrors StormRush sign-up layout,
   without social login)
   ========================================================= */
:root { --accent-link: #f5f100; }
.reg-page { min-height: 100vh; display: flex; flex-direction: column; }
.reg-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--gutter) 0;
  min-height: 90px;
}
.reg-back {
  position: absolute;
  left: 72px;
  top: 40px;
  font-size: 22px;
  padding: 9px 20px 9px 16px;
}
.reg-back svg { width: 20px; height: 20px; }
.reg-top h1 { font-size: 34px; font-weight: 500; text-transform: none; }
.reg-wrap { width: 100%; max-width: 440px; margin: 0 auto; padding: 32px 16px 64px; flex: 1; }
.reg-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  min-height: 140px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 24px;
}
.reg-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.reg-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(2,13,7,.95) 0%, rgba(2,13,7,.7) 55%, rgba(2,13,7,.1) 100%);
}
.reg-banner .t1 { font-style: italic; font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; }
.reg-banner .t2 { font-style: italic; font-weight: 700; font-size: 40px; line-height: 1.05; }
.reg-banner .t3 { font-size: 13px; color: var(--neutral-90); margin-top: 6px; }

.reg-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--text-muted); }
.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--overlay-16);
  background: var(--neutral-10);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f6f5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field select:invalid { color: var(--text-40); }
.field option { color: var(--neutral-0); }
.field input::placeholder { color: var(--text-64); }
.field input:focus, .field select:focus { border-color: var(--primary-50); box-shadow: 0 0 0 3px rgba(65, 249, 153, .15); }
.field.has-error input, .field.has-error select { border-color: #ff8a8a; }
.field .err { font-size: 12px; color: #ff8a8a; min-height: 0; }

.divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text-muted);
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--overlay-16); }

.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chips label { cursor: pointer; }
.interest-chips label { position: relative; }
.field .interest-chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.interest-chips span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--overlay-08);
  border: 1px solid transparent;
  font-size: 13px;
  font-style: italic;
  font-weight: 500;
  color: var(--neutral-90);
  transition: background .15s, border-color .15s, color .15s;
}
.interest-chips input:checked + span { background: rgba(65, 249, 153, .14); border-color: var(--primary-50); color: var(--text); }
.interest-chips input:focus-visible + span { outline: 2px solid var(--secondary-50); outline-offset: 2px; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12px; font-weight: 500; line-height: 1.4; color: var(--neutral-98, #dce5e0);
  cursor: pointer;
}
.check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 18px; height: 18px; margin: 1px 0 0;
  border: 1px solid var(--neutral-70); border-radius: 4px; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--primary-50); border-color: var(--primary-50); }
.check input:checked::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--neutral-0); border-bottom: 2px solid var(--neutral-0);
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible { outline: 2px solid var(--secondary-50); outline-offset: 2px; }
.check a { color: var(--accent-link); text-decoration: none; }
.check a:hover { text-decoration: underline; }

.btn-block { width: 100%; height: 50px; font-size: 22px; }
.btn-primary:disabled {
  background: var(--overlay-16);
  color: var(--text-64);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.reg-foot { text-align: center; font-size: 14px; }
.reg-foot a { color: var(--accent-link); text-decoration: none; }
.reg-note { text-align: center; font-size: 12px; color: var(--text-40); }

@media (max-width: 860px) {
  .reg-top { flex-direction: column; gap: 20px; padding-top: 20px; }
  .reg-back { position: static; align-self: flex-start; font-size: 18px; }
  .reg-top h1 { font-size: 30px; }
  .reg-wrap { padding-top: 20px; }
}

/* Password field with show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--neutral-70); cursor: pointer;
  display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text); background: var(--overlay-08); }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle[aria-pressed="true"] { color: var(--primary-50); }
.pw-hint { font-size: 12px; color: var(--text-40); }
.field.has-error .pw-hint { color: #ff8a8a; }
