/* ============================================================
   Mahaul — Coming Soon Landing Page
   ------------------------------------------------------------
   Palette : warm cream · raspberry crimson · olive · gold
   Type    : Playfair Display (display) + Poppins (UI/body)
   ============================================================ */

:root {
  --cream:        #FAF5F0;   /* warm off-white — the page ground */
  --surface:      #FFFFFF;
  --ink:          #1C1A2E;   /* headings */
  --body:         #6B6660;   /* body copy */
  --crimson:      #C2185B;   /* primary accent */
  --crimson-deep: #9E1748;
  --olive:        #4E5A35;
  --gold:         #C6A24A;
  --tint:         #FBEAF0;   /* soft pink fill */
  --tint-2:       #F6D8E1;
  --tint-soft:    #FDF3F7;   /* lighter pink for the feature band */
  --blush:        #FBEFF3;   /* footer wash */
  --line:         #E8DFD1;   /* warm hairline */
  --line-pink:    #F0D6DE;
  --sep:          rgba(158, 23, 72, 0.10);  /* subtle feature separators */

  --radius-input: 12px;      /* inputs + buttons */
  --radius:       16px;      /* role cards */
  --radius-lg:    24px;      /* large card */
  --radius-media: 20px;      /* before/after component */
  --radius-sm:    8px;       /* chips, listbox rows */

  --shadow-sm: 0 4px 14px rgba(120, 60, 70, 0.06);
  --shadow:    0 22px 55px rgba(120, 45, 65, 0.10);
  --shadow-media: 0 20px 48px rgba(120, 45, 65, 0.16);
  --shadow-pop: 0 18px 40px rgba(120, 45, 65, 0.16);  /* popovers */
  --shadow-cta: 0 16px 32px rgba(194, 24, 91, 0.34);

  /* Every text control resolves to one height, so rows always line up. */
  --field-h: 56px;
  --ring:       0 0 0 4px rgba(194, 24, 91, 0.10);
  --ring-error: 0 0 0 4px rgba(194, 24, 91, 0.09);

  /* One curve and one duration for every state change on the page. */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: .14s;
  --t:      .2s;
  --t-slow: .3s;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:  "Poppins", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;            /* focused, centered premium canvas */
  --gutter: clamp(20px, 5vw, 56px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }

/* Scroll lock while the success card is up, without the width reflow
   that setting overflow:hidden alone would cause on desktop. */
body.is-locked { overflow: hidden; }

/* Visible to screen readers only. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The native control a JS widget has replaced. It stays in the DOM to
   hold the value and to submit normally if the module never boots. */
.is-source-hidden { display: none !important; }

/* ---------- Decorative mandalas ---------- */
.mandala {
  position: fixed;
  width: 440px; height: 440px;
  color: var(--crimson);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.mandala svg { width: 100%; height: 100%; }
.mandala--tr { top: -130px; right: -120px; }
.mandala--bl { bottom: -150px; left: -160px; opacity: 0.028; }

/* ---------- Page wrapper ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(12px, 1.4vw, 18px) var(--gutter) 0;
}

/* ---------- Shared lotus mark ---------- */
.lotus { width: 32px; height: 19px; flex-shrink: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header { padding: 0 0 clamp(8px, 1vw, 14px); text-align: center; }
.brand { display: inline-block; }
.brand__logo {
  height: clamp(52px, 4.2vw, 66px);
  width: auto;
}

/* ============================================================
   Hero — centered narrative: eyebrow → headline → image → value prop
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(9px, 1.1vw, 14px);
  padding-bottom: clamp(18px, 2vw, 30px);
}

/* Eyebrow — "Coming Soon" flanked by lotus marks + hairlines */
.hero__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--crimson);
  width: clamp(260px, 34vw, 380px);
}
.hero__eyebrow-line { height: 1px; flex: 1; background: currentColor; opacity: 0.38; }
.hero__eyebrow .lotus { width: 24px; height: 15px; flex-shrink: 0; }
.hero__eyebrow-text {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; white-space: nowrap;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 800;
  color: var(--ink);
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.hero__title .accent { color: var(--crimson); }
.hero__lead {
  font-size: clamp(1.02rem, 1.15vw, 1.18rem);
  line-height: 1.55;
  color: var(--body);
  margin: 0;
  max-width: 62ch;
}

/* Before / After slider — dominant centerpiece, sized to the viewport */
.hero__media { width: 100%; display: flex; justify-content: center; margin-top: clamp(2px, 0.5vw, 6px); }
.ba-slider {
  position: relative;
  height: clamp(300px, 43vh, 520px);        /* height-driven so it fills, not overflows, the fold */
  aspect-ratio: 16 / 10;
  max-width: min(100%, 1120px);
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-media);
  user-select: none;
  touch-action: none;
  background: #e9e1d6;
}
.ba-slider__img { position: absolute; inset: 0; }
.ba-slider__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider__img--before { clip-path: inset(0 50% 0 0); }
.ba-badge {
  position: absolute;
  top: 11px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.16);
  z-index: 2;
}
.ba-badge--before { left: 11px; background: var(--surface); color: var(--ink); }
.ba-badge--after  { right: 11px; background: var(--crimson); color: #fff; }

.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: none;
  box-shadow: 0 5px 16px rgba(0,0,0,0.24);
  display: grid; place-items: center;
  color: var(--crimson);
  z-index: 3;
  touch-action: none;
}
.ba-handle svg { width: 17px; height: 17px; }
.ba-handle::before, .ba-handle::after {
  content: "";
  position: absolute; left: 50%;
  width: 2px; height: 50vh;
  background: var(--surface);
  transform: translateX(-50%);
}
.ba-handle::before { bottom: 100%; }
.ba-handle::after  { top: 100%; }
.ba-handle:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; }

/* ============================================================
   Early-access card — centered header, full-width form
   ============================================================ */
.signup-card {
  position: relative;
  max-width: 1120px;
  margin: 0 auto clamp(30px, 4vw, 48px);
  padding: clamp(28px, 3vw, 44px) clamp(28px, 3.4vw, 56px) clamp(26px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line-pink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  scroll-margin-top: 24px;
}
.signup-card__head {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
  margin-bottom: clamp(22px, 2.6vw, 32px);
}
.signup-card__badge {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--crimson);
  background: var(--tint);
  border: 1px solid var(--line-pink);
  padding: 5px 14px; border-radius: 999px;
}
.signup-card__title {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink);
  font-size: clamp(1.8rem, 2.8vw, 2.3rem); line-height: 1.1;
}
.signup-card__sub { font-size: 1.02rem; line-height: 1.5; color: var(--body); margin: 0; max-width: 46ch; }

.signup-form { min-width: 0; max-width: 940px; margin: 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.field-label, .form-field > label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}
.field-label { margin-bottom: 12px; }
.form-field > label { margin-bottom: 8px; }
.muted { color: var(--body); font-weight: 400; }
.req { color: var(--crimson); font-weight: 600; margin-left: 1px; }

/* Helper text under a field, above its error slot. */
.field-hint {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--body);
  margin-top: 7px;
}

/* Role cards */
/* margin is small because #roleError below reserves its own space */
.role-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 6px; }
.role-card {
  position: relative;
  background: #FCF9F5;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 15px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
  opacity: 0.78;                    /* inactive cards recede */
  filter: saturate(0.75);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), opacity var(--t) var(--ease),
              filter var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.role-card:hover {
  border-color: var(--tint-2);
  background: var(--surface);
  opacity: 1;
  filter: none;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.role-card.is-selected {
  border-color: var(--crimson);
  background: var(--tint);
  opacity: 1;
  filter: none;
  box-shadow: 0 16px 32px rgba(194, 24, 91, 0.22);
  transform: translateY(-2px) scale(1.02);
}
.role-card:active { transform: translateY(0) scale(0.99); }
.role-card__icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--tint);
  display: grid; place-items: center;
  color: var(--crimson);
  margin-bottom: 2px;
  transition: transform var(--t) var(--ease-out), background var(--t) var(--ease);
}
.role-card:hover .role-card__icon { transform: scale(1.04); }
.role-card.is-selected .role-card__icon { background: #F6CFDD; transform: scale(1.08); }
.role-card__icon svg { width: 25px; height: 25px; }
.role-card:nth-child(2) .role-card__icon { color: var(--gold);  background: #F5EDD9; }
.role-card:nth-child(3) .role-card__icon { color: var(--olive); background: #E8ECDD; }
.role-card:nth-child(2).is-selected .role-card__icon { background: #EFE2C2; }
.role-card:nth-child(3).is-selected .role-card__icon { background: #DCE3CB; }
.role-card__title { font-weight: 600; color: var(--body); font-size: 0.98rem; transition: color var(--t) var(--ease); }
.role-card.is-selected .role-card__title { color: var(--ink); }
.role-card__desc  { font-size: 0.8rem; color: var(--body); line-height: 1.35; text-wrap: balance; }
.role-card__check {
  position: absolute; top: 11px; right: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--crimson);
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.role-card__check svg { width: 14px; height: 14px; }
.role-card.is-selected .role-card__check { opacity: 1; transform: scale(1); }

/* City + State sit side by side; the seller row above is disclosed. */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; margin-bottom: 18px; }
.form-field { min-width: 0; }
.email-field { margin-bottom: 0; }

.input-wrap { position: relative; display: flex; }
.input-icon {
  position: absolute; top: 50%; left: 15px;
  transform: translateY(-50%);
  color: var(--crimson); opacity: 0.72;
  pointer-events: none; display: flex;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}
.input-wrap:focus-within .input-icon { opacity: 1; }
.input-icon svg { width: 20px; height: 20px; }
.input-icon--right { left: auto; right: 15px; }

input[type="text"], input[type="email"], select, .combo__input, .ms__control {
  width: 100%;
  min-height: var(--field-h);
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-input);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  appearance: none;
}
.input-wrap input, .select-wrap select { padding-left: 44px; }
.select-wrap select { padding-left: 16px; padding-right: 44px; }
input::placeholder { color: #A7A099; }
select:invalid { color: #A7A099; }
input:focus, select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: var(--ring);
}
.input-field-error input,
.input-field-error select,
.input-field-error .ms__control {
  border-color: var(--crimson);
  box-shadow: var(--ring-error);
}

/* Email + submit */
.email-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
.email-row .input-wrap { width: 100%; }
.btn-notify {
  position: relative;
  overflow: hidden;                 /* clips the hover sheen */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 210px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: #fff;
  border: none; border-radius: var(--radius-input);
  padding: 0 clamp(36px, 3.5vw, 56px);
  min-height: var(--field-h);
  font-weight: 600; font-size: 1.08rem; letter-spacing: 0.3px;
  box-shadow: var(--shadow-cta);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease),
              filter var(--t) var(--ease), opacity var(--t) var(--ease);
}
/* A light sweeps across on hover — the "ripple", but calmer. */
.btn-notify::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn-notify:hover:not(:disabled)::after { transform: translateX(100%); }
.btn-notify:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 20px 40px rgba(158,23,72,0.42); transform: translateY(-2px); }
.btn-notify:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 10px 22px rgba(158,23,72,0.34); }
.btn-notify:disabled { opacity: 0.72; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-notify > svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-notify__label { white-space: nowrap; }

/* Loading — the paper-plane swaps for a spinner in the same slot,
   so the button never changes size mid-submit. */
.btn-notify__spinner {
  display: none;
  width: 20px; height: 20px;
  flex-shrink: 0;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-notify.is-loading .btn-notify__icon { display: none; }
.btn-notify.is-loading .btn-notify__spinner { display: block; }
.btn-notify.is-done .btn-notify__icon { display: none; }
.btn-notify.is-done { opacity: 1; background: linear-gradient(135deg, var(--olive) 0%, #3C4629 100%); }

@keyframes spin { to { transform: rotate(360deg); } }

.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--body); font-size: 0.9rem;
  margin: 20px 0 0;
}
.privacy-note svg { width: 17px; height: 17px; opacity: 0.7; }

/* ============================================================
   Features — supportive band below the conversion card
   ============================================================ */
.features-section {
  max-width: 1120px;
  margin: 0 auto clamp(26px, 3vw, 40px);
  padding: clamp(32px, 3.4vw, 46px) clamp(24px, 3vw, 48px);
  background: var(--tint-soft);
  border: 1px solid var(--line-pink);
  border-radius: var(--radius-lg);
  scroll-margin-top: 24px;
}
.features {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.feature {
  position: relative;
  text-align: center;
  padding: 4px clamp(14px, 1.8vw, 24px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.feature + .feature::before {
  content: "";
  position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 1px; background: var(--sep);
}
.feature__icon { color: var(--crimson); line-height: 0; }
.feature__icon svg { width: 30px; height: 30px; }
.feature__title { font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.4; text-wrap: balance; margin-top: 2px; }
.feature__desc  { font-size: 0.82rem; color: var(--body); line-height: 1.5; }

/* ============================================================
   Closing tagline
   ============================================================ */
.closing-tagline {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--crimson);
  font-family: var(--font-serif);
  font-weight: 600; font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  text-align: center;
  padding: clamp(4px, 1.2vw, 10px) 0 clamp(26px, 3.4vw, 40px);
}
.closing-tagline .lotus { color: var(--crimson); width: 34px; height: 20px; }

/* ============================================================
   Footer — light, premium, minimal
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
  border-top: 1px solid var(--line-pink);
  padding: clamp(40px, 5vw, 58px) var(--gutter) 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 1.1fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
  padding-bottom: clamp(30px, 3.4vw, 44px);
}
.footer-brand { max-width: 44ch; }
.footer-logo { display: inline-block; }
.footer-logo img { height: clamp(72px, 7vw, 94px); width: auto; }
.footer-desc { color: var(--body); font-size: 0.95rem; line-height: 1.55; margin: 14px 0 20px; }

/* Quick links */
.footer-links__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-links__list a {
  color: var(--body); font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .18s, transform .18s;
}
.footer-links__list a::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tint-2); flex-shrink: 0; transition: background .18s;
}
.footer-links__list a:hover { color: var(--crimson); transform: translateX(2px); }
.footer-links__list a:hover::before { background: var(--crimson); }

.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-pink);
  background: var(--surface);
  display: grid; place-items: center; color: var(--crimson);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, background .18s, color .18s, box-shadow .18s, border-color .18s;
}
.footer-social a:hover {
  background: var(--crimson); border-color: var(--crimson); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(194,24,91,0.28);
}
.footer-social svg { width: 19px; height: 19px; }

.footer-heading { font-family: var(--font-serif); color: var(--ink); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.footer-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact__list li { display: flex; align-items: center; gap: 12px; color: var(--body); font-size: 0.95rem; }
.footer-contact__list a { transition: color .18s; }
.footer-contact__list a:hover { color: var(--crimson); }
.footer-contact__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tint); color: var(--crimson);
  display: grid; place-items: center; flex-shrink: 0;
}
.footer-contact__icon svg { width: 18px; height: 18px; }

.footer-bottom { border-top: 1px solid var(--line-pink); padding: 18px 0 22px; text-align: center; }
.footer-bottom p { margin: 0; color: var(--body); font-size: 0.88rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .features { grid-template-columns: repeat(3, 1fr); column-gap: 16px; row-gap: 30px; }
  .feature + .feature::before { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px 40px; }
  .footer-brand { grid-column: 1 / -1; max-width: 60ch; }
}

@media (max-width: 760px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  /* On narrow screens size the image by width, not viewport height */
  .ba-slider { height: auto; width: 100%; aspect-ratio: 4 / 3; }
  .role-cards { gap: 12px; }
}

/* Below this the three role cards can no longer hold their copy side
   by side without hyphenating, so they stack. */
@media (max-width: 660px) {
  .role-cards { grid-template-columns: 1fr; }
  .role-card { padding: 14px 16px 13px; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .email-row { grid-template-columns: 1fr; gap: 14px; }
  .btn-notify { width: 100%; padding: 14px; }
  .hero__title { font-size: clamp(2.2rem, 8.5vw, 2.9rem); }
  .footer-inner { grid-template-columns: 1fr; }
  .signup-card { padding-left: 22px; padding-right: 22px; }
}

@media (max-width: 420px) {
  .features { grid-template-columns: 1fr; row-gap: 24px; }
  .feature { padding-bottom: 4px; }
  .feature + .feature { border-top: 1px solid var(--line-pink); padding-top: 22px; }
}

/* 320px — the narrowest viewport we support. Reclaim horizontal space
   before anything is forced to overflow. */
@media (max-width: 380px) {
  .signup-card { padding-left: 18px; padding-right: 18px; }
  .features-section { padding-left: 18px; padding-right: 18px; }
  .hero__title { font-size: clamp(1.85rem, 7.8vw, 2.4rem); }
  .closing-tagline { gap: 10px; }
  .closing-tagline .lotus { width: 26px; height: 16px; }
  .footer-social { gap: 9px; }
}

/* ============================================================
   Progressive disclosure
   ------------------------------------------------------------
   0fr → 1fr animates to the content's natural height without
   measuring it, so revealing a field never jumps the page.
   ============================================================ */
.disclose {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out),
              opacity var(--t-slow) var(--ease), margin-bottom var(--t-slow) var(--ease-out);
  opacity: 0;
  margin-bottom: 0;
}
.disclose[hidden] { display: none; }
.disclose__inner { overflow: hidden; min-height: 0; }
.disclose.is-open { grid-template-rows: 1fr; opacity: 1; margin-bottom: 18px; }
/* Clipping is only needed while the height animates. Once open we must
   let it go, or the field's dropdown gets cut off — and, worse, focusing
   inside a clipped box makes the browser scroll it, hiding the label. */
.disclose.is-settled .disclose__inner { overflow: visible; }

/* ============================================================
   Inline field messages
   ------------------------------------------------------------
   The slot is always laid out — only its contents fade in — so an
   appearing message never nudges anything below it. Tone is set from
   JS via data-tone; the icon comes with it, so no markup changes.
   ============================================================ */
.field-note {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 1.35em;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.field-note.is-shown { opacity: 1; transform: none; }
.field-note::before {
  /* Sized in a fixed em box so error and confirmation text align. */
  display: inline-block;
  width: 1.05em;
  font-weight: 700;
}
.field-note[data-tone="error"] { color: var(--crimson); }
.field-note[data-tone="error"]::before { content: "⚠"; }
.field-note[data-tone="ok"] { color: var(--olive); }
.field-note[data-tone="ok"]::before { content: "✓"; }

/* Email typo suggestion */
.field-suggest {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--body);
  margin: 8px 0 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
/* An author `display` beats the UA's [hidden] rule, so restate it — without
   this the box keeps its space and screen readers read the empty template. */
.field-suggest[hidden] { display: none; }
.field-suggest.is-shown { opacity: 1; transform: none; }
.field-suggest__btn {
  border: none;
  background: var(--tint);
  color: var(--crimson);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.field-suggest__btn:hover { background: var(--crimson); color: #fff; }

/* ============================================================
   Listbox popover — shared by the combobox and the multi-select
   ============================================================ */
.combo, .ms { position: relative; }

.combo__list, .ms__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  max-height: 244px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-pink);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-pop);
  animation: popIn .16s var(--ease-out);
}
.combo__list[hidden], .ms__list[hidden] { display: none; }

.combo__opt, .ms__opt {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; gap: 9px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.combo__opt.is-active, .ms__opt.is-active { background: var(--tint); color: var(--crimson-deep); }
.combo__opt[aria-selected="true"] { font-weight: 600; color: var(--crimson); }
.combo__empty {
  padding: 12px;
  font-size: 0.88rem;
  color: var(--body);
  text-align: center;
}

.combo__chevron { transition: transform var(--t) var(--ease); cursor: pointer; pointer-events: auto; }
.combo.is-open .combo__chevron { transform: translateY(-50%) rotate(180deg); }
/* The combo has no leading icon, so undo the .input-wrap indent it
   would otherwise inherit; the chevron needs the room on the right. */
.combo__wrap .combo__input { padding-left: 16px; padding-right: 44px; }

@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Multi-select — chips inside a field-shaped control
   ============================================================ */
.ms__control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  cursor: text;
}
.ms.is-open .ms__control,
.ms.is-focused .ms__control {
  border-color: var(--crimson);
  box-shadow: var(--ring);
}
.ms__input {
  flex: 1 1 8ch;
  min-width: 8ch;
  min-height: 32px;
  border: none;
  background: transparent;
  padding: 0 4px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
}
.ms__input:focus { outline: none; box-shadow: none; }

.ms__chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tint);
  border: 1px solid var(--line-pink);
  color: var(--crimson-deep);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 5px 6px 5px 11px;
  border-radius: var(--radius-sm);
  animation: chipIn .16s var(--ease-out);
}
.ms__chip-x {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--crimson);
  padding: 0;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.ms__chip-x:hover { background: var(--crimson); color: #fff; }
.ms__chip-x svg { width: 10px; height: 10px; }

.ms__tick {
  display: grid; place-items: center;
  width: 17px; height: 17px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  color: transparent;
  background: var(--surface);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.ms__tick svg { width: 11px; height: 11px; }
.ms__opt.is-selected .ms__tick {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.ms__opt--custom { color: var(--crimson); font-weight: 500; }
.ms__other-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--tint);
  color: var(--crimson);
  border: 1px solid var(--line-pink);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

@keyframes chipIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: none; } }

/* ============================================================
   Accessibility — visible keyboard focus states (additive)
   ============================================================ */
.role-card:focus-visible,
.btn-notify:focus-visible,
.footer-social a:focus-visible,
.footer-links__list a:focus-visible,
.footer-contact__list a:focus-visible,
.brand:focus-visible,
.footer-logo:focus-visible,
.modal__close-btn:focus-visible,
.modal__x:focus-visible,
.field-suggest__btn:focus-visible,
.ms__chip-x:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 2px;
  border-radius: 6px;
}
/* Selected role card already carries a crimson border — offset the ring
   outward so the two never sit on top of each other. */
.role-card:focus-visible { outline-offset: 3px; }

/* ============================================================
   Success modal
   ============================================================ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* Fade in and out under JS control (.is-open / .is-closing) rather than
   a one-shot animation, so dismissal is as smooth as arrival. */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 46, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
}
.modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line-pink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(30px, 5vw, 44px) clamp(24px, 4vw, 40px) clamp(26px, 4vw, 36px);
  text-align: center;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease-out);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal.is-closing .modal__backdrop { opacity: 0; }
.modal.is-closing .modal__box { opacity: 0; transform: translateY(8px) scale(0.98); }

/* The badge pops in once the card has landed. */
.modal.is-open .modal__icon {
  animation: badgePop .38s var(--ease-out) .1s backwards;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5); }
  60%  { transform: scale(1.08); }
  to   { opacity: 1; transform: none; }
}
.modal__x {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: none; border-radius: 50%;
  background: transparent;
  color: var(--body);
  display: grid; place-items: center;
  transition: background .18s, color .18s;
}
.modal__x:hover { background: var(--tint); color: var(--crimson); }
.modal__x svg { width: 18px; height: 18px; }
.modal__icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--crimson);
  display: grid; place-items: center;
}
.modal__icon svg { width: 34px; height: 34px; }
/* Emoji variant — same badge, glyph instead of an inline SVG. */
.modal__icon--emoji { font-size: 32px; line-height: 1; }
.modal__title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 10px;
}
.modal__desc {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 24px;
}
.modal__close-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px; min-height: 50px;
  padding: 0 28px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-deep) 100%);
  color: #fff;
  border: none; border-radius: var(--radius-input);
  font-weight: 600; font-size: 1.02rem;
  box-shadow: 0 12px 26px rgba(194,24,91,0.30);
  transition: filter .18s, transform .12s, box-shadow .18s;
}
.modal__close-btn:hover { filter: brightness(1.05); transform: translateY(-2px); }
.modal__close-btn:active { transform: translateY(1px); }

/* ============================================================
   Reduced motion
   ------------------------------------------------------------
   Movement goes away; state changes stay instant but visible.
   Opacity is kept on the disclosure/error/modal transitions —
   without it those elements would never reach their end state.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .role-card, .role-card:hover, .role-card.is-selected,
  .btn-notify:hover, .btn-notify:active,
  .modal__close-btn:hover, .footer-social a:hover {
    transform: none !important;
  }
  .btn-notify::after { display: none; }
  /* The spinner is the only motion that carries meaning — keep it,
     just slower and calmer. */
  .btn-notify__spinner { animation-duration: 1.4s !important; }
}
