/* ===== Bali in Bengaluru — Bold & Modern ===== */

:root {
  --bg: #0e0f12;
  --bg-2: #14161b;
  --bg-3: #17181c;
  --ink: #f4f2ee;
  --muted: #9a9791;
  --muted-2: #74716b;
  --accent: #ff5a3c;   /* coral */
  --accent-2: #ffd23c; /* yellow */
  --line: #26272c;
  --line-soft: rgba(255, 255, 255, 0.08);
  --display: "Archivo", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
/* A class that sets display (.btn, .choice…) otherwise overrides the browser's
   own [hidden] rule, leaving "hidden" elements on screen. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1; letter-spacing: -0.01em; }

em { font-style: italic; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 1rem;
}
.eyebrow.center { text-align: center; display: block; }
.eyebrow.gold { color: var(--accent-2); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand-main {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand-main em { font-style: normal; color: var(--accent); }
.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 5px;
  font-weight: 500;
}

.nav-links { list-style: none; display: flex; gap: 1.45rem; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent);
  color: #0e0f12 !important;
  padding: 0.6rem 1.1rem;
  border-radius: 5px;
  font-weight: 700 !important;
  font-family: var(--display);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-2); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: 0.25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.08); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(14,15,18,0.55) 40%, rgba(14,15,18,0.35) 100%),
    linear-gradient(to right, rgba(14,15,18,0.75), rgba(14,15,18,0.1));
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; width: 100%; }
.hero .eyebrow {
  background: var(--accent-2);
  color: #0e0f12;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 10vw, 9rem);
  line-height: 0.85;
  margin: 0 0 1.5rem;
  text-shadow: 0 6px 40px rgba(0,0,0,0.35);
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: rgba(244, 242, 238, 0.88);
  margin: 0 0 2.2rem;
}
.hero-meta {
  display: flex;
  margin-bottom: 2.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 780px;
}
.hero-meta div { flex: 1; padding: 1.1rem 1.4rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-meta div:first-child { padding-left: 0; }
.hero-meta div:last-child { border-right: 0; }
.hero-meta-num {
  font-family: var(--display); font-weight: 900; font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--accent-2); text-transform: uppercase; line-height: 1.05;
}
.hero-meta-label { font-size: 0.76rem; color: var(--muted); margin-top: 0.4rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  border-radius: 5px;
  font-weight: 700;
  font-family: var(--display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #0e0f12; }
.btn-primary:hover { background: var(--accent-2); }
/* background matters on <button>, which otherwise paints the UA default. */
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }

/* ===== Sections ===== */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tint { background: var(--bg-2); }
.section-dark { background: var(--bg-3); }
.section h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 0.98; margin-bottom: 1.4rem; color: var(--ink);
  letter-spacing: 0; word-spacing: 0.04em;
}
.section h2.center { text-align: center; }
.section p { color: var(--muted); margin: 0 0 1.1rem; font-size: 1.02rem; }
.section p strong { color: var(--ink); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.col-media img { border-radius: 8px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.lead-line {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: 1rem; color: var(--accent); margin-bottom: 1.3rem !important;
}

.fact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.fact-list li { padding: 0.85rem 0; border-top: 1px solid var(--line); display: flex; gap: 1rem; }
.fact-list li span {
  flex: none; width: 150px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem;
  font-weight: 700; color: var(--accent-2); font-family: var(--display); padding-top: 3px; line-height: 1.3;
}

/* ===== Plain cards (objectives / support) ===== */
.cards { display: grid; gap: 1.4rem; margin-top: 2.8rem; }
.cards-5 { grid-template-columns: repeat(5, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card-plain {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem;
}
.section-tint .card-plain { background: var(--bg); }
.card-idx {
  font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--accent);
  display: block; margin-bottom: 0.6rem; line-height: 1;
}
.card-plain h4 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.15rem; color: var(--ink); margin-bottom: 0.6rem;
}
.card-plain p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ===== Featuring (dark) ===== */
.section-dark h2 { color: var(--ink); }
.section-dark p { color: var(--muted); }
.section-dark p strong { color: var(--accent-2); }

/* ===== Event cards ===== */
.group-title {
  text-align: left;
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink);
  margin: 3.4rem 0 1.6rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.group-title::before { content: "/"; color: var(--accent); }
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-img { aspect-ratio: 3/2; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-body h4 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: 1.2rem; color: var(--ink); margin-bottom: 0.55rem; line-height: 1.05;
}
.card-body p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.tag {
  display: inline-block; background: var(--accent-2); color: #0e0f12;
  font-family: var(--display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 3px; margin-bottom: 0.8rem;
}

/* ===== Feature band ===== */
.feature-band { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; overflow: hidden; }
.feature-band-media { position: absolute; inset: 0; z-index: 0; }
.feature-band-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-band-scrim { position: absolute; inset: 0; background: linear-gradient(rgba(14,15,18,0.88), rgba(14,15,18,0.92)); }
.feature-band-content { position: relative; z-index: 2; }
.feature-band .eyebrow { text-align: center; display: block; }
.also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.8rem; }
.also-item { text-align: left; padding: 1.4rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.03); }
.also-item h4 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  color: var(--accent-2); font-size: 1.15rem; margin-bottom: 0.5rem;
}
.also-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ===== Support ===== */
.section-support { background: var(--bg-2); }
.support-lead { max-width: 48rem; margin: 0 auto 1rem; text-align: center; font-size: 1.1rem; color: var(--muted); }
.support-cards { margin-top: 2.6rem; }
.support-cards .card-plain h4 { color: var(--accent-2); }
.support-cta { text-align: center; margin-top: 3.2rem; }
.support-cta p { margin-bottom: 1.4rem; font-weight: 500; color: var(--ink); }
.support-cta .btn { margin: 0 0.4rem 0.6rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg); padding: 3.5rem 0 1.8rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: 1.5rem; margin: 0; letter-spacing: -0.02em;
}
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-sub { color: var(--muted-2); font-size: 0.85rem; margin: 0.3rem 0 0; }
.footer-contact { display: flex; flex-direction: column; gap: 0.4rem; text-align: right; }
.footer-contact a { color: var(--accent-2); text-decoration: none; font-size: 0.95rem; }
.footer-contact a:hover { text-decoration: underline; }
.footer-copy { text-align: center; color: var(--muted-2); font-size: 0.78rem; margin: 2.6rem 0 0; padding-top: 1.8rem; border-top: 1px solid var(--line); }

/* ===== Section intro ===== */
/* Inline links in body copy. Also catches prose links added later, so a
   new one never lands as an unstyled browser-blue default. */
.text-link,
.section-intro a:not(.btn),
.col-text p a:not(.btn),
.card-body p a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.text-link:hover,
.section-intro a:not(.btn):hover,
.col-text p a:not(.btn):hover,
.card-body p a:not(.btn):hover {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent-2);
}
.text-link:focus-visible,
.section-intro a:not(.btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-intro { max-width: 44rem; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.section-intro.center { text-align: center; }

/* ===== Signup form ===== */
.col-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem;
}
.signup-form .field { margin-bottom: 1.1rem; }
.signup-form label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.signup-form .req { color: var(--accent); }
.signup-form input[type="text"],
.signup-form input[type="email"],
.signup-form input[type="tel"],
.signup-form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.98rem;
  padding: 0.75rem 0.85rem;
}
.signup-form input:focus,
.signup-form select:focus { outline: none; border-color: var(--accent); }
.signup-form select { appearance: none; -webkit-appearance: none; }
.field-notify { border: 0; padding: 0; margin: 0 0 1.1rem; }
.field-notify legend { font-size: 0.8rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 0.5rem; }
.check { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; font-weight: 400; color: var(--muted); margin-bottom: 0.5rem; cursor: pointer; }
.check input { margin-top: 0.2rem; accent-color: var(--accent); flex: none; }
.field-notify .check { display: inline-flex; margin-right: 1.4rem; }
.check-consent { margin: 0.6rem 0 1.2rem; }
.check-consent .quiet { color: var(--muted); text-decoration: underline; }
.form-note { font-size: 0.9rem; margin: 0.9rem 0 0; min-height: 1.2em; }
.form-note.ok { color: var(--accent-2); }
.form-note.err { color: var(--accent); }

/* ===== Calendar ===== */
.calendar-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 1.8rem 0 0.5rem; }
.chip {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 0.72rem; color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; transition: 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--accent); color: #0e0f12; border-color: var(--accent); }
.calendar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.calendar-grid .loading { grid-column: 1 / -1; text-align: center; color: var(--muted-2); padding: 2rem 0; }
.cal-card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, border-color 0.2s;
}
.cal-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cal-img { aspect-ratio: 16/9; overflow: hidden; }
.cal-img img { width: 100%; height: 100%; object-fit: cover; }
.cal-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.cal-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.cal-cat { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.66rem; color: var(--muted-2); }
.badge {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.62rem; padding: 0.25rem 0.55rem; border-radius: 3px; background: var(--line); color: var(--ink);
}
.badge-live { background: var(--accent-2); color: #0e0f12; }
.badge-done { background: transparent; color: var(--muted-2); border: 1px solid var(--line); }
.cal-date { font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--accent-2); font-size: 0.85rem; margin: 0 0 0.35rem; }
.cal-body h4 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.15rem; color: var(--ink); line-height: 1.05; margin-bottom: 0.4rem; }
.cal-meta { font-size: 0.82rem; color: var(--muted-2); margin: 0 0 0.5rem; }
.cal-desc { font-size: 0.9rem; color: var(--muted); margin: 0 0 1rem; }
.cal-action { margin-top: auto; }
.cal-soon { font-size: 0.8rem; color: var(--muted-2); font-style: italic; }

/* ===== Partners ===== */
.partners-grid { margin-top: 2.5rem; }
.partners-grid.has-partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.partners-grid .loading { text-align: center; color: var(--muted-2); }
.partner {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px;
  min-height: 110px; padding: 1.2rem; text-decoration: none; color: var(--muted);
  font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; transition: 0.2s;
}
.partner:hover { border-color: var(--accent); color: var(--ink); }
.partner img { max-width: 100%; max-height: 60px; object-fit: contain; }
.partners-empty { text-align: center; border: 1px dashed var(--line); border-radius: 10px; padding: 2.5rem 1.5rem; }
.partners-empty p { color: var(--muted); margin: 0 0 1.3rem; }

/* ===== Responsive ===== */
/* ---------- Calendar: one bar per event, stacked in date order ---------- */
.wrap-narrow { max-width: 860px; }

.calendar-list { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 2rem; }

.cal-bar {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.section-tint .cal-bar { background: var(--bg); }
.cal-bar:hover { border-color: var(--muted-2); border-left-color: var(--accent-2); }

/* The date block reads as one unit at a glance. */
.cal-when {
  display: grid;
  justify-items: center;
  align-content: center;
  padding-right: 1.1rem;
  border-right: 1px solid var(--line);
  line-height: 1;
}
.cal-day { font-family: var(--display); font-weight: 900; font-size: 1.7rem; color: var(--ink); }
.cal-mon {
  font-family: var(--display); font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.12em; color: var(--accent-2); margin-top: 0.25rem;
}
.cal-weekday { font-size: 0.68rem; color: var(--muted-2); margin-top: 0.3rem; }

.cal-what { min-width: 0; }
.cal-what h4 {
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  color: var(--ink); margin: 0.35rem 0 0.25rem; line-height: 1.2;
}
.cal-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.cal-cat, .cal-collab {
  font-family: var(--display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 3px;
}
.cal-cat { background: rgba(255, 255, 255, 0.07); color: var(--muted); }
.cal-collab { background: rgba(255, 210, 60, 0.14); color: var(--accent-2); }
.cal-meta { color: var(--muted); font-size: 0.88rem; margin: 0; }
.cal-desc { color: var(--muted-2); font-size: 0.85rem; margin: 0.3rem 0 0; }
.cal-action { flex: none; }
.cal-soon { font-size: 0.78rem; color: var(--muted-2); font-style: italic; white-space: nowrap; }

@media (max-width: 620px) {
  /* Stack the bar itself: date across the top, action full width beneath. */
  .cal-bar {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 0.9rem 1rem;
  }
  .cal-when { padding-right: 0.8rem; }
  .cal-day { font-size: 1.4rem; }
  .cal-action { grid-column: 1 / -1; }
  .cal-action .btn { display: block; width: 100%; text-align: center; }
  .cal-soon { display: block; text-align: center; }
}

/* ---------- Onboarding carousel ----------
   Mobile is the case that matters: progress, one question, and its
   buttons should sit in a single screen with no scrolling. */
.onboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.onboard-main { position: relative; }

.onboard-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.onboard-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.onboard-step {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 1.1rem;
}

.onboard-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1.3rem, 4vw, 1.9rem);
}
.section-tint .onboard-card { background: var(--bg); }
.onboard-card[hidden] { display: none; }

/* fieldset reset — the card is a fieldset so the legend labels the group */
.onboard-question { margin: 0; min-width: 0; }
.onboard-question legend {
  /* A fieldset legend normally straddles the top border; floating it makes
     it behave as an ordinary block inside the card. */
  float: left;
  width: 100%;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  line-height: 1.05;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.5rem;
}
.onboard-question:focus-visible,
.onboard-question legend:focus-visible { outline: none; }
.onboard-hint { clear: both; color: var(--muted); font-size: 0.9rem; margin: 0 0 1.1rem; }
.onboard-question .choices { clear: both; }

.choices { display: grid; gap: 0.55rem; margin-bottom: 1.1rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:hover { border-color: var(--muted-2); }
.choice input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; margin: 0; }
.choice:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 90, 60, 0.08);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.onboard-error { color: var(--accent); font-size: 0.85rem; margin: 0.2rem 0 0; }

/* An arrow either side of the question block. */
.onboard-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev stage next";
  align-items: center;
  gap: 0.8rem;
}
.onboard-stage { grid-area: stage; min-width: 0; }
.onboard-arrow-prev { grid-area: prev; }
.onboard-arrow-next { grid-area: next; }

.onboard-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.onboard-arrow:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.onboard-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.onboard-arrow:disabled { opacity: 0.25; cursor: default; }
.onboard-arrow-next svg { transform: rotate(180deg); }
/* Keeps its grid space, so the block does not shift when it goes away. */
.onboard-arrow.is-gone { visibility: hidden; }

/* Final submit sits centred, not stretched across the card. */
.onboard-signup .btn-block {
  display: block;
  width: auto;
  min-width: 220px;
  margin-inline: auto;
}

.onboard-change {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1.1rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.onboard-change:hover { color: var(--accent); }

/* Compact enough that a seven-option question still fits one phone screen. */
@media (max-width: 560px) {
  /* No room to flank the card on a phone: the arrows sit beneath it,
     still one on each side. */
  .onboard-carousel {
    /* Equal columns, with each arrow pushed to its own outer edge —
       "auto" collapses here because the stage spans both columns. */
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stage stage"
      "prev  next";
    row-gap: 0.7rem;
  }
  .onboard-arrow-prev { justify-self: start; }
  .onboard-arrow-next { justify-self: end; }
  .onboard-arrow { width: 48px; height: 48px; }
  /* On the signup card the arrow row is dead weight — "Change my answers"
     already goes back — and the space keeps the form on one screen. */
  .onboard-carousel.is-done { row-gap: 0; }
  .onboard-carousel.is-done .onboard-arrow { display: none; }
  .onboard-signup .field { margin-bottom: 0.85rem; }
  .onboard-signup .check-consent { font-size: 0.82rem; margin-bottom: 0.9rem; }
  .onboard-change { margin-bottom: 0.9rem; }
  .onboard-card { padding: 1rem; }
  .onboard-question legend { font-size: 1.15rem; margin-bottom: 0.35rem; }
  .onboard-hint { font-size: 0.83rem; margin-bottom: 0.75rem; }
  .onboard-progress { margin-bottom: 0.5rem; }
  .onboard-step { font-size: 0.68rem; margin-bottom: 0.6rem; }
  .choices { gap: 0.4rem; margin-bottom: 0.4rem; }
  .choice {
    padding: 0.6rem 0.8rem;
    gap: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }
  .choice input { width: 17px; height: 17px; }
  .page-view .section { padding-top: 1rem; padding-bottom: 1rem; }
}

@media (max-width: 900px) {
  .onboard { grid-template-columns: 1fr; gap: 1.4rem; }
  /* On a phone the marketing copy would push the question off-screen;
     the heading alone carries enough context. */
  .onboard-aside p, .onboard-aside .fact-list { display: none; }
  .onboard-aside h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 0; }
  .page-view .section { padding-top: 1.6rem; padding-bottom: 2.4rem; }
}

/* ---------- In-page views (forms shown as their own screen) ----------
   Not separate files: these overlay the page, and "back" simply hides
   them again, leaving the main page exactly where it was. */
.page-view {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: view-in 0.22s ease both;
}
.page-view[hidden] { display: none; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .page-view { animation: none; }
}

/* The main page must not scroll behind an open view. */
body.view-open { overflow: hidden; }

.view-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.6rem;
  background: rgba(17, 17, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.view-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.view-back:hover { border-color: var(--accent); color: var(--accent); }
.view-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.view-bar-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.view-body > .section { padding-top: 2.6rem; }

@media (max-width: 520px) {
  .view-bar { padding: 0.75rem 1rem; }
  .view-bar-title { display: none; }
}

@media (max-width: 900px) {
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .also-grid { grid-template-columns: 1fr 1fr; }
  .calendar-grid { grid-template-columns: 1fr 1fr; }
  .partners-grid.has-partners { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: var(--bg-3);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { display: block; padding: 1rem 2rem; border-top: 1px solid var(--line); }
  .nav-cta { border-radius: 0; }
  .grid-2, .grid-2.reverse { grid-template-columns: 1fr; }
  .grid-2.reverse .col-media { order: -1; }
  .hero { min-height: 90vh; }
  .hero-meta { flex-wrap: wrap; }
  .hero-meta div { flex: 1 0 45%; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .cards-5, .cards-3, .cards-2, .also-grid { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: 1fr; }
  .partners-grid.has-partners { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-contact { text-align: center; }
  .hero-meta div { flex: 1 0 100%; border-right: 0; }
}
