/* ============================================================
   ACK Fitness & Pilates — project design system
   Brand: dark "gym floor at night" ink + electric violet + hot pink
   ============================================================ */

:root {
  --ink: #0B0916;
  --surface: #131027;
  --surface-2: #1B1434;
  --line: #2B2249;
  --accent: #6A48F4;
  --accent-strong: #5940D6;
  --accent-2: #9D7BFF;
  --pink: #FF5FA2;
  --ivory: #F4F0FF;
  --body: #CBC4E4;
  --muted: #8F88AC;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

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

  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 68px;
}

/* ---------- base ---------- */

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

img {
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--accent-2);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ivory);
  text-transform: uppercase;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

a {
  color: var(--accent-2);
}

/* focus visibility */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section-pad {
  padding-block: clamp(64px, 12vw, 110px);
}

/* ---------- kicker / eyebrow ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.kicker::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-2);
  flex: 0 0 auto;
}

/* ---------- type scale ---------- */

.h-hero {
  font-size: clamp(2.6rem, 13vw, 5rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
}

.h-section {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
}

.h-card {
  font-size: 1.28rem;
  line-height: 1.25;
}

.grad-text {
  background: linear-gradient(100deg, var(--accent-2) 10%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.05rem, 3.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--ivory);
}

.muted {
  color: var(--muted);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 18px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out),
              border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  min-height: 52px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 30px -8px rgba(106, 72, 244, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-ink {
  background: var(--ink);
  color: var(--accent-2);
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .btn {
    transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out),
                border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  }
}

/* ---------- chips ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--body);
}

.chip::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  flex: 0 0 auto;
}

.chip--violet::before {
  background: var(--accent-2);
}

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  position: relative;
}

.card-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.95rem;
}

/* number badge (process) */
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  display: inline-block;
}

.step-num.step-num--hot {
  -webkit-text-stroke: 1.5px var(--pink);
}

/* ---------- image frames ---------- */

.frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.frame--crop {
  overflow: hidden;
  position: relative;
}

.frame--crop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-pos, center);
}

.frame--crop figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 14px;
  background: linear-gradient(180deg, rgba(11, 9, 22, 0), rgba(11, 9, 22, 0.88));
}

.frame--glow {
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(106, 72, 244, 0.55);
}

/* ---------- ticket / trial ---------- */

.ticket {
  position: relative;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(106, 72, 244, 0.28), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 24px 36px;
  overflow: hidden;
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 20px 18px;
  cursor: pointer;
  min-height: 56px;
}

.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
  transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: var(--accent-2);
  transition: opacity 160ms var(--ease-out);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item[data-open="true"] .faq-icon {
  background: var(--accent);
  transform: rotate(45deg);
}

.faq-item[data-open="true"] .faq-icon::after {
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease-out);
}

.faq-a-inner {
  padding: 0 18px 20px;
  font-size: 0.95rem;
  color: var(--body);
}

/* ---------- forms ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.input {
  width: 100%;
  background: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 15px 16px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  min-height: 52px;
}

.input::placeholder {
  color: var(--muted);
}

.input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(157, 123, 255, 0.25);
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%),
    linear-gradient(135deg, var(--accent-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* goal chips (checkbox grid) */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.goal-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 14px;
  cursor: pointer;
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  min-height: 48px;
}

.goal-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.goal-chip .goal-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--muted);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 160ms var(--ease-out);
}

.goal-chip .goal-icon svg {
  width: 13px;
  height: 13px;
}

.goal-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(106, 72, 244, 0.16);
}

.goal-chip:has(input:checked) .goal-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.goal-chip:has(input:focus-visible) {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.goal-chip .goal-check {
  display: none;
}

.goal-chip:has(input:checked) .goal-plus {
  display: none;
}

.goal-chip:has(input:checked) .goal-check {
  display: block;
}

/* gender radio chips */

.gender-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 14px;
  cursor: pointer;
  color: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out);
  min-height: 48px;
}

.gender-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  transition: all 160ms var(--ease-out);
}

.gender-icon svg {
  width: 20px;
  height: 20px;
}

.gender-chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(106, 72, 244, 0.16);
}

.gender-chip:has(input:checked) .gender-icon {
  color: var(--accent-2);
}

.gender-chip:has(input:focus-visible) {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.02em;
}

.form-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0 24px;
}

.form-success {
  border: 1.5px solid #2ecc71;
  background: rgba(46, 204, 113, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
  margin-top: 16px;
}

.form-success[hidden] {
  display: none;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 22, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 34, 73, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--ivory);
  letter-spacing: 0.06em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 150ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--accent-2);
}

.nav-cta {
  display: none;
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.95rem;
}

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ivory);
}

.nav-burger svg {
  width: 22px;
  height: 22px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  display: none;
  flex-direction: column;
  padding: 24px 20px;
}

.mobile-menu[data-open="true"] {
  display: flex;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-menu a.menu-link {
  color: var(--ivory);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.7rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .menu-cta {
  margin-top: 24px;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
  }
  .nav-burger {
    display: none;
  }
}

/* ---------- floating / sticky helpers ---------- */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform 160ms var(--ease-out);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.wa-float:active {
  transform: scale(0.94);
}

@media (max-width: 859px) {
  .wa-float {
    bottom: calc(16px + 84px);
  }
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: rgba(11, 9, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 300ms var(--ease-out);
  display: flex;
}

.sticky-cta[data-show="true"] {
  transform: translateY(0);
}

@media (min-width: 860px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- footer links ---------- */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent-2);
}

.footer-links a + a {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

/* ---------- responsive grids ---------- */

.grid-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.grid-programs {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 700px) {
  .grid-cards--2,
  .grid-cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-programs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--form {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
  .center-lg {
    text-align: center;
  }
  .center-lg .kicker {
    justify-content: center;
  }
  .grid-programs--narrow {
    max-width: 860px;
    margin-inline: auto;
  }
}

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- utility ---------- */

.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.hero-glow--violet {
  background: rgba(106, 72, 244, 0.55);
}

.hero-glow--pink {
  background: rgba(255, 95, 162, 0.32);
}
