/* ==========================================================================
   Toned — coming soon
   Brand: Toned visual identity (MAD). Palette sampled from the brand book.
   ========================================================================== */

:root {
  /* Brand palette */
  --bg: #F9F5F3;          /* brand off-white */
  --surface: #FFFFFF;
  --ink: #0A0A0A;         /* brand black */
  --ink-2: rgba(10, 10, 10, 0.6);
  --ink-3: rgba(10, 10, 10, 0.38);
  --hair: rgba(10, 10, 10, 0.08);
  --green: #8CC185;       /* logo dot */
  --green-light: #B3D6AE;
  --green-dark: #31572C;
  --nude-1: #F0E5E1;
  --nude-2: #E6D5CE;
  --nude-3: #D3B6AB;
  --brown: #4D3328;

  /* Type */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "Archivo", var(--font-ui); /* stand-in for Gothic No60 (brand typeface) */

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(77, 51, 40, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------- Type ---------- */

.display {
  font-family: var(--font-brand);
  font-stretch: 125%;
  font-weight: 400;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.display__soon { color: var(--green-dark); }

/* The logo's green full stop, reused as punctuation */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--green);
  vertical-align: baseline;
}

.green-dark { color: var(--green-dark); }

.h2 {
  font-family: var(--font-brand);
  font-stretch: 125%;
  font-weight: 400;
  font-size: clamp(1.9rem, 4.2vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h2--light { color: var(--bg); }

.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.lead--light { color: rgba(249, 245, 243, 0.66); }

.eyebrow {
  font-family: var(--font-brand);
  font-stretch: 125%;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.eyebrow--light { color: rgba(249, 245, 243, 0.6); }

.green { color: var(--green); }
.sep { color: var(--green); }
.nw { white-space: nowrap; }

/* ---------- Buttons ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-ui);
  letter-spacing: -0.01em;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.pill--sm { min-height: 38px; padding: 0 16px; font-size: 0.9375rem; }
.pill--dark { background: var(--ink); color: var(--bg); }
.pill--light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.pill--white { background: var(--bg); color: var(--ink); }

.i {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.i .fill { fill: currentColor; stroke: none; }

/* Press feedback: instant on pointer-down (Apple: respond on press, not release) */
.press {
  transition: transform 160ms var(--ease-out), background-color 200ms ease, opacity 200ms ease;
}
.press:active, .press.is-pressed { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .pill--dark:hover { background: #262626; }
  .pill--light:hover { background: var(--nude-1); }
  .pill--white:hover { background: #fff; }
  .nav__links a:hover { color: var(--ink); }
  .row--link a:hover { background: rgba(10, 10, 10, 0.03); }
}

/* ---------- Navigation (translucent material) ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(249, 245, 243, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow 250ms ease;
}
.nav.is-scrolled { box-shadow: 0 0.5px 0 var(--hair); }

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 64px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo img { height: 22px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.nav__links a { transition: color 150ms ease; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner > .pill { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: min(100svh, 920px);
  padding: calc(112px + env(safe-area-inset-top)) var(--gutter) 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.hero__copy { display: grid; gap: 26px; justify-items: start; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 0.875rem;
  font-weight: 600;
}
.status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions--center { justify-content: center; }

/* Official store badges (unaltered). Not linked until the store listings exist. */
.stores { display: grid; gap: 10px; justify-items: start; }
.stores--center { justify-items: center; margin-top: 6px; }
.stores__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
}
.stores__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge { height: 48px; width: auto; user-select: none; -webkit-user-drag: none; }

@media (max-width: 380px) {
  .badge { height: 42px; }
  .stores__badges { gap: 8px; }
}

.hint { font-size: 0.875rem; color: var(--ink-3); margin-top: -12px; }

.nav__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-dark);
}
.nav__links + .nav__soon { margin-left: 8px; }
@media (max-width: 720px) {
  .nav__soon { margin-left: auto; }
  .nav__inner > .pill { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav__soon { display: none; }
  .nav__inner > .pill { margin-left: auto; }
}

.hero__phone { margin: 0; display: grid; justify-items: center; gap: 18px; }
.caption { font-size: 0.8125rem; color: var(--ink-3); text-align: center; }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(100px + env(safe-area-inset-top));
  }
}

/* ---------- Phone mockup ---------- */

.phone__tag {
  position: absolute;
  top: 64px;
  right: -26px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font: 700 0.8125rem/1 var(--font-ui);
  letter-spacing: -0.01em;
  transform: rotate(6deg);
  box-shadow: 0 6px 16px rgba(49, 87, 44, 0.25);
}

.phone {
  position: relative;
  --w: 300px;
  width: var(--w);
  aspect-ratio: 300 / 624;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #2a2a2a, #0d0d0d 40%, #1c1c1c);
  box-shadow:
    inset 0 0 0 1.5px #3a3a3a,
    0 2px 4px rgba(10, 10, 10, 0.08),
    0 30px 60px -10px rgba(77, 51, 40, 0.28),
    0 60px 120px -30px rgba(77, 51, 40, 0.22);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 45px;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
.phone__island {
  position: absolute;
  top: 10px; left: 50%;
  width: 92px; height: 27px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 5;
}
.phone__home {
  position: absolute;
  bottom: 7px; left: 50%;
  width: 110px; height: 4.5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
  z-index: 6;
}

.sb {
  height: 48px;
  padding: 16px 26px 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font: 600 14px/1 var(--font-ui);
  letter-spacing: -0.01em;
}
.sb__icons { display: flex; gap: 6px; align-items: center; margin-top: 1px; }
.sb__icons svg { height: 11px; width: auto; fill: currentColor; }

.app { padding: 4px 16px 0; height: calc(100% - 48px); display: flex; flex-direction: column; }
.app__top { padding: 6px 4px 10px; }
.app__branch {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green-dark);
}
.app__title {
  font: 700 30px/1.1 var(--font-ui);
  letter-spacing: -0.025em;
}

.days {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px;
  border-radius: 16px;
  background: var(--nude-1);
}
.days__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / 5);
  border-radius: 12px;
  background: var(--ink);
  transition: transform 380ms var(--ease-out);
  z-index: 0;
}
.day {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  background: none;
  padding: 7px 0 6px;
  display: grid;
  justify-items: center;
  gap: 1px;
  font: 500 10px/1.2 var(--font-ui);
  color: var(--ink-2);
  cursor: pointer;
  touch-action: manipulation;
  transition: color 200ms ease;
}
.day b { font-size: 16px; font-weight: 600; color: var(--ink); transition: color 200ms ease; }
.day[aria-selected="true"], .day[aria-selected="true"] b { color: var(--bg); }

.classes {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 96px;
  display: grid;
  align-content: start;
  gap: 8px;
  scrollbar-width: none;
  overscroll-behavior: contain;
  transition: opacity 160ms ease, transform 260ms var(--ease-out);
}
.classes::-webkit-scrollbar { display: none; }
.classes.is-swapping { opacity: 0; transform: translateY(6px); }

.cls {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 10px 11px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}
.cls__time { font: 600 13px/1.15 var(--font-ui); }
.cls__time small { display: block; font-weight: 500; font-size: 10px; color: var(--ink-3); }
.cls__name { display: block; font: 600 13.5px/1.2 var(--font-ui); letter-spacing: -0.01em; }
.cls__meta { display: block; font-size: 11px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.cls__meta .low { color: #B4532A; font-weight: 600; }

.book {
  appearance: none;
  border: 0;
  min-width: 64px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 12px/1 var(--font-ui);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 220ms ease, color 220ms ease;
}
.book:active, .book.is-pressed { transform: scale(0.94); }
.book.is-booked { background: var(--green-light); color: var(--green-dark); }
.book:disabled { background: var(--nude-1); color: var(--ink-3); cursor: default; }

/* Toast: drops from under the island, leaves the same way */
.toast {
  position: absolute;
  top: 46px; left: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: var(--bg);
  font: 600 12px/1 var(--font-ui);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -24px) scale(0.92);
  transition: transform 420ms var(--ease-out), opacity 220ms ease;
  pointer-events: none;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast__check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  display: grid; place-items: center;
}
.toast__check svg { width: 13px; height: 13px; fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.tabbar {
  position: absolute;
  inset: auto 0 0 0;
  height: 78px;
  padding: 8px 14px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(249, 245, 243, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 -0.5px 0 var(--hair);
  z-index: 3;
}
.tab {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  font: 500 10px/1 var(--font-ui);
  color: var(--ink-3);
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab.is-on { color: var(--ink); }

@media (max-width: 380px) {
  .phone { --w: 272px; }
}

/* ---------- Brand band ---------- */

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.band__quote {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-brand);
  font-stretch: 125%;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
}

@media (max-width: 700px) {
  .band img { border-radius: var(--radius-md); }
}

/* ---------- Sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 12vw, 148px) var(--gutter) 0;
}
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  padding: 26px 24px 28px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--nude-1);
  color: var(--brown);
  margin-bottom: 22px;
}
.feature h3 { font: 600 1.125rem/1.25 var(--font-ui); letter-spacing: -0.015em; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 0.975rem; line-height: 1.5; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature {
    display: grid;
    grid-template-columns: 46px 1fr;
    column-gap: 16px;
    padding: 18px 18px 20px;
  }
  .feature__icon { grid-row: span 2; margin: 0; }
  .feature h3 { margin: 2px 0 4px; }
}

/* Class cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--nude-1); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.card__media .pos-hydrate { object-position: 74% 50%; }
.card__body { padding: 20px 22px 24px; }
.card h3 {
  font-family: var(--font-brand);
  font-stretch: 125%;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.card p { color: var(--ink-2); font-size: 0.975rem; }

@media (max-width: 800px) {
  .cards {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 20px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
}

/* Dark section (brand black) */
.dark {
  margin-top: clamp(88px, 12vw, 148px);
  background: #000;
  color: var(--bg);
}
.dark__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.dark__copy { display: grid; gap: 22px; justify-items: start; }
.dark__copy .eyebrow { margin-bottom: -8px; }
.dark__media img { border-radius: var(--radius-lg); width: 100%; }

@media (max-width: 900px) { .dark__inner { grid-template-columns: 1fr; } }

/* Studios: iOS inset grouped list */
.group {
  max-width: 640px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.row { position: relative; }
.row + .row::before {
  content: "";
  position: absolute;
  top: 0; left: 72px; right: 0;
  height: 0.5px;
  background: rgba(10, 10, 10, 0.12);
}
.row, .row--link a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 18px;
}
.row--link { padding: 0; }
.row--link a { width: 100%; transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.row--link a:active { background: rgba(10, 10, 10, 0.05); transform: none; }
.row__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--green-light);
  color: var(--green-dark);
  flex: none;
}
.row__icon .i { width: 20px; height: 20px; }
.row__text { display: grid; gap: 2px; }
.row__text strong { font-weight: 600; letter-spacing: -0.01em; }
.row__text small { font-size: 0.875rem; color: var(--ink-2); }
.chev { width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Closing */
.closing {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(104px, 14vw, 168px) var(--gutter) clamp(80px, 10vw, 120px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 20px;
}
.closing__mark { width: 30px; height: auto; margin-bottom: 8px; }
.closing .hero__actions { margin-top: 10px; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  border-top: 0.5px solid rgba(10, 10, 10, 0.12);
  display: grid;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.footer__logo { height: 20px; width: auto; margin-bottom: 6px; }
.footer__small { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Motion ---------- */

/* Page load: copy and phone rise in, staggered */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 900ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
.js .hero__phone.reveal { transform: translateY(24px) scale(0.97); }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* On scroll: once, quietly */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal-on-scroll.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__phone.reveal {
    transform: none;
    animation: fade 300ms ease forwards;
    animation-delay: 0ms;
  }
  .js .reveal-on-scroll { transform: none; transition: opacity 300ms ease; }
  .days__thumb, .classes, .toast, .press, .book { transition-property: opacity, background-color, color; }
  .toast { transform: translate(-50%, 0); }
  .press:active, .press.is-pressed, .book:active, .book.is-pressed { transform: none; }
  @keyframes fade { to { opacity: 1; } }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tabbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: rgba(10, 10, 10, 0.82); --ink-3: rgba(10, 10, 10, 0.66); --hair: rgba(10, 10, 10, 0.3); }
}
