/* =========================================================
   Pura Capoeira Cuernavaca — styles.css
   Vanilla CSS. Dark editorial afro-brazilian aesthetic.
   ========================================================= */

/* --- Tokens --- */
:root {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --surface: #1F1F1F;
  --text: #F5F5F5;
  --text-2: #A1A1AA;
  --muted: #71717A;
  --yellow: #FFD700;
  --yellow-hover: #E6C200;
  --blue: #0047AB;
  --blue-2: #1d5dd1;
  --green: #009E60;
  --green-2: #00b870;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.05);
  --container: 1200px;
  --radius: 6px;
  --radius-sm: 3px;
  --shadow-glow: 0 0 24px rgba(255, 215, 0, 0.25);
  --font-heading: 'Anton', 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
}

/* --- Reset --- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--yellow); color: var(--bg); }

/* Grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
p { margin: 0 0 1rem; font-size: 1.5rem; }
.lead { font-size: clamp(1.35rem, calc(1.5vw + 0.25rem), 1.5rem); color: var(--text-2); }
.overline {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-block;
}
.text-yellow { color: var(--yellow); }
.text-blue { color: var(--blue-2); }
.text-green { color: var(--green-2); }
.text-muted { color: var(--text-2); }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .container { padding: 0 3rem; }
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-header__inner { padding: 1rem 3rem; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img {
  height: 138px;
  width: auto;
  max-width: none;
}
.brand__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 1024px) {
  .brand__name { display: block; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding: 0.4rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header .nav-cta {
  display: none;
}
@media (min-width: 900px) {
  .site-header .nav-cta { display: inline-flex; }
}

/* Mobile menu */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--text); }

/* Shrink the header logo below the desktop nav breakpoint so the
   hamburger toggle always fits within the mobile header. */
@media (max-width: 899px) {
  .brand img { height: 144px; }
}
@media (max-width: 480px) {
  .brand img { height: 112px; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.mobile-menu nav a {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}
.mobile-menu nav a:hover { color: var(--yellow); }
.mobile-menu .btn { margin-top: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--yellow);
  color: var(--bg);
}
.btn--primary:hover { background: var(--yellow-hover); }
.btn--secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn--secondary:hover {
  background: var(--text);
  color: var(--bg);
}
.btn--whatsapp {
  background: var(--green);
  color: #fff;
}
.btn--whatsapp:hover { background: var(--green-2); }
.btn--blue {
  background: var(--blue);
  color: #fff;
}
.btn--blue:hover { background: var(--blue-2); }
.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn svg { width: 16px; height: 16px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(0.2) contrast(1.05) brightness(0.55);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 70%, rgba(0,71,171,0.25) 0%, transparent 50%);
}
.hero__inner {
  position: relative;
  width: 100%;
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.5fr 1fr; align-items: end; }
}
.hero__title {
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
}
.hero__title .accent {
  color: var(--yellow);
  display: block;
}
.hero__title .stroke {
  -webkit-text-stroke: 2px var(--yellow);
  color: transparent;
  display: block;
}
.hero__sub {
  margin-top: 1.5rem;
  max-width: 38ch;
  font-size: clamp(1.3rem, calc(1.5vw + 0.25rem), 1.5rem);
  color: var(--text-2);
}
.hero__support {
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 36ch;
  margin-bottom: 1.5rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 2px solid var(--yellow);
  padding-left: 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Hero logo wrap */
.hero-logo-wrap {
  width: 100%;
}
.hero-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.5rem 0;
  flex-wrap: nowrap;
}
.hero-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 24px rgba(255, 215, 0, 0.15));
  display: block;
}
.hero-logo-wrap .overline {
  display: block;
  margin-bottom: 0.5rem;
}
.hero-logo-wrap .hero__title {
  margin-top: 0;
}
.hero-logo-wrap .hero__sub {
  margin-top: 1.5rem;
  max-width: 38ch;
}
.hero-logo-wrap .hero__support {
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) {
  .hero {
    padding-top: 11rem;
  }
  .hero-logo {
    max-width: 200px;
  }
}
@media (max-width: 768px) {
  .hero {
    padding-top: 10rem;
  }
  .hero-logo {
    max-width: 160px;
    margin: 0;
  }
}

/* --- Section base --- */
.section {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .section { padding: 7rem 0; }
}
.section--dark { background: var(--bg-2); }
.section__head { max-width: 60ch; margin-bottom: 3rem; }
.section__head h2 { margin-top: 0.75rem; }
.section__head .lead { margin-top: 1rem; }

/* --- Info grid (horarios + costos) --- */
.info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.info-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .2s ease, transform .2s ease;
}
.info-card:hover { border-color: var(--yellow); transform: translateY(-3px); }
.info-card__tag {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
}
.info-card__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
}
.info-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-top: 1px dashed var(--border);
  font-size: 1.2rem;
}
.info-card__row:first-of-type { border-top: none; padding-top: 0; }
.info-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--yellow);
  line-height: 1;
  margin: 0.5rem 0;
}
.info-card__sub { font-size: 1.1rem; color: var(--text-2); }

/* --- Feature cards (qué se trabaja) --- */
.features {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 600px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}
.feature {
  background: var(--bg-2);
  padding: 2rem 1.5rem;
  transition: background .2s ease;
}
.feature:hover { background: var(--surface); }
.feature__num {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 1rem;
  letter-spacing: 0.2em;
}
.feature__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 1rem 0 0.5rem;
  line-height: 1.05;
}
.feature__text { font-size: 1.15rem; color: var(--text-2); margin: 0; }

/* --- Split section (what is capoeira) --- */
.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.split__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.split__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform .8s ease;
}
.split__media:hover img { transform: scale(1.04); }
.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.5));
  pointer-events: none;
}

/* --- Location --- */
.location {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .location { grid-template-columns: 1fr auto; }
}
.location__addr {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.location__tag {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
  display: block;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
  opacity: 0.5;
}
@media (min-width: 768px) {
  .timeline::before { left: 50%; transform: translateX(-50%); }
}
.tl-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 3rem;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 18px; height: 18px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
}
@media (min-width: 768px) {
  .tl-item {
    width: 50%;
    padding-left: 0;
    padding-right: 3rem;
    text-align: right;
  }
  .tl-item::before { left: auto; right: -10px; }
  .tl-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
    padding-right: 0;
    text-align: left;
  }
  .tl-item:nth-child(even)::before { left: -10px; right: auto; }
}
.tl-year {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--yellow);
  line-height: 1;
  display: block;
}
.tl-text {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 1.25rem;
}

/* --- Gallery --- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-pill {
  padding: 0.55rem 1.1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.97rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  transition: all .2s ease;
}
.filter-pill:hover { border-color: var(--yellow); color: var(--yellow); }
.filter-pill.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

.video-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--yellow); }
.video-card__thumb {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}
.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.6) 100%);
}
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform .2s ease;
}
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.1); }
.video-card__play::after {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--bg);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}
.video-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.video-card__cat {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}
.video-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0.5rem 0;
  text-transform: uppercase;
  line-height: 1.05;
}
.video-card__date {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 0.5rem;
}
.video-card__desc { font-size: 1.15rem; color: var(--text-2); margin: 0 0 1rem; }
.video-card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.video-card__link:hover { gap: 0.7rem; }

.gallery-fallback {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.gallery-fallback p { max-width: 50ch; margin: 0 auto 1.5rem; color: var(--text-2); }

.icloud-banner {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--blue) 0%, #061a4d 100%);
  border-radius: var(--radius);
  text-align: center;
}
.icloud-banner h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  color: #fff;
}
.icloud-banner p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item {
  border-left: 2px solid var(--yellow);
  padding-left: 1.25rem;
}
.contact-item__label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  display: block;
  margin-bottom: 0.35rem;
}
.contact-item__value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.contact-item__value a:hover { color: var(--yellow); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 1.25rem;
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(255,255,255,0.08);
}
.form-field textarea { min-height: 120px; resize: vertical; }

.scheduler-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

@media (min-width: 768px) {
  .scheduler-card {
    padding: 1.5rem;
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 3rem 0 2rem;
  background: var(--bg);
  position: relative;
  z-index: 2;
}
.site-footer__inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand img { width: 100%; max-width: 320px; height: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 1.1rem; color: var(--text-2); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 1.15rem; color: var(--text-2); }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Page title (sub-page heroes) --- */
.page-header {
  padding: 9rem 0 4rem;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.page-header::before {
  content: "";
  position: absolute;
  top: 0; right: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,71,171,0.25) 0%, transparent 60%);
  z-index: 0;
}
.page-header__inner { position: relative; z-index: 1; }
.page-header h1 { margin-top: 0.75rem; }
.page-header .lead { margin-top: 1.25rem; max-width: 60ch; }

/* --- Utility --- */
.stack > * + * { margin-top: 1.25rem; }
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Store --- */
.store-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 980px) {
  .store-layout {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }
}
.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.store-note {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
}
.store-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.store-feedback.is-error {
  border-color: #a93226;
  color: #f5b7b1;
}
.store-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.store-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.store-card__image {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.store-card__body {
  padding: 1rem;
}
.store-card__body h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}
.store-card__body p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
}
.store-card__loading {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
}
.store-card__variant {
  width: 100%;
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
}
.store-card__variant:focus {
  outline: none;
  border-color: var(--yellow);
}
.store-card__bottom {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.store-card__bottom strong {
  font-family: var(--font-heading);
  color: var(--yellow);
  font-size: 1.8rem;
  line-height: 1;
}
.store-cart {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 5.5rem;
}
.store-cart h2,
.store-cart h3 {
  margin-bottom: 0.75rem;
}
.store-cart__items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.store-cart-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.store-cart-item strong {
  display: block;
  font-size: 0.95rem;
}
.store-cart-item span {
  color: var(--text-2);
  font-size: 0.85rem;
}
.store-cart-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.store-cart-item__actions button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}
.store-cart-item__actions span {
  min-width: 20px;
  text-align: center;
  color: var(--text);
}
.store-cart__summary {
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.store-cart__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.4rem;
  color: var(--text-2);
}
.store-cart__line strong {
  color: var(--text);
  font-weight: 600;
}
.store-cart__line--total {
  margin-top: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.store-cart__line--total span {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.store-cart__line--total strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--yellow);
}
.store-shipping {
  margin: 1rem 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.store-shipping h3 {
  margin: 0 0 0.6rem;
}
.store-shipping__options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.store-shipping__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-2);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.store-shipping__option:hover {
  border-color: var(--yellow);
}
.store-shipping__option input {
  accent-color: var(--yellow);
}
.store-shipping__option span {
  flex: 1;
  color: var(--text);
}
.store-shipping__option strong {
  color: var(--yellow);
}
.store-pay-btn {
  width: 100%;
}
.store-pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.store-cart-result {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}
.store-cart-result.is-success {
  border-color: var(--green);
  background: rgba(0, 158, 96, 0.12);
  color: var(--text);
}
.store-cart-result.is-error {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.12);
  color: var(--text);
}
.store-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.store-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
}
.store-form input:focus {
  outline: none;
  border-color: var(--yellow);
}
.store-empty {
  margin: 0;
  color: var(--text-2);
  text-align: center;
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}
.store-footnote {
  margin: 0.75rem 0 0;
  color: var(--text-2);
  font-size: 0.95rem;
}

/* --- Emergent badge tweak (keep but blend) --- */
#emergent-badge { z-index: 20 !important; }

/* --- Inscriptions page --- */
.inscription-layout {
  max-width: 880px;
  margin: 0 auto;
}
.inscription-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.inscription-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 0;
}
.inscription-block legend {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  padding: 0 0.5rem;
  color: var(--yellow);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.plan-card {
  position: relative;
  display: block;
  cursor: pointer;
}
.plan-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.plan-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.plan-card:hover .plan-card__body {
  transform: translateY(-2px);
  border-color: var(--muted);
}
.plan-card input:checked + .plan-card__body {
  border-color: var(--yellow);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--yellow) inset;
}
.plan-card input:focus-visible + .plan-card__body {
  border-color: var(--yellow);
}
.plan-card__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
}
.plan-card__price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.15rem;
}
.plan-card__note {
  color: var(--text-2);
  font-size: 0.9rem;
}
.inscription-addon {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
}
.inscription-addon input {
  margin-top: 0.2rem;
  accent-color: var(--yellow);
}
.inscription-trial-date {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field[hidden] {
  display: none;
}
.field--full {
  grid-column: 1 / -1;
}
.field span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input {
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body, inherit);
  font-size: 1rem;
}
.field input:focus {
  outline: none;
  border-color: var(--yellow);
}
.promo-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.promo-row input {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.promo-row input:focus {
  outline: none;
  border-color: var(--yellow);
}
.promo-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--text-2);
}
.promo-note.is-success {
  color: var(--yellow);
}
.inscription-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.inscription-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  color: var(--text-2);
}
.inscription-summary__line--total {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1.2rem;
}
.inscription-summary__line--total strong {
  color: var(--yellow);
  font-family: var(--font-mono);
}
.inscription-result {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.98rem;
}
.inscription-result.is-success {
  border-color: var(--green, #2e7d32);
  background: rgba(46, 125, 50, 0.12);
  color: var(--text);
}
.inscription-result.is-error {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.12);
  color: var(--text);
}
.inscription-submit {
  align-self: flex-start;
}
.paymode-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.paymode-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.paymode-option:hover {
  border-color: var(--muted);
}
.paymode-option input {
  accent-color: var(--yellow);
}
.paymode-option:has(input:checked) {
  border-color: var(--yellow);
  background: var(--surface);
}
.mode-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.mode-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.mode-option:hover {
  border-color: var(--muted);
}
.mode-option input {
  margin-top: 0.25rem;
  accent-color: var(--yellow);
}
.mode-option:has(input:checked) {
  border-color: var(--yellow);
  background: var(--surface);
}
.mode-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mode-option__title {
  font-weight: 600;
  color: var(--text);
}
.mode-option__note {
  font-size: 0.85rem;
  color: var(--text-2);
}
@media (max-width: 600px) {
  .mode-options {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .inscription-submit {
    align-self: stretch;
    justify-content: center;
  }
}
