/* =========================================================================
   Pivot & Pulse Dance Studio — Kinetic editorial design system
   ========================================================================= */

:root {
  /* Palette */
  --midnight: #141226;
  --midnight-2: #1d1b35;
  --midnight-3: #262345;
  --coral: #FF4D6D;
  --lilac: #A66CFF;
  --cream: #FFF3E6;
  --lime: #CDFF5E;
  --ink: #141226;
  --paper: #FFF3E6;
  --muted: #6b6786;
  --muted-on-dark: #b3aecd;
  --line: rgba(20, 18, 38, 0.12);
  --line-dark: rgba(255, 243, 230, 0.14);

  /* Typography */
  --display: 'Sora', system-ui, -apple-system, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Spacing rhythm (8px) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 48px; --s7: 64px; --s8: 80px;
  --s9: 112px; --s10: 144px;

  --container: 1180px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 60px -22px rgba(20,18,38,0.35);
  --shadow-soft: 0 10px 40px -20px rgba(20,18,38,0.4);

  --grad-kinetic: linear-gradient(110deg, var(--coral) 0%, var(--lilac) 55%, var(--lilac) 100%);
  --grad-streak: linear-gradient(115deg, rgba(255,77,109,0.9), rgba(166,108,255,0.9));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--midnight); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 var(--s2); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s3); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral);
}
.kicker::before {
  content: ""; width: 28px; height: 2px; background: var(--coral); display: inline-block;
}
.kicker.on-dark { color: var(--lime); }
.kicker.on-dark::before { background: var(--lime); }

.eyebrow-dots { display: inline-flex; gap: 6px; margin-bottom: var(--s2); }
.eyebrow-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.eyebrow-dots span:nth-child(2){ background: var(--lilac); }
.eyebrow-dots span:nth-child(3){ background: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce){ .btn:hover{ transform:none; } }
.btn-primary { background: var(--coral); color: var(--cream); box-shadow: 0 14px 34px -14px rgba(255,77,109,0.8); }
.btn-primary:hover { background: var(--lilac); box-shadow: 0 18px 40px -14px rgba(166,108,255,0.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--midnight); }
.btn-ghost.on-dark { color: var(--cream); border-color: var(--line-dark); }
.btn-ghost:hover { background: var(--midnight); color: var(--cream); }
.btn-ghost.on-dark:hover { background: var(--cream); color: var(--midnight); border-color: var(--cream); }
.btn-lime { background: var(--lime); color: var(--midnight); }
.btn-lime:hover { background: var(--cream); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,18,38,0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 12px 40px -24px rgba(0,0,0,0.9); background: rgba(20,18,38,0.92); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 800; font-size: 1.18rem; color: var(--cream); letter-spacing: -0.02em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav-links { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted-on-dark); font-weight: 600; font-size: 0.96rem;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--midnight); background: var(--lime); }
.nav-cta { margin-left: var(--s2); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; width: 46px; height: 46px;
  border-radius: 12px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); position: relative; transition: transform .3s, opacity .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--cream); transition: transform .3s; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(20,18,38,0.98); backdrop-filter: blur(16px);
    padding: var(--s2) var(--s3) var(--s4); border-bottom: 1px solid var(--line-dark);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { margin: var(--s1) 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--midnight); color: var(--cream);
  padding: var(--s9) 0 var(--s8);
}
.hero-streaks { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--s7); align-items: center; }
.hero h1 {
  font-size: clamp(3rem, 8.5vw, 6.6rem); line-height: 0.94; margin: var(--s3) 0 var(--s3);
  letter-spacing: -0.035em;
}
.hero h1 .skew { display: inline-block; transform: skewX(-9deg); color: var(--lime); }
.hero h1 .grad {
  background: var(--grad-kinetic); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.18rem; color: var(--muted-on-dark); max-width: 46ch; margin-bottom: var(--s4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-dark); box-shadow: var(--shadow);
  aspect-ratio: 4/5; background: var(--midnight-2);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 36px; z-index: 3;
  background: var(--lime); color: var(--midnight); border-radius: 16px;
  padding: 14px 18px; font-family: var(--display); font-weight: 800; box-shadow: var(--shadow-soft);
  transform: rotate(-4deg);
}
.hero-badge small { display: block; font-family: var(--body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-visual { max-width: 420px; }
  .hero { padding: var(--s7) 0 var(--s7); }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s7) 0; }
.section.dark { background: var(--midnight); color: var(--cream); }
.section.dark .muted { color: var(--muted-on-dark); }
.section-head { max-width: 64ch; margin-bottom: var(--s6); }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: var(--s2) 0 var(--s2); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark .section-head p { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Trust strip ---------- */
.trust {
  background: var(--midnight-2); color: var(--cream);
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.trust-inner { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: center; justify-content: space-between; padding: var(--s4) 0; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; color: var(--muted-on-dark); }
.trust-item svg { color: var(--lime); flex: none; }

/* ---------- Service preview cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--s3); }
.svc-card {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s4); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
@media (prefers-reduced-motion: reduce){ .svc-card:hover{ transform:none; } }
.svc-card .glyph { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s3); background: var(--grad-streak); color: var(--cream); }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: 0.98rem; margin-bottom: var(--s3); }
.svc-card .meta { display: flex; align-items: baseline; justify-content: space-between; }
.svc-card .price { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.svc-card .price small { font-size: 0.7rem; font-family: var(--body); font-weight: 700; color: var(--muted); }
.svc-card .arrow { color: var(--coral); font-weight: 700; transition: transform .2s; }
.svc-card:hover .arrow { transform: translateX(4px); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.stat { padding: var(--s4); border-radius: var(--radius); background: var(--midnight-2); border: 1px solid var(--line-dark); }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; background: var(--grad-kinetic); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted-on-dark); font-weight: 600; margin-top: 10px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s3); }
.testi {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); position: relative;
}
.section.dark .testi { background: var(--midnight-2); border-color: var(--line-dark); }
.testi .quote-mark { font-family: var(--display); font-size: 3rem; line-height: 0.6; color: var(--lilac); margin-bottom: 8px; }
.testi p { font-size: 1.05rem; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: var(--s3); }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--cream); background: var(--grad-streak); }
.testi .who b { display: block; font-family: var(--display); }
.testi .who span { font-size: 0.85rem; color: var(--muted); }
.section.dark .testi .who span { color: var(--muted-on-dark); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--midnight); color: var(--cream); border-radius: var(--radius-lg); padding: var(--s8) var(--s6); text-align: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: var(--s3); }
.cta-band p { color: var(--muted-on-dark); max-width: 52ch; margin: 0 auto var(--s4); font-size: 1.1rem; }
.cta-band .hero-streaks { opacity: 0.6; }
.cta-band .cta-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: var(--muted-on-dark); padding: var(--s8) 0 var(--s4); border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s5); }
.footer-grid h4 { color: var(--cream); font-size: 1rem; margin-bottom: var(--s2); font-family: var(--body); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--lime); }
.footer-brand .brand { color: var(--cream); margin-bottom: var(--s2); }
.footer-brand p { font-size: 0.95rem; max-width: 32ch; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; align-items: center; margin-top: var(--s7); padding-top: var(--s3); border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--midnight); color: var(--cream); padding: var(--s8) 0 var(--s7); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: var(--s2) 0 var(--s2); }
.page-hero p { color: var(--muted-on-dark); font-size: 1.15rem; max-width: 54ch; }
.breadcrumb { font-size: 0.85rem; color: var(--muted-on-dark); margin-bottom: var(--s2); }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Services page ---------- */
.svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s3); }
.svc-row {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.svc-row:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce){ .svc-row:hover{ transform:none; } }
.svc-row.popular { border-color: var(--coral); border-width: 2px; }
.svc-row .tag-popular {
  position: absolute; top: 18px; right: -34px; transform: rotate(45deg);
  background: var(--coral); color: var(--cream); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 44px; font-family: var(--body);
}
.svc-row h3 { font-size: 1.45rem; margin-bottom: 6px; padding-right: var(--s4); }
.svc-row .duration { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--coral); font-weight: 700; margin-bottom: var(--s2); }
.svc-row p { color: var(--muted); font-size: 0.97rem; flex-grow: 1; }
.svc-row .row-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: var(--s3); flex-wrap: wrap; }
.svc-row .price { font-family: var(--display); font-weight: 800; font-size: 1.9rem; }
.svc-row .price small { font-family: var(--body); font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.svc-row .price.free { color: var(--lilac); }

/* ---------- Timetable grid ---------- */
.timetable-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-dark); }
.timetable { width: 100%; border-collapse: collapse; min-width: 680px; }
.timetable th, .timetable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-dark); }
.timetable thead th { background: var(--midnight-2); color: var(--lime); font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; }
.timetable tbody th { color: var(--cream); font-family: var(--display); font-weight: 700; }
.timetable td { color: var(--muted-on-dark); }
.timetable .cls { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--midnight); }
.cls.ballet { background: var(--cream); }
.cls.contemp { background: var(--lilac); color: var(--cream); }
.cls.hiphop { background: var(--lime); }
.cls.tap { background: var(--coral); color: var(--cream); }
.cls.kids { background: #ffd6a0; }

/* ---------- About ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
@media (max-width: 820px){ .story-grid { grid-template-columns: 1fr; } }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); }
.value { padding: var(--s4); border-radius: var(--radius); background: var(--midnight-2); border: 1px solid var(--line-dark); }
.value .vnum { font-family: var(--display); font-weight: 800; color: var(--lilac); font-size: 1.1rem; margin-bottom: 10px; }
.value h3 { color: var(--cream); font-size: 1.2rem; margin-bottom: 8px; }
.value p { color: var(--muted-on-dark); font-size: 0.95rem; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s3); }
.team-card { text-align: center; padding: var(--s4); border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto var(--s2); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--cream); }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--coral); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.team-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }
.certs { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.cert-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--midnight-2); border: 1px solid var(--line-dark); color: var(--cream); font-weight: 700; font-size: 0.9rem; }
.cert-chip svg { color: var(--lime); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s2); }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; cursor: pointer;
  border: 1px solid var(--line-dark);
}
.tile.wide { grid-column: span 2; aspect-ratio: 2/1; }
@media (max-width: 560px){ .tile.wide { grid-column: span 1; aspect-ratio: 1; } }
.tile .art { position: absolute; inset: 0; }
.tile .caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s3); background: linear-gradient(to top, rgba(20,18,38,0.9), rgba(20,18,38,0) 60%);
  color: var(--cream); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s;
}
.tile:hover .caption, .tile:focus-within .caption { opacity: 1; transform: translateY(0); }
.tile .caption b { font-family: var(--display); font-size: 1.1rem; }
.tile .caption span { font-size: 0.85rem; color: var(--muted-on-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-methods { display: grid; gap: var(--s2); margin-bottom: var(--s5); }
.method { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3); border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.method .micon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-streak); color: var(--cream); }
.method b { font-family: var(--display); display: block; }
.method a, .method span { color: var(--muted); font-size: 0.95rem; }
.method a:hover { color: var(--coral); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table tr.today td { color: var(--coral); }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; font-family: var(--display); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  font-family: var(--body); font-size: 1rem; background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 4px rgba(166,108,255,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { color: var(--coral); font-size: 0.82rem; margin-top: 6px; display: none; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral); }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s5); }
.form-success {
  display: none; padding: var(--s3); border-radius: 12px; background: rgba(205,255,94,0.25);
  border: 1.5px solid var(--lime); color: var(--midnight); font-weight: 600; margin-bottom: var(--s3);
}
.form-success.show { display: block; }

/* Map placeholder */
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16/10; background: var(--midnight-2); }
.map-card .pin { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -100%); z-index: 3; color: var(--coral); filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4)); }
.map-card .pin svg { animation: pinbob 2.4s ease-in-out infinite; }
@keyframes pinbob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-8px);} }
@media (prefers-reduced-motion: reduce){ .map-card .pin svg { animation: none; } }
.map-label { position: absolute; bottom: 16px; left: 16px; z-index: 3; background: var(--cream); color: var(--midnight); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-soft); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s5); align-items: start; }
@media (max-width: 900px){ .checkout-grid { grid-template-columns: 1fr; } }
.summary-card { background: var(--midnight); color: var(--cream); border-radius: var(--radius-lg); padding: var(--s5); position: sticky; top: 96px; }
.summary-card h3 { color: var(--cream); margin-bottom: var(--s3); }
.summary-line { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-dark); color: var(--muted-on-dark); }
.summary-line.total { border-bottom: 0; padding-top: var(--s3); font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--cream); }
.summary-line .v { color: var(--cream); font-weight: 700; }
.secure-row { display: flex; align-items: center; gap: 10px; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-dark); color: var(--lime); font-size: 0.85rem; font-weight: 600; }
.badge-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.chip { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 7px; background: var(--midnight-3); border: 1px solid var(--line-dark); color: var(--cream); }
.demo-note { font-size: 0.8rem; color: var(--muted-on-dark); margin-top: var(--s2); font-style: italic; }

.slot-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.slot-pills input { position: absolute; opacity: 0; pointer-events: none; }
.slot-pills label {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer;
  font-weight: 700; font-size: 0.9rem; transition: all .2s; font-family: var(--display);
}
.slot-pills input:checked + label { background: var(--coral); color: var(--cream); border-color: var(--coral); }
.slot-pills label:hover { border-color: var(--coral); }

.pay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s3); }
.pay-tab {
  flex: 1; min-width: 110px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); cursor: pointer; font-weight: 700; font-family: var(--display); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s;
}
.pay-tab[aria-selected="true"] { border-color: var(--lilac); background: rgba(166,108,255,0.1); box-shadow: 0 0 0 3px rgba(166,108,255,0.12); }
.pay-panel { display: none; }
.pay-panel.active { display: block; }
.redirect-notice { padding: var(--s4); border-radius: var(--radius); background: rgba(166,108,255,0.1); border: 1.5px dashed var(--lilac); text-align: center; }
.redirect-notice b { font-family: var(--display); display: block; margin-bottom: 6px; }

/* ---------- Success ---------- */
.success-wrap { text-align: center; max-width: 620px; margin-inline: auto; }
.check-circle { width: 110px; height: 110px; margin: 0 auto var(--s4); }
.check-circle circle { fill: none; stroke: var(--lime); stroke-width: 5; stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawc 0.7s ease forwards; }
.check-circle path { fill: none; stroke: var(--lime); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: drawc 0.5s 0.6s ease forwards; }
@keyframes drawc { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce){ .check-circle circle, .check-circle path { animation: none; stroke-dashoffset: 0; } }
.success-ref { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; padding: 10px 20px; border-radius: 12px; background: var(--midnight-2); color: var(--lime); margin: var(--s2) 0; letter-spacing: 0.05em; }
.steps { display: grid; gap: var(--s2); text-align: left; margin: var(--s5) 0; }
.step { display: flex; gap: var(--s2); align-items: flex-start; padding: var(--s3); border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.step .snum { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--grad-streak); color: var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.step b { font-family: var(--display); }

/* Spinner */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,243,230,0.3); border-top-color: var(--cream); border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
.reveal[data-delay="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* Dotted rhythm grid motif */
.dot-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,243,230,0.10) 1.5px, transparent 1.5px); background-size: 26px 26px; z-index: 1; pointer-events: none; }

.lead-narrow { max-width: 60ch; }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.flow > * + * { margin-top: var(--s3); }
