@import url("../assets/colors_and_type.css?v=2");

/* Override display to Pairing B (Oswald) for full Portuguese diacritic support
   (Bebas Neue lacks tildes — "Ã" renders as bare "A"). */
:root {
  --display: 'Oswald', 'Bebas Neue', 'Arial Narrow', sans-serif;
}
h1, h2, h3, h4, .t-h1, .t-h2, .t-h3, .t-h4 {
  font-weight: 600;
}

html, body { margin: 0; padding: 0; }
/* Suppress iOS Safari's default blue tap-highlight overlay across the site.
   Custom focus/active states still apply; this only kills the touch flash. */
html { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* =========================================================
   LAYOUT PRIMITIVES
   ========================================================= */
.container        { width: 100%; max-width: var(--container-default); margin: 0 auto; padding: 0 var(--container-pad); }
.container-wide   { width: 100%; max-width: var(--container-wide);    margin: 0 auto; padding: 0 var(--container-pad); }
.container-narrow { width: 100%; max-width: var(--container-narrow);  margin: 0 auto; padding: 0 var(--container-pad); }

.section          { padding: var(--space-9) 0; }
.section-tight    { padding: var(--space-7) 0; }
.divider          { height: 1px; background: var(--border-subtle); margin: 0; }

/* The single permitted decorative motif: a faint gold hairline */
.gold-rule {
  display: block; width: 56px; height: 1px;
  background: var(--gold);
  margin: 0 0 var(--space-4) 0;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* =========================================================
   ROLE TEXT
   ========================================================= */
.eyebrow {
  font: 600 12px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow.gold  { color: var(--gold-200); }
.eyebrow.green { color: var(--green-200); }

.kicker {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-200);
}

.deck {
  font: 400 var(--body-large)/var(--body-large-leading) var(--body);
  color: var(--text-secondary);
  max-width: 56ch;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px; padding: 0 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 12px/1 var(--body);
  letter-spacing: 0.10em; text-transform: uppercase;
  transition: background var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              opacity var(--motion-fast) var(--ease-standard);
  white-space: nowrap;
}
.btn-primary    { background: var(--gold); color: var(--text-primary); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn-secondary  { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-primary); }
.btn-ghost      { background: transparent; color: var(--text-primary); border-color: transparent; padding: 0 6px; height: 40px; }
.btn-ghost:hover { color: var(--gold-200); }
.btn-sm         { height: 36px; padding: 0 14px; font-size: 11px; }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

/* =========================================================
   TOP NAV
   ========================================================= */
.topnav {
  position: sticky; top: 16px; z-index: 50;
  width: 100%;
  max-width: var(--container-wide);
  margin: 16px auto 0;
  padding: 0 var(--container-pad);
}
.topnav-inner {
  display: flex; align-items: center; gap: var(--space-7);
  padding: 12px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(11, 11, 14, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.topnav-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.topnav-logo-word {
  display: block;
  height: 48px;
  width: auto;
  margin: -6px 0;
}
.topnav-links {
  display: flex; align-items: center; gap: var(--space-6);
  flex: 1;
  min-width: 0;
}
.topnav-links a {
  position: relative;
  font: 600 12px/1 var(--body);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 0;
  transition: color var(--motion-fast) var(--ease-standard);
}
.topnav-links a:hover { color: var(--text-primary); }
.topnav-links a.active { color: var(--text-primary); }
.topnav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}
.pill-soon {
  display: inline-flex; align-items: center;
  font: 600 9px/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-200);
  padding: 3px 7px;
  border: 1px solid rgba(229, 178, 40, 0.32);
  border-radius: var(--radius-pill);
}
.topnav-links a.is-soon {
  color: var(--text-muted);
  position: relative;
}
.topnav-links a.is-soon:hover { color: var(--text-secondary); }
.badge-soon {
  position: absolute;
  top: -5px;
  right: -10px;
  display: inline-flex; align-items: center;
  font: 600 7px/1 var(--body);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 4px 1px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: rgba(11, 11, 14, 0.92);
  white-space: nowrap;
}
.topnav-links a.is-soon:hover .badge-soon {
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.topnav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang {
  display: inline-flex; gap: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
/* The language switcher is now a cross-tree link between a page and
   its translated twin (PT at the root, EN under /en/). Each switcher
   has one active <span> (the current language) and one <a> (the
   translated twin). The old <button> elements are kept selectable so
   any not-yet-migrated markup still styles correctly. */
.lang button,
.lang a,
.lang span {
  display: inline-block;
  background: transparent; color: var(--text-muted); border: 0;
  font: 600 11px/1 var(--body);
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 8px 10px;
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.lang button:hover,
.lang a:hover { color: var(--text-primary); }
.lang button.is-active,
.lang a.is-active,
.lang span.is-active { color: var(--gold-on); background: var(--gold-200); }

@media (max-width: 900px) {
  .topnav-links { display: none; }
}

/* =========================================================
   HERO — full-bleed belt
   ========================================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 88vh, 880px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--canvas-dark);
}
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/belt-hero-v2.png');
  background-size: cover;
  background-position: center 38%;
  filter: contrast(1.02) saturate(0.88) brightness(0.74);
  transform: scale(1.02);
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(11,11,14,0) 0%, rgba(11,11,14,0.55) 70%, rgba(11,11,14,0.92) 100%),
    linear-gradient(180deg, rgba(11,11,14,0.55) 0%, rgba(11,11,14,0) 35%, rgba(11,11,14,0) 70%, rgba(11,11,14,0.92) 100%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.06;
  background-image:
    radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}
.hero-content {
  position: relative;
  width: 100%;
  padding: var(--space-9) var(--container-pad);
  max-width: var(--container-wide);
  margin: 0 auto;
}
.hero-eyebrow-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px;
  margin-bottom: var(--space-5);
}
/* The 2027 paired kicker — same gold cadence as the primary eyebrow but
   set slightly muted so the Brasil 2026 line still leads. */
.hero-eyebrow-next { color: var(--gold-300, var(--gold-200)); opacity: 0.78; }
.hero-headline {
  font-family: var(--display);
  font-size: clamp(3.5rem, 2.0rem + 7vw, 9rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 var(--space-5) 0;
  max-width: 16ch;
}
.hero-headline .gold { color: var(--gold-200); }

/* Hero mask-in animation. Each line clips its own rising span; we add
   padding above for tildes/circumflexes (Ã, Õ, Ê) and below for the
   cedilla (Ç) so Portuguese diacritics aren't clipped on either edge. */
.kinetic-line {
  display: block; overflow: hidden;
  padding-top: 0.16em;
  padding-bottom: 0.20em;
  margin-top: -0.16em;
  margin-bottom: -0.20em;
}
.kinetic-line > span {
  display: block;
  transform: translateY(120%);
  animation: kinetic-rise var(--motion-hero) var(--ease-emphasized) forwards;
}
.kinetic-line:nth-child(1) > span { animation-delay: 80ms; }
.kinetic-line:nth-child(2) > span { animation-delay: 200ms; }
.kinetic-line:nth-child(3) > span { animation-delay: 320ms; }
@keyframes kinetic-rise {
  0%   { transform: translateY(110%); }
  100% { transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fade-in var(--motion-slow) var(--ease-standard) forwards;
  animation-delay: 540ms;
}
@keyframes fade-in {
  to { opacity: 1; }
}

.hero-deck {
  font: 400 var(--body-large)/var(--body-large-leading) var(--body);
  color: var(--text-primary);
  max-width: 48ch;
  margin: 0 0 var(--space-6) 0;
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-line > span { transform: none; animation: none; }
  .fade-in { opacity: 1; animation: none; }
}

/* =========================================================
   STATE MAP SECTION
   ========================================================= */
.map-section { padding: var(--space-10) 0 var(--space-9); position: relative; }
.map-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.map-head h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 4rem); margin-top: 6px; }
.map-head p { color: var(--text-secondary); margin: 0; max-width: 52ch; }
@media (max-width: 800px) { .map-head { grid-template-columns: 1fr; } }

.map-stage {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #0E0E13 0%, #0B0B0E 100%);
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
}
.map-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 64% 78%, rgba(189, 142, 34, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 30% 30%, rgba(15, 93, 58, 0.04) 0%, transparent 60%);
}
.map-svg-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 8/9;
  max-width: 720px;
  margin: 0 auto;
}
.map-svg {
  width: 100%; height: 100%;
  display: block;
}
/* Geographic reference lines */
.map-svg .grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* State group: each UF is its own polygon. Hover lifts and expands the
   shape from its own center, with a light gold wash. */
.map-state {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform var(--motion-base) var(--ease-emphasized),
    filter var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard);
  outline: none;
}

/* When a state is selected, fade the rest so the gold pops and the
   neighboring grey strokes don't bleed into the active state's outline. */
[data-map-svg]:has(.map-state.is-active) .map-state:not(.is-active) {
  opacity: 0.32;
}

.map-state .state-shape {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
  transition:
    fill var(--motion-base) var(--ease-standard),
    stroke var(--motion-base) var(--ease-standard),
    stroke-width var(--motion-base) var(--ease-standard);
}

.map-state .city-pin {
  fill: var(--gold-200);
  opacity: 1;
  pointer-events: none;
  transition:
    fill var(--motion-base) var(--ease-standard),
    opacity var(--motion-base) var(--ease-standard),
    r var(--motion-base) var(--ease-emphasized);
}

.map-state .code {
  font: 600 10px/1 var(--body);
  letter-spacing: 0.10em;
  fill: var(--gold-200);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* HOVER / FOCUS / ACTIVE — unified solid gold preview/selection.
   Keeping the path boundary at its default size (no scale/translate) means
   the opaque gold stroke sits exactly where the original grey stroke was,
   so nothing bleeds through and no sliver of canvas or neighbor edge shows.
   Drop-shadow provides visual lift in place of a transform. */
.map-state:hover,
.map-state:focus-visible,
.map-state.is-active {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}
.map-state:hover .state-shape,
.map-state:focus-visible .state-shape,
.map-state.is-active .state-shape {
  fill: rgba(229, 178, 40, 0.24);
  stroke: var(--gold-200);
  stroke-width: 1.5;
}
.map-state:hover .city-pin,
.map-state:focus-visible .city-pin,
.map-state.is-active .city-pin {
  fill: var(--canvas-dark);
  opacity: 1;
  r: 5;
}

/* SP is no longer permanently styled gold — the crown above marks it. */

/* Crown sits at the SVG root, ABOVE all states. SP's hover transform
   does not affect it, so the crown stays fixed over São Paulo. */
.national-crown-mark {
  color: var(--gold-200);
  pointer-events: none;
}
.national-crown-mark .is-national-label {
  fill: var(--gold-200);
  font: 600 9px/1 var(--body);
  letter-spacing: 0.14em;
}

/* Tooltip */
.map-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 12px 14px 14px;
  background: var(--surface-elevated-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  min-width: 200px;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px)) translateY(4px);
  transition: opacity var(--motion-base) var(--ease-standard),
              transform var(--motion-base) var(--ease-emphasized);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 4;
}
.map-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 14px));
}
/* When the pin is too close to the top of the wrap, map.js flips the
   tooltip below the pin instead so it doesn't get clipped. */
.map-tooltip.is-flipped {
  transform: translate(-50%, 14px) translateY(-4px);
}
.map-tooltip.is-flipped.is-visible {
  transform: translate(-50%, 14px);
}
.map-tooltip::after {
  content: "";
  position: absolute;
  /* Arrow defaults to centered; map.js shifts `--arrow-x` to keep
     it pointed at the pin centroid when the tooltip is clamped
     against a viewport edge. */
  bottom: -6px;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--surface-elevated-2);
  border-right: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}
/* Flipped: arrow points UP (sits at the top of the tooltip). */
.map-tooltip.is-flipped::after {
  top: -6px;
  bottom: auto;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--border-default);
  border-top: 1px solid var(--border-default);
}
.map-tooltip .ttl-eyebrow {
  font: 600 9px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.map-tooltip.is-national .ttl-eyebrow { color: var(--gold-200); }
.map-tooltip .ttl-state {
  font: 400 18px/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.map-tooltip .ttl-city-label {
  font: 600 9px/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.map-tooltip .ttl-city {
  font: 500 13px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}
.map-tooltip.is-multi {
  min-width: 240px;
}
.map-tooltip.is-multi .ttl-city {
  line-height: 1.5;
  white-space: normal;
}

.map-legend {
  display: flex; gap: var(--space-6); flex-wrap: wrap;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font: 500 11px/1 var(--body);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 8px; height: 8px; border-radius: var(--radius-pill); }
.legend-dot.state    { background: var(--text-secondary); }
.legend-dot.national { background: var(--gold); box-shadow: 0 0 0 4px rgba(229,178,40,0.18); }

.how-it-works {
  margin-top: var(--space-8);
}
.how-head {
  text-align: center;
  margin-bottom: var(--space-6);
}
.how-head h3 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 8px 0 12px;
}
.how-deck {
  font: 400 var(--body-default)/1.55 var(--body);
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 0 auto;
}
/* Vertical timeline for How it works. Three stages stacked, joined by
   a thin rail; each stage has Capoeira and Música as parallel columns. */
.how-it-works .timeline {
  max-width: 880px;
  margin: 0 auto;
}
.timeline-stage {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
}
.timeline-stage + .timeline-stage {
  border-top: 1px solid var(--border-subtle);
}
.timeline-rail { position: relative; }
.timeline-rail::before {
  content: "";
  position: absolute;
  left: 17px; top: 28px; bottom: -42px;
  width: 1px;
  background: var(--border-subtle);
}
.timeline-stage:last-child .timeline-rail::before { display: none; }
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--canvas-dark);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font: 500 13px/1 var(--mono);
  color: var(--gold-200);
  font-variant-numeric: tabular-nums;
}
.timeline-body { padding-top: 4px; }
.timeline-title {
  font-family: var(--display);
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.875rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.timeline-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 6px;
}
.timeline-track-label {
  font: 600 9px/1 var(--body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.timeline-track-copy {
  font: 400 14px/1.55 var(--body);
  color: var(--text-secondary);
  margin: 0;
}
.timeline-perk {
  display: block;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--gold);
  font: 500 13px/1.5 var(--body);
  color: var(--text-primary);
}
@media (max-width: 720px) {
  .timeline-stage { grid-template-columns: 44px 1fr; gap: 16px; }
  .timeline-rail::before { left: 17px; }
  .timeline-tracks { grid-template-columns: 1fr; gap: 18px; }
}

.map-cta-row {
  margin-top: var(--space-7);
  display: flex;
  justify-content: center;
}

/* =========================================================
   FORM SECTION
   ========================================================= */
.form-section {
  background: var(--canvas-dark);
  position: relative;
  padding: var(--space-10) 0 var(--space-10);
  border-top: 1px solid var(--border-subtle);
}
.form-section .container { position: relative; }

.form-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: end;
  margin-bottom: var(--space-7);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.form-head h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 4rem);
  margin-top: 6px;
}
.form-head .gold-rule { margin-left: auto; margin-right: auto; }
.form-head p { color: var(--text-secondary); margin: 0 auto; max-width: 56ch; }

.form-toggle {
  display: inline-flex;
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 0 auto var(--space-7);
  align-self: center;
  justify-self: center;
}
.form-toggle-wrap {
  display: flex; justify-content: center;
  margin-bottom: var(--space-5);
}
.form-scope {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 var(--space-5);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: left;
}
.form-scope-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}
.form-scope-text {
  font: 400 13px/1.5 var(--body);
  color: var(--text-secondary);
  letter-spacing: 0; text-transform: none;
}
.form-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 2px;
  transition: background var(--motion-base) var(--ease-standard),
              color var(--motion-base) var(--ease-standard);
}
.form-toggle button:hover { color: var(--text-primary); }
.form-toggle button.is-active {
  background: var(--gold);
  color: var(--text-primary);
}

.form-card {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  padding: clamp(24px, 4vw, 48px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-pane {
  display: none;
}
.form-pane.is-active {
  display: block;
  animation: form-cross-fade var(--motion-base) var(--ease-standard) forwards;
}
@keyframes form-cross-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group .req { color: var(--gold-200); margin-left: 4px; }
.form-group label {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form-group .hint {
  font: 400 12px/1.4 var(--body);
  color: var(--text-muted);
}
.form-group .hint.hint-top {
  margin: -2px 0 12px;
}

.input, .select, .textarea {
  width: 100%;
  height: 48px;
  background: rgba(11, 11, 14, 0.55);
  /* WCAG 1.4.11 Non-text Contrast — interactive control borders need
     3:1 against the adjacent surface. The token --border-strong (0.24)
     measures ~2.17:1 against `--surface-elevated`; 0.36 hits ~3.05:1.
     Literal value used here rather than promoting a new token, since
     this is the only place the stronger ratio is needed. */
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-xs);
  padding: 0 14px;
  font: 400 15px/1.4 var(--body);
  color: var(--text-primary);
  transition: border-color var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-secondary); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23B8B3A8' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }

/* Affiliation independent toggle */
.aff-row { display: flex; flex-direction: column; gap: var(--space-4); }
.aff-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
  transition: opacity var(--motion-base) var(--ease-standard);
}
.aff-fields.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
@media (max-width: 720px) {
  .aff-fields { grid-template-columns: 1fr; }
}

/* Checkbox / cert section */
.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: rgba(11, 11, 14, 0.4);
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.check:hover { border-color: var(--border-default); }
.check input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin: 1px 0 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: rgba(11, 11, 14, 0.7);
  position: relative;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.check input[type="checkbox"]:hover { border-color: var(--gold-200); }
.check input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--canvas-dark);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-text {
  font: 400 14px/1.5 var(--body);
  color: var(--text-primary);
}
.check-text .muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.cert-link {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--border-strong);
  transition:
    color var(--motion-fast) var(--ease-standard),
    text-decoration-color var(--motion-fast) var(--ease-standard);
}
.cert-link:hover {
  color: var(--gold-200);
  text-decoration-color: var(--gold-200);
}
.cert-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.check-row { display: flex; flex-direction: column; gap: 10px; }

.form-submit-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  align-items: stretch;
}
.form-submit-row .btn { width: 100%; height: 56px; font-size: 13px; }

/* Chip group — exposed single-select for short option lists.
   Replaces a dropdown with side-by-side pills. Behaves like a radio group. */
.chip-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 2px;
}
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 16px;
  /* See note on .input — needs 3:1 (WCAG 1.4.11). */
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(11, 11, 14, 0.55);
  border-radius: var(--radius-pill);
  font: 500 13px/1 var(--body);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
  white-space: nowrap;
}
.chip:hover { border-color: var(--text-secondary); }
.chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-primary);
}
.chip[aria-pressed="true"]:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* =========================================================
   STEPPER (band composition)
   ========================================================= */
.stepper-group {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
}
.stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 8px 8px;
  border-radius: var(--radius-xs);
}
.stepper-row + .stepper-row { border-top: 1px solid var(--border-subtle); }
.stepper-label {
  font: 500 14px/1.2 var(--body);
  color: var(--text-primary);
  letter-spacing: 0; text-transform: none;
}
.stepper {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(11, 11, 14, 0.5);
}
.stepper-btn {
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font: 600 16px/1 var(--body);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard);
}
.stepper-btn:hover { background: rgba(255, 255, 255, 0.06); }
.stepper-btn[disabled] {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.5;
}
.stepper-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.stepper-value {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px;
  font: 600 14px/1 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  padding: 0 8px;
}
.stepper-summary {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 8px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--border-subtle);
}
.stepper-summary-total {
  display: flex; align-items: baseline; gap: 8px;
  font: 600 14px/1 var(--body);
}
.stepper-summary-label {
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-muted);
  font-size: 11px;
}
.stepper-summary-value {
  font: 600 22px/1 var(--body);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.stepper-summary-range {
  font-size: 12px;
  color: var(--text-muted);
}
.stepper-summary.is-valid .stepper-summary-value { color: var(--success-on-dark); }
.stepper-summary.is-warning .stepper-summary-value { color: var(--warning-on-dark); }
.stepper-summary-warnings {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.stepper-summary-warnings li {
  font: 500 12px/1.4 var(--body);
  color: var(--warning-on-dark);
  letter-spacing: 0; text-transform: none;
}
.stepper-summary-warnings li::before {
  content: "•  ";
  color: var(--warning-on-dark);
}

.form-success {
  display: none;
  padding: var(--space-6);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-sm);
  background: rgba(15, 93, 58, 0.10);
  text-align: center;
  margin-top: var(--space-5);
}
.form-success.is-visible { display: block; }
.form-success .check-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--text-primary);
  margin-bottom: 14px;
}
.form-success h4 { margin: 0 0 6px 0; font-size: 1.5rem; }
.form-success p { margin: 0; color: var(--text-secondary); }

/* Section heads (form section + map section) — eyebrow + display lockup */
.section-head-centered {
  text-align: center;
  margin-bottom: var(--space-7);
}
.section-head-centered .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head-centered h2 { margin: 0; }

.section-eyebrow-row {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: 0;
  border-top: 1px solid var(--border-subtle);
  background: #08080B;
  padding: var(--space-9) 0 var(--space-6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-9);
  align-items: start;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .marks { display: flex; align-items: center; }
.footer-brand .word {
  display: block;
  height: 32px;
  width: auto;
}
.footer-brand p {
  font: 400 13px/1.55 var(--body);
  color: var(--text-secondary);
  margin: 0;
  max-width: 38ch;
}
.footer-col h5 {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px 0;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font: 400 13px/1 var(--body);
  color: var(--text-secondary);
  transition: color var(--motion-fast) var(--ease-standard);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-rule {
  height: 1px; background: var(--gold);
  width: 56px;
  margin: var(--space-7) 0 var(--space-5);
  opacity: 0.6;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  font: 500 11px/1 var(--body);
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
}

/* =========================================================
   PROVISIONAL NOTICE (Rules page)
   ========================================================= */
.provisional {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid rgba(229, 178, 40, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(189, 142, 34, 0.05);
  margin-bottom: var(--space-7);
}
.provisional .icon {
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: rgba(229,178,40,0.15);
  color: var(--gold-200);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font: 600 14px/1 var(--mono);
}
.provisional p {
  margin: 0;
  font: 400 14px/1.5 var(--body);
  color: var(--text-secondary);
}

/* =========================================================
   RULES PAGE
   ========================================================= */
.rules-hero {
  position: relative;
  width: 100%;
  min-height: clamp(440px, 58vh, 620px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.rules-hero-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/cage.jpg');
  background-size: cover;
  background-position: center 35%;
  filter: contrast(1.05) saturate(0.78) brightness(0.62) hue-rotate(-2deg);
}
.rules-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,14,0.45) 0%, rgba(11,11,14,0.10) 50%, rgba(11,11,14,0.95) 100%),
    radial-gradient(ellipse at 50% 60%, rgba(189,142,34,0.10) 0%, transparent 70%);
}
.rules-hero-content {
  position: relative;
  width: 100%;
  padding: var(--space-9) var(--container-pad) var(--space-7);
  max-width: var(--container-default);
  margin: 0 auto;
}
.rules-hero-content h1 {
  font-size: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
  line-height: 0.92;
  max-width: 16ch;
  margin: 0 0 var(--space-4) 0;
}
.rules-hero-content p {
  font: 400 var(--body-large)/1.45 var(--body);
  color: var(--text-secondary);
  margin: 0;
  max-width: 50ch;
}

.rules-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-9);
  padding: var(--space-9) 0 var(--space-10);
}
@media (max-width: 900px) {
  .rules-body { grid-template-columns: 1fr; gap: var(--space-7); }
  .rules-toc { position: static !important; }
}

.rules-toc {
  position: sticky;
  top: 100px;
  align-self: start;
}
.rules-toc h6 {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-4) 0;
}
.rules-toc ol {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: toc;
}
.rules-toc li {
  counter-increment: toc;
}
.rules-toc a {
  display: flex; gap: 14px;
  padding: 10px 0;
  font: 500 13px/1.4 var(--body);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  transition: color var(--motion-fast) var(--ease-standard);
}
.rules-toc li:first-child a { border-top: 0; }
.rules-toc a:hover { color: var(--gold-200); }
.rules-toc a.is-active { color: var(--gold-200); }
.rules-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.rules-content section { margin-bottom: var(--space-9); scroll-margin-top: 100px; }
.rules-content h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  margin: 0 0 var(--space-5) 0;
}
.rules-content h2 .num {
  display: block;
  font: 500 13px/1 var(--mono);
  color: var(--gold-200);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 8px;
}
.rules-content p {
  font: 400 16px/1.65 var(--body);
  color: var(--text-secondary);
  margin: 0 0 var(--space-4) 0;
  max-width: 64ch;
}
.rules-content ul {
  margin: 0 0 var(--space-4) 0;
  padding-left: 18px;
  color: var(--text-secondary);
}
.rules-content ul li {
  font: 400 16px/1.6 var(--body);
  margin-bottom: 8px;
}

/* =========================================================
   COMING SOON PAGE
   ========================================================= */
.cs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.cs-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(560px, 72vh, 800px);
}
.cs-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.85) brightness(0.55);
}
.cs-photo.gallery {
  background-image: url('https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?w=1800&q=80&auto=format&fit=crop');
}
.cs-photo.streaming {
  background-image: url('https://images.unsplash.com/photo-1517438476312-10d79c077509?w=1800&q=80&auto=format&fit=crop');
}
.cs-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(11,11,14,0.55) 0%, rgba(11,11,14,0.92) 70%, var(--canvas-dark) 100%),
    linear-gradient(180deg, rgba(11,11,14,0.75) 0%, rgba(11,11,14,0.4) 30%, rgba(11,11,14,0.85) 100%);
}
.cs-grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0.05;
  background-image:
    radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}
.cs-content {
  position: relative;
  width: 100%;
  max-width: var(--container-default);
  margin: 0 auto;
  padding: var(--space-9) var(--container-pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: end;
}
@media (max-width: 900px) {
  .cs-content { grid-template-columns: 1fr; }
}
.cs-headline-block .eyebrow { display: inline-block; margin-bottom: var(--space-4); }
.cs-headline-block h1 {
  font-size: clamp(2.75rem, 1.8rem + 5.2vw, 7rem);
  line-height: 0.86;
  margin: 0 0 var(--space-5) 0;
}
.cs-headline-block .gold-rule { margin: var(--space-5) 0 var(--space-5); }
.cs-meta-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-5);
}
.cs-meta-block p {
  font: 400 var(--body-large)/1.55 var(--body);
  color: var(--text-secondary);
  margin: 0 0 var(--space-5) 0;
  max-width: 48ch;
}
.cs-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}
.cs-meta-grid h6 {
  font: 600 10px/1 var(--body);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}
.cs-meta-grid .val {
  font: 500 14px/1.3 var(--mono);
  color: var(--text-primary);
}
.cs-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.cs-marquee {
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  background: var(--canvas-dark);
  overflow: hidden;
}
.cs-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  gap: var(--space-7);
  align-items: center;
}
.cs-marquee span {
  font: 600 11px/1 var(--body);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-muted);
}
.cs-marquee .dot { color: var(--gold); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-marquee-track { animation: none; }
}

/* =========================================================
   GENERIC SECTION HEAD (used in Home below hero)
   ========================================================= */
.section-eyebrow { margin-bottom: 12px; display: inline-block; }

/* =========================================================
   RULES PAGE — v2 (regulation tabs, lang blocks, callouts)
   ========================================================= */

/* Language block visibility (driven by html[lang] set by i18n.js) */
html[lang="pt-BR"] .lang-en,
html[lang="pt"]    .lang-en { display: none; }
html[lang="en"]    .lang-pt { display: none; }

/* Tab-based section visibility */
.rules-body[data-active-tab="state"]    [data-tab]:not([data-tab~="state"])    { display: none; }
.rules-body[data-active-tab="national"] [data-tab]:not([data-tab~="national"]) { display: none; }

/* Tab switcher */
.rules-tabs {
  display: flex;
  gap: 0;
  margin-top: var(--space-7);
  border-bottom: 1px solid var(--border-subtle);
}
.rules-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 24px 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  font: 500 15px/1.2 var(--body);
  letter-spacing: 0.005em;
  transition: color var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard);
}
.rules-tab:hover { color: var(--text-primary); }
.rules-tab .rules-tab-eyebrow {
  font: 500 11px/1 var(--mono);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--motion-fast) var(--ease-standard);
}
.rules-tab.is-active {
  color: var(--gold-200);
  border-bottom-color: var(--gold-200);
}
.rules-tab.is-active .rules-tab-eyebrow { color: var(--gold-200); }

/* ToC: replace auto-counter with explicit numeral */
.rules-toc a::before { content: none; }
.rules-toc .toc-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 30px;
  flex-shrink: 0;
}
.rules-toc a.is-active .toc-num,
.rules-toc a:hover .toc-num { color: var(--gold-200); }

/* Section H3 subheads */
.rules-content h3 {
  font: 600 13px/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-3) 0;
}
.rules-content h3:first-child { margin-top: 0; }
.rules-content p.note-italic {
  font-style: italic;
  color: var(--text-muted);
  font-size: 15px;
}
.rules-content ul li strong { color: var(--text-primary); font-weight: 600; }

/* Inline callout — neutral subdued block */
.rules-content .callout {
  border-left: 2px solid var(--gold-200);
  background: rgba(229, 178, 40, 0.04);
  padding: 16px 20px;
  margin: var(--space-5) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.rules-content .callout p {
  margin: 0;
  font: 500 15px/1.55 var(--body);
  color: var(--text-primary);
  font-style: italic;
}

/* Judge cards — Section XI scoring panels */
.rules-content .judge-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: var(--space-4) 0;
  background: rgba(255, 255, 255, 0.015);
}
.rules-content .judge-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.rules-content .judge-card-num {
  font: 600 13px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--gold-200);
  text-transform: uppercase;
}
.rules-content .judge-card-title {
  font: 500 14px/1.35 var(--body);
  color: var(--text-primary);
}
.rules-content .judge-card ul { margin-bottom: 12px; }
.rules-content .judge-card ul li { font-size: 15px; }
.rules-content .judge-card-criterion {
  margin: 0;
  font: 400 14px/1.55 var(--body);
  color: var(--text-muted);
  font-style: italic;
}

/* Mission block — Section XVII */
.rules-content .mission-block {
  margin: var(--space-6) 0;
  padding: 28px 30px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(229, 178, 40, 0.03);
}
.rules-content .mission-eyebrow {
  display: block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-200);
  margin-bottom: 14px;
}
.rules-content .mission-lede {
  font: 500 17px/1.5 var(--body);
  color: var(--text-primary);
  margin: 0 0 var(--space-4) 0;
}
.rules-content .closing-tagline {
  text-align: center;
  font: 400 13px/1.4 var(--mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: var(--space-7) 0 0 0;
}

/* Footer CTA row */
.rules-footer-cta {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .rules-tab { padding: 14px 16px 12px; font-size: 14px; }
  .rules-tab .rules-tab-eyebrow { display: none; }
  .rules-content .judge-card { padding: 16px; }
  .rules-content .mission-block { padding: 22px 20px; }
}

/* =========================================================
   SHARE — top-nav trigger, popover menu, simulated previews
   ========================================================= */
.share-wrap { position: relative; display: inline-flex; }

.share-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font: 600 11px/1 var(--body);
  letter-spacing: 0.10em; text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.share-trigger:hover { color: var(--text-primary); border-color: var(--border-default); }
.share-trigger[aria-expanded="true"] { color: var(--text-primary); border-color: var(--border-default); }
.share-trigger svg { display: block; }

@media (max-width: 720px) {
  .share-trigger { padding: 0; width: 36px; }
  .share-trigger-label { display: none; }
}

.share-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 224px;
  padding: 6px;
  background: var(--surface-elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
  z-index: 60;
}
.share-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.share-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-secondary);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font: 500 14px/1 var(--body);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition:
    color var(--motion-fast) var(--ease-standard),
    background var(--motion-fast) var(--ease-standard);
}
.share-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.share-item-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--text-muted);
}
.share-item:hover .share-item-icon { color: var(--text-primary); }
.share-item-label { flex: 1; }
.share-item-status {
  font: 600 10px/1 var(--body);
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--green-200);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-standard);
}
.share-item-status.is-visible { opacity: 1; }

/* Instagram share is a Web Share API affordance — only usable on
   mobile-capable devices. Ship it CSS-hidden so desktop never sees a
   flash-of-affordance; js/share.js adds .is-share-capable to reveal it
   where navigator.share + a coarse pointer are present. */
[data-share-action="instagram"] { display: none; }
.share-item[data-share-action="instagram"].is-share-capable { display: flex; }
.form-share-btn[data-share-action="instagram"].is-share-capable { display: inline-flex; }

/* ------------ Modal shell ------------ */
.share-modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-base) var(--ease-standard);
  z-index: 100;
}
.share-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.share-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.share-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--surface-elevated-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.share-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.share-modal-eyebrow {
  display: block;
  font: 600 10px/1 var(--body);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.share-modal-title {
  font: 500 18px/1.2 var(--body);
  color: var(--text-primary);
  margin: 0;
}
.share-modal-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.share-modal-close:hover { color: var(--text-primary); border-color: var(--border-default); }
.share-modal-body { }
.share-pane { display: none; }
.share-pane.is-active { display: block; }
.share-modal-caption {
  margin: 16px 0 0;
  font: 400 13px/1.5 var(--body);
  color: var(--text-muted);
}

/* ------------ WhatsApp preview ------------ */
.wa-frame {
  background: #e7dfd5;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.wa-header {
  display: flex; align-items: center; gap: 10px;
  background: #075e54;
  color: #fff;
  padding: 12px 14px;
}
.wa-back { font-size: 18px; opacity: 0.85; }
.wa-avatar {
  width: 34px; height: 34px; border-radius: 999px;
  background: #128c7e;
  flex-shrink: 0;
}
.wa-meta { display: flex; flex-direction: column; gap: 2px; }
.wa-name { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.wa-presence { font-size: 11px; opacity: 0.78; }
.wa-thread {
  padding: 16px 12px 14px;
  min-height: 220px;
}
.wa-bubble {
  max-width: 86%;
  margin-left: auto;
  background: #d9fdd3;
  border-radius: 8px 8px 2px 8px;
  padding: 6px 6px 4px;
  font-size: 13px;
  color: #111b21;
}
.wa-preview {
  display: block;
  background: rgba(0,0,0,0.04);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid #06cf9c;
}
.wa-preview-image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background-size: cover;
  background-position: center 38%;
}
.wa-preview-body { padding: 8px 10px 10px; }
.wa-preview-title {
  font-size: 13px; font-weight: 600;
  color: #111b21;
  margin-bottom: 3px;
  letter-spacing: 0; text-transform: none;
}
.wa-preview-desc {
  font-size: 12px; line-height: 1.35;
  color: #54656f;
  margin-bottom: 4px;
}
.wa-preview-domain {
  font-size: 11px;
  color: #8696a0;
}
.wa-bubble-text {
  padding: 6px 8px 0;
  font-size: 13px;
  color: #1a73e8;
  word-break: break-all;
}
.wa-bubble-meta {
  display: flex; justify-content: flex-end; gap: 4px;
  padding: 2px 8px 2px;
  font-size: 10px;
  color: #667781;
}
.wa-ticks { color: #53bdeb; }

/* ------------ Instagram preview ------------ */
.ig-frame {
  display: flex; justify-content: center;
}
.ig-story {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
}
.ig-story::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 50%, rgba(11,11,14,0.82) 100%);
  pointer-events: none;
}
.ig-progress {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 4px;
  z-index: 2;
}
.ig-progress span {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.ig-progress span.is-active { background: rgba(255,255,255,0.95); }
.ig-top {
  position: absolute; top: 22px; left: 12px; right: 12px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.ig-account { display: flex; align-items: center; gap: 8px; }
.ig-avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, #833ab4 0%, #c13584 50%, #e1306c 100%);
  border: 2px solid #fff;
  box-sizing: border-box;
}
.ig-handle { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ig-time { font-size: 12px; opacity: 0.72; letter-spacing: 0; text-transform: none; }
.ig-top-actions { display: flex; gap: 3px; }
.ig-dot {
  width: 4px; height: 4px; border-radius: 999px;
  background: #fff;
}
.ig-text-slot {
  position: absolute;
  top: 38%; left: 12px; right: 12px;
  transform: translateY(-50%);
  display: flex; justify-content: center;
  z-index: 2;
}
.ig-brand {
  position: absolute;
  left: 16px; right: 16px;
  bottom: 64px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 14px 18px 16px;
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(189, 142, 34, 0.32);
  border-radius: var(--radius-xs);
  z-index: 2;
  text-align: center;
}
.ig-brand-eyebrow {
  font: 600 9px/1 var(--body);
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-200);
}
.ig-brand-rule {
  display: block;
  width: 36px; height: 1px;
  background: var(--gold);
}
.ig-brand-url {
  font: 600 22px/1 var(--body);
  letter-spacing: 0.04em; text-transform: lowercase;
  color: #fff;
}
.ig-text-placeholder {
  font: 500 13px/1.4 var(--body);
  color: rgba(255,255,255,0.78);
  letter-spacing: 0; text-transform: none;
  padding: 8px 14px;
  border: 1px dashed rgba(255,255,255,0.45);
  border-radius: 6px;
  background: rgba(0,0,0,0.18);
}
.ig-bottom {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 8px;
  z-index: 2;
}
.ig-bottom-input {
  flex: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  letter-spacing: 0; text-transform: none;
}
.ig-icon-heart, .ig-icon-send {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
}

/* ------------ Facebook preview ------------ */
.fb-frame {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #050505;
}
.fb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e6eb;
}
.fb-head-title { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.fb-head-cancel { font-size: 13px; color: #65676b; }
.fb-author {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 8px;
}
.fb-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: #c0c4cb;
  flex-shrink: 0;
}
.fb-author-meta { display: flex; flex-direction: column; gap: 3px; }
.fb-author-name { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.fb-author-aud {
  font-size: 11px;
  color: #65676b;
  padding: 2px 6px;
  border: 1px solid #ced0d4;
  border-radius: 4px;
  align-self: flex-start;
  letter-spacing: 0; text-transform: none;
}
.fb-composer {
  padding: 6px 14px 12px;
}
.fb-placeholder {
  font-size: 14px;
  color: #65676b;
  letter-spacing: 0; text-transform: none;
}
.fb-link-card {
  margin: 0 14px 12px;
  border: 1px solid #ced0d4;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
}
.fb-link-image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background-size: cover;
  background-position: center 38%;
}
.fb-link-body { padding: 10px 12px 12px; background: #f0f2f5; }
.fb-link-domain {
  font-size: 11px;
  color: #65676b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.fb-link-title {
  font-size: 15px; font-weight: 600;
  color: #050505;
  margin-bottom: 4px;
  letter-spacing: 0; text-transform: none;
}
.fb-link-desc {
  font-size: 13px; line-height: 1.4;
  color: #65676b;
  letter-spacing: 0; text-transform: none;
}
.fb-submit {
  padding: 0 14px 14px;
}
.fb-submit-btn {
  display: block;
  text-align: center;
  background: #1877f2;
  color: #fff;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}

/* ------------ Share row near the form ------------ */
.form-share-row {
  margin: var(--space-7) auto 0;
  max-width: 640px;
  text-align: center;
}
.form-share-row .gold-rule { margin-bottom: var(--space-4); }
.form-share-title {
  font: 600 18px/1.25 var(--body);
  letter-spacing: 0; text-transform: none;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.form-share-deck {
  font: 400 14px/1.55 var(--body);
  color: var(--text-secondary);
  max-width: 48ch;
  margin: 0 auto var(--space-5);
}
.form-share-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
}
.form-share-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font: 600 12px/1 var(--body);
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--motion-fast) var(--ease-standard),
    border-color var(--motion-fast) var(--ease-standard);
}
.form-share-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.form-share-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.form-share-btn:hover .form-share-btn-icon { color: var(--text-primary); }
.form-share-btn-status {
  position: absolute;
  left: 50%; top: -22px;
  transform: translateX(-50%);
  font: 600 9px/1 var(--body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-200);
  padding: 4px 8px;
  border: 1px solid rgba(79, 163, 118, 0.32);
  border-radius: var(--radius-xs);
  background: var(--surface-elevated);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-standard);
}
.form-share-btn-status.is-visible { opacity: 1; }

@media (max-width: 600px) {
  .form-share-btn {
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }
}

/* Stage-04 timeline eyebrow sits cleanly above the stage title. */
.timeline-stage-eyebrow {
  display: block;
  margin-bottom: var(--space-2);
}

/* =========================================================
   CONFIRMATION PAGE (obrigado.html)
   Receipt-style lockup. The whole composition lives inside a
   single elevated card so it reads as a completed step, not a
   marketing hero. Confirmation is primary; the share invitation
   is a quieter, supporting flourish below it — same card.
   ========================================================= */
.confirmation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: var(--space-8) var(--container-pad);
}
.confirmation-card {
  width: 100%;
  /* 680px outer · 32px side padding = 616px content row. Just enough to
     keep the 4 share buttons on one line at desktop while the card still
     feels like a contained receipt rather than a hero. */
  max-width: 680px;
  margin: 0 auto;
  /* Elevation on dark canvas = surface lift + hairline, never shadow. */
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  text-align: center;
}
.confirmation-inner {
  width: 100%;
  margin: 0 auto;
}

.confirmation-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
}

/* Primary moment. */
.confirmation-title {
  font: 600 clamp(2.25rem, 5.4vw, 3.75rem) / 0.98 var(--display);
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 var(--space-3) 0;
}
.confirmation-deck {
  font: 400 var(--body-large) / var(--body-large-leading) var(--body);
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto;
}

/* Secondary moment — supporting invitation. Sized clearly under
   the title so the hierarchy reads as one composition. */
.confirmation-share {
  margin-top: var(--space-6);
}
.confirmation-share-headline {
  font: 600 clamp(1.375rem, 2.6vw, 1.75rem) / 1.05 var(--display);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gold-200);
  margin: 0 0 var(--space-1) 0;
}
.confirmation-share-deck {
  font: 400 var(--body) / var(--body-leading) var(--body);
  color: var(--text-secondary);
  max-width: 38ch;
  margin: 0 auto var(--space-4) auto;
}
.confirmation-share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  /* Allow the actions row to break out of the narrow 560px column so all
     four share buttons sit on one line at desktop. The lockup still reads
     as one composition — the row just exhales a touch wider. */
  max-width: 640px;
  margin: 0 auto;
}
/* Primary share CTA — Copy Link gets gold fill to lead the row.
   Social buttons remain as the outlined secondaries. */
.form-share-btn.is-primary {
  background: var(--gold);
  color: var(--text-primary);
  border-color: var(--gold);
}
.form-share-btn.is-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--text-primary);
}
.form-share-btn.is-primary .form-share-btn-icon { color: var(--text-primary); }
.form-share-btn.is-primary:hover .form-share-btn-icon { color: var(--text-primary); }

@media (max-width: 720px) {
  .confirmation {
    min-height: calc(100vh - 140px);
    padding: var(--space-6) var(--container-pad);
  }
  .confirmation-card {
    padding: var(--space-6) var(--space-5);
  }
  .confirmation-share {
    margin-top: var(--space-5);
  }
  .confirmation-share-actions {
    flex-direction: column;
    gap: var(--space-2);
    max-width: 320px;
  }
  .confirmation-share-actions .form-share-btn {
    width: 100%;
    justify-content: center;
  }
}
