/* ============================================================
   Arena SandSports — design tokens
   Colors extracted from the logo (orange sun, navy ring, sand,
   sun yellow, wave blue, silhouettes black).
   ============================================================ */

:root {
  /* base palette */
  --sand-50:   #FBF5E7;
  --sand-100:  #F5E7C5;
  --sand-200:  #EBD49A;
  --sand-300:  #D9B86A;
  --navy-950:  #07182A;
  --navy-900:  #0B2236;
  --navy-800:  #142F4A;
  --navy-700:  #1E4368;
  --orange-700:#C4501A;
  --orange-600:#E45E1A;
  --orange-500:#F26B1F;
  --orange-400:#FF8A3D;
  --sun-400:   #F4C419;
  --wave-500:  #2F7AB0;
  --ink-900:   #14110D;
  --off:       #FFFAF1;
  --line:      rgba(11, 34, 54, .12);
  --line-strong: rgba(11, 34, 54, .22);

  /* semantic — driven by palette tweak */
  --bg:           var(--sand-50);
  --bg-elev:      #FFFFFF;
  --bg-dark:      var(--navy-900);
  --text:         var(--navy-900);
  --text-soft:    rgba(11, 34, 54, .68);
  --text-muted:   rgba(11, 34, 54, .50);
  --accent:       var(--orange-500);
  --accent-ink:   #FFFFFF;
  --brand:        var(--navy-900);

  /* type */
  --f-display: "Anton", "Archivo Black", Impact, sans-serif;
  --f-body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  /* spacing scale tuned to density */
  --pad-section: clamp(64px, 9vw, 128px);
  --pad-x:       clamp(20px, 5vw, 72px);
  --gap:         clamp(20px, 3vw, 32px);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,34,54,.08), 0 2px 6px rgba(11,34,54,.05);
  --shadow:    0 4px 16px rgba(11,34,54,.10), 0 12px 32px rgba(11,34,54,.07);
  --shadow-lg: 0 12px 32px rgba(11,34,54,.18), 0 32px 64px rgba(11,34,54,.12);

  /* utility */
  --container: 1280px;
}

/* density */
:root[data-density="compact"] { --pad-section: clamp(48px, 7vw, 96px); --gap: clamp(14px,2vw,22px); }
:root[data-density="comfy"]   { --pad-section: clamp(80px, 12vw, 160px); --gap: clamp(28px,4vw,48px); }

/* palette variations */
:root[data-palette="warm"] {
  --bg: var(--sand-50);
  --text: var(--navy-900);
  --brand: var(--navy-900);
  --accent: var(--orange-500);
}
:root[data-palette="navy"] {
  --bg: #F2EBD8;
  --text: var(--navy-900);
  --brand: var(--navy-900);
  --accent: var(--orange-500);
}
:root[data-palette="dark"] {
  --bg: var(--navy-950);
  --bg-elev: var(--navy-800);
  --text: #FBEFD4;
  --text-soft: rgba(251,239,212,.72);
  --text-muted: rgba(251,239,212,.55);
  --brand: var(--orange-500);
  --line: rgba(245, 231, 197, .12);
  --line-strong: rgba(245, 231, 197, .22);
}

/* ============================================================
   Reset + base
   ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Type
   ============================================================ */
.display, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: .92;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
h1 { font-size: clamp(56px, 9vw, 132px); }
h2 { font-size: clamp(40px, 5.5vw, 80px); line-height: .94; }
h3 { font-size: clamp(28px, 3vw, 44px); }
p { margin: 0; text-wrap: pretty; }
.eyebrow {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--text-soft); }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
section { padding-block: var(--pad-section); position: relative; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 0 var(--orange-700), 0 10px 24px rgba(244, 107, 31, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--orange-700), 0 14px 30px rgba(244, 107, 31, .4); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-700), 0 6px 14px rgba(244, 107, 31, .25); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.btn-dark {
  background: var(--navy-900);
  color: #FFF;
  border-color: var(--navy-900);
}
.btn-dark:hover { background: var(--navy-800); }

.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-icon { width: 18px; height: 18px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }

/* ============================================================
   Misc
   ============================================================ */
.divider-zig {
  height: 18px;
  background-image:
    linear-gradient(135deg, var(--accent) 25%, transparent 25%),
    linear-gradient(225deg, var(--accent) 25%, transparent 25%);
  background-size: 18px 18px;
  background-position: 0 0;
  opacity: .9;
}

.sand-grain {
  background-image: radial-gradient(rgba(11,34,54,.08) 1px, transparent 1px);
  background-size: 4px 4px;
}

.tape {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sun-400);
  color: var(--navy-900);
  font-family: var(--f-display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: .04em;
  transform: rotate(-2deg);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(11,34,54,.06);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.chip-orange { background: rgba(242,107,31,.12); color: var(--orange-600); }
.chip-sun { background: rgba(244,196,25,.18); color: #946D00; }
.chip-wave { background: rgba(47,122,176,.14); color: var(--wave-500); }

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

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(96px, 12vw, 140px);
  padding-bottom: clamp(40px, 6vw, 80px);
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(244,196,25,.35), transparent 60%),
    linear-gradient(180deg, var(--sand-50) 0%, var(--sand-100) 100%);
  isolation: isolate;
}
[data-palette="dark"] .hero {
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(242,107,31,.35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(47,122,176,.25), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}

.hero-sun {
  position: absolute;
  width: clamp(380px, 50vw, 720px);
  height: clamp(380px, 50vw, 720px);
  right: -8%;
  top: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFD75E 0%, var(--sun-400) 35%, var(--orange-500) 75%, transparent 76%);
  filter: blur(.5px);
  z-index: 0;
  opacity: .9;
}

.hero-sand {
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(244,196,25,.4), transparent 70%),
    linear-gradient(180deg, transparent, rgba(217,184,106,.4) 50%, rgba(217,184,106,.6));
  z-index: 1;
}
.hero-sand::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(11,34,54,.18) 1px, transparent 1.5px);
  background-size: 5px 5px;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hero-inner { position: relative; z-index: 2; }
.hero-headline {
  font-size: clamp(64px, 11.5vw, 184px);
  line-height: .92;
  letter-spacing: -0.01em;
}
.hero-headline .stroke {
  -webkit-text-stroke: 2px var(--navy-900);
  color: transparent;
}
[data-palette="dark"] .hero-headline .stroke {
  -webkit-text-stroke: 2px var(--off);
}
.hero-headline .accent { color: var(--accent); }
/* Inside an .underline tape, keep the accented word readable (orange tape → white text) */
.hero-headline .underline .accent { color: #FFF; }
.hero-headline .underline {
  display: inline;
  white-space: nowrap;
  background-image: linear-gradient(180deg, transparent 0 68%, var(--accent) 68% 92%, transparent 92% 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 .08em;
}

.silhouettes {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 80vw);
  height: 220px;
  z-index: 1;
  opacity: .85;
}
[data-palette="dark"] .silhouettes { opacity: .55; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
  z-index: 2;
}
.trust-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trust-item:last-child { border-right: 0; }
.trust-num {
  font-family: var(--f-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: var(--text);
  display: flex; align-items: baseline; gap: 6px;
}
.trust-num .unit { color: var(--accent); }
.trust-label { font-size: 12px; color: var(--text-soft); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 720px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Hero variants (split / full-bleed / centered)
   ============================================================ */

/* SPLIT (default): text left, photo card right */
.hero-split .hero-inner {
  /* reserve space on the right for the absolutely-positioned photo card,
     instead of shrinking the container (which would re-center it) */
  padding-right: clamp(320px, 40vw, 520px);
  max-width: var(--container);
  /* give the absolute-positioned photo card a tall containing block so it
     reads as a portrait/poster rather than getting squeezed to the text height */
  min-height: clamp(560px, 58vw, 820px);
}
.hero-split .hero-headline { font-size: clamp(48px, 7.8vw, 116px); }
.hero-split .hero-photo {
  position: absolute;
  /* push closer to the top of the hero so the photo fills more vertical space */
  top: clamp(90px, 9vw, 120px);
  /* anchor to bottom of .hero-inner so the photo never extends into the trust strip below */
  bottom: clamp(16px, 3vw, 32px);
  right: var(--pad-x);
  width: clamp(300px, 36vw, 500px);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(11,34,54,.25);
  overflow: hidden;
  z-index: 4;
  background: linear-gradient(135deg, var(--sand-200), var(--sand-100));
  border: 4px solid var(--off);
  transform: rotate(2deg);
  transition: transform .4s ease;
}
.hero-split .hero-photo:hover { transform: rotate(0deg); }
.hero-split .hero-photo image-slot { width: 100%; height: 100%; display: block; }
.hero-split .hero-photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  padding: 40px 16px 16px;
  z-index: 2;
  pointer-events: none;
}
[data-palette="dark"] .hero-split .hero-photo { border-color: var(--navy-800); }

/* Hero carousel (multi-photo, fade, hover-pause + zoom) */
.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  cursor: default;
  background: linear-gradient(135deg, var(--sand-200), var(--sand-100));
}
.hero-carousel.is-empty { cursor: pointer; }
.hc-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease, transform 6s ease-out, filter .6s ease;
  will-change: opacity, transform;
}
.hc-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.7));
  padding: 44px 16px 16px;
  z-index: 3;
  pointer-events: none;
}
.hc-dots {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 56px;
  display: flex; gap: 6px;
  z-index: 4;
  padding: 6px 10px;
  background: rgba(0,0,0,.32);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .2s, background .2s;
}
.hc-dot:hover { background: rgba(255,255,255,.75); }
.hc-dot.active { width: 22px; border-radius: 4px; background: #FFF; }

.hc-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--navy-900);
  text-align: center; padding: 24px;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
}
.hc-empty svg { color: var(--navy-800); opacity: .55; margin-bottom: 6px; }
.hc-empty strong { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.hc-empty span { font-size: 13px; color: var(--text-soft); }
.hc-empty-hint { margin-top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.hc-tools {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 6px;
  z-index: 5;
  opacity: 0;
  transition: opacity .2s ease;
}
.hero-carousel.is-hover .hc-tools { opacity: 1; }
.hc-tool {
  width: 32px; height: 32px; border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #FFF;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s;
}
.hc-tool:hover { background: var(--orange-500); }

.hc-drag-overlay {
  position: absolute; inset: 8px;
  border: 3px dashed var(--orange-500);
  border-radius: 22px;
  background: rgba(242,107,31,.16);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 32px;
  text-transform: uppercase;
  color: var(--orange-700);
  z-index: 10;
  pointer-events: none;
}

/* hover state on the photo card itself: hold the rotation tilt subtly */
.hero-split .hero-photo:hover { transform: rotate(0deg) scale(1.01); }
.hero-carousel.is-hover .hc-slide[style*="opacity: 1"] {
  /* slow Ken-Burns pan kicks in via inline transform from React */
}


@media (max-width: 920px) {
  .hero-split .hero-inner { padding-right: var(--pad-x); }
  .hero-split .hero-headline { font-size: clamp(56px, 11vw, 132px); }
  .hero-split .hero-photo {
    position: relative; top: auto; right: auto;
    width: 100%; margin: 40px 0 0; aspect-ratio: 16/10;
    transform: rotate(0);
  }
}

/* FULL-BLEED: image fills the hero, text overlaid */
.hero-full-bleed { padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(60px, 8vw, 100px); }
.hero-full-bleed .hero-sun { opacity: .25; }
.hero-full-bleed .silhouettes { opacity: .15; }
.hero-full-bleed .hero-sand { opacity: .35; }
.hero-full-bleed .hero-bleed {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
}
.hero-full-bleed .hero-bleed image-slot { width: 100%; height: 100%; display: block; }
.hero-full-bleed .hero-bleed::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(7,24,42,.82) 0%, rgba(7,24,42,.45) 55%, rgba(7,24,42,.1) 100%);
  z-index: 1;
}
.hero-full-bleed .hero-inner { color: #FFF; position: relative; z-index: 4; }
.hero-full-bleed .hero-inner .hero-headline { color: #FFF; }
.hero-full-bleed .hero-inner .hero-headline .stroke { -webkit-text-stroke: 2px #FFF; }
.hero-full-bleed .hero-inner .lead { color: rgba(255,255,255,.88); }
.hero-full-bleed .hero-inner .eyebrow { color: #FFD75E; }
.hero-full-bleed .hero-inner .eyebrow::before { background: #FFD75E; }
.hero-full-bleed .btn-ghost { color: #FFF; border-color: rgba(255,255,255,.4); }
.hero-full-bleed .btn-ghost:hover { background: #FFF; color: var(--navy-900); border-color: #FFF; }

/* CENTERED */
.hero-centered { text-align: center; }
.hero-centered .hero-inner { max-width: 920px; margin-inline: auto; }
.hero-centered .hero-inner > .lead { margin-inline: auto; }
.hero-centered .hero-inner > div[style*="display: flex"] { justify-content: center; }
.hero-centered .eyebrow { justify-content: center; }
.hero-centered .hero-headline { letter-spacing: -0.015em; }


/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  transition: background .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}
.nav.scrolled {
  background: rgba(251,245,231,.85);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}
[data-palette="dark"] .nav.scrolled {
  background: rgba(7,24,42,.78);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--text);
}
.nav-logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  transition: color .18s;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ============================================================
   Sports grid
   ============================================================ */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .sports-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .sports-grid { grid-template-columns: 1fr; } }

.sport-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.sport-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.sport-head {
  height: 140px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px;
}
.sport-head .sport-icon { width: 70px; height: 70px; color: rgba(255,255,255,.95); position: absolute; right: 16px; top: 16px; }
.sport-head .sport-num {
  font-family: var(--f-display);
  font-size: 64px;
  line-height: 1;
  color: rgba(255,255,255,.32);
  letter-spacing: -.02em;
}
.sport-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sport-name { font-family: var(--f-display); font-size: 26px; text-transform: uppercase; }
.sport-desc { color: var(--text-soft); font-size: 14px; line-height: 1.5; }
.sport-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }

/* ============================================================
   Schedule heatmap
   ============================================================ */
.schedule {
  display: grid;
  grid-template-columns: 76px repeat(7, 1fr);
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  overflow-x: auto;
}
.sch-head, .sch-time {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  padding: 6px 4px;
}
.sch-cell {
  height: 36px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .12s, filter .12s;
  position: relative;
}
.sch-cell:hover { transform: scale(1.06); z-index: 2; }
.sch-cell.free    { background: rgba(47,122,176,.16); color: var(--wave-500); }
.sch-cell.popular { background: rgba(242,107,31,.18); color: var(--orange-700); }
.sch-cell.peak    { background: var(--orange-500); color: #FFF; box-shadow: inset 0 0 0 2px rgba(0,0,0,.06); }
.sch-cell.full    { background: rgba(11,34,54,.06); color: var(--text-muted); cursor: not-allowed; text-decoration: line-through; }

/* ============================================================
   Teacher cards
   ============================================================ */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .teachers-grid { grid-template-columns: 1fr; } }

.teacher {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.teacher:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.teacher-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  position: relative;
  overflow: hidden;
}
.teacher-photo image-slot { width: 100%; height: 100%; display: block; }

/* Tighter portrait framing: wrapper div is scaled, image-slot host is
   untouched (so its internal shadow-DOM rendering keeps working). */
.teacher-photo-zoom {
  width: 100%; height: 100%;
  transform: scale(1.35);
  transform-origin: center 22%;
  transition: transform .4s ease;
}
.teacher:hover .teacher-photo-zoom { transform: scale(1.42); }
.teacher-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.teacher-name { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0; line-height: 1; }
.teacher-role { color: var(--text-soft); font-size: 13px; margin-top: 4px; }
.teacher-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }

/* let .reveal wrappers in the teachers grid pass height down so every card
   stretches to the row's tallest card → uniform sizes regardless of tag count */
.teachers-grid > .reveal { display: flex; }
.teachers-grid > .reveal > .teacher { width: 100%; }

/* ============================================================
   Structure tour — 4 carousel tiles, asymmetric mosaic
   ============================================================ */
.tour {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 320px;
  gap: 14px;
}
@media (max-width: 800px) { .tour { grid-auto-rows: 240px; } }

.tour-tile {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: default;
  isolation: isolate;
}
.tour-tile.is-empty { cursor: pointer; }
.tour-tile.is-hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(0,0,0,.32); }

/* asymmetric mosaic: 4 tiles, 2 rows */
.tour-tile:nth-child(1) { grid-column: span 8; grid-row: span 1; }  /* Quadras (wide) */
.tour-tile:nth-child(2) { grid-column: span 4; grid-row: span 1; }  /* Banheiros */
.tour-tile:nth-child(3) { grid-column: span 4; grid-row: span 1; }  /* Convivência */
.tour-tile:nth-child(4) { grid-column: span 8; grid-row: span 1; }  /* Eventos (wide) */

@media (max-width: 900px) {
  .tour-tile:nth-child(1),
  .tour-tile:nth-child(2),
  .tour-tile:nth-child(3),
  .tour-tile:nth-child(4) { grid-column: span 12; }
}

/* photo slide (one per photo, fade between) */
.tour-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity .9s ease, transform 4s ease-out;
  will-change: opacity, transform;
}
.tour-empty-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(0,0,0,.18));
}

/* dark overlay so label is readable */
.tour-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,34,54,0) 30%, rgba(11,34,54,.78) 100%),
    linear-gradient(180deg, rgba(11,34,54,.35) 0%, rgba(11,34,54,0) 40%);
  z-index: 2;
  pointer-events: none;
  transition: opacity .3s ease;
}
.tour-tile.is-hover .tour-overlay { opacity: .9; }

/* meta block (eyebrow / label / desc) */
.tour-meta {
  position: absolute; left: 22px; right: 22px; bottom: 20px;
  z-index: 3;
  color: #FFF;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
  transition: right .25s ease;
}
.tour-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-400);
  opacity: .9;
}
.tour-label {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 32px);
  text-transform: uppercase;
  line-height: 1;
  color: #FFF;
  /* override the previous chip-style positioning */
  position: static;
  background: none;
  padding: 0;
}
.tour-desc {
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .35s ease, max-height .35s ease, margin-top .35s ease;
}
.tour-tile.is-hover .tour-desc { opacity: 1; max-height: 80px; margin-top: 6px; }

/* dots indicator */
.tour-dots {
  position: absolute; right: 22px; top: 22px;
  display: flex; gap: 5px;
  z-index: 4;
  padding: 6px 10px;
  background: rgba(0,0,0,.32);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
}
.tour-tile.is-hover .tour-dots { opacity: 1; transform: translateY(0); }
.tour-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  transition: width .25s, background .25s;
  display: inline-block;
}
.tour-dot.active { width: 18px; border-radius: 3px; background: #FFF; }

/* empty hint */
.tour-empty-hint {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
}
.tour-empty-hint svg { opacity: .6; }

/* tools */
.tour-tools {
  position: absolute; right: 14px; bottom: 14px;
  display: flex; gap: 6px;
  z-index: 5;
}
.tour-tool {
  width: 30px; height: 30px; border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #FFF;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s;
}
.tour-tool:hover { background: var(--orange-500); }
.tour-tile.is-hover .tour-meta { right: 80px; }

/* drag overlay */
.tour-drag-overlay {
  position: absolute; inset: 6px;
  border: 2.5px dashed var(--orange-500);
  border-radius: 18px;
  background: rgba(242,107,31,.18);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  color: #FFF;
  z-index: 10;
  pointer-events: none;
}

/* ============================================================
   VideoSlot (shared drop-in video player)
   ============================================================ */
.video-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1B3553, #0B2236);
  cursor: default;
  border-radius: inherit;
}
.video-slot.is-empty { cursor: pointer; }
.video-slot-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.video-slot-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  color: rgba(255,255,255,.7);
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(135deg, #1B3553, #0B2236);
  text-align: center;
  padding: 24px;
}
.video-slot-empty svg { opacity: .55; margin-bottom: 6px; }
.video-slot-empty strong { font-family: var(--f-display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; }
.video-slot-empty span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }

.video-slot-tools {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 6px; z-index: 5;
}
.video-slot-tool {
  width: 34px; height: 34px; border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.55);
  color: #FFF;
  font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background .15s;
}
.video-slot-tool:hover { background: var(--orange-500); }

.video-slot-drag {
  position: absolute; inset: 8px;
  border: 3px dashed var(--orange-500);
  border-radius: 18px;
  background: rgba(242,107,31,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 28px;
  text-transform: uppercase;
  color: #FFF;
  z-index: 10;
  pointer-events: none;
}
.video-slot-loading {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 20;
}

/* ============================================================
   Hero "video" layout — full-bleed cinematic background
   ============================================================ */
.hero-video { padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero-video .hero-sun { opacity: .25; }
.hero-video .hero-sand { opacity: .35; }
.hero-video .hero-video-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  overflow: hidden;
}
.hero-video .hero-video-bg .video-slot {
  border-radius: 0;
  background: transparent;
}
.hero-video .hero-video-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(7,24,42,.82) 0%, rgba(7,24,42,.42) 55%, rgba(7,24,42,.08) 100%),
    linear-gradient(180deg, rgba(7,24,42,0) 60%, rgba(7,24,42,.7) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-video .hero-inner {
  color: #FFF;
  position: relative;
  z-index: 4;
  padding-right: var(--pad-x);
  max-width: 920px;
  min-height: auto;
}
.hero-video .hero-inner .hero-headline { color: #FFF; }
.hero-video .hero-inner .hero-headline .stroke { -webkit-text-stroke: 2px #FFF; }
.hero-video .hero-inner .lead { color: rgba(255,255,255,.88); }
.hero-video .hero-inner .eyebrow { color: #FFD75E; }
.hero-video .hero-inner .eyebrow::before { background: #FFD75E; }
.hero-video .btn-ghost { color: #FFF; border-color: rgba(255,255,255,.4); }
.hero-video .btn-ghost:hover { background: #FFF; color: var(--navy-900); border-color: #FFF; }

/* ============================================================
   AerialStrip — cinematic letterbox between sections
   ============================================================ */
.aerial-strip-section {
  /* tight vertical rhythm — this is a respiro, not a real section */
  padding: 0 var(--pad-x);
  margin: clamp(40px, 6vw, 80px) 0;
}
.aerial-strip {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  aspect-ratio: 16 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0B2236, #1B3553);
  box-shadow: 0 30px 80px rgba(11, 34, 54, .35);
}
@media (max-width: 700px) {
  .aerial-strip { aspect-ratio: 16 / 9; }
}
.aerial-strip-video { border-radius: 0; height: 100%; }
.aerial-strip-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,34,54,.55) 0%, rgba(11,34,54,0) 30%, rgba(11,34,54,0) 70%, rgba(11,34,54,.85) 100%),
    linear-gradient(90deg, rgba(11,34,54,.5), rgba(11,34,54,0) 35%);
  z-index: 2;
  pointer-events: none;
}
.aerial-strip-meta {
  position: absolute; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px);
  z-index: 3; color: #FFF;
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.aerial-strip-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.aerial-strip-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  text-transform: uppercase;
  line-height: 1;
}
.aerial-strip-live {
  position: absolute; right: clamp(20px, 3vw, 40px); top: clamp(20px, 3vw, 28px);
  z-index: 3;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  color: #FFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}
.aerial-strip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  animation: aerial-pulse 1.8s ease-in-out infinite;
}
@keyframes aerial-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.7); }
}

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 2vw, 28px);
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 880px;
  z-index: 9000;
  background: var(--navy-900);
  color: #FFF;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  animation: cookieRise .45s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
[data-surface="glass"] .cookie-banner {
  background: rgba(11,34,54,.78);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
          backdrop-filter: blur(28px) saturate(180%);
}
@keyframes cookieRise {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.cookie-inner {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; }
}
.cookie-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(255,255,255,.82);
}
.cookie-text strong { color: #FFF; font-size: 15px; font-weight: 700; }
.cookie-text a { color: var(--orange-400); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: var(--orange-500); }

.cookie-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .cookie-actions { justify-content: flex-start; }
  .cookie-actions .btn { flex: 1; }
}
.cookie-btn {
  padding: 10px 18px !important;
  font-size: 13px !important;
  min-height: auto !important;
}
.cookie-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.22);
  color: #FFF;
}
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.35); color: #FFF; }

.cookie-options {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 10px;
}
.cookie-opt {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
  cursor: pointer;
}
.cookie-opt input { margin-top: 3px; accent-color: var(--orange-500); cursor: pointer; }
.cookie-opt.is-locked { cursor: default; opacity: .75; }
.cookie-opt.is-locked input { cursor: not-allowed; }
.cookie-opt strong { color: #FFF; }

/* ============================================================
   Legal modal (Termos / Privacidade / LGPD)
   ============================================================ */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(7,17,28,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  animation: legalFade .25s ease-out;
}
@keyframes legalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.legal-modal {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 22px;
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: legalRise .35s cubic-bezier(.22,1,.36,1);
}
[data-palette="dark"] .legal-modal { background: var(--navy-900); color: #FFF; }
@keyframes legalRise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.legal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.06);
  color: var(--text);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 2;
}
.legal-close:hover { background: var(--orange-500); color: #FFF; }
[data-palette="dark"] .legal-close { background: rgba(255,255,255,.08); color: #FFF; }
[data-palette="dark"] .legal-close:hover { background: var(--orange-500); }

.legal-head {
  padding: 36px 36px 18px;
  border-bottom: 1px solid var(--line);
}
[data-palette="dark"] .legal-head { border-bottom-color: rgba(255,255,255,.08); }
.legal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 8px;
}
.legal-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.legal-body {
  padding: 24px 36px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}
.legal-body section { margin-bottom: 22px; }
.legal-body section:last-child { margin-bottom: 0; }
.legal-body h3 {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--orange-500);
  margin: 0 0 6px;
}
.legal-body p {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-soft);
}
[data-palette="dark"] .legal-body p { color: rgba(255,255,255,.78); }

.legal-foot {
  padding: 20px 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}
[data-palette="dark"] .legal-foot { border-top-color: rgba(255,255,255,.08); }
@media (max-width: 560px) {
  .legal-head, .legal-body, .legal-foot { padding-left: 22px; padding-right: 22px; }
}

/* ============================================================
   Plans
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plans-grid.plans-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plans-grid.plans-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .plans-grid { grid-template-columns: 1fr; } .plans-grid.plans-grid-4 { grid-template-columns: 1fr; } }

/* Plans grid: equal heights regardless of inner content */
.plans-grid > .reveal { display: flex; }
.plans-grid > .reveal > .plan { width: 100%; }

.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured {
  background: var(--navy-900);
  color: #FFF;
  border-color: var(--navy-900);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.plan.featured .plan-name,
.plan.featured .plan-price-num,
.plan.featured .plan-tier-num { color: #FFF; }
.plan.featured .plan-eyebrow { color: var(--orange-400); }
.plan.featured .plan-eyebrow::before { background: var(--orange-400); }
.plan.featured .plan-feat,
.plan.featured .plan-tier-label,
.plan.featured .plan-tier-cur,
.plan.featured .plan-tier-per,
.plan.featured .plan-block-note { color: rgba(255,255,255,.85); }
.plan.featured .plan-feat::before { background: var(--accent); }
.plan.featured .plan-tier { border-color: rgba(255,255,255,.12); }
.plan.featured .plan-block { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.plan.featured .plan-block-title { color: #FFF; }
.plan.featured .btn-ghost { background: transparent; color: #FFF; border-color: rgba(255,255,255,.4); }
.plan.featured .btn-ghost:hover { background: #FFF; color: var(--navy-900); border-color: #FFF; }

.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.plan-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); display: inline-block; }
.plan-name { font-family: var(--f-display); font-size: 30px; text-transform: uppercase; color: var(--text); line-height: 1; }
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--accent); color: #FFF;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price-cur { font-size: 18px; font-weight: 700; color: var(--text-soft); }
.plan-price-num { font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--text); }
.plan-price-per { font-size: 14px; color: var(--text-soft); }

/* Multi-tier price table */
.plan-tiers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.plan-tier {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.plan-tier:last-child { border-bottom: 0; }
.plan-tier-label { font-size: 13.5px; font-weight: 600; color: var(--text-soft); }
.plan-tier-price { display: flex; align-items: baseline; gap: 3px; }
.plan-tier-cur { font-size: 13px; font-weight: 700; color: var(--text-soft); }
.plan-tier-num { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--text); }
.plan-tier-per { font-size: 12px; color: var(--text-soft); }

/* Custom-structure blocks (Clube BT) */
.plan-blocks { display: flex; flex-direction: column; gap: 10px; }
.plan-block {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 34, 54, .03);
}
.plan-block-title {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-block-note { font-size: 13px; line-height: 1.45; color: var(--text-soft); }

.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 4px; }
.plan-feat { padding-left: 24px; position: relative; font-size: 14px; color: var(--text-soft); line-height: 1.4; }
.plan-feat::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.6L4 14l5 5L20 8l-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.6L4 14l5 5L20 8l-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================================
   Agent IA section
   ============================================================ */
.agent-section {
  background: var(--navy-900);
  color: #FFF;
  position: relative;
  overflow: hidden;
}
.agent-section .eyebrow { color: var(--orange-400); }
.agent-section .eyebrow::before { background: var(--orange-400); }
.agent-section h2 { color: #FFF; }
.agent-section p { color: rgba(255,255,255,.78); }
.agent-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .agent-grid { grid-template-columns: 1fr; } }
.agent-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.agent-bullet { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.agent-bullet-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(242,107,31,.18); color: var(--orange-400); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.agent-bullet-h { font-weight: 700; font-size: 15px; color: #FFF; margin-bottom: 2px; }
.agent-bullet-b { font-size: 14px; color: rgba(255,255,255,.68); }

.agent-preview {
  background: var(--off);
  color: var(--navy-900);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}
.agent-preview-top {
  background: var(--orange-500);
  color: #FFF;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.agent-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FFD75E, var(--orange-500));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  color: var(--navy-900);
  font-size: 18px;
}
.agent-status { font-size: 12px; opacity: .9; display: flex; align-items: center; gap: 6px; }
.agent-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulseDot 1.6s infinite; }

.agent-msgs { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-bot { background: var(--sand-100); color: var(--navy-900); border-bottom-left-radius: 4px; }
.msg-user { background: var(--orange-500); color: #FFF; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.quick {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--orange-500); color: var(--orange-600); background: transparent; cursor: pointer;
  transition: background .15s, color .15s;
}
.quick:hover { background: var(--orange-500); color: #FFF; }

.agent-input {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; border-top: 1px solid var(--line);
  background: var(--bg-elev);
}
.agent-input input {
  flex: 1; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 14px; color: var(--text); padding: 8px;
}
.agent-send {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--orange-500); color: #FFF;
  display: flex; align-items: center; justify-content: center;
}
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-900); opacity: .3; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }

/* ============================================================
   Testimonials
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
}
.testi::before {
  content: "“"; position: absolute; top: -22px; left: 16px;
  font-family: var(--f-display); font-size: 120px; line-height: 1;
  color: var(--accent); opacity: .9;
}
.testi-quote { font-size: 16px; line-height: 1.55; color: var(--text); margin-top: 12px; }
.testi-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.testi-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--sand-200), var(--sun-400)); flex-shrink: 0; overflow: hidden; }
.testi-name { font-weight: 700; font-size: 14px; }
.testi-meta { font-size: 12px; color: var(--text-soft); }
.testi-quote-placeholder { font-style: italic; color: var(--text-soft); opacity: .5; }
.testi-empty .testi-ava {
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  opacity: .55;
}
.testi-empty .testi-name { color: var(--text-soft); }

.stars { color: var(--sun-400); letter-spacing: 2px; font-size: 16px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 6px; }
.faq-item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  background: transparent; border: 0; text-align: left;
  font: inherit; font-weight: 700; font-size: 16px; color: var(--text);
}
.faq-q:hover { background: rgba(11,34,54,.03); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  transition: transform .25s, background .25s, color .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-toggle { background: var(--accent); border-color: var(--accent); color: #FFF; transform: rotate(45deg); }
.faq-a {
  padding: 0 22px;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--text-soft); font-size: 15px; line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 20px; }

/* ============================================================
   Location
   ============================================================ */
.loc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr; } }
.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #DCEBF6, #C5D8E8);
  min-height: 360px;
  position: relative;
}
.map-pin {
  position: absolute; left: 50%; top: 45%;
  transform: translate(-50%, -100%);
  width: 44px; height: 56px;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.25));
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,122,176,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,122,176,.18) 1px, transparent 1px);
  background-size: 56px 56px;
}
.map-road {
  position: absolute; left: -10%; right: -10%;
  height: 22px;
  background: #FFF;
  box-shadow: 0 0 0 1px rgba(11,34,54,.08);
}
.map-road.r1 { top: 28%; transform: rotate(-4deg); }
.map-road.r2 { top: 62%; transform: rotate(3deg); }
.map-road.r3 { top: 80%; height: 14px; transform: rotate(-2deg); }

.loc-info { display: flex; flex-direction: column; gap: 22px; }
.loc-row { display: flex; gap: 14px; align-items: flex-start; }
.loc-row svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   Final CTA + Footer
   ============================================================ */
.final-cta {
  background: var(--orange-500);
  color: #FFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta h2 { color: #FFF; }
.final-cta .eyebrow { color: rgba(255,255,255,.9); }
.final-cta .eyebrow::before { background: rgba(255,255,255,.9); }
.final-cta::before, .final-cta::after {
  content: ""; position: absolute; top: -50%; width: 80%; height: 200%;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 28px);
}
.final-cta::before { left: -30%; transform: rotate(-12deg); }
.final-cta::after { right: -30%; transform: rotate(12deg); }
.final-cta .container { position: relative; z-index: 2; }

.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: 64px var(--pad-x) 32px;
}
.footer h4 { font-family: var(--f-display); color: #FFF; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 12px; }
.footer a:hover { color: #FFF; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; max-width: var(--container); margin: 0 auto; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-bottom { max-width: var(--container); margin: 32px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Chat widget (floating)
   ============================================================ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 1000;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--orange-500);
  color: #FFF;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(242,107,31,.45), 0 2px 6px rgba(0,0,0,.2);
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab.pulse::before, .chat-fab.pulse::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--orange-500);
  animation: pulseRing 2s infinite;
}
.chat-fab.pulse::after { animation-delay: 1s; }
.chat-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--navy-900); color: #FFF; font-size: 11px; font-weight: 800;
  border-radius: 999px; padding: 3px 7px; border: 2px solid var(--off);
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

.chat-bubble {
  position: fixed; bottom: 100px; right: 24px;
  z-index: 999;
  max-width: 280px;
  background: var(--off);
  color: var(--navy-900);
  padding: 14px 16px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: bubbleIn .4s ease;
}
.chat-bubble::after {
  content: ""; position: absolute; bottom: -8px; right: 16px;
  width: 16px; height: 16px;
  background: var(--off);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.chat-bubble .close { position: absolute; top: 6px; right: 8px; background: none; border: 0; opacity: .5; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.chat-panel {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 1001;
  width: 400px; height: 600px; max-height: calc(100vh - 48px);
  background: var(--off);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: panelIn .25s ease;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; } }
@media (max-width: 520px) {
  .chat-panel { inset: 0; width: 100vw; height: 100vh; max-height: none; border-radius: 0; }
}

.chat-header {
  background: var(--orange-500); color: #FFF;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.chat-header .close { margin-left: auto; background: rgba(255,255,255,.2); border: 0; color: #FFF; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.chat-header .close:hover { background: rgba(255,255,255,.3); }
.chat-name { font-family: var(--f-display); font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }

.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--off); }

.chat-input-row {
  border-top: 1px solid var(--line);
  padding: 12px;
  background: #FFF;
  display: flex; gap: 8px; align-items: center;
}
.chat-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 16px; font: inherit; font-size: 14px; outline: none;
  background: var(--bg);
  color: var(--text);
}
.chat-input-row input::placeholder { color: var(--text-muted); opacity: 1; }
.chat-input-row input:focus { border-color: var(--orange-500); }

[data-palette="dark"] .agent-section { background: #050E1B; }
[data-palette="dark"] .footer { background: #050E1B; }
