/* Style "Pulse": pilates, yoga, gyms, dance studios. Near-black with electric lilac; a breathing hero, stacking cards, a live timetable.
   Type: Encode Sans Semi Expanded (wide, athletic) for display, Golos Text for reading. Shared by every page. */
:root { --ink: #0d0d10; --card: #17171c; --card2: #1e1d25; --lilac: #b9a6ff; --lilac2: #8f73ff; --white: #f4f2ff; --muted: #a09db0; --line: #2a2a33; --warm: #ffb38a;
  --wide: "Encode Sans Semi Expanded", system-ui, sans-serif; --sans: "Golos Text", system-ui, sans-serif; --hh: 70px; }
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.65 var(--sans); }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }
.demo-bar { background: var(--lilac); color: var(--ink); text-align: center; font: 600 11px/1.4 var(--sans); letter-spacing: .18em; padding: 7px 12px; text-transform: uppercase; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); }
.muted { color: var(--muted); }
.num, time { font-variant-numeric: tabular-nums; }

/* type roles */
h1, h2, h3 { font-family: var(--wide); margin: 0; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; margin: 16px 0 44px; }
h3 { font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.12; letter-spacing: -.015em; }
h1 em, h2 em { font-style: normal; color: var(--lilac); }
.h1k { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--lilac); margin-bottom: 22px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 46ch; }

/* header */
header.top { position: sticky; top: 0; z-index: 30; background: rgba(13,13,16,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .wrap { height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font: 800 22px/1 var(--wide); text-decoration: none; letter-spacing: -.03em; }
.logo span { color: var(--lilac); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font: 500 15px/1 var(--sans); padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.join { display: inline-block; background: var(--lilac); color: var(--ink); text-decoration: none; border-radius: 999px; padding: 13px 22px; font: 600 15px/1 var(--sans); border: 0; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.join:hover { background: #cfc2ff; transform: translateY(-1px); }
.join.ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.join.ghost:hover { box-shadow: inset 0 0 0 1px var(--lilac); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--white); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* home hero: a circle that breathes, in for four, out for four */
.hero { min-height: calc(100svh - 101px); display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; padding: 60px 0; }
.breath { position: absolute; width: min(70vmin, 620px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(185,166,255,.38), rgba(143,115,255,.12) 55%, transparent 70%); animation: breathe 8s ease-in-out infinite; }
.breath::after { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px solid rgba(185,166,255,.45); }
@keyframes breathe { 0%, 100% { transform: scale(.72); } 50% { transform: scale(1.05); } }
.cue { font: 600 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--lilac); height: 20px; }
.hero h1 { position: relative; margin: 22px 0; }
.hero p { position: relative; margin: 0 auto 30px; }
.hero .ctas { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* inner page head: a quiet ring instead of the breathing circle */
.phead { position: relative; overflow: hidden; padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.phead::before { content: ""; position: absolute; right: -12vmin; top: 50%; width: 52vmin; aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%);
  background: radial-gradient(circle, rgba(185,166,255,.22), transparent 66%); box-shadow: inset 0 0 0 1px rgba(185,166,255,.25); }
.phead .wrap { position: relative; }
.phead h1 { font-size: clamp(2.1rem, 5.6vw, 4.8rem); max-width: 16ch; }
.phead .lead { margin: 24px 0 0; }
.crumb { font: 500 13px/1 var(--sans); color: var(--muted); margin-bottom: 26px; display: block; }
.crumb a { text-decoration: none; color: var(--lilac); }

section.block { padding: 110px 0; }

/* class cards stack on top of each other as you scroll */
.stack { display: grid; gap: 30px; }
.card { position: sticky; top: 110px; border-radius: 30px; padding: 46px; min-height: 320px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; border: 1px solid var(--line); text-decoration: none; }
.card:nth-child(1) { background: linear-gradient(140deg, #22202c, #17171c); }
.card:nth-child(2) { background: linear-gradient(140deg, #2d2453, #191526); top: 126px; }
.card:nth-child(3) { background: linear-gradient(140deg, #3a2a5e, #1f1830); top: 142px; }
.card:nth-child(4) { background: linear-gradient(140deg, #b9a6ff, #8f73ff); color: var(--ink); top: 158px; }
.card:nth-child(4) .muted { color: #2b2550; }
.card .big { font: 800 clamp(4rem, 10vw, 8rem)/.8 var(--wide); letter-spacing: -.06em; justify-self: end; }
.card h3 { font-size: 30px; margin: 0 0 12px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }

/* timetable */
.days { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.days button, .lvls button { background: var(--card); border: 1px solid var(--line); color: var(--white); border-radius: 999px; padding: 10px 18px; font: 600 14px var(--sans); cursor: pointer; }
.days button[aria-pressed="true"], .lvls button[aria-pressed="true"] { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
.lvls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.lvls button { padding: 7px 14px; font-size: 13px; background: transparent; }
.slot { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.slot time { font: 700 20px var(--wide); letter-spacing: -.02em; }
.slot b { font: 600 18px var(--sans); }
.slot b a { text-decoration: none; } .slot b a:hover { color: var(--lilac); }
.lvl { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: #22202c; color: var(--lilac); }
.spots { font-size: 14px; color: var(--muted); min-width: 120px; text-align: right; }
.spots.low { color: #ff9b9b; }
.empty { color: var(--muted); padding: 24px 4px; }

/* prices */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 34px; }
.price.hot { border-color: var(--lilac); box-shadow: 0 0 0 1px var(--lilac), 0 30px 60px -30px rgba(185,166,255,.5); }
.price h3 { font-size: 20px; }
.price .n { font: 800 50px/1 var(--wide); margin: 18px 0 6px; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price .n small { font: 500 14px var(--sans); color: var(--muted); letter-spacing: 0; }
.price ul { padding-left: 18px; color: var(--muted); margin: 16px 0 0; }
.first { text-align: center; padding: 120px 0; background: radial-gradient(60% 80% at 50% 100%, rgba(143,115,255,.35), transparent 70%); }

/* class detail */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.facts div { background: var(--card); padding: 22px 24px; }
.facts small { display: block; font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts b { font: 700 22px/1.15 var(--wide); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.meter { display: grid; gap: 14px; }
.meter div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; font-weight: 500; }
.meter i { display: block; height: 10px; border-radius: 9px; background: var(--card2); position: relative; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0; width: var(--v); border-radius: 9px; background: linear-gradient(90deg, var(--lilac2), var(--lilac)); }
.flow { display: flex; border-radius: 16px; overflow: hidden; height: 64px; border: 1px solid var(--line); }
.flow span { flex: var(--m); display: grid; place-items: center; font: 600 12px/1.2 var(--sans); text-align: center; padding: 0 4px; color: var(--ink); background: var(--c); }
.flow-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--lilac); }
.ticks.no li::before { box-shadow: inset 0 0 0 2px var(--line); background: linear-gradient(45deg, transparent 45%, var(--muted) 45% 55%, transparent 55%); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 34px; }
.focus { display: flex; flex-wrap: wrap; gap: 10px; }
.focus span { padding: 10px 16px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-weight: 500; }
.focus span.on { background: rgba(185,166,255,.14); border-color: var(--lilac); color: var(--lilac); }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 44px/1 var(--wide); color: var(--lilac); letter-spacing: -.04em; margin-bottom: 18px; }
.steps b { display: block; font: 700 18px/1.2 var(--wide); margin-bottom: 8px; }

/* class matrix (classes overview) */
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { text-align: left; padding: 18px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix thead th { font: 600 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.matrix tbody th a { font: 700 20px/1.1 var(--wide); text-decoration: none; letter-spacing: -.02em; }
.matrix tbody th a:hover { color: var(--lilac); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.dots i.f { background: var(--lilac); box-shadow: none; }

/* team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.coach { background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.coach .ph { aspect-ratio: 4/5; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2d2453, #17171c 70%); font: 800 90px var(--wide); color: var(--lilac); position: relative; }
.coach .ph i { position: absolute; bottom: 12px; left: 12px; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-style: normal; background: var(--ink); padding: 4px 8px; border-radius: 99px; }
.coach div:last-child { padding: 22px 24px 26px; }

/* forms */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font: 600 13px var(--sans); letter-spacing: .06em; color: var(--muted); }
.form input, .form select, .form textarea { background: var(--card); color: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 400 16px var(--sans); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lilac); }
.form .msg { display: none; background: rgba(185,166,255,.12); border: 1px solid var(--lilac); border-radius: 14px; padding: 14px 16px; color: var(--white); }
.form .msg.show { display: block; }
.map { width: 100%; height: 360px; border: 1px solid var(--line); border-radius: 22px; display: block; filter: invert(.92) hue-rotate(180deg) saturate(.4); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font: 700 19px/1.25 var(--wide); letter-spacing: -.015em; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lilac); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 64ch; }
.links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.links a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; display: grid; gap: 30px; transition: border-color .2s, transform .2s; }
.links a:hover { border-color: var(--lilac); transform: translateY(-3px); }
.links b { font: 700 19px/1.15 var(--wide); letter-spacing: -.015em; }
.links span { color: var(--lilac); font-size: 14px; font-weight: 600; }

/* footer */
footer.foot { border-top: 1px solid var(--line); padding: 60px 0 34px; color: var(--muted); font-size: 15px; }
footer.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.foot h4 { font: 600 11px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); margin: 0 0 12px; }
footer.foot a { text-decoration: none; display: block; padding: 3px 0; }
footer.foot a:hover { color: var(--white); }
footer.foot .small { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.callbar { display: none; }

@media (prefers-reduced-motion: reduce) { .breath { animation: none; } .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
@media (max-width: 960px) {
  .nav { position: fixed; inset: var(--hh) 0 auto 0; background: rgba(13,13,16,.97); flex-direction: column; align-items: stretch; gap: 2px; padding: 16px; border-bottom: 1px solid var(--line);
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { font: 700 22px/1 var(--wide); letter-spacing: -.02em; padding: 16px 14px; border-radius: 16px; }
  .menu-btn { display: block; }
  header.top .join { display: none; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .wrap { padding: 0 16px; }
  .card { grid-template-columns: 1fr; padding: 30px 24px; min-height: 280px; top: 86px; } .card:nth-child(2) { top: 98px; } .card:nth-child(3) { top: 110px; } .card:nth-child(4) { top: 122px; }
  .card .big { justify-self: start; }
  .slot { grid-template-columns: 64px 1fr; } .slot .lvl, .slot .spots { grid-column: 2; justify-self: start; text-align: left; }
  .prices, .two, .team, .steps, footer.foot .cols { grid-template-columns: minmax(0, 1fr); }
  footer.foot .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  section.block { padding: 76px 0; }
  .phead { padding: 60px 0 50px; }
  .matrix thead { display: none; }
  .matrix tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .matrix th, .matrix td { padding: 0; border: 0; }
  .matrix tbody th { grid-column: 1 / -1; }
  .matrix td[data-l]::before { content: attr(data-l); display: block; font: 600 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .meter div { grid-template-columns: 96px 1fr; }
  .flow { height: 80px; } .flow span { font-size: 10px; }
  footer.foot { padding-bottom: 100px; }
  .callbar { display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; padding: 6px; border-radius: 999px; background: rgba(23,23,28,.94); border: 1px solid var(--line); backdrop-filter: blur(10px); }
  .callbar a { flex: 1; text-align: center; padding: 13px 8px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; color: var(--white); }
  .callbar a + a { background: var(--lilac); color: var(--ink); }
}
@media (max-width: 480px) { .links, .facts { grid-template-columns: minmax(0, 1fr); } }
[data-class] .slot { grid-template-columns: 150px 1fr auto auto; }
@media (max-width: 820px) { [data-class] .slot { grid-template-columns: 84px 1fr; } [data-class] .slot time { font-size: 16px; line-height: 1.2; } }
