/* ============================================================
   MENTORA DESIGN SYSTEM
   Palette: evolved from the maquette (indigo/violet) into a
   modern "aurora" look. All fonts self-hosted/system (GDPR-clean,
   no Google Fonts request). All effects are CSS-only + tiny JS.
   ============================================================ */

:root {
  /* Brand */
  --primary: #5B4FE8;
  --primary-600: #4F46E5;
  --primary-700: #4338CA;
  --violet: #7C3AED;
  --orchid: #A855F7;
  --teal: #14B8A6;
  --teal-600: #0D9488;
  --coral: #FF6B5E;
  --amber: #F59E0B;
  --danger: #DC3545;

  /* Neutrals */
  --bg: #F7F7FC;
  --surface: #FFFFFF;
  --ink: #16162E;
  --ink-soft: #3F3F5C;
  --muted: #6E6E8A;
  --line: #E7E7F2;

  /* Effects */
  --grad-brand: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #A855F7 100%);
  --grad-warm: linear-gradient(135deg, #7C3AED, #FF6B5E);
  --shadow-sm: 0 1px 2px rgba(22, 22, 46, .06), 0 4px 12px rgba(22, 22, 46, .05);
  --shadow-lg: 0 8px 30px rgba(79, 70, 229, .16), 0 2px 8px rgba(22, 22, 46, .08);
  --glow: 0 10px 30px -8px rgba(91, 79, 232, .55);
  --radius: 16px;
  --radius-lg: 22px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.center { text-align: center; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------------- gradient utilities ---------------- */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: color-mix(in srgb, var(--primary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, white);
  padding: 6px 14px; border-radius: 999px;
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease,
              border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(91,79,232,.65); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-600); transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------------- top navigation ---------------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, white 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav { display: flex; align-items: center; gap: 26px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 1.05rem; font-weight: 800;
  box-shadow: var(--glow);
}
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: .93rem; }
.nav-links a:hover { color: var(--primary-600); text-decoration: none; }
.nav-spacer { flex: 1; }
.nav-auth { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 840px) {
  .nav-links, .nav-auth { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-links, .nav.open .nav-auth {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--surface); padding: 18px 22px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); gap: 14px;
  }
  .nav.open .nav-auth { top: auto; margin-top: 190px; border-top: 1px dashed var(--line); }
}

/* ---------------- hero / aurora ---------------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 70px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 34px; }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: -1; }
.blob-a { width: 460px; height: 460px; background: #8B5CF6; top: -160px; right: -80px; animation: drift 16s ease-in-out infinite alternate; }
.blob-b { width: 380px; height: 380px; background: #6366F1; bottom: -180px; left: -120px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.blob-c { width: 260px; height: 260px; background: #FB7185; top: 40%; left: 42%; opacity: .22; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, -34px) scale(1.12); }
}

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .86rem; }

/* floating preview card in hero */
.float-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px; max-width: 380px; margin-left: auto;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card .row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i {
  display: block; height: 100%; width: 68%;
  background: var(--grad-brand); border-radius: 99px;
  animation: grow 2.4s ease forwards;
}
@keyframes grow { from { width: 8%; } to { width: 68%; } }

/* ---------------- marquee ---------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: color-mix(in srgb, var(--primary) 7%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, white);
  color: var(--primary-700); white-space: nowrap;
}
.chip-teal { background: color-mix(in srgb, var(--teal) 10%, white); border-color: color-mix(in srgb, var(--teal) 24%, white); color: var(--teal-600); }

/* ---------------- cards ---------------- */
.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* gradient border reveal on hover */
.card-hover::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.card-hover:hover::before { opacity: 1; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---------------- tutor cards ---------------- */
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.05rem;
  flex-shrink: 0; position: relative;
}
.avatar::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit; padding: 2px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .85;
}
.avatar-lg { width: 84px; height: 84px; font-size: 1.6rem; }
.hue-0 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }
.hue-1 { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.hue-2 { background: linear-gradient(135deg, #14B8A6, #0EA5E9); }
.hue-3 { background: linear-gradient(135deg, #F59E0B, #FF6B5E); }
.hue-4 { background: linear-gradient(135deg, #EC4899, #A855F7); }
.hue-5 { background: linear-gradient(135deg, #22C55E, #14B8A6); }

.tutor-card { display: flex; flex-direction: column; gap: 14px; }
.tutor-card .head { display: flex; align-items: center; gap: 14px; }
.tutor-card .name { font-weight: 800; font-size: 1.06rem; }
.tutor-card .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tutor-card .foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--line); padding-top: 14px; margin-top: auto;
}
.price { font-weight: 800; font-size: 1.2rem; }
.price span { font-weight: 500; font-size: .8rem; color: var(--muted); }

.stars { color: var(--amber); letter-spacing: 2px; font-size: .92rem; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); }

.badge-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 700; color: var(--teal-600);
  background: color-mix(in srgb, var(--teal) 12%, white);
  border: 1px solid color-mix(in srgb, var(--teal) 26%, white);
  border-radius: 999px; padding: 4px 11px;
}

/* status pills */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill-confirmed { background: #EEF2FF; color: var(--primary-700); }
.pill-completed { background: #ECFDF5; color: #067647; }
.pill-pending_payment { background: #FFFBEB; color: #92400E; }
.pill-disputed, .pill-refunded { background: #FEF2F2; color: #B42318; }
.pill-cancelled_student, .pill-cancelled_tutor { background: #F2F4F7; color: var(--muted); }

/* ---------------- steps (how it works) ---------------- */
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--glow); margin-bottom: 16px;
}

/* ---------------- trust band ---------------- */
.band {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(124, 58, 237, .16), transparent 60%),
    radial-gradient(900px 500px at 95% 110%, rgba(20, 184, 166, .14), transparent 60%),
    var(--surface);
  border-block: 1px solid var(--line);
}
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 10%, white); color: var(--primary-600);
  margin-bottom: 14px;
}
.icon-tile svg { width: 22px; height: 22px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  background: var(--grad-brand); color: #fff; border-radius: 26px;
  padding: 54px 40px; text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before, .cta-banner::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .35;
}
.cta-banner::before { width: 300px; height: 300px; background: #fff; top: -180px; left: -100px; }
.cta-banner::after { width: 260px; height: 260px; background: #FF6B5E; bottom: -160px; right: -80px; }
.cta-banner .btn-ghost { border-color: transparent; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }
.cta-banner h2, .cta-banner p { position: relative; z-index: 1; }

/* ---------------- forms ---------------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.form-narrow { max-width: 440px; margin: 0 auto; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.checkline input { width: auto; margin-top: 4px; }

.auth-card { max-width: 460px; margin: 48px auto; }
.auth-card h1 { font-size: 1.7rem; }

/* segmented control (student / tutor) */
.segmented { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented label { flex: 1; text-align: center; padding: 9px; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); }
.segmented input { display: none; }
.segmented input:checked + label { background: var(--surface); color: var(--primary-600); box-shadow: var(--shadow-sm); }

/* ---------------- alerts & flash ---------------- */
.alert { padding: 13px 16px; border-radius: 12px; font-size: .92rem; font-weight: 600; border: 1px solid; }
.alert-info { background: #EEF2FF; border-color: #C7D2FE; color: var(--primary-700); }
.alert-success { background: #ECFDF5; border-color: #A7F3D0; color: #067647; }
.alert-error { background: #FEF2F2; border-color: #FECACA; color: #B42318; }
.flash-zone { position: fixed; top: 78px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 20px; }
.flash-zone .alert { pointer-events: auto; box-shadow: var(--shadow-lg); animation: slidein .35s ease; max-width: 560px; }
@keyframes slidein { from { transform: translateY(-16px); opacity: 0; } }

/* ---------------- filters sidebar (browse) ---------------- */
.browse-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .browse-layout { grid-template-columns: 1fr; } }
.filters { position: sticky; top: 86px; }
.filters .field { margin-bottom: 14px; }

/* ---------------- profile page ---------------- */
.profile-layout { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
@media (max-width: 940px) { .profile-layout { grid-template-columns: 1fr; } }
.profile-hero {
  height: 110px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-brand); position: relative; overflow: hidden;
}
.profile-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, rgba(255,255,255,.35), transparent 60%);
}
.profile-side { padding: 0; overflow: hidden; }
.profile-side .inner { padding: 0 24px 24px; margin-top: -34px; position: relative; }
.slotgrid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 8px 12px; font-size: .84rem; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.slot:hover, .slot.active { border-color: var(--primary); color: var(--primary-600); background: #EEF2FF; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; }
.tab { padding: 10px 18px; font-weight: 700; color: var(--muted); cursor: pointer; border: 0; background: none; font-size: .95rem; position: relative; }
.tab.active { color: var(--primary-600); }
.tab.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px;
  background: var(--grad-brand); border-radius: 2px;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.review { border-top: 1px solid var(--line); padding: 16px 0; }
.review .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }

/* ---------------- dashboard ---------------- */
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.kpi { padding: 18px 20px; }
.kpi b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.kpi span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 0;
  border-top: 1px solid var(--line);
}
.list-row:first-child { border-top: 0; }
.list-row .grow { flex: 1; min-width: 0; }
table.simple { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.simple th { text-align: left; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; }
table.simple td { padding: 10px; border-top: 1px solid var(--line); }

/* ---------------- session room ---------------- */
.room { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
@media (max-width: 900px) { .room { grid-template-columns: 1fr; } }
.video-stage {
  background: linear-gradient(160deg, #1E1B3A, #171531);
  border-radius: var(--radius-lg); min-height: 420px; position: relative;
  display: grid; place-items: center; color: #B6B3E6; overflow: hidden;
}
.video-stage .pip {
  position: absolute; right: 16px; bottom: 76px; width: 160px; height: 100px;
  background: #262250; border-radius: 12px; border: 1px solid #3A3670;
  display: grid; place-items: center; font-size: .8rem;
}
.controls {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; background: rgba(20, 18, 43, .75);
  border: 1px solid #3A3670; border-radius: 999px; padding: 8px 12px;
  backdrop-filter: blur(8px);
}
.ctrl {
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: #322D63; color: #fff;
  transition: background .15s ease;
}
.ctrl:hover { background: var(--primary); }
.ctrl-end { background: var(--danger); }

/* ---------------- cookie banner ---------------- */
/* Anchored bottom-LEFT, not centred: the centre of the screen belongs to the
   "I'm interested" button, and on a short laptop screen a centred banner lands
   straight on top of it. */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: auto; z-index: 70;
  width: min(400px, calc(100% - 36px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 16px 18px;
  font-size: .92rem;
}
@media (max-width: 560px) {
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 14px 16px; }
}
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* ---------------- footer ---------------- */
footer.site {
  margin-top: 60px; border-top: 1px solid var(--line);
  background: var(--surface); padding: 44px 0 30px;
}
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
/* The legal links stretch across the row above the closing paragraph. */
.foot-links { display: flex; flex: 1; justify-content: space-between; flex-wrap: wrap;
              gap: 18px; margin-left: clamp(24px, 8vw, 90px); }
.foot-links a { color: var(--muted); font-size: .88rem; }
.foot-links a:hover { color: var(--primary-600); }
.foot-legal {
  color: var(--muted); font-size: .8rem; margin: 22px auto 0;
  text-align: center; max-width: 62ch;
}
@media (max-width: 640px) {
  .foot-top { flex-direction: column; align-items: center; text-align: center; }
  .foot-links { width: 100%; margin-left: 0; justify-content: center; gap: 8px 20px; }
}

/* ---------------- reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- helpers ---------------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ============================================================
   COMING-SOON MODE
   Everything below serves the pre-launch landing page and the
   pre-registration modal. It can be deleted wholesale on the day
   PRELAUNCH_MODE is switched off.
   ============================================================ */

/* ---------------- "coming soon" markers ---------------- */
.soon-tag {
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary-700); background: color-mix(in srgb, var(--primary) 12%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 24%, white);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.soon-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary-700);
  background: color-mix(in srgb, var(--primary) 9%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, white);
  padding: 9px 18px; border-radius: 999px;
}
.soon-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 70%, transparent);
  animation: soon-pulse 2.4s ease-out infinite;
}
@keyframes soon-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------- single-column hero ---------------- */
.hero-solo { padding: 96px 0 88px; }
.hero-center { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-center .lede {
  font-size: 1.16rem; color: var(--ink-soft);
  max-width: 60ch; margin-left: auto; margin-right: auto;
}
.hero-ctas-center { justify-content: center; }
.hero-sub {
  margin: 6px auto 0; max-width: 48ch;
  font-size: 1.06rem; font-weight: 600; line-height: 1.5;
  color: #C2402F;                      /* ~5:1 on the hero background */
}
.hero-sub b { font-weight: 800; color: #A8331F; }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn-xl { padding: 19px 46px; font-size: 1.16rem; border-radius: 16px; font-weight: 800; }
/* The single most important button on the site — give it a heartbeat. */
.btn-xl { animation: cta-breathe 5s ease-in-out infinite; }
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 10px 30px -8px rgba(91, 79, 232, .55); }
  50%      { box-shadow: 0 16px 42px -6px rgba(91, 79, 232, .78); }
}
.btn-on-dark { background: #fff; color: var(--primary-700); }
.btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }

/* ---------------- pre-registration modal ---------------- */
.modal {
  border: 0; padding: 0; background: transparent;
  max-width: 480px; width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  overflow: visible;
}
.modal::backdrop { background: rgba(22, 22, 46, .55); backdrop-filter: blur(3px); }
.modal[open] .modal-card { animation: modal-rise .26s cubic-bezier(.2, .8, .3, 1); }
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.modal-card {
  position: relative;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px 28px 20px;
  box-shadow: 0 24px 70px rgba(22, 22, 46, .3);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  text-align: left;
}
.modal-card > h2 { font-size: 1.6rem; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--muted);
  padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { color: var(--ink); background: var(--bg); }
.modal-card .field { margin-top: 12px; }
.modal-alert { margin-top: 16px; }
.modal-note { font-size: .76rem; margin: 14px 0 0; }
.form-error {
  color: #C22B1F; font-size: .82rem; font-weight: 700; line-height: 1.45;
  margin: 0 0 9px; padding-left: 20px; position: relative;
}
.form-error::before {
  content: "!"; position: absolute; left: 0; top: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: #C22B1F; color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 15px; text-align: center;
}

.role-picker { border: 0; padding: 0; margin: 14px 0 0; }
.role-picker legend {
  padding: 0; font-weight: 700; font-size: .88rem; margin-bottom: 6px;
}
.role-opt { display: block; cursor: pointer; }
.role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-picker legend { grid-column: 1 / -1; }
.role-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-box {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 13px; border: 2px solid var(--line); border-radius: 13px;
  background: var(--surface); transition: border-color .15s ease, background .15s ease;
  height: 100%;
}
.role-opt:hover .role-box { border-color: color-mix(in srgb, var(--primary) 40%, white); }
.role-opt input:checked + .role-box {
  border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, white);
}
.role-opt input:focus-visible + .role-box {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px;
}

.consent-row {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 14px 0 16px; cursor: pointer; color: var(--ink-soft);
}
.consent-row input[type="checkbox"] {
  flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0;
  accent-color: var(--primary); cursor: pointer;
}

/* success state */
.modal-done { text-align: center; }
.done-mark {
  width: 96px; height: 96px; margin: 10px auto 0;
  border-radius: 50%; display: grid; place-items: center;
  background: #DCFCE7; color: #16A34A;
  box-shadow: 0 0 0 10px rgba(22, 163, 74, .08);
  animation: done-pop .4s cubic-bezier(.2, .9, .3, 1.3);
}
.done-mark svg { width: 50px; height: 50px; }
@keyframes done-pop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal-done h2 { color: #15803D; }

/* Duplicate address — mirrors the success panel so the outcome reads instantly */
.fail-mark {
  width: 96px; height: 96px; margin: 10px auto 0;
  border-radius: 50%; display: grid; place-items: center;
  background: #FEE2E2; color: #DC2626;
  box-shadow: 0 0 0 10px rgba(220, 38, 38, .07);
  animation: done-pop .4s cubic-bezier(.2, .9, .3, 1.3);
}
.fail-mark svg { width: 46px; height: 46px; }
[data-prereg-fail] h2 { color: #B91C1C; }

@media (max-width: 420px) {
  .role-picker { grid-template-columns: 1fr; }
  .modal-card { padding: 26px 20px 20px; }
  .btn-xl { padding: 17px 30px; font-size: 1.06rem; width: 100%; }
}

/* ---------------- legal documents ---------------- */
.legal-doc { max-width: 74ch; margin: 0 auto; }
.legal-doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.legal-doc h3 {
  margin-top: 34px; font-size: 1.05rem; color: var(--ink);
  padding-top: 18px; border-top: 1px solid var(--line);
}
.legal-doc ul { color: var(--muted); padding-left: 20px; margin: 0 0 1em; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc code {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 1px 6px; font-size: .85em;
}
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th { font-weight: 700; color: var(--ink); background: var(--bg); }
.legal-table td { color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }

/* ---------------- confirmation landing ---------------- */
.confirm-card {
  max-width: 520px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 44px 36px;
  box-shadow: var(--shadow-sm);
}
.confirm-title { color: #15803D; font-size: clamp(1.7rem, 4vw, 2.2rem); }
.rank-line { font-size: 1.05rem; margin-bottom: 14px; color: var(--ink-soft); }
.rank-line b { font-size: 1.3rem; color: var(--primary-700); }
/* Wave identity: the gradient and ink come from app/services/founding.py so
   the colour of a wave is defined in exactly one place. */
/* One solid block carrying the whole wave identity. Background comes from
   founding.py so a wave's colour is defined in exactly one place. */
.wave-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  margin: 4px 0 18px; padding: 14px 34px;
  border-radius: 16px; color: #fff;
  box-shadow: 0 10px 24px -10px rgba(22, 22, 46, .55);
}
.wave-badge-name {
  font-size: 1.3rem; font-weight: 800; letter-spacing: .01em;
}
.wave-badge-offer { font-size: .95rem; font-weight: 600; opacity: .92; }
.fail-title { color: #B91C1C; font-size: clamp(1.6rem, 4vw, 2.1rem); }
@media (max-width: 480px) { .confirm-card { padding: 32px 22px; } }

/* ---------------- price expectation control ---------------- */
.price-block { margin: 20px 0 0; text-align: center; }
.price-label {
  display: block; font-weight: 700; font-size: .88rem;
  margin-bottom: 12px; text-align: left;
}
/* Reads as a button, behaves as a field — the border, the centring and the
   oversized figure are the whole trick. */
.price-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 2px solid var(--line); border-radius: 999px;
  padding: 12px 26px; background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
  cursor: text;
}
.price-pill:hover { border-color: color-mix(in srgb, var(--primary) 40%, white); }
.price-pill:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent);
}
.price-currency { font-size: 1.6rem; font-weight: 800; color: var(--muted); }
.price-pill input {
  width: 3.4ch; border: 0; padding: 0; background: transparent;
  font: inherit; font-size: 2.1rem; font-weight: 800; color: var(--ink);
  text-align: center; line-height: 1.1; -moz-appearance: textfield;
}
.price-pill input:focus { outline: none; }
.price-pill input::-webkit-outer-spin-button,
.price-pill input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Slider and its scale share one width so the end labels line up with the
   ends of the track rather than the edges of the modal. */
.price-slider, .price-scale {
  width: 100%; max-width: 300px; margin-left: auto; margin-right: auto;
}
.price-slider {
  -webkit-appearance: none; appearance: none;
  display: block; margin-top: 20px; margin-bottom: 8px;
  height: 10px; border-radius: 999px;
  background: var(--line); cursor: pointer;
}
.price-slider::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; background: transparent;
}
.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%; margin-top: -10px;
  background: var(--grad-brand); border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, .5); cursor: grab;
  transition: transform .12s ease;
}
.price-slider::-webkit-slider-thumb:hover { transform: scale(1.08); }
.price-slider::-moz-range-track {
  height: 10px; border-radius: 999px; background: var(--line);
}
.price-slider::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); border: 4px solid #fff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, .5); cursor: grab;
}
.price-slider:active::-webkit-slider-thumb { cursor: grabbing; }
.price-slider:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 5px;
}
.price-scale {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem; color: var(--muted); font-weight: 600;
}
.price-hint { font-size: .72rem; font-weight: 500; opacity: .75; }

/* "check your inbox" state */
.mail-mark {
  width: 92px; height: 92px; margin: 10px auto 0;
  border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary) 9%, white); color: var(--primary-600);
  animation: done-pop .4s cubic-bezier(.2, .9, .3, 1.3);
}
.mail-mark svg { width: 44px; height: 44px; }
[data-prereg-check] h2 { color: var(--primary-700); }

/* ---------------- founding places counter ---------------- */
.places {
  max-width: 560px; margin: 26px auto 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.places-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.places-now { font-weight: 800; color: var(--primary-700); font-size: 1rem; }
.places-left { font-size: .86rem; color: var(--coral); font-weight: 700; }
.places-left b { font-size: 1.05rem; }
.places-bar {
  height: 7px; border-radius: 999px; background: var(--line); overflow: hidden;
}
.places-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: var(--grad-brand); transition: width .6s ease;
}
.places-tiers {
  display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 12px;
}
.places-tiers li {
  flex: 1; text-align: center; font-size: .78rem; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 10px 6px; line-height: 1.35; background: var(--bg);
  transition: transform .15s ease;
}
.places-tiers li b {
  display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
}
/* Live wave: white on the brand purple — it is the site's primary accent and
   reads at a glance. Waves still to come: black on white. Waves already gone:
   grey, struck out. The wave's OWN colour appears on the heading above and on
   the confirmation page, where it identifies the prize rather than the step. */
.places-tiers li.is-now {
  border-color: transparent; background: var(--grad-brand);
  box-shadow: 0 6px 18px -6px rgba(91, 79, 232, .6);
  transform: translateY(-2px); font-weight: 700; color: #fff;
}
.places-tiers li.is-now b { color: rgba(255, 255, 255, .8); }
.places-tiers li.is-gone {
  background: #6B7280; border-color: transparent; color: #fff;
  text-decoration: line-through; opacity: .85;
}
.places-tiers li.is-gone b { color: rgba(255, 255, 255, .75); }
.places-note { font-size: .76rem; color: var(--muted); margin: 0; text-align: center; }
@media (max-width: 460px) {
  .places-tiers { flex-direction: column; }
  .places-tiers li { display: flex; justify-content: space-between; text-align: left; }
  .places-tiers li b { display: inline; }
}

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- small confirm dialog ---------------- */
.modal-sm { max-width: 380px; }
.modal-sm .modal-card { padding: 28px 26px 24px; }
.confirm-q { font-size: 1.15rem; margin-bottom: 8px; }
.confirm-actions {
  display: flex; gap: 12px; justify-content: center; margin-top: 20px;
}
.confirm-actions .btn { min-width: 110px; }

/* Neutral secondary button: transparent, black type, black rule. Used where a
   secondary action must be as easy to hit as the primary one but must not
   compete with it for attention. */
.btn-outline-dark {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink); color: #fff; text-decoration: none;
  transform: translateY(-2px);
}
.cookie-banner .actions .btn { flex: 1; text-align: center; }

/* ============ WAVE IDENTITY ============================================
   Every wave colour on the SITE has to live here, in the stylesheet. Our CSP
   is `style-src 'self'` with no 'unsafe-inline', which means a browser throws
   away any style="" attribute we render — so a colour passed down from
   founding.py through Jinja never reaches the page. The email keeps its inline
   colours (mail clients have no stylesheet); the web uses these classes,
   picked by the wave key. Keep the two roughly in step by eye.

   Metal, not paint. A flat accessible gold on white is always a little brown:
   real gold is a gradient, dark at the edges with a bright highlight through
   the middle, so we clip a gradient to the glyphs. The solid colour is
   declared first and stays put as the fallback, and the gradient only applies
   where background-clip:text is supported — otherwise the text would be
   transparent on top of nothing. */
.wave-word { font-weight: 800; }

.wave-word--gold   { color: #A87400; }
.wave-word--silver { color: #5B6672; }
.wave-word--bronze { color: #A15A2A; }

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .wave-word {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  /* yellow-orange, with the highlight just past the middle */
  .wave-word--gold {
    background-image: linear-gradient(100deg,
      #8F6200 0%, #C08800 26%, #F2B705 48%, #FFD54A 56%,
      #D49406 72%, #9C6C00 100%);
  }
  /* shiny grey: near-white highlight so it reads as polished, not as body text */
  .wave-word--silver {
    background-image: linear-gradient(100deg,
      #4E5763 0%, #79838F 26%, #9BA5B2 48%, #AEB8C4 56%,
      #7C8692 72%, #525B67 100%);
  }
  .wave-word--bronze {
    background-image: linear-gradient(100deg,
      #7E401B 0%, #A85F2E 26%, #CD8551 48%, #E0A272 56%,
      #AE6737 72%, #85451E 100%);
  }
}

/* On the live chip the ground is brand purple, so every metal moves up a few
   stops to stay legible against it. */
.places-tiers li.is-now .wave-word--gold   { color: #FFD666; }
.places-tiers li.is-now .wave-word--silver { color: #DDE4EC; }
.places-tiers li.is-now .wave-word--bronze { color: #F0BE96; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .places-tiers li.is-now .wave-word--gold {
    background-image: linear-gradient(100deg,
      #E8B22E 0%, #FFD666 30%, #FFF0B8 50%, #FFD055 70%, #E6AE2A 100%);
  }
  .places-tiers li.is-now .wave-word--silver {
    background-image: linear-gradient(100deg,
      #C3CCD8 0%, #E2E8F0 30%, #FFFFFF 50%, #DCE3EC 70%, #BFC8D4 100%);
  }
  .places-tiers li.is-now .wave-word--bronze {
    background-image: linear-gradient(100deg,
      #D08D5C 0%, #F0BE96 30%, #FFDCC0 50%, #EDB98D 70%, #CC8757 100%);
  }
}

/* A spent wave is struck through on grey: the metal would fight the strike. */
.places-tiers li.is-gone .wave-word {
  color: #fff; background-image: none;
  -webkit-text-fill-color: #fff;
}

/* The heading above the bar, in the current wave's metal. Same gradient trick,
   same fallback. */
.places-now--gold   { color: #A87400; }
.places-now--silver { color: #5B6672; }
.places-now--bronze { color: #A15A2A; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .places-now--gold, .places-now--silver, .places-now--bronze {
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .places-now--gold {
    background-image: linear-gradient(100deg,
      #8F6200 0%, #C08800 26%, #F2B705 48%, #FFD54A 56%,
      #D49406 72%, #9C6C00 100%);
  }
  .places-now--silver {
    background-image: linear-gradient(100deg,
      #4E5763 0%, #79838F 26%, #9BA5B2 48%, #AEB8C4 56%,
      #7C8692 72%, #525B67 100%);
  }
  .places-now--bronze {
    background-image: linear-gradient(100deg,
      #7E401B 0%, #A85F2E 26%, #CD8551 48%, #E0A272 56%,
      #AE6737 72%, #85451E 100%);
  }
}

/* Filled bar and confirmation badge: solid grounds, white type on top.
   The bar rules are scoped to `.places-bar i` on purpose. The base rule for
   that element sets `background` and `width` and is one type-selector more
   specific than a bare class, so an unscoped .bar-fill-- would lose to it and
   the bar would stay brand-purple and empty. */
.places-bar i.bar-fill--gold   { background-image: linear-gradient(135deg, #A17A00 0%, #C9971B 100%); }
.places-bar i.bar-fill--silver { background-image: linear-gradient(135deg, #5C6673 0%, #828C9B 100%); }
.places-bar i.bar-fill--bronze { background-image: linear-gradient(135deg, #8A4B24 0%, #AE6537 100%); }
.wave-badge--gold   { background-image: linear-gradient(135deg, #A17A00 0%, #C9971B 100%); }
.wave-badge--silver { background-image: linear-gradient(135deg, #5C6673 0%, #828C9B 100%); }
.wave-badge--bronze { background-image: linear-gradient(135deg, #8A4B24 0%, #AE6537 100%); }

/* The bar's width is a live number, and a live number cannot ride in a style=""
   attribute under our CSP either. Rounded to 2% and served as a class, so the
   bar fills correctly with JavaScript switched off. */
.places-bar i { width: 0; }
.places-bar i.pct-0 { width: 0%; }
.places-bar i.pct-2 { width: 2%; }
.places-bar i.pct-4 { width: 4%; }
.places-bar i.pct-6 { width: 6%; }
.places-bar i.pct-8 { width: 8%; }
.places-bar i.pct-10 { width: 10%; }
.places-bar i.pct-12 { width: 12%; }
.places-bar i.pct-14 { width: 14%; }
.places-bar i.pct-16 { width: 16%; }
.places-bar i.pct-18 { width: 18%; }
.places-bar i.pct-20 { width: 20%; }
.places-bar i.pct-22 { width: 22%; }
.places-bar i.pct-24 { width: 24%; }
.places-bar i.pct-26 { width: 26%; }
.places-bar i.pct-28 { width: 28%; }
.places-bar i.pct-30 { width: 30%; }
.places-bar i.pct-32 { width: 32%; }
.places-bar i.pct-34 { width: 34%; }
.places-bar i.pct-36 { width: 36%; }
.places-bar i.pct-38 { width: 38%; }
.places-bar i.pct-40 { width: 40%; }
.places-bar i.pct-42 { width: 42%; }
.places-bar i.pct-44 { width: 44%; }
.places-bar i.pct-46 { width: 46%; }
.places-bar i.pct-48 { width: 48%; }
.places-bar i.pct-50 { width: 50%; }
.places-bar i.pct-52 { width: 52%; }
.places-bar i.pct-54 { width: 54%; }
.places-bar i.pct-56 { width: 56%; }
.places-bar i.pct-58 { width: 58%; }
.places-bar i.pct-60 { width: 60%; }
.places-bar i.pct-62 { width: 62%; }
.places-bar i.pct-64 { width: 64%; }
.places-bar i.pct-66 { width: 66%; }
.places-bar i.pct-68 { width: 68%; }
.places-bar i.pct-70 { width: 70%; }
.places-bar i.pct-72 { width: 72%; }
.places-bar i.pct-74 { width: 74%; }
.places-bar i.pct-76 { width: 76%; }
.places-bar i.pct-78 { width: 78%; }
.places-bar i.pct-80 { width: 80%; }
.places-bar i.pct-82 { width: 82%; }
.places-bar i.pct-84 { width: 84%; }
.places-bar i.pct-86 { width: 86%; }
.places-bar i.pct-88 { width: 88%; }
.places-bar i.pct-90 { width: 90%; }
.places-bar i.pct-92 { width: 92%; }
.places-bar i.pct-94 { width: 94%; }
.places-bar i.pct-96 { width: 96%; }
.places-bar i.pct-98 { width: 98%; }
.places-bar i.pct-100 { width: 100%; }


/* ---------------- founding member: title, perks, invite ---------------- */
.founding-title {
  font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--primary-700);
  margin: 0 0 6px;
}
.perk-list {
  list-style: none; padding: 0; margin: 4px auto 18px; max-width: 380px;
  text-align: left; font-size: .92rem;
}
.perk-list li {
  position: relative; padding: 6px 0 6px 26px; color: var(--ink);
}
.perk-list li::before {
  content: "✓"; position: absolute; left: 4px; top: 6px;
  color: #16A34A; font-weight: 800;
}

.invite-box {
  margin: 24px auto 0; max-width: 460px; text-align: left;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px 16px;
}
.invite-title { font-size: 1.05rem; margin: 0 0 4px; }
.invite-row { display: flex; gap: 8px; margin: 12px 0 8px; }
.invite-input {
  flex: 1; min-width: 0; font-size: .82rem; font-family: ui-monospace,
  SFMono-Regular, Menlo, monospace;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
}
.invite-row .btn { white-space: nowrap; }
.invite-count { color: var(--primary-700); margin: 0 0 8px; }
.invite-box .muted { margin: 0; }

/* Shown in the signup modal when somebody arrives on an invite link. */
.invite-note {
  background: #F5F3FF; border: 1px solid #DDD6FE; border-radius: 10px;
  padding: 9px 12px; margin: 0 0 14px; color: var(--ink);
}

/* The three things a founding place buys, under the counter on the landing
   page. Deliberately terse: the counter above it is the argument, this is the
   receipt. */
.founding-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  list-style: none; padding: 0; margin: 12px 0 8px;
  font-size: .78rem; color: var(--ink-soft);
}
.founding-perks li { position: relative; padding-left: 16px; }
.founding-perks li::before {
  content: "✓"; position: absolute; left: 0; color: #16A34A; font-weight: 800;
}
@media (max-width: 460px) {
  .founding-perks { flex-direction: column; align-items: flex-start; }
}

/* Programme and stage sit on one row: they are one question asked twice, and
   splitting them over two rows makes a short form look long. The stage box is
   narrow because it holds a single digit. */
.field-pair { display: flex; gap: 10px; align-items: flex-end; }
.field-part { flex: 1; min-width: 0; }
.field-part label {
  display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px;
}
.field-part-narrow { flex: 0 0 84px; }
/* A programme with only one stage still shows the control — hiding it would
   leave people wondering where the question went — but greys it, so it reads
   as answered rather than as something they forgot. */
.field-part-fixed select { color: var(--muted); background: var(--bg); }
@media (max-width: 380px) {
  .field-pair { flex-direction: column; align-items: stretch; }
  .field-part-narrow { flex: 1 1 auto; }
}
