/* ==========================================================================
   Familia Fit CrossFit — site styles
   Mobile-first. No framework. Edit the tokens in :root to re-skin the site.
   ========================================================================== */

:root {
  /* Brand */
  --green: #3ccf6a;          /* "CrossFit" green from the Instagram posts */
  --green-600: #2fb85a;
  --green-ink: #157a3b;      /* green that passes contrast on light backgrounds */
  --blue: #2f45e0;           /* accent dots from the Instagram posts (used sparingly) */

  /* Neutrals */
  --ink: #0c0d0d;
  --ink-2: #131515;
  --ink-3: #1b1e1d;
  --ink-4: #262a28;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(12, 13, 13, 0.12);
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --text: #f3f2ee;
  --muted: #a9aeab;
  --text-dark: #141615;
  --muted-dark: #565b58;

  /* Type */
  --font-display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue", sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 68px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
address { font-style: normal; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--green); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }
.section--dark { background: var(--ink); color: var(--text); }
.section--ink2 { background: var(--ink-2); color: var(--text); }
.section--paper { background: var(--paper); color: var(--text-dark); }
.section--green { background: var(--green); color: var(--ink); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section--paper .eyebrow { color: var(--green-ink); }
.section--green .eyebrow { color: var(--ink); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-size: clamp(2.6rem, 8vw, 5.8rem);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
}
.h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--green);
}
.section--paper .serif { color: var(--green-ink); }
.section--green .serif { color: var(--ink); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.section--paper .lede, .section--paper .muted { color: var(--muted-dark); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.text-green { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 2px solid var(--btn-bd);
  border-radius: 999px; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --btn-bg: var(--green); --btn-fg: var(--ink); --btn-bd: var(--green); box-shadow: 0 10px 30px -12px rgba(60, 207, 106, 0.7); }
.btn-primary:hover { --btn-bg: #52dc7d; --btn-bd: #52dc7d; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { --btn-bd: var(--text); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: var(--text); --btn-bd: var(--ink); }
.btn-dark:hover { --btn-bg: var(--ink-4); --btn-bd: var(--ink-4); }
.section--paper .btn-ghost { --btn-fg: var(--text-dark); --btn-bd: rgba(12, 13, 13, 0.3); }
.section--paper .btn-ghost:hover { --btn-bd: var(--text-dark); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.85rem; }
h1.eyebrow { line-height: 1.4; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--green); }
.section--paper .link-arrow { color: var(--green-ink); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; }
@media (min-width: 640px) { .brand-mark { width: 52px; height: 52px; } }
.site-footer .brand-mark { width: 56px; height: 56px; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; }
.brand-sub { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase; color: var(--green); margin-top: 3px; }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: #000; color: var(--muted); font-size: 0.8rem; }
.utility-inner { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.utility-bar a { text-decoration: none; color: var(--text); }
.utility-bar a:hover { color: var(--green); }
.utility-addr { display: none; }
.utility-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.utility-right svg { width: 16px; height: 16px; }
@media (min-width: 720px) { .utility-addr { display: inline; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 13, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; }
.primary-nav ul a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; color: var(--text);
}
.primary-nav ul a:hover { background: rgba(255, 255, 255, 0.06); }
.primary-nav ul a[aria-current="page"] { color: var(--green); }
.header-cta { min-height: 42px; padding: 8px 20px; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .primary-nav {
    /* absolute (not fixed): the header's backdrop-filter makes it the containing block */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--ink); padding: 24px var(--gutter) 120px;
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
    overflow-y: auto;
  }
  .nav-open .primary-nav { transform: none; visibility: visible; transition: transform 0.3s var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a {
    font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
    font-size: 2.2rem; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .primary-nav ul a:hover { background: none; color: var(--green); }
  .primary-nav .nav-mobile-cta { display: flex; margin-top: 28px; }
  .site-header { top: 0; }
}
@media (min-width: 900px) {
  .primary-nav .nav-mobile-cta { display: none; }
}
body.nav-locked { overflow: hidden; }

/* Slim header used on the coming-soon page */
.site-header--slim .header-inner { justify-content: space-between; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, color .2s;
}
.icon-link:hover { border-color: var(--green); color: var(--green); }
.icon-link svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding-block: clamp(56px, 9vw, 110px);
}
.hero--short { min-height: auto; padding-block: clamp(72px, 12vw, 140px) clamp(56px, 8vw, 96px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 13, 13, 0.96) 0%, rgba(12, 13, 13, 0.82) 45%, rgba(12, 13, 13, 0.55) 100%),
    linear-gradient(0deg, rgba(12, 13, 13, 1) 0%, rgba(12, 13, 13, 0) 40%);
}
.hero--center { text-align: center; }
.hero--center .lede { margin-inline: auto; }
.hero--center .btn-row { justify-content: center; }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero .display { margin-bottom: 22px; }
.hero .lede { color: #cdd1ce; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }
.dots { display: inline-flex; gap: 6px; margin-bottom: 22px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: block; }
.dots i:nth-child(2) { background: var(--green); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 12vw, 140px) clamp(48px, 7vw, 80px); }
.page-hero .hero-media { opacity: 1; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 13, 13, 0.75) 0%, rgba(12, 13, 13, 0.92) 70%, var(--ink) 100%);
}
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }

/* ---------- Cards ---------- */
.card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); height: 100%;
}
.section--paper .card { background: #fff; border-color: var(--line-dark); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.card p:last-child { margin-bottom: 0; }
.card .muted { color: var(--muted); }
.section--paper .card .muted { color: var(--muted-dark); }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(60, 207, 106, 0.12); color: var(--green); margin-bottom: 20px;
}
.section--paper .icon-badge { background: rgba(21, 122, 59, 0.1); color: var(--green-ink); }
.icon-badge svg { width: 26px; height: 26px; }

.feature-num {
  font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--green); margin-bottom: 12px; display: block;
}

/* Image cards (programs) */
.media-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--ink-3); border: 1px solid var(--line); text-decoration: none; color: var(--text); height: 100%;
}
.media-card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-4); }
.media-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-card:hover .media img { transform: scale(1.05); }
.media-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.media-card .body p { color: var(--muted); margin: 0; }
.media-card .link-arrow { margin-top: auto; padding-top: 10px; }
.tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: rgba(60, 207, 106, 0.14); color: var(--green); width: fit-content;
}
.section--paper .tag { background: rgba(21, 122, 59, 0.1); color: var(--green-ink); }
.tag--muted { background: rgba(255,255,255,0.08); color: var(--muted); }

/* Split (image + text) */
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
@media (max-width: 899px) { .split--form-first > [data-form-wrap] { order: -1; } }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-4); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media--wide { aspect-ratio: 4 / 3; }
.media-badge {
  position: absolute; left: 16px; bottom: 16px; background: var(--ink); color: var(--text);
  border-radius: 12px; padding: 12px 16px; font-size: 0.85rem; border: 1px solid var(--line);
}
.media-badge strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--green); line-height: 1; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check-list li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0d0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Coach ---------- */
.coach-card { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .coach-card { grid-template-columns: 340px 1fr; gap: 56px; } }
@media (max-width: 799px) { .coach-photo { max-width: 300px; } }
.coach-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative;
  background:
    radial-gradient(120% 80% at 30% 20%, rgba(60, 207, 106, 0.35), transparent 60%),
    linear-gradient(160deg, var(--ink-4), var(--ink-2));
  display: grid; place-items: center; border: 1px solid var(--line);
}
.coach-photo .initials { font-family: var(--font-display); font-size: 7rem; color: rgba(255,255,255,0.9); letter-spacing: 0.02em; }
.coach-photo .photo-note {
  position: absolute; bottom: 12px; left: 12px; right: 12px; font-size: 0.72rem; color: var(--muted); text-align: center;
}
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.creds span { font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.section--paper .creds span { border-color: var(--line-dark); }

/* ---------- Founding offer ---------- */
.offer {
  display: grid; gap: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  border: 1px solid rgba(60, 207, 106, 0.4); background: var(--ink-2);
  box-shadow: 0 40px 80px -40px rgba(60, 207, 106, 0.35);
}
@media (min-width: 900px) { .offer { grid-template-columns: 0.9fr 1.1fr; } }
.offer-price {
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(60, 207, 106, 0.28), transparent 70%),
    var(--ink-3);
  padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) { .offer-price { border-bottom: 0; border-right: 1px solid var(--line); } }
.price-big { display: flex; align-items: flex-start; gap: 4px; font-family: var(--font-display); line-height: 0.9; margin: 8px 0 6px; }
.price-big .cur { font-size: 2rem; margin-top: 8px; }
.price-big .amt { font-size: clamp(4.5rem, 11vw, 7rem); }
.price-big .per { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--muted); align-self: flex-end; margin-bottom: 12px; }
.price-was { color: var(--muted); }
.price-was s { color: var(--text); opacity: 0.6; }
.offer-perks { padding: clamp(28px, 4vw, 48px); }
.offer-perks .check-list { margin-top: 0; }
.spots { margin-top: 26px; }
.spots-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 10px; }
.spots-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green)); border-radius: inherit; width: 0; transition: width 1.2s var(--ease); }

/* ---------- Timeline (build progress) ---------- */
.timeline { list-style: none; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); } }
.timeline li { position: relative; padding: 0 0 28px 44px; }
@media (min-width: 900px) { .timeline li { padding: 44px 16px 0 0; } }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--ink-2); z-index: 1;
}
.timeline li::after {
  content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line);
}
@media (min-width: 900px) {
  .timeline li::after { left: 26px; right: 0; top: 12px; bottom: auto; width: auto; height: 2px; }
}
.timeline li:last-child::after { display: none; }
.timeline li.done::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0d0d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--green);
}
.timeline li.done::after { background: var(--green); }
.timeline li.current::before { border-color: var(--green); box-shadow: 0 0 0 6px rgba(60, 207, 106, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(60, 207, 106, 0.05); } }
.timeline h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.timeline p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper); color: var(--text-dark);
  border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3.5vw, 36px);
  box-shadow: var(--shadow); position: relative;
}
.form-card h2, .form-card h3 { color: var(--text-dark); }
.form-card .form-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1; margin-bottom: 8px; }
.form-card .form-sub { color: var(--muted-dark); font-size: 0.95rem; margin-bottom: 20px; }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
@media (min-width: 520px) { .field.half { grid-column: span 1; } }
.field label, .field legend { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
.field .optional { font-weight: 500; color: var(--muted-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid #cfcac0; background: #fff; color: var(--text-dark);
  font-size: 16px; /* prevents iOS zoom */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141615' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 4px rgba(60, 207, 106, 0.25);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #c2352b; }
.field-error { color: #b3261e; font-size: 0.8rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid #cfcac0; background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--text-dark);
  transition: background 0.15s, border-color 0.15s, color 0.15s; user-select: none;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: "✓"; color: var(--green); font-weight: 800; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(60, 207, 106, 0.35); border-color: var(--green-ink); }
.chips--block .chip { flex: 1 1 100%; }
@media (min-width: 520px) { .chips--block .chip { flex: 1 1 0; } }
.chips--block .chip { display: flex; }
.chips--block .chip span { flex: 1; width: 100%; justify-content: center; text-align: center; position: relative; padding-inline: 34px; line-height: 1.25; }
/* keep the checkmark out of the text flow so labels stay centered and chips match height */
.chips--block .chip input:checked + span::before { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-legal { font-size: 0.75rem; color: var(--muted-dark); margin: 12px 0 0; }
.form-legal a { color: inherit; }
.form-status { font-size: 0.9rem; font-weight: 600; margin-top: 12px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #b3261e; }
.section--green .form-status, .section--green .form-status.is-error { color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 12px 0; }
.form-success .success-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  background: var(--green); color: var(--ink);
}
.form-success .success-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin-bottom: 8px; }
.form-success p { color: var(--muted-dark); }
.form-success .followup { text-align: left; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.demo-note {
  font-size: 0.78rem; background: #fff6d6; color: #6b5300; border: 1px solid #f0dc8c; padding: 8px 12px; border-radius: 8px; margin-top: 14px; text-align: left;
}

/* Sign-up card (links out to PushPress) */
.form-card .signup-list { margin: 0 0 22px; font-size: 0.95rem; color: var(--text-dark); }
.form-card .signup-list strong { font-weight: 700; }

/* Inline (one-line) signup */
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 560px; }
.inline-form input { flex: 1 1 240px; min-height: 56px; padding: 14px 18px; border-radius: 999px; border: 0; font-size: 16px; color: var(--text-dark); }
.inline-form .btn { flex: 0 0 auto; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
}
.price-card {
  display: flex; flex-direction: column; background: #fff; color: var(--text-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px 24px; position: relative;
}
.price-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.price-card .desc { color: var(--muted-dark); font-size: 0.92rem; min-height: 3em; }
.price-card .price { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; margin: 14px 0 4px; }
.price-card .price small { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--muted-dark); }
.price-card .note { font-size: 0.8rem; color: var(--muted-dark); margin-bottom: 18px; }
.price-card .check-list { margin: 8px 0 24px; font-size: 0.92rem; }
.price-card .check-list li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ccf6a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.price-card .btn { margin-top: auto; }
.price-card--featured { background: var(--ink); color: var(--text); border-color: var(--green); box-shadow: 0 30px 60px -30px rgba(60, 207, 106, 0.6); }
.price-card--featured h3 { color: var(--text); }
.price-card--featured .desc, .price-card--featured .note, .price-card--featured .price small { color: var(--muted); }
.price-card--featured .check-list li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0d0d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.ribbon {
  position: absolute; top: -13px; left: 24px; background: var(--green); color: var(--ink);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.rate-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.rate-table th, .rate-table td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.rate-table th { font-weight: 700; }
.rate-table td:last-child { text-align: right; font-weight: 800; white-space: nowrap; }
.rate-table .sub { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted-dark); }
.section--dark .rate-table th, .section--dark .rate-table td, .section--ink2 .rate-table th, .section--ink2 .rate-table td { border-color: var(--line); }
.section--dark .rate-table .sub, .section--ink2 .rate-table .sub { color: var(--muted); }

/* ---------- Schedule ---------- */
.schedule-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: none; }
.schedule-tabs::-webkit-scrollbar { display: none; }
.schedule-tabs button {
  flex: 1 0 auto; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-weight: 700; cursor: pointer;
}
.schedule-tabs button[aria-selected="true"] { background: var(--green); color: var(--ink); border-color: var(--green); }
.schedule { display: grid; gap: 12px; }
.day { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.day h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.day ul { list-style: none; display: grid; gap: 8px; }
.slot {
  display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid var(--green);
}
.slot time { font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.slot span { font-size: 0.9rem; color: #d7dad8; }
.slot--foundations { border-left-color: #f2b33d; }
.slot--teens { border-left-color: #6aa7ff; }
.slot--open { border-left-color: #9aa09d; }
.slot--partner { border-left-color: #e86a9a; }
.js .schedule[data-tabs] .day[hidden] { display: none; }
@media (min-width: 1000px) {
  .schedule-tabs { display: none; }
  .schedule { grid-template-columns: repeat(7, 1fr); gap: 10px; }
  .js .schedule[data-tabs] .day[hidden] { display: block; }
  .day { padding: 14px 10px; }
  .day h3 { font-size: 1.2rem; text-align: center; }
  .slot { grid-template-columns: 1fr; gap: 2px; padding: 8px 10px; }
  .slot time { font-size: 0.82rem; }
  .slot span { font-size: 0.78rem; }
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--green); display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-3); overflow: hidden;
}
.section--paper .faq details { background: #fff; border-color: var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; font-size: 1.02rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { color: var(--green); }
.section--paper .faq details[open] summary { color: var(--green-ink); }
.faq .answer { padding: 0 22px 22px; color: var(--muted); }
.section--paper .faq .answer { color: var(--muted-dark); }
.faq .answer p:last-child { margin: 0; }

/* ---------- Location ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--ink-3); }
.section--paper .map-wrap { border-color: var(--line-dark); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.05); }
/* ---------- Schedule (embedded PushPress calendar) ---------- */
.schedule-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; height: clamp(640px, 85vh, 1000px); }
.schedule-embed iframe { width: 100%; height: 100%; border: 0; }
.schedule-embed-note { margin-top: 14px; text-align: center; font-size: 0.95rem; }
.info-list { list-style: none; display: grid; gap: 18px; margin: 24px 0; }
.info-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.info-list .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.info-list .icon-badge svg { width: 20px; height: 20px; }
.info-list strong { display: block; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .cta-band .container { grid-template-columns: 1.4fr auto; } }
.cta-band .h2 { margin: 0; }
.cta-band::before {
  content: "FAMILIA"; position: absolute; right: -2vw; bottom: -0.22em; font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 18rem); line-height: 1; color: rgba(0, 0, 0, 0.07); pointer-events: none; letter-spacing: 0.02em;
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--ink-2); padding: 26px 22px; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; color: var(--green); margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; }
.steps li .card::before {
  content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--green); margin-bottom: 14px;
}
.section--paper .steps li .card::before { color: var(--green-ink); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); padding: 14px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--muted); padding-top: clamp(56px, 8vw, 88px); font-size: 0.95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr 1fr; } }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; font-weight: 800; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--green); }
.site-footer .brand { color: var(--text); }
.site-footer a.text-green { color: var(--green); }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-brand p { margin-top: 16px; max-width: 320px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 22px 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.8rem; }
.footer-bottom p { margin: 0; }
.site-credit { padding-bottom: 22px; text-align: center; }
.site-credit p { margin: 0; font-size: 0.72rem; color: rgba(255, 255, 255, 0.32); letter-spacing: 0.02em; }
.site-credit a { color: rgba(255, 255, 255, 0.45); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.2); }
.site-credit a:hover { color: var(--green); text-decoration-color: currentColor; }
@media (max-width: 899px) {
  .site-footer { padding-bottom: 76px; }
} /* room for sticky mobile CTA */

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 13, 13, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { flex: 1; min-height: 48px; }
.mobile-cta .btn-ghost { flex: 0 0 auto; padding-inline: 18px; }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Prose (privacy, etc.) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose a { color: var(--green); }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.not-found .display { font-size: clamp(5rem, 20vw, 12rem); color: var(--green); }
