/* ==========================================================================
   מאיה ספורט (demo): main.css
   Built from templates/premium. Design plan: clients/maya-sport/design.md

   PALETTE (from the studio's own nude/taupe schedule graphics + one energy accent):
     nude       #F5E6DC  page background
     fig        #36182A  text + dark sections (warm, not black)
     raspberry  #A51D4A  buttons, links, focus on light, the reformer carriage
     euc        #1F4A3E  eucalyptus: reviews band, "השדה" studio tag
     blush      #EFCFC4  soft surfaces: trial form, "הבית" studio tag
     sun        #F4B63F  accent on DARK backgrounds only
   TYPE: Karantina (tall condensed display, timetable feel) + Alef (text).

   CONTRAST (WCAG AA, checked): fig/nude 13.1, raspberry/nude 6.0, raspberry/blush 5.0,
   raspberry/chalk 7.1, chalk/raspberry 7.1, ink-soft/nude 8.1, euc/nude 8.2, euc/blush 5.6,
   nude/fig 13.1, sun/fig 8.8, mist/fig 11.1, sun/euc 5.5, nude/euc 8.2, field/chalk 5.5,
   error/chalk 7.7, error/blush 5.5. Never raspberry text on fig (2.4).
   ========================================================================== */

:root {
  --nude: #F5E6DC;
  --fig: #36182A;
  --fig-line: #5E3A4C;
  --raspberry: #A51D4A;
  --raspberry-deep: #86163B;
  --euc: #1F4A3E;
  --euc-line: #3F6A5D;
  --blush: #EFCFC4;
  --sage: #CFE0D6;
  --sun: #F4B63F;
  --chalk: #FFFAF6;
  --ink-soft: #5A3A48;
  --mist: #E9D3C6;
  --line: #D9BBAA;
  --field-border: #7E5E6B;
  --error: #9E1830;
  --ph-bg: #F8DDA3;
  --focus: var(--raspberry);

  --font-display: "Karantina", "Arial Narrow", "Arial", sans-serif;
  --font-text: "Alef", "Arial", sans-serif;

  /* Fluid type scale (rem based, so zoom and text-size settings work). */
  --step--1: clamp(0.9375rem, 0.91rem + 0.1vw, 1rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --step-3: clamp(3rem, 2rem + 4.5vw, 6rem);
  --step-4: clamp(4.25rem, 1.6rem + 11vw, 11.5rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --header-h: 4rem;
  --radius-pill: 999px;
  --radius-card: 14px;
  --radius-panel: 22px;
  --radius-field: 8px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--nude);
  color: var(--fig);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

p { margin: 0 0 1em; }

a {
  color: var(--raspberry);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container {
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--fig);
  color: var(--nude);
  border-radius: var(--radius-field);
  text-decoration: none;
  font-weight: 700;
  --focus: var(--sun);
}
.skip-link:focus { top: 1rem; }

.ph {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: var(--ph-bg);
  color: var(--fig);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Demo banner (top + footer) ---------- */
.demo-banner {
  --focus: var(--sun);
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--fig);
  color: var(--nude);
  font-size: var(--step--1);
  line-height: 1.5;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: 700 var(--step-0) / 1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--primary { background: var(--raspberry); color: var(--chalk); }
.btn--primary:hover { background: var(--raspberry-deep); color: var(--chalk); }
.btn--ghost { background: transparent; color: var(--fig); border-color: currentColor; }
.btn--ghost:hover { background: var(--fig); color: var(--nude); border-color: var(--fig); }
.btn--small { min-height: 2.75rem; padding: 0.45rem 1.15rem; font-size: var(--step--1); }
.btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nude);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--fig);
  text-decoration: none;
}
.wordmark__mark { width: 1.85rem; height: 1.85rem; flex: none; }
.mark-drop { fill: var(--raspberry); }
.mark-smile { fill: none; stroke: var(--chalk); stroke-width: 2.6; stroke-linecap: round; }

.site-nav { margin-inline-start: auto; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav__list a:not(.btn) {
  color: var(--fig);
  text-decoration: none;
  padding-block: 0.5rem;
}
.site-nav__list a:not(.btn):hover { text-decoration: underline; }

.nav-toggle,
.motion-toggle {
  display: none; /* needs JS: shown only under .js */
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--fig);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fig);
  font: 700 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
}
.nav-toggle__icon {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.motion-toggle__icon { width: 1rem; height: 1rem; fill: currentColor; }

.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="true"] { background: var(--fig); color: var(--nude); }
.motion-toggle[aria-disabled="true"] { cursor: not-allowed; }

@media (max-width: 1059.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--nude);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a:not(.btn) {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-1);
  }
  .js .site-nav__cta { padding-top: 1rem; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: var(--step-0); }
}

@media (max-width: 459.98px) {
  .wordmark { font-size: 2rem; }
  .nav-toggle span,
  .motion-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Studio tags (הבית / השדה) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  font: 700 0.875rem / 1.5 var(--font-text);
  white-space: nowrap;
}
.tag--home { background: var(--blush); color: var(--fig); }
.tag--field { background: var(--sage); color: var(--euc); }
.tag--lg { padding: 0.2rem 0.85rem; font-size: var(--step-0); }
.tag__icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(2rem, 5vw, 5rem) clamp(2rem, 4vw, 3.5rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 0.86;
  letter-spacing: -0.005em;
  color: var(--fig);
}
.hero__line { display: block; }

.hero__lead {
  max-width: 40ch;
  margin-bottom: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__art {
  width: calc(100% + var(--gutter));
  max-width: none;
  height: auto;
  margin-inline-end: calc(-1 * var(--gutter));
}

.facts {
  display: grid;
  gap: 1rem 2rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 3px solid var(--fig); /* the "floor" the reformer stands on */
}
.facts dt { margin-bottom: 0.25rem; font-size: var(--step--1); color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 700; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  /* Poster layout: the slogan owns the right half; on the left, the lead + actions on top and
     the reformer standing on the floor line (.facts border) at the bottom. */
  .hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "title text"
      "title art"
      "facts facts";
    column-gap: clamp(2rem, 4vw, 4rem);
    row-gap: 1.75rem;
  }
  .hero__title { grid-area: title; align-self: start; }
  .hero__text { grid-area: text; align-self: start; padding-top: clamp(0.5rem, 1.5vw, 1.5rem); }
  .facts { grid-area: facts; }
  .hero__art {
    grid-area: art;
    align-self: end;
    width: calc(100% + var(--gutter));
    margin-inline-end: calc(-1 * var(--gutter));
    margin-bottom: -1.75rem; /* legs touch the floor line of .facts */
  }
}

/* Only while the entrance animation is about to run (class set by js/boot.js, removed by
   js/motion.js or a 2.5s failsafe). Never hides content without JS. */
.intro-pending [data-intro] { visibility: hidden; }

/* ---------- Reformer (inline SVG) ---------- */
.rf-line { fill: none; stroke: var(--fig); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.rf-frame { fill: var(--chalk); stroke: var(--fig); stroke-width: 4; }
.rf-pad { fill: var(--blush); stroke: var(--fig); stroke-width: 3.5; }
.rf-anchor { fill: var(--fig); }
.rf-springs path { fill: none; stroke: var(--euc); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.rf-pulley { fill: var(--chalk); stroke: var(--fig); stroke-width: 3.5; }
.rf-rope { stroke: var(--fig); stroke-width: 2.2; stroke-linecap: round; }
.rf-wheel { fill: var(--fig); }
.rf-seat { fill: var(--raspberry); stroke: var(--fig); stroke-width: 3.5; }
.rf-head { fill: var(--chalk); stroke: var(--fig); stroke-width: 3.5; }
.rf-handle { fill: none; stroke: var(--fig); stroke-width: 3; }

/* ---------- Owner note (demo only) ---------- */
.owner-note {
  margin-bottom: clamp(1rem, 3vw, 2rem);
  padding: 1.25rem clamp(1.1rem, 3vw, 2rem) 0.5rem;
  border: 2px dashed var(--raspberry);
  border-radius: var(--radius-panel);
  background: var(--chalk);
}
.owner-note__tag {
  margin: 0 0 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--raspberry);
}
.owner-note__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.owner-note p { max-width: 74ch; }

/* ---------- Generic sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.92;
}

.section__intro { max-width: 52ch; margin: 0; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

.demo-note {
  max-width: 72ch;
  margin: 2rem 0 0;
  padding: 0.9rem 1.1rem;
  border: 1.5px dashed var(--raspberry);
  border-radius: var(--radius-card);
  color: var(--fig);
  font-size: var(--step--1);
}
.demo-note strong { color: var(--raspberry); }
.demo-note--dark { border-color: var(--sun); color: var(--nude); }
.demo-note--dark strong { color: var(--sun); }

/* ---------- About ---------- */
.about { padding-top: clamp(2.5rem, 6vw, 5rem); }
.about__grid { display: grid; gap: 2.5rem; }
.about__lead { max-width: 34ch; font-size: var(--step-2); line-height: 1.4; }
.about__text p:not(.about__lead) { max-width: 58ch; }
.about__extra {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.about__start {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-panel);
  background: var(--blush);
}
.about__start-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}

.start-steps {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.start-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.start-steps li::before {
  content: counter(step);
  content: counter(step) / "";
  grid-row: span 2;
  font: 700 3rem / 0.9 var(--font-display);
  color: var(--raspberry);
}
.start-steps p { margin: 0; }
.start-steps__name { font-weight: 700; font-size: var(--step-1); line-height: 1.3; }

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- Classes (dark) ---------- */
.classes {
  --focus: var(--sun);
  background: var(--fig);
  color: var(--nude);
}
.classes a { color: var(--sun); }
.classes .section__intro { color: var(--mist); }
.classes__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.class-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.9rem + 2.4vw, 4rem);
  line-height: 0.95;
}
.class-kicker { margin: 0 0 0.9rem; font-weight: 700; color: var(--sun); }

.pilates { display: grid; gap: 2.5rem; }
.pilates__item p:not(.class-kicker) { max-width: 52ch; color: var(--mist); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.25rem 0.85rem;
  border: 1.5px solid var(--blush);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
}

@media (min-width: 800px) {
  .pilates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .pilates__item { padding-inline-end: clamp(1.5rem, 4vw, 3.5rem); }
  .pilates__item + .pilates__item {
    padding-inline: clamp(1.5rem, 4vw, 3.5rem) 0;
    border-inline-start: 1px solid var(--fig-line);
  }
}

.studio-classes { margin-top: clamp(3rem, 6vw, 5rem); }
.studio-classes__head { display: grid; gap: 0.25rem 3rem; margin-bottom: 1.5rem; }
.studio-classes__head p { max-width: 46ch; margin: 0; color: var(--mist); }
@media (min-width: 800px) {
  .studio-classes__head { grid-template-columns: auto minmax(0, 1fr); align-items: end; }
}

.class-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  align-items: start;
  column-gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fig-line);
}
.class-list > li { border-bottom: 1px solid var(--fig-line); }
.class-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-block: 0.7rem;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.class-list summary::-webkit-details-marker { display: none; }
.class-list summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  font: 400 2rem / 1 var(--font-display);
  color: var(--sun);
  transition: transform 0.2s ease;
}
.class-list details[open] summary::after { transform: rotate(45deg); }
.class-list details p { max-width: 60ch; margin: 0 0 1.1rem; color: var(--mist); font-size: var(--step--1); }
.class-list__more { margin: 1rem 0 0; color: var(--mist); }

.kids {
  display: grid;
  gap: 1.5rem 3rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--fig-line);
}
.kids__text p:not(.class-kicker) { color: var(--mist); }
.kids__why-title { margin: 0 0 0.75rem; font-size: var(--step-1); line-height: 1.3; }
.kids__list { margin: 0; padding: 0; list-style: none; }
.kids__list li {
  position: relative;
  padding-block: 0.35rem;
  padding-inline-start: 1.4rem;
  color: var(--mist);
}
.kids__list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.95em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sun);
}
@media (min-width: 800px) {
  .kids { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Schedule ---------- */
.schedule__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.sync { display: grid; gap: 2rem; }

.sync__side { display: grid; gap: 1.5rem; align-content: start; }

@media (min-width: 720px) {
  .sync__side { grid-template-columns: 15.5rem minmax(0, 1fr); align-items: center; gap: 2.5rem; }
}

/* The phone with the studio's sheet (decorative; the steps next to it say it in words) */
.phone {
  width: min(100%, 15.5rem);
  padding: 0.6rem;
  border: 2px solid var(--fig);
  border-radius: 30px;
  background: var(--fig);
}
.phone__screen {
  position: relative;
  padding: 0.9rem 0.6rem 0.75rem;
  border-radius: 22px;
  background: var(--chalk);
}
.phone__screen::before { /* the notch */
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 50%;
  width: 3.5rem;
  height: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--line);
  transform: translateX(-50%);
}
.phone__title { margin: 0.35rem 0 0.5rem; font-size: 0.8125rem; font-weight: 700; color: var(--euc); }
.sheet { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sheet__row {
  display: grid;
  grid-template-columns: 1.3rem 2.3rem minmax(0, 1fr) 2.4rem;
  gap: 0.3rem;
  padding: 0.35rem 0.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--fig);
}
.sheet__row:first-child { border-top: 0; }
.sheet__row--head { background: var(--sage); font-weight: 700; color: var(--euc); }
.sheet__row--new { background: var(--blush); font-weight: 700; }
.sheet__type { display: inline-block; }
.phone__toast {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: fit-content;
  margin: 0.6rem auto 0;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--euc);
  color: var(--chalk);
  font-size: 0.75rem;
  font-weight: 700;
}
.phone__toast svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.sync-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sync;
}
.sync-steps li {
  counter-increment: sync;
  position: relative;
  padding-block: 0.6rem;
  padding-inline-start: 2.6rem;
  border-top: 1px solid var(--line);
}
.sync-steps li:first-child { border-top: 0; }
.sync-steps li::before {
  content: counter(sync);
  content: counter(sync) / "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  font: 700 2.2rem / 0.9 var(--font-display);
  color: var(--raspberry);
}

.sync__wire { display: none; }

@media (min-width: 1180px) {
  .sync {
    grid-template-columns: 15.5rem 3.5rem minmax(0, 1fr);
    align-items: start;
    gap: 0;
  }
  .sync__side { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .sync__wire {
    display: block;
    position: relative;
    align-self: start;
    height: 2px;
    margin-top: 12.4rem; /* about the height of the new row in the sheet */
    background-image: linear-gradient(to left, var(--fig) 50%, transparent 50%);
    background-size: 10px 2px;
  }
  .sync__pulse {
    position: absolute;
    top: 50%;
    right: 0;
    width: 0.85rem;
    height: 0.85rem;
    margin-top: -0.425rem;
    border-radius: 50%;
    background: var(--raspberry);
    opacity: 0;
  }
}

/* The week (sample layout: real class types, no invented times) */
.week { min-width: 0; }
.week__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.5rem; margin-bottom: 1rem; }
.week__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
}
.week__sample {
  display: inline-block;
  margin-inline-start: 0.5rem;
  padding: 0.15rem 0.7rem;
  border: 1.5px dashed var(--raspberry);
  border-radius: var(--radius-pill);
  font: 700 var(--step--1) / 1.4 var(--font-text);
  color: var(--raspberry);
  vertical-align: middle;
}
.week__note { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

.week__filters { display: none; }
.js .week__filters { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  border: 2px solid var(--fig);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fig);
  font: 700 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
}
.chip:hover { background: var(--blush); }
.chip[aria-pressed="true"] { background: var(--fig); color: var(--nude); }
.week__count { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }

.days { display: grid; gap: 0.9rem; margin: 0; padding: 0; list-style: none; }
.day { min-width: 0; }
.day__name { display: flex; align-items: baseline; gap: 0.4rem; margin: 0 0 0.5rem; }
.day__letter { font: 700 2.8rem / 0.9 var(--font-display); color: var(--fig); }
.day__full { font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }

.slots { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.slot {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--chalk);
}
.slot[hidden] { display: none; }
.slot__time { font: 700 1.6rem / 1 var(--font-display); color: var(--ink-soft); letter-spacing: 0.04em; }
.slot__name { font-weight: 700; line-height: 1.25; }
.slot--new { border-color: var(--raspberry); }
.slot__badge {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  padding: 0.05rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--raspberry);
  color: var(--chalk);
  font-size: 0.8125rem;
  font-weight: 700;
}
.slot.is-fresh { outline: 3px solid var(--raspberry); outline-offset: 3px; }
.day__empty { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.day__shabbat {
  margin: 0.6rem 0 0;
  font: 700 1.6rem / 1 var(--font-display);
  color: var(--raspberry);
}

@media (max-width: 719.98px) {
  .day {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
  }
  .day__name { flex-direction: column; gap: 0.1rem; }
  .day > .day__empty,
  .day > .day__shabbat { grid-column: 2; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7.75rem), 1fr)); }
  .slot { padding: 0.5rem 0.6rem 0.6rem; }
  .slot__time { font-size: 1.35rem; }
  .slot__name { font-size: var(--step--1); }
}

@media (min-width: 720px) {
  .days { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
  .day { padding-top: 0.6rem; border-top: 3px solid var(--fig); }
}

.week .demo-note { margin-top: 1.5rem; }

.app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.app__text { margin: 0; }
.app__links { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Team ---------- */
.team { background: var(--chalk); }
.team__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

.monogram {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--blush);
  color: var(--fig);
  font: 700 2rem / 1 var(--font-display);
}
.monogram--lead {
  width: clamp(5rem, 4rem + 4vw, 7.5rem);
  height: clamp(5rem, 4rem + 4vw, 7.5rem);
  background: var(--raspberry);
  color: var(--chalk);
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.6rem);
}

.lead-coach {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: 1.75rem;
  border-top: 3px solid var(--fig);
  border-bottom: 1px solid var(--line);
}
.lead-coach p:last-child { max-width: 64ch; margin: 0; }
.lead-coach .coach__name { font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem); }

.coach__name {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 0.95;
}
.coach__role { margin: 0 0 0.3rem; font-weight: 700; color: var(--raspberry); }

.coaches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1.75rem 2.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.coach { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.coach p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.coach .coach__role { font-size: var(--step--1); color: var(--raspberry); }

/* ---------- Reviews (eucalyptus band) ---------- */
.reviews {
  --focus: var(--sun);
  background: var(--euc);
  color: var(--nude);
}
.reviews a { color: var(--nude); }
.reviews__grid { display: grid; gap: 2.5rem; }
.rating { display: grid; justify-items: start; gap: 0.35rem; margin: 0; }
.rating__score { font: 700 clamp(5rem, 4rem + 4vw, 7.5rem) / 0.85 var(--font-display); color: var(--sun); }
.rating__stars { display: flex; gap: 0.2rem; }
.rating__stars svg { width: 1.4rem; height: 1.4rem; fill: var(--sun); }

.review { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 1rem; font-size: var(--step-1); line-height: 1.55; }
.review--main blockquote p { font-size: var(--step-2); line-height: 1.45; }
.review figcaption { font-size: var(--step--1); color: var(--sage); }
.review--second { padding-top: 1.5rem; border-top: 1px solid var(--euc-line); }

@media (min-width: 960px) {
  .reviews__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-areas:
      "head main"
      "head second";
    column-gap: clamp(3rem, 6vw, 6rem);
    row-gap: 2rem;
  }
  .reviews__head { grid-area: head; }
  .review--main { grid-area: main; }
  .review--second { grid-area: second; }
}

/* ---------- Studios / visit ---------- */
.studios__grid { display: grid; gap: 2.5rem; }
.studio { display: grid; gap: 0.75rem; align-content: start; justify-items: start; }
.studio__name { margin: 0; }
.studio__address { margin: 0; font-weight: 700; }
.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--chalk);
}
@media (min-width: 800px) {
  .studios__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { aspect-ratio: 16 / 10; }
}

.visit {
  display: grid;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 3px solid var(--fig);
}
.visit__block h3 { margin: 0 0 0.6rem; font-size: var(--step-1); line-height: 1.3; }
.visit__block p { color: var(--ink-soft); }
.visit__phones { font-size: var(--step-1); font-weight: 700; }
.visit__phones a { color: var(--fig); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.visit__small { font-size: var(--step--1); }
@media (min-width: 960px) {
  .visit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.hours { border-collapse: collapse; margin-bottom: 0.75rem; }
.hours th,
.hours td { padding: 0.3rem 0; text-align: start; font-variant-numeric: tabular-nums; }
.hours th { padding-inline-end: 1.5rem; font-weight: 700; }
.hours tr + tr th,
.hours tr + tr td { border-top: 1px solid var(--line); }

/* ---------- Trial form ---------- */
.trial { background: var(--blush); }
.trial__grid { display: grid; gap: 2.5rem; }
.trial__intro p { max-width: 42ch; }
.trial__privacy-note { font-size: var(--step--1); color: var(--ink-soft); }

.trial-form { display: grid; gap: 1.25rem 1.5rem; align-content: start; }

.field { min-width: 0; }
.field label,
.field legend { display: block; margin-bottom: 0.35rem; font-weight: 700; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.req,
.opt { font-size: var(--step--1); font-weight: 400; color: var(--ink-soft); }

.trial-form input[type="text"],
.trial-form input[type="tel"],
.trial-form select,
.trial-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-field);
  background: var(--chalk);
  color: var(--fig);
  font: inherit;
  font-size: var(--step-0);
  line-height: 1.4;
}
.trial-form input[dir="ltr"] { text-align: right; }
.trial-form textarea { min-height: 6.5rem; resize: vertical; }
.trial-form [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }

.choices { display: grid; gap: 0.3rem; }
.choice { display: flex !important; align-items: center; gap: 0.55rem; min-height: 2.5rem; margin: 0 !important; font-weight: 400 !important; }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--raspberry); }

.field__hint { margin: 0.35rem 0 0; font-size: var(--step--1); color: var(--ink-soft); }
.field__error { margin: 0.4rem 0 0; font-size: var(--step--1); font-weight: 700; color: var(--error); }

.field--check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}
.field--check input { width: 1.375rem; height: 1.375rem; margin: 0.2rem 0 0; accent-color: var(--raspberry); }
.field--check label { margin: 0; font-weight: 400; }
.field--check .field__error { grid-column: 1 / -1; }

.form-status {
  padding: 1rem 1.25rem;
  border: 2px solid var(--euc);
  border-radius: var(--radius-field);
  background: var(--chalk);
  color: var(--fig);
}
.form-status p { margin: 0; }
.form-status p + p { margin-top: 0.4rem; font-weight: 700; }

@media (min-width: 640px) {
  .trial-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .trial__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* ---------- Footer ---------- */
.site-footer {
  --focus: var(--sun);
  background: var(--fig);
  color: var(--nude);
  padding-top: 3.5rem;
}
.site-footer a,
.site-footer .link-button { color: var(--nude); }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.wordmark--footer { margin: 0 0 0.5rem; font-size: 3rem; color: var(--nude); }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .demo-banner { border-top: 1px solid var(--fig-line); }
@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- Legal pages ---------- */
.page-header .site-header__bar { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 68ch; }
.legal h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.95;
}
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: var(--step-2); line-height: 1.25; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--ink-soft); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.motion-off *,
.motion-off *::before,
.motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* ---------- Windows high contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn,
  .chip,
  .motion-toggle,
  .nav-toggle { border: 2px solid ButtonText; }
  .chip[aria-pressed="true"],
  .motion-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
  .slot,
  .owner-note,
  .demo-note { border: 1px solid CanvasText; }
}
