/* ==========================================================
   Blast Surf School — Landing page
   Inspired by MindMarket: colored hero, white rounded main
   content panel overlapping, Inter font, all-black text.
   ========================================================== */

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #2ba0ff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Design tokens ────────────────────────────────────── */
:root {
  --green:      #2ba0ff;
  --green-dark: #1a8ae8;
  --sun:        #e8a020;
  --coral:      #e85d3a;
  --blue:       #3a6fe8;
  --ink:        #1a1a1a;
  --mid:        #666;
  --eggshell:   #f5f1e4;
  --white:      #fff;
  --border:     rgba(0,0,0,0.08);
  --card-r:     20px;
  --section-r:  28px;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 2.5rem);
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.nav__left {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10), 0 0 0 1px var(--border);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  height: 56px;
  gap: 0.15rem;
}
.nav__brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
  margin-right: 0.5rem;
}
.nav__links { display: flex; align-items: center; gap: 0; }
.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: background 0.14s;
  white-space: nowrap;
}
.nav__link:hover { background: rgba(0,0,0,0.06); }
.nav__lang-group {
  display: flex;
  align-items: center;
  margin-left: 0.35rem;
  background: rgba(0,0,0,0.06);
  border-radius: 50px;
  padding: 0.2rem;
}
.nav__lang-group a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  transition: background 0.14s, color 0.14s;
  letter-spacing: 0.03em;
}
.nav__lang-group a:hover { background: rgba(0,0,0,0.08); color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────── */

/* Primary: colored bg + circle arrow icon */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 0.65rem 0.65rem 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  height: 56px;
  letter-spacing: -0.01em;
  /* transition only used when NOT bouncing */
  transition: opacity 0.14s;
}
.btn:hover { opacity: 0.85; }
.btn:hover .btn__icon { transform: translateX(2px); }

.btn--green { background: var(--green); }
.btn--sun   { background: var(--sun); color: var(--ink); }
.btn--coral { background: var(--coral); }
.btn--blue  { background: var(--blue); }
.btn--white { background: var(--white); color: var(--ink); }

.btn__icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform 0.14s;
}
.btn--white .btn__icon { background: var(--ink); color: var(--white); }
.btn--sun   .btn__icon { background: rgba(0,0,0,0.12); }

/* Large variant */
.btn--lg {
  height: 64px;
  padding: 0.75rem 0.75rem 0.75rem 1.6rem;
  font-size: 1.1rem;
  border-radius: 16px;
}
.btn--lg .btn__icon { width: 2.4rem; height: 2.4rem; font-size: 1rem; }

/* Spring bounce on click */
@keyframes btn-bounce {
  0%   { transform: scale(1) translateY(0); }
  25%  { transform: scale(0.88) translateY(3px); }
  55%  { transform: scale(1.08) translateY(-4px); }
  75%  { transform: scale(0.97) translateY(1px); }
  90%  { transform: scale(1.02) translateY(-1px); }
  100% { transform: scale(1) translateY(0); }
}
.btn.is-bouncing {
  animation: btn-bounce 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Secondary: small, no icon, ghost */
.btn-s {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  background: rgba(0,0,0,0.07);
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  border: none;
  transition: background 0.14s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn-s:hover { background: rgba(0,0,0,0.12); }

/* ── Hero (colored full-bleed bg) ─────────────────────── */
.hero {
  background: var(--green);
  padding: 9rem 2.5rem 14rem;
  position: relative;
  overflow: hidden;
}
.hero__topo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.10;
}
.hero__topo svg { width: 100%; height: 100%; }
.hero__topo path {
  fill: none;
  stroke: rgba(0,0,0,0.7);
  stroke-width: 1.2;
}
.hero__inner { max-width: 1120px; margin: 0 auto; }

/* MindMarket .c-hero-home_title measured: 116px / weight 500 / lh 0.95 / ls -0.06em */
.hero__headline {
  font-size: clamp(4rem, 11vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: 2rem;
}
.hero__headline em {
  font-style: italic;
  font-weight: 300;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(0,0,0,0.6);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Main content panel (eggshell, rounded top, overlaps hero) */
.main-content {
  background: var(--eggshell);
  border-radius: 32px 32px 0 0;
  margin-top: -8rem;
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ── Marquee ──────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee__item {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.3);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee__dot { color: var(--green); opacity: 0.5; font-size: 0.6rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats strip ──────────────────────────────────────── */
.stats {
  padding: 3.5rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 0 3rem;
  border-left: 1px solid var(--border);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat__value {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.stat__label {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

/* ── Features intro ───────────────────────────────────── */
.features-intro {
  padding: 5rem 2.5rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
}
.features-intro h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--ink);
}
.features-intro p {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 460px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

/* ── Feature cards (floating, random offsets, parallax) ── */
.feature-cards {
  padding: 0 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: 24px;
  padding: 3.25rem;
  width: 52%;
  box-shadow: 0 8px 60px rgba(0,0,0,0.09), 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 5rem;
  will-change: transform;
  transition: box-shadow 0.3s;
}
.feature-card:hover {
  box-shadow: 0 16px 80px rgba(0,0,0,0.13), 0 4px 20px rgba(0,0,0,0.07);
}
/* Random horizontal offsets + slight base rotation per card */
.feature-card--left {
  margin-right: auto;
  margin-left: 2%;
  transform: rotate(-1.2deg);
}
.feature-card--center {
  margin-left: auto;
  margin-right: auto;
  margin-left: 18%;
  transform: rotate(0.8deg);
}
.feature-card--right {
  margin-left: auto;
  margin-right: 3%;
  transform: rotate(-0.5deg);
}

.feature-card__illustration {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 2rem;
}
.feature-card__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ink);
}
.feature-card__body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.7;
  letter-spacing: -0.02em;
}
.feature-card__illustration--svg { margin-bottom: 2rem; }
.surf-icon {
  width: 96px; height: 96px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* ── Cards grid section ───────────────────────────────── */
.cards-section { padding: 1.5rem; }
.feature-timeline {
  position: relative;
  padding: 0 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.timeline-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 200;
  stroke-linecap: round;
  opacity: 0.5;
}
.cards-section__header {
  padding: 3.5rem 1rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.cards-section__header h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}
.cards-section__header p {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 280px;
  text-align: right;
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  row-gap: 2.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--card-r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
}
.card__illustration {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  background: var(--eggshell);
  border-radius: 14px;
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.card__body {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ── About section (dark panel) ──────────────────────── */
.about-section {
  margin: 1.5rem;
  border-radius: var(--section-r);
  background: var(--ink);
  color: var(--white);
  padding: 5rem 3rem;
}
.about-section__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.about__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.75rem;
}
.about__quote {
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2.5rem;
}
.about__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about__avatar {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--sun));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  flex-shrink: 0;
}
.about__name { font-weight: 600; font-size: 1rem; }
.about__role { font-size: 0.875rem; color: rgba(255,255,255,0.4); margin-top: 0.15rem; }
.about__visual {
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border: 1px solid rgba(255,255,255,0.08);
}

/* ── CTA section (blue panel) ────────────────────────── */
.cta-section {
  margin: 1.5rem;
  border-radius: var(--section-r);
  background: var(--green);
  padding: 7rem 2.5rem;
  text-align: center;
}
.cta-section__inner { max-width: 720px; margin: 0 auto; }
.cta-section h2 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.cta-section h2 em { font-style: italic; font-weight: 300; }
.cta-section p {
  font-size: 1.15rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}
.cta-section__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  padding: 7rem 2.5rem 3.5rem;
}
.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer__brand-col {}
.footer__brand-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.footer__brand-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 280px;
  letter-spacing: -0.01em;
}
.footer__col-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5rem;
}
.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer__col-link {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.14s;
  letter-spacing: -0.01em;
}
.footer__col-link:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.85rem; }
.footer__legal {
  display: flex;
  gap: 2rem;
}
.footer__legal a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.14s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .stats { grid-template-columns: 1fr; gap: 1.5rem; }
  .stat { border-left: none; border-top: 1px solid var(--border); padding: 1.5rem 0 0; }
  .stat:first-child { border-top: none; padding-top: 0; }
  .feature-card { width: 75%; }
  .feature-card--left, .feature-card--center, .feature-card--right { margin-left: 0; margin-right: 0; width: 100%; transform: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .about-section__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__visual { display: none; }
}
@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero { padding: 8rem 1.25rem 12rem; }
  .hero--split { padding: 6.5rem 1.25rem 9rem; }
  /* Drop the headline floor so "Gérez votre école" doesn't overflow at 375px */
  .hero--split .hero__headline { font-size: clamp(2.4rem, 9vw, 4rem); }
  .main-content { border-radius: 20px 20px 0 0; margin-top: -5rem; }
  .feature-cards { padding: 0 1rem 2rem; }
  .feature-card { width: 100%; transform: none; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer { padding: 4rem 1.5rem 2.5rem; }
  .cards-section, .about-section, .cta-section { margin: 0.75rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-section__header p { text-align: left; max-width: 100%; }
  .nav { width: calc(100% - 1rem); gap: 0.4rem; }
  .nav__left { padding: 0.4rem 0.4rem 0.4rem 0.9rem; height: 48px; }
  /* Shrink the floating-nav CTA so it stops being cropped */
  .nav .btn--green { height: 44px; padding: 0.4rem 0.4rem 0.4rem 0.95rem; font-size: 0.85rem; }
  .nav .btn--green .btn__icon { width: 1.7rem; height: 1.7rem; font-size: 0.8rem; }
}

/* =========================================================================
   Hero split layout + product demo (Payfit-style static interactive preview)
   ========================================================================= */

.hero--split {
  padding: 8rem 2.5rem 14rem;
}
.hero__inner--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4rem;
  align-items: center;
}
.hero__copy { position: relative; z-index: 2; min-width: 0; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.55);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.hero__eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #ef7da5;
  box-shadow: 0 0 0 3px rgba(239,125,165,0.25);
}
.hero--split .hero__headline { font-size: clamp(3rem, 6.5vw, 5.4rem); margin-bottom: 1.5rem; }
.hero--split .hero__sub { max-width: 460px; font-size: 1.1rem; }

/* ── Stacked hero (copy on top, full-width demo below) ─── */
.hero--stacked {
  /* Top padding tight; bottom padding generous (9rem) so the cream
     .main-content panel's -8rem negative top margin doesn't overlap
     the demo iframe (would hide the demo controls). */
  padding: 5.5rem 2.5rem 9rem;
}
.hero__inner--stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.hero__copy--centered {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.hero__copy--centered .hero__sub {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
}
.hero__copy--centered .hero__actions { justify-content: center; }
.hero__copy--centered .hero__proof { justify-content: center; margin-top: 1.5rem; }
.hero__copy--centered .hero__proof-text { text-align: left; max-width: 280px; }
.hero--stacked .hero__eyebrow { margin-bottom: 1rem; }
.hero--stacked .hero__headline {
  /* Tighter clamp than split — needs to fit 3 lines max on 1440 */
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  margin-bottom: 1rem;
  line-height: 1.02;
}

/* Stacked-layout responsive overrides (rules for .demo-embed--wide are
   defined AFTER the base .demo-embed block below to win the cascade). */
@media (max-width: 640px) {
  .hero--stacked { padding: 6.5rem 1.25rem 3rem; }
  .hero__inner--stacked { gap: 2.5rem; }
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__proof-stars {
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero__proof-text {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.6);
  letter-spacing: -0.01em;
  max-width: 300px;
  line-height: 1.45;
}

/* ── Embedded interactive demo iframe ─────────────────── */
.demo-embed {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.18),
    0 6px 24px rgba(0,0,0,0.10),
    0 0 0 1px rgba(0,0,0,0.04);
}
.demo-embed__frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.demo-embed__expand {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.14s, background 0.14s;
  z-index: 5;
}
.demo-embed__expand:hover {
  background: var(--white);
  transform: translateY(-1px);
}

/* Wide variant: full-bleed centerpiece for the stacked hero. */
.demo-embed--wide {
  max-width: 1100px;
  height: 680px;
}
@media (max-width: 1180px) {
  .demo-embed--wide { height: 640px; }
}
@media (max-width: 960px) {
  .demo-embed--wide { height: 600px; max-width: 100%; }
}
@media (max-width: 640px) {
  .demo-embed--wide { height: 560px; }
}

/* ── Static fallback demo container (noscript path) ──── */
.demo {
  position: relative;
  min-height: 600px;
  /* Reserve space so the floating admin strip + phone never escape the column. */
  padding: 2rem 2rem 3rem 3rem;
  margin: -2rem -2rem -3rem -3rem;
  perspective: 1400px;
}

/* Tabs */
.demo__tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 0.3rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.demo__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.78rem 'Inter', system-ui, sans-serif;
  color: rgba(0,0,0,0.55);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  cursor: default;
  letter-spacing: -0.01em;
}
.demo__tab--active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.05);
  font-weight: 600;
}
.demo__tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.demo__tab-dot--pink   { background: #ef7da5; }
.demo__tab-dot--indigo { background: #6366f1; }
.demo__tab-dot--cream  { background: #f7f4ef; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }

/* Stack */
.demo__stack { position: relative; }

/* Surface — front (booking widget) */
.demo__surface {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15), 0 6px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
}
.demo__surface--front {
  position: relative;
  z-index: 3;
  width: 90%;
  transform: translateZ(0) rotateX(2deg) rotateY(-3deg);
  transform-origin: 50% 50%;
}
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f5f1e4;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.demo__dot { width: 11px; height: 11px; border-radius: 50%; }
.demo__dot--r { background: #ff5f57; }
.demo__dot--y { background: #febc2e; }
.demo__dot--g { background: #28c840; }
.demo__chrome-url {
  margin-left: 0.7rem;
  font-size: 0.72rem;
  color: rgba(0,0,0,0.45);
  letter-spacing: -0.01em;
  font-weight: 500;
}

.demo__widget { padding: 1.25rem 1.4rem 1.4rem; }
.demo__widget-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.85rem;
}
.demo__widget-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.demo__widget-meta { font-size: 0.78rem; color: rgba(0,0,0,0.55); margin-top: 0.15rem; }
.demo__widget-meta strong { color: var(--ink); font-weight: 700; }
.demo__widget-step {
  font-size: 0.75rem;
  background: rgba(239,125,165,0.12);
  color: #ef7da5;
  border-radius: 50px;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
}
.demo__widget-step-current { font-size: 0.85rem; }
.demo__widget-step-total { opacity: 0.55; }
.demo__widget-step-bar {
  height: 3px; background: rgba(0,0,0,0.06); border-radius: 50px; margin-bottom: 1.1rem; overflow: hidden;
}
.demo__widget-step-bar-fill {
  width: 75%; height: 100%; background: #ef7da5; border-radius: 50px;
}

.demo__widget-section { margin-bottom: 1.05rem; }
.demo__widget-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(0,0,0,0.45); margin-bottom: 0.55rem;
}

/* Tier cards */
.demo__widget-tier-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem;
}
.demo__tier {
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: var(--white);
}
.demo__tier--active {
  border-color: #ef7da5;
  background: rgba(239,125,165,0.06);
  box-shadow: 0 0 0 3px rgba(239,125,165,0.12);
}
.demo__tier-name { font-size: 0.78rem; font-weight: 600; letter-spacing: -0.01em; }
.demo__tier-meta { font-size: 0.68rem; color: rgba(0,0,0,0.5); margin: 0.1rem 0 0.25rem; }
.demo__tier-price { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.demo__tier--active .demo__tier-price { color: #ef7da5; }

/* Calendar */
.demo__cal {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: 0.5rem 0.6rem 0.6rem;
  background: var(--white);
}
.demo__cal-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(0,0,0,0.6); padding: 0.1rem 0.2rem 0.4rem;
}
.demo__cal-arrow { font-size: 0.95rem; color: rgba(0,0,0,0.4); }
.demo__cal-dow {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-size: 0.62rem; font-weight: 600; color: rgba(0,0,0,0.35);
  letter-spacing: 0.05em; text-align: center;
  padding: 0.15rem 0 0.3rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.demo__cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  margin-top: 0.3rem;
}
.demo__cal-day {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-size: 0.7rem; font-weight: 500;
  border-radius: 50%;
  margin: 0 auto;
  color: rgba(0,0,0,0.7);
}
.demo__cal-day--mute { color: rgba(0,0,0,0.18); }
.demo__cal-day--avail {
  border: 1.5px solid #ef7da5;
  color: #ef7da5;
  font-weight: 600;
}
.demo__cal-day--selected {
  background: #ef7da5;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(239,125,165,0.22);
}
.demo__cal-day--full     { color: rgba(0,0,0,0.25); position: relative; }
.demo__cal-day--full::after {
  content: '·'; position: absolute; bottom: -3px; right: 4px; font-size: 0.6rem; color: rgba(0,0,0,0.35);
}
.demo__cal-day--cutoff   { color: rgba(0,0,0,0.25); position: relative; }
.demo__cal-day--cutoff::after {
  content: '✕'; position: absolute; bottom: -2px; right: 2px; font-size: 0.55rem; color: rgba(0,0,0,0.35);
}

/* Slot row */
.demo__slot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.demo__slot {
  position: relative;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  background: var(--white);
}
.demo__slot--active {
  border-color: #ef7da5;
  background: rgba(239,125,165,0.06);
  box-shadow: 0 0 0 3px rgba(239,125,165,0.12);
}
.demo__slot--full { opacity: 0.5; }
.demo__slot-time { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.demo__slot-meta { font-size: 0.65rem; color: rgba(0,0,0,0.5); margin-top: 0.1rem; }
.demo__slot-check {
  position: absolute; top: 6px; right: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #ef7da5; color: white;
  font-size: 0.65rem; line-height: 16px; text-align: center;
}

/* Pay button (Mollie card / hosted Apple Pay redirect) */
.demo__pay {
  width: 100%;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: 600 0.95rem 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}
.demo__pay-apple { font-weight: 500; }
.demo__pay-amt { font-weight: 700; }

/* Surface 2: admin slot strip — peeks above-right of widget */
.demo__surface--admin {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 58%;
  z-index: 4;
  transform: rotate(2deg) translateZ(0);
  background: #fafafa;
  padding: 0.8rem 0.9rem 0.9rem;
}
.demo__admin-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.6rem;
}
.demo__admin-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.demo__admin-pill {
  font-size: 0.68rem; font-weight: 600; letter-spacing: -0.01em;
  color: #4f46e5;
  background: rgba(99,102,241,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
}
.demo__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.demo__strip-day {}
.demo__strip-dow {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
  color: rgba(0,0,0,0.45); margin-bottom: 0.3rem;
}
.demo__strip-card {
  background: var(--white);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(0,0,0,0.05);
}
.demo__strip-card--hot {
  background: rgba(99,102,241,0.04);
  border-color: rgba(99,102,241,0.18);
}
.demo__strip-card--full {
  background: #ef7da5;
  border-color: #ef7da5;
  color: white;
}
.demo__strip-card--full .demo__strip-plan,
.demo__strip-card--full .demo__strip-coach,
.demo__strip-card--full .demo__strip-fill { color: rgba(255,255,255,0.85); }
.demo__strip-time { font-size: 0.85rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.demo__strip-card--full .demo__strip-time { color: white; }
.demo__strip-plan { font-size: 0.7rem; color: rgba(0,0,0,0.55); margin: 0.05rem 0; }
.demo__strip-coach { font-size: 0.68rem; font-weight: 600; color: rgba(0,0,0,0.5); }
.demo__strip-gauge {
  height: 3px; background: rgba(0,0,0,0.08); border-radius: 50px; margin: 0.4rem 0 0.2rem; overflow: hidden;
}
.demo__strip-gauge span {
  display: block; height: 100%; background: #6366f1; border-radius: 50px;
}
.demo__strip-card--full .demo__strip-gauge { background: rgba(255,255,255,0.3); }
.demo__strip-card--full .demo__strip-gauge span { background: white; }
.demo__strip-fill { font-size: 0.65rem; font-weight: 600; color: rgba(0,0,0,0.5); }

/* Surface 3: coach mobile portal — peeks bottom-left of widget */
.demo__phone {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  width: 195px;
  z-index: 5;
  transform: rotate(-5deg) translateZ(0);
  background: var(--ink);
  border-radius: 28px;
  padding: 0.4rem;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.1);
}
.demo__phone-notch {
  height: 14px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  width: 60%;
  margin: 0 auto -2px;
  position: relative;
  z-index: 2;
}
.demo__phone-screen {
  background: #f7f4ef; /* cream-blast — matches portal stylesheet */
  border-radius: 22px;
  padding: 1.1rem 0.85rem 0.85rem;
  min-height: 320px;
}
.demo__phone-head { margin-bottom: 0.7rem; }
.demo__phone-eyebrow {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(0,0,0,0.45);
}
.demo__phone-title {
  font-size: 0.82rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin-top: 0.15rem;
}
.demo__phone-list { display: flex; flex-direction: column; gap: 0.3rem; }
.demo__phone-row {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--white);
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(0,0,0,0.04);
}
.demo__phone-row--mute { opacity: 0.45; }
.demo__phone-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.demo__phone-avatar--m { background: #ef7da5; }
.demo__phone-avatar--p { background: #6366f1; }
.demo__phone-avatar--c { background: #f59e0b; }
.demo__phone-avatar--\? { background: rgba(0,0,0,0.15); color: rgba(0,0,0,0.4); }
.demo__phone-name {
  flex: 1; font-size: 0.72rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo__phone-tag {
  font-size: 0.6rem; font-weight: 700;
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.55);
  padding: 0.1rem 0.4rem;
  border-radius: 50px;
}
.demo__phone-tag--mute { background: transparent; color: rgba(0,0,0,0.3); }
.demo__phone-check {
  font-size: 0.7rem; color: #16a34a; font-weight: 700;
}
.demo__phone-check--pending { color: rgba(0,0,0,0.3); }
.demo__phone-foot {
  margin-top: 0.7rem;
  background: var(--white);
  border-radius: 10px;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(0,0,0,0.04);
}
.demo__phone-note-label {
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(0,0,0,0.4); margin-bottom: 0.25rem;
}
.demo__phone-note {
  font-size: 0.68rem; line-height: 1.45; color: rgba(0,0,0,0.7); font-style: italic; letter-spacing: -0.01em;
}

/* Floating captions (annotations Payfit-style) */
.demo__caption {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border-radius: 50px;
  padding: 0.4rem 0.85rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
  white-space: nowrap;
  letter-spacing: -0.01em;
  z-index: 10;
}
.demo__caption::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.demo__caption--top    { top: -1rem; left: 8%; }
.demo__caption--top::before    { right: -14px; top: 50%; transform: translateY(-50%); }
.demo__caption--right  { top: 4.5rem; right: -0.5rem; }
.demo__caption--right::before  { left: -14px; top: 50%; transform: translateY(-50%); }
.demo__caption--bottom { bottom: 0.5rem; right: 4%; }
.demo__caption--bottom::before { left: -14px; top: 50%; transform: translateY(-50%); }

/* Hide the right caption at narrower viewports — it has nowhere to extend
   without clipping the admin strip or the column edge. */
@media (max-width: 1340px) {
  .demo__caption--right { display: none; }
  .demo__caption--top    { top: 0.5rem; left: 6%; }
  .demo__caption--bottom { bottom: 1rem; right: 2%; }
}

/* Demo responsive — collapse to single column under 960 */
@media (max-width: 960px) {
  .hero--split { padding: 7rem 1.5rem 9rem; }
  .hero__inner--split { grid-template-columns: 1fr; gap: 3rem; }
  .demo {
    min-height: auto;
    max-width: 540px;
    margin: 0 auto;
    /* Reset the desktop "bleed" padding so the demo no longer pushes the column wider than the viewport. */
    padding: 1rem;
  }
  .demo__surface--admin { width: 70%; right: 0.5rem; top: 0.5rem; }
  .demo__phone { width: 160px; left: 0.5rem; bottom: 0.5rem; }
  .demo__caption--right { display: none; }
}
@media (max-width: 640px) {
  .demo__caption--top, .demo__caption--bottom { display: none; }
  .demo__surface--admin { display: none; }
  .demo__phone { display: none; }
  .demo__surface--front { width: 100%; transform: none; }
}
