/* =========================================================
   SPUR — Editorial palette + typography (formerly Forma)
   Palette: ~70% paper · 25% ink · 5% accent
   Default = warm blush; toggle via ?palette=muted-rose or warm-nude
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..700;1,6..96,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* Colors — single source of truth.
     Cool editorial minimalism (Typology · Summer Fridays · Rhode):
     soft bone paper, cool grey surfaces, deep ink. Accent is a barely-there
     cool mauve — a feminine whisper, never colour noise. */
  --ink: #111111;                    /* deep ink */
  --paper: #F6F6F4;                  /* soft bone */
  --champagne: #E7E7E9;              /* cool grey surface */
  --beige: #E7E7E9;                  /* cool grey */
  --blush: #EFEFF1;                  /* pale cool grey wash */
  --accent: #D7CDD2;                 /* soft cool mauve-grey — decorative only */
  --accent-strong: #6E5B66;          /* muted cool plum — status/accent text, ≥4.5:1 on bone */
  --accent-soft: #ECE8EA;            /* pale cool wash — alert background */
  --cta: #5C6A82;                    /* cool steel-slate — primary CTA tone */
  --cta-strong: #48556E;             /* darker steel — CTA hover */
  --violet: #4B4769;                 /* spur wordmark + discount badge ink */
  --violet-soft: #E7E1F1;            /* discount badge fill */

  /* Compatibility aliases. */
  --pink: var(--accent);
  --pink-soft: var(--accent-soft);

  --rule: rgba(17, 17, 17, 0.11);
  --rule-strong: rgba(17, 17, 17, 0.20);
  --paper-portal: #EDEDEE;           /* cool grey tint behind partner/admin portals */
  --ink-70: rgba(17, 17, 17, 0.70);
  --ink-55: rgba(17, 17, 17, 0.55);
  --ink-40: rgba(17, 17, 17, 0.42);
  --paper-60: rgba(246, 246, 244, 0.6);
  --paper-40: rgba(246, 246, 244, 0.4);

  /* Type stacks. Display headers use Avenir Next bold (sans-serif modern
     editorial). Wordmark uses Shrikhand (display serif from Google Fonts).
     Body uses Avenir Next regular. */
  --font-display: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-display-italic: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-body: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  --font-wordmark: "Shrikhand", "Recoleta", "Fraunces", serif;
  --font-mono: "Space Mono", "IBM Plex Mono", ui-monospace, monospace;
  --font-statement: "Bodoni Moda", "Didot", "Times New Roman", serif;

  /* Spacing rhythm */
  --gutter: clamp(24px, 5vw, 72px);
  --section-y: clamp(88px, 10vw, 168px);
  --max-w: 1440px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Alternative palettes — toggle via data-palette="..." on <html>. */
[data-palette="muted-rose"] {
  --ink: #1A0F0F;
  --paper: #FAF7F2;
  --accent: #D4A5A5;
  --accent-strong: #8A4F4F;          /* ≥5:1 on paper and --accent-soft */
  --accent-soft: #F5E8E8;
}

[data-palette="warm-nude"] {
  --ink: #1F1614;
  --paper: #F8F0E6;
  --accent: #D9A089;
  --accent-strong: #7E5239;          /* ≥5:1 on paper and --accent-soft */
  --accent-soft: #F5E4D7;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

/* Multi-spot pink-on-cream ambient — soft blushes glowing from corners of
   the viewport over a warm cream base. Anchored to the viewport so the
   composition stays consistent as the page scrolls. */
html {
  zoom: 0.9;
  background-color: var(--paper);
  background-image:
    radial-gradient(110% 80% at 50% -20%, #FBFBFA 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #EEEEEF 100%);
  background-attachment: fixed;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: transparent;
  overflow-x: hidden;
}

/* Liquid Silk Lite still — only on the landing hero. z-index: -1 puts the
   canvas above the html-level gradient but behind any positioned content,
   so hero text + nav read cleanly on top. Scrolling past 100vh reveals the
   gradient again. Loaded only by public/index.html. */
#bg-gl {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  display: block;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }

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

/* ---------- Display type ---------- */
/* Avenir Next bold — sans-serif modern editorial. The italic variant uses
   the same family with `font-style: italic` (Avenir Next has italic cuts). */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
}
.display-italic {
  font-family: var(--font-display-italic);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Overline / mono caps ---------- */
.overline {
  /* Refined editorial monospace — the site-wide label / metadata voice.
     Used for eyebrows, spec-row labels, timestamps, footer labels. */
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.overline--muted { color: rgba(17, 17, 17, 0.62); }
.overline--paper { color: var(--paper); }
.overline--paper-muted { color: var(--paper-60); }
.overline-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0; }
.hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ---------- Wordmark ---------- */
/* Shrikhand — bespoke display serif for the Spur logotype. Loaded from
   Google Fonts in every page's <head>. Shrikhand is wider than Recoleta
   so letter-spacing is opened up vs the previous tight tracking. */
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1;
  font-style: normal;
  display: inline-block;
  text-transform: uppercase;
  text-indent: 0.1em;
}
.wordmark .m { letter-spacing: 0.1em; margin-right: 0; }
.wordmark .a { letter-spacing: 0.1em; margin-left: 0; }
.wordmark--mobile { font-size: 30px; }

/* Short horizontal rule used as a decorative divider in overlines/footers */
.divider-rule {
  width: 24px;
  height: 1px;
  background: var(--rule-strong);
  display: inline-block;
}
.divider-rule--paper { background: var(--paper-40); }

/* ---------- Nav ---------- */
/* Signature pink strip at 50% opacity — consistent across every marketing
   page, scrolled or not. */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out), backdrop-filter 220ms var(--ease-out);
  background: rgba(230, 194, 203, 0.5);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}
.nav--scrolled {
  background: rgba(230, 194, 203, 0.5);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: rgba(17, 17, 17, 0.06);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__wordmark {
  font-size: 30px;
  letter-spacing: 0.1em;
}
.nav__wordmark .m, .nav__wordmark .a { letter-spacing: 0.1em; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-70);
  padding: 6px 0;
  position: relative;
  transition: color 220ms var(--ease-out);
}
.nav__link:hover,
.nav__link--active { color: var(--ink); }
.nav__link--active::after,
.nav__link:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}
.nav__burger { display: none; }
.nav__pill {
  padding: 8px 17px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink);
  white-space: nowrap;
  transition: color 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.nav__pill:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.nav__pill:hover::after,
.nav__pill.nav__link--active::after { display: none; }

/* Auth-aware swap for the landing nav. JS in <head> sets [data-authed] +
   [data-role="consumer|partner|admin"] on <html> based on Supabase auth +
   `spur-role` cookies. CSS toggles which link shows so there's no flash. */
.nav__link--authed { display: none; }
[data-authed] .nav__link--anon { display: none; }

/* Role-keyed visibility — only the matching authed link shows. Defaults to
   consumer if data-role is missing (auth cookie present but role cookie scrubbed). */
[data-authed]:not([data-role]) .nav__link--consumer,
[data-authed][data-role="consumer"] .nav__link--consumer,
[data-authed][data-role="partner"] .nav__link--partner,
[data-authed][data-role="admin"] .nav__link--admin {
  display: inline-flex;
}

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

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
  }
  .nav__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
  }
  .mobile-menu__head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; border-bottom: 1px solid var(--rule);
  }
  .mobile-menu__close { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
  .mobile-menu__links {
    display: flex; flex-direction: column; gap: 32px;
    padding-top: 48px;
  }
  .mobile-menu__link {
    font-family: var(--font-display);
    font-size: 44px;
    letter-spacing: -0.03em;
    line-height: 1;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: var(--cta);
  color: var(--paper);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), transform 200ms var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--cta);
  white-space: nowrap;
}
.btn:hover { background: var(--cta-strong); border-color: var(--cta-strong); color: var(--paper); transform: translateY(-1px); }
.btn--pink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--pink:hover { background: var(--cta); border-color: var(--cta); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--paper:hover { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 12px; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn:disabled:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--pink:disabled:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--ghost:disabled:hover { background: transparent; color: var(--ink); }
.btn--paper:disabled:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn__arrow { transition: transform 200ms var(--ease-out); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Email form (hero) ---------- */
.waitlist {
  display: flex;
  align-items: baseline;
  gap: 24px;
  max-width: 480px;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0 4px 14px;
}
@media (max-width: 480px) {
  .waitlist { max-width: 100%; }
}
.waitlist input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.01em;
  color: var(--ink);
  outline: none;
}
.waitlist input::placeholder { color: var(--ink-70); }
.waitlist__submit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cta);
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 200ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.waitlist__submit span { transition: transform 240ms var(--ease-out); display: inline-block; }
.waitlist__submit:hover span { transform: translateX(4px); }
.waitlist__success {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  padding: 8px 0;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.15;
}
.faq-q__plus {
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 16px;
  transition: transform 320ms var(--ease-out);
}
.faq-q__plus::before,
.faq-q__plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--ink);
}
.faq-q__plus::before { width: 16px; height: 1.5px; }
.faq-q__plus::after { width: 1.5px; height: 16px; transition: transform 320ms var(--ease-out); }
.faq-item.open .faq-q__plus::after { transform: rotate(90deg); }
.faq-item.open .faq-q { color: var(--accent-strong); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 380ms var(--ease-out);
}
.faq-a__inner {
  padding: 0 0 28px;
  max-width: 720px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Reveal (no-op for static rendering; live JS can animate via .js class) ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding-top: clamp(48px, 6vw, 80px);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.055em;
  font-variation-settings: "opsz" 144, "SOFT" 10;
  color: var(--ink);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  white-space: nowrap;
  display: block;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 15px; }
.footer__col a:hover { color: var(--accent-strong); }
.footer__tagline {
  font-family: var(--font-body);
  font-size: 21px;
  font-style: italic;
  letter-spacing: 0;
  color: var(--ink-70);
  max-width: 280px;
  line-height: 1.3;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
@media (max-width: 880px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Utility ---------- */
.spaced { letter-spacing: 0.18em; text-transform: uppercase; }
.pink { color: var(--accent-strong); }
.ink-70 { color: var(--ink-70); }
.ink-55 { color: var(--ink-55); }
.ital { font-style: italic; }
.no-wrap { white-space: nowrap; }

/* ---------- Numeric step ---------- */
.step-num {
  font-family: var(--font-display);
  font-size: clamp(72px, 9vw, 132px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--pink-micro);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* ---------- Apply form ---------- */
.apply-page {
  background: transparent;
  color: var(--ink);
  min-height: 100vh;
}

.apply-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(72px, 9vw, 120px);
}

.apply-head {
  text-align: center;
  padding-bottom: clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(56px, 7vw, 80px);
}
.apply-head__wordmark {
  font-size: 32px;
  margin: 0 auto 36px;
}
.apply-head .overline {
  justify-content: center;
}
.apply-head__title {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.95;
  margin: 22px 0 22px;
}
.apply-head__sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 520px;
  margin: 0 auto;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 96px);
}

.apply-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.apply-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-strong);
}
.apply-section__label-num {
  color: var(--accent);
  font-weight: 500;
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.apply-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.apply-label__opt {
  color: var(--ink-55);
  margin-left: 8px;
  font-weight: 400;
}

.apply-input,
.apply-textarea,
.apply-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--ink);
  padding: 12px 0 8px;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color 160ms var(--ease-out);
}
.apply-input::placeholder,
.apply-textarea::placeholder { color: var(--ink-55); }
.apply-input:focus,
.apply-textarea:focus,
.apply-select:focus { border-bottom-color: var(--accent); }

.apply-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.apply-prefix {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1.5px solid var(--ink);
  transition: border-color 160ms var(--ease-out);
}
.apply-prefix:focus-within { border-bottom-color: var(--accent); }
.apply-prefix__char {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-55);
  padding-bottom: 8px;
}
.apply-prefix .apply-input {
  border-bottom: none;
  padding-left: 0;
  flex: 1;
}
.apply-prefix .apply-input:focus { border-bottom: none; }

.apply-select-wrap {
  position: relative;
}
.apply-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}
.apply-select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 6px);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.apply-radios {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.apply-radio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  transition: color 160ms var(--ease-out);
}
.apply-radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  margin: 0;
  flex: 0 0 16px;
  position: relative;
  cursor: pointer;
  background: transparent;
}
.apply-radio input:checked { border-color: var(--accent); }
.apply-radio input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.apply-radio:hover { color: var(--accent-strong); }
.apply-radio:hover input { border-color: var(--accent); }

.apply-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.apply-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.apply-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
  user-select: none;
}
.apply-chip:hover { background: var(--ink); color: var(--paper); }
.apply-chip-input:checked + .apply-chip {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.apply-chip-input:focus-visible + .apply-chip {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.apply-conditional {
  display: none;
  margin-top: 8px;
}
.apply-conditional.show { display: flex; }

.apply-field--error .apply-input,
.apply-field--error .apply-textarea,
.apply-field--error .apply-select,
.apply-field--error .apply-prefix { border-bottom-color: var(--accent); }
.apply-field__err {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-top: 4px;
}
.apply-field--error .apply-field__err { display: block; }

.apply-submit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.apply-submit .btn {
  min-width: 240px;
  justify-content: center;
}
.apply-submit__note { text-align: right; }
.apply-submit__note .overline { font-size: 10px; }

.apply-error-banner {
  display: none;
  padding: 14px 18px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.apply-error-banner.show { display: flex; }
.apply-error-banner button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .apply-submit { align-items: stretch; }
  .apply-submit .btn { width: 100%; min-width: 0; }
  .apply-submit__note { text-align: center; }
}

/* =========================================================
   PRODUCT STYLES (login + browse + slot + account + partner + admin)
   Loaded by every product page via styles.css.
   ========================================================= */

/* ---------- Product nav ---------- */
.pnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.pnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pnav__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
/* Wordmark size unified with the marketing nav (38px). Covers consumer
   (direct .wordmark child of .pnav) AND partner/admin (wrapped in .pnav__brand). */
.pnav .wordmark { font-size: 30px; letter-spacing: 0.1em; }
.pnav__role-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding-left: 12px;
  border-left: 1px solid var(--rule);
}
.pnav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pnav__link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 4px 0;
  position: relative;
  transition: color 160ms var(--ease-out);
}
.pnav__link:hover { color: var(--ink); }
.pnav__link--active { color: var(--ink); font-weight: 600; }
.pnav__link--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -16px;
  height: 1.5px;
  background: var(--accent);
}
.pnav__user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
/* Pink brand bar for the partner nav — recognisably Spur, like the consumer site. */
.pnav--pink {
  background: rgba(230, 194, 203, 0.5);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
}
.pnav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-tile);
  color: var(--accent-strong);
  font-family: var(--font-wordmark);
  font-weight: 400;
  font-size: 15px;
  text-transform: uppercase;
  line-height: 1;
  display: grid;
  place-items: center;
}
@media (max-width: 720px) {
  .pnav__inner { flex-wrap: wrap; gap: 12px; }
  .pnav__links { order: 3; width: 100%; overflow-x: auto; gap: 16px; padding-bottom: 4px; }
  .pnav__link--active::after { bottom: -6px; }
}

/* ---------- Placeholder / 404 / Error pages ---------- */
.placeholder { min-height: 70vh; display: grid; place-items: center; padding: 120px var(--gutter) 80px; }
.placeholder__inner { max-width: 720px; text-align: center; }
.placeholder__title { font-size: clamp(72px, 14vw, 200px); line-height: 0.9; margin: 32px 0 32px; }
.placeholder__sub { font-size: 19px; line-height: 1.5; color: var(--ink-70); max-width: 540px; margin: 0 auto 44px; }
.placeholder__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  display: grid;
  place-items: center;
  z-index: 200;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
  padding: 24px;
}
.modal-overlay--show { opacity: 1; }
.modal {
  background: var(--paper);
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px 28px;
  border: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 480px) {
  .modal { padding: 28px 20px 22px; }
}
.modal--wide { width: min(640px, 100%); }
.modal__title {
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.modal__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-70);
  margin: 0;
}
.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.modal__actions .btn { flex: 1; }
.modal__err {
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 10px 14px;
  margin: 0;
}

/* ---------- Product page wrap ---------- */
.product-page {
  background: transparent;
  min-height: 100vh;
  padding-bottom: 96px;
}
.product-hero {
  padding: clamp(40px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}
.product-hero__overline { margin-bottom: 18px; }
.product-hero__title {
  font-size: clamp(38px, 5.5vw, 62px);
  line-height: 0.95;
  margin: 0 0 14px;
}
.product-hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.3;
  color: var(--ink-70);
  margin: 0;
  max-width: 540px;
}

/* ---------- Filter bar / chips ---------- */
.filter-bar {
  position: sticky;
  top: 65px;
  z-index: 30;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.filter-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 560px) {
  .filter-bar__inner { flex-wrap: wrap; }
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; white-space: nowrap; }
.filter-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--ink-70);
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip--active {
  background: var(--accent-strong);
  color: var(--paper);
  border-color: var(--accent-strong);
}
.filter-sort {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-70);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
}
.filter-sort:hover { color: var(--ink); }

.filter-controls { display: flex; gap: 12px; align-items: center; flex-wrap: nowrap; flex-shrink: 0; }
.filter-search {
  background: transparent; border: none; border-bottom: 1px solid var(--rule-strong);
  padding: 8px 0; font-family: var(--font-body); font-size: 13px; outline: none;
  width: 140px; color: var(--ink);
}
@media (max-width: 620px) {
  .filter-controls { width: 100%; flex-wrap: wrap; gap: 14px 18px; }
  .filter-search { width: 100%; flex: 1 1 100%; }
}

/* ---------- Slot grid (browse — uniform) ---------- */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 32px 0;
}

/* ---------- Browse empty state ---------- */
.browse-empty {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.browse-empty__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  margin: 24px 0 12px;
  color: var(--ink);
}
.browse-empty__sub {
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- Slot detail page ---------- */
.slot-detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding: clamp(32px, 4vw, 56px) 0 64px;
  align-items: start;
}
.slot-detail__back {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  display: inline-block;
  margin-bottom: 22px;
}
.slot-detail__back:hover { color: var(--accent); }
.slot-detail__category {
  margin-bottom: 14px;
}
.slot-detail__title {
  font-family: var(--font-body);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  margin: 0 0 28px;
}
.slot-detail__service {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  color: var(--ink-55);
  font-size: 0.4em;
  font-weight: 400;
  margin-top: 12px;
  letter-spacing: -0.005em;
}
.slot-detail__photo {
  aspect-ratio: 16 / 9;
  background: var(--grad-tile);
  border-radius: 16px;
  display: grid;
  place-items: center;
  gap: 10px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.slot-detail__photo-mono {
  font-family: var(--font-wordmark);
  font-size: clamp(64px, 8vw, 104px);
  line-height: 1;
  color: rgba(110, 91, 102, 0.45);
  text-transform: uppercase;
}
.slot-detail__photo-cap {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.slot-detail__rows {
  border-top: 1px solid var(--rule-strong);
  margin-bottom: 32px;
}
.slot-detail__row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.slot-detail__row .overline { align-self: baseline; }
.slot-detail__about {
  margin-bottom: 28px;
}
.slot-detail__about h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 12px;
}
.slot-detail__about p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-70);
}
.slot-detail__policy {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-55);
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin: 0;
}
.slot-detail__buy {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slot-detail__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.slot-detail__price-was {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-55);
}
.slot-detail__price-now {
  font-family: var(--font-body);
  font-size: clamp(34px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.slot-detail__price-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 10px;
}
.slot-detail__save .overline {
  color: var(--ink-70);
}
.slot-detail__buy .btn { width: 100%; justify-content: center; }
.slot-detail__buy-note {
  font-size: 13px;
  color: var(--ink-55);
  line-height: 1.5;
  margin: 0;
}
.slot-detail__buy-warn {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink-55);
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
@media (max-width: 880px) {
  .slot-detail { grid-template-columns: 1fr; }
  .slot-detail__buy { position: relative; top: auto; }
}

/* ---------- Booking confirmed page ---------- */
.confirmed {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter) 64px;
  text-align: center;
}
.confirmed__inner {
  max-width: 560px;
  background: var(--grad-card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 56px) clamp(32px, 4vw, 48px);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.confirmed__title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.92;
  margin: 20px 0 24px;
}
.confirmed__body {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-70);
  max-width: 460px;
  margin: 0 auto 32px;
}
.confirmed__summary {
  text-align: left;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  padding: 4px 22px;
  margin: 0 auto 18px;
  max-width: 420px;
  background: var(--paper-60);
}
.confirmed__summary-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.confirmed__summary-row:last-child { border-bottom: none; }
.confirmed__summary-row > span:last-child { text-align: right; font-weight: 500; color: var(--ink); }
.confirmed__summary-row--pay > span:last-child { font-family: var(--font-mono); letter-spacing: 0.04em; }
.confirmed__paid { color: var(--cta); display: inline-flex; align-items: center; gap: 6px; }
.confirmed__reassure {
  font-size: 14px; line-height: 1.55; color: var(--ink-70);
  max-width: 420px; margin: 0 auto 28px;
}
.confirmed__ref {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-55); margin: 0 0 4px;
}
.confirmed__code {
  /* Voucher code uses monospace — feels slightly technical, helps the
     customer read and read-back at the salon counter. */
  border: 1.5px dashed var(--ink);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 380px;
}
.confirmed__links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.confirmed__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
}
.confirmed__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.confirmed__rule { border-top: 1px solid var(--rule); padding-top: 28px; }
.confirmed__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirmed__note {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}

/* ---------- Account / tabs ---------- */
/* ---------- Payment sheet (embedded checkout) ---------- */
.paysheet-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17, 17, 17, 0.46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 220ms var(--ease-out);
}
.paysheet-backdrop.is-open { opacity: 1; }
.paysheet {
  width: 100%; max-width: 432px; max-height: 92vh; overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: 0 40px 90px -40px rgba(17, 17, 17, 0.55);
  transform: translateY(12px); transition: transform 260ms var(--ease-out);
  position: relative;
}
.paysheet-backdrop.is-open .paysheet { transform: translateY(0); }
.paysheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.paysheet__eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent-strong);
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
}
.paysheet__title { font-family: var(--font-display); font-size: 23px; line-height: 1.15; margin: 0; }
.paysheet__studio { font-size: 13px; color: var(--ink-70); margin: 6px 0 0; }
.paysheet__close {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--rule-strong); background: transparent; cursor: pointer;
  font-size: 15px; color: var(--ink-70); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.paysheet__close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paysheet__breakdown {
  margin: 18px 0; padding: 14px 16px;
  background: var(--accent-soft); border-radius: 8px;
  font-size: 13px; line-height: 1.5;
}
.paysheet__breakdown-row { display: flex; justify-content: space-between; }
.paysheet__breakdown-row + .paysheet__breakdown-row { margin-top: 5px; }
.paysheet__breakdown-row span { color: var(--ink-70); }
.paysheet__breakdown-row strong { color: var(--ink); }
.paysheet__breakdown-row--total { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--rule); }
.paysheet__breakdown-row--total span,
.paysheet__breakdown-row--total strong {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
}

.paysheet__input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--rule-strong);
  padding: 8px 0; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  outline: none; border-radius: 0;
  transition: border-color 160ms var(--ease-out);
}
.paysheet__input::placeholder { color: var(--ink-70); }
.paysheet__input:focus { border-bottom-color: var(--ink); }

.paysheet__pay { width: 100%; justify-content: center; margin-top: 18px; }

.paysheet__secured {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 16px; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; color: var(--ink-55); text-align: center;
}
.paysheet__error {
  display: none; margin: 14px 0 0; padding: 11px 14px;
  background: var(--accent-soft); border-left: 2px solid var(--accent-strong); border-radius: 4px;
  font-size: 13px; line-height: 1.45; color: var(--ink);
}
.paysheet__error.is-shown { display: block; }

.paysheet__status { text-align: center; padding: 30px 8px 18px; }
.paysheet__spinner {
  width: 34px; height: 34px; margin: 0 auto 20px; border-radius: 50%;
  border: 2px solid var(--rule); border-top-color: var(--ink);
  animation: paysheet-spin 720ms linear infinite;
}
@keyframes paysheet-spin { to { transform: rotate(360deg); } }
.paysheet__status-tick {
  width: 40px; height: 40px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--cta); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.paysheet__status-msg {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-70);
}
@media (prefers-reduced-motion: reduce) { .paysheet__spinner { animation-duration: 1600ms; } }

.account-hero { padding: clamp(56px, 7vw, 88px) 0 32px; }
.account-hero__title {
  font-size: clamp(48px, 7vw, 96px);
  margin: 18px 0 14px;
}
.account-hero__stats { color: var(--ink-70); }

.tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 32px;
}
.tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 0;
  color: var(--ink-70);
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
}
.tab:hover { color: var(--ink); }
.tab--active { color: var(--ink); }
.tab--active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: var(--accent);
}
.tab-panel { display: none; }
.tab-panel--active { display: block; }

/* ---------- Booking row (account upcoming/past) ---------- */
.booking-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.booking-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.booking-row__when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.booking-row__salon {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.booking-row__service {
  display: block;
  font-size: 14px;
  color: var(--ink-70);
  margin-top: 4px;
  font-family: var(--font-body);
}
.booking-row__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-70);
}
.booking-row__action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px 0;
  white-space: nowrap;
}
.booking-row__action:hover { color: var(--accent); }
.booking-row__action--muted { color: var(--ink-70); cursor: default; }
@media (max-width: 720px) {
  .booking-row { grid-template-columns: 1fr; gap: 8px; align-items: start; }
}

/* ---------- Schedule row (partner dashboard "Today's schedule") ---------- */
.schedule-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}
.schedule-row {
  display: grid;
  grid-template-columns: 20px 110px 1fr 80px 100px auto;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.schedule-row__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.schedule-row__price-amount {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.schedule-row__price-cut {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.schedule-row--done .schedule-row__price-amount { color: var(--ink-55); }
.schedule-row--done .schedule-row__price-cut { color: var(--ink-40); }
.schedule-row__icon {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-40);
  text-align: center;
}
.schedule-row__when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.schedule-row__main { display: flex; flex-direction: column; gap: 4px; }
.schedule-row__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.schedule-row__service { font-size: 14px; color: var(--ink-70); }
.schedule-row__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-55);
}

.schedule-row--done .schedule-row__when,
.schedule-row--done .schedule-row__name,
.schedule-row--done .schedule-row__service { color: var(--ink-55); }
.schedule-row--done .schedule-row__icon { color: var(--ink-40); }

.schedule-row--next {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-left: -18px;
}
.schedule-row--next .schedule-row__icon { color: var(--accent); }

@media (max-width: 720px) {
  .schedule-row {
    grid-template-columns: 20px 1fr auto;
    gap: 8px 12px;
    row-gap: 4px;
  }
  .schedule-row__when { grid-column: 2; }
  .schedule-row__main { grid-column: 2; }
  .schedule-row__price { grid-column: 2; align-items: flex-start; text-align: left; }
  .schedule-row__code { grid-column: 2; }
}

/* ---------- Account profile form ---------- */
.account-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---------- KPI cards (partner + admin) ---------- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  border-left: 1px solid var(--rule-strong);
  margin: 32px 0 56px;
}
.kpi {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.kpi__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.kpi__value {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.kpi__value--pink { color: var(--accent-strong); }
.kpi__sub {
  font-size: 13px;
  color: var(--ink-70);
  margin: 0;
}
.kpi__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 6px;
}
.kpi__link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Editorial table ---------- */
.etable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.etable thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--ink);
}
.etable tbody td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink);
}
.etable tbody tr { transition: background 160ms var(--ease-out); }
.etable tbody tr:hover { background: rgba(17, 17, 17, 0.03); }
.etable td:last-child, .etable th:last-child { padding-right: 0; }
.etable__name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.etable__sub {
  display: block;
  font-size: 12px;
  color: var(--ink-55);
  margin-top: 2px;
}
.etable__actions {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
}
/* Empty-state cell/paragraph under a table heading */
.etable__empty {
  padding: 40px 0;
  color: var(--ink-55);
}
.etable__action {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}
.etable__action:hover { color: var(--accent-strong); }
.etable__action--strong { color: var(--ink); }

/* Editorial table — row variants for partner bookings */
.etable tr.needs-marking td:first-child {
  position: relative;
  padding-left: 16px;
}
.etable tr.needs-marking td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
}
.etable tr.needs-marking .etable__action { color: var(--ink); }
.etable tr.needs-marking .etable__action:hover { color: var(--accent); }

.etable tr.done td { color: var(--ink-55); }
.etable tr.done .etable__name { color: var(--ink-55); }
.etable tr.done .etable__sub { color: var(--ink-40); }

/* Mobile table strategies.
   .etable-wrap — horizontal scroll for dense (admin) tables on small screens.
   .etable--cards — stacks each row into a labelled card ≤720px (partner-facing
   tables, where phone use is the norm). Cells need data-label attributes. */
.etable-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .etable-wrap .etable { min-width: 640px; }

  .etable--cards thead { display: none; }
  .etable--cards, .etable--cards tbody, .etable--cards tr, .etable--cards td { display: block; }
  .etable--cards tr {
    border: 1px solid var(--rule-strong);
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .etable--cards td {
    border-bottom: none;
    padding: 5px 0;
  }
  .etable--cards td:empty { display: none; }
  .etable--cards td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-55);
    margin-bottom: 2px;
  }
  /* The needs-marking accent bar moves to the card edge */
  .etable--cards tr.needs-marking { border-left: 2px solid var(--accent); }
  .etable--cards tr.needs-marking td:first-child { padding-left: 0; }
  .etable--cards tr.needs-marking td:first-child::before { display: none; }
  .etable--cards .etable__actions { white-space: normal; flex-wrap: wrap; }
}

/* Filter chip badge (count next to label) */
.filter-chip__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--accent);
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.filter-chip--active .filter-chip__badge {
  background: var(--paper);
  color: var(--ink);
}

/* Bookings callout banner (partner bookings, when needs-marking > 0) */
.bookings-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin: 0 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
  flex-wrap: wrap;
}
.bookings-callout .overline { margin: 0; }
.bookings-callout__action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.bookings-callout__action:hover { color: var(--accent-strong); }

/* Status mono-caps tags. Text colours must pass WCAG AA on paper; the dot
   repeats the colour as a glanceable cue without being the only signal. */
.status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: 1px;
}
.status--active, .status--confirmed, .status--completed, .status--onboarded, .status--paid { color: var(--ink); }
.status--pending, .status--new, .status--upcoming, .status--outstanding, .status--next { color: var(--accent-strong); }
.status--paused, .status--declined, .status--no-show { color: var(--ink-55); }
.status--contacted { color: var(--ink-55); }
.status--claimed { color: var(--ink); }
.status--cancelled-by-customer, .status--cancelled-by-partner { color: var(--ink-55); }
.status--pending-payment { color: var(--accent-strong); }

/* ---------- Ratings (customer account · past bookings) ---------- */
/* Read-only inline star row — used in the "You rated ★★★★☆ — Edit" trigger.
   Empty stars sit at --ink-40 so the filled ones (accent-strong) read as the
   score at a glance; the wrapping button already carries the accessible label. */
.rating-inline {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}
.rating-star {
  color: var(--ink-40);
  font-size: 12px;
}
.rating-star--on { color: var(--accent-strong); }

/* Interactive 1–5 picker inside the rate modal. Radiogroup semantics live on
   the markup; these are just the tappable star buttons. */
.rating-stars {
  display: flex;
  gap: 6px;
  margin: 4px 0 8px;
}
.rating-star-btn {
  background: transparent;
  border: none;
  padding: 4px;
  font-size: 30px;
  line-height: 1;
  color: var(--ink-40);
  cursor: pointer;
  transition: color 120ms var(--ease-out), transform 120ms var(--ease-out);
}
.rating-star-btn:hover { transform: translateY(-1px); }
.rating-star-btn--on { color: var(--accent-strong); }
.rating-star-btn:disabled { cursor: default; }
.rating-star-btn:disabled:hover { transform: none; }

/* Visually-hidden helper text (accessible labels that shouldn't render). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Suggested-action card row (partner dashboard) ---------- */
.suggest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.suggest {
  border: 1px solid var(--rule-strong);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.suggest__body {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

/* ---------- Section heading ---------- */
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 56px 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
}
.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  margin: 0;
  letter-spacing: -0.015em;
}
.section-heading__action {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.section-heading__action:hover { color: var(--accent-strong); }

/* ---------- Calendar (partner / my slots) ----------
   Header row + body share one 8-column grid so columns line up. Each body
   day-column is a proportional time track: slots are absolutely positioned by
   real start time and sized by duration, over an hourly background ruler. */
.cal {
  --cal-hour-h: 64px;
  --cal-h: 640px;               /* 10 hours · 9 AM → 7 PM */
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  grid-auto-rows: auto;
  border: 1px solid var(--rule-strong);
  margin: 32px 0;
  background: var(--paper);
  overflow: visible;            /* let the header row stick on vertical scroll */
}
.cal__head {
  position: sticky;
  top: 62px;                    /* tucks just under the sticky partner nav */
  z-index: 4;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-70);
  background: #ECECEA;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
}
.cal__head-dow { color: var(--ink-55); }
.cal__head-date { color: var(--ink); font-weight: 500; letter-spacing: 0.1em; }
.cal__head--today {
  background: rgba(230, 194, 203, 0.42);
  box-shadow: inset 0 -2.5px 0 var(--accent-strong);
}
.cal__head--today .cal__head-dow,
.cal__head--today .cal__head-date { color: var(--accent-strong); }
.cal__corner {
  position: sticky;
  left: 0;
  top: 62px;
  z-index: 6;
  background: #ECECEA;
  border-right: 1px solid var(--rule-strong);
}
/* time gutter (body row, column 1) */
.cal__gutter {
  position: sticky;
  left: 0;
  z-index: 3;
  height: var(--cal-h);
  background: var(--paper);
  border-right: 1px solid var(--rule-strong);
}
.cal__hour {
  position: absolute;
  right: 11px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  white-space: nowrap;
}
/* day columns (body row, columns 2–8) */
.cal__col {
  position: relative;
  height: var(--cal-h);
  border-right: 1px solid var(--rule);
  background-image: repeating-linear-gradient(
    to bottom,
    var(--rule) 0, var(--rule) 1px,
    transparent 1px, transparent var(--cal-hour-h)
  );
  cursor: copy;
}
.cal__col:last-child { border-right: none; }
.cal__col:hover { background-color: rgba(230, 194, 203, 0.06); }
/* proportional slot blocks */
.cal__slot {
  position: absolute;
  left: 4px;
  right: 4px;
  overflow: hidden;
  padding: 4px 8px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  color: var(--ink);
  cursor: pointer;
  transition: filter 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
}
.cal__slot:hover { filter: brightness(0.97); box-shadow: 0 3px 10px rgba(17, 17, 17, 0.12); z-index: 2; }
.cal__slot strong { display: block; font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1.2; color: var(--ink); }
.cal__slot-span {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--ink-55);
  margin-top: 2px;
}
.cal__slot--reserved {
  background: rgba(92, 106, 130, 0.12);
  border-left-color: var(--cta);
}
.cal__slot--completed {
  background: transparent;
  border-left: 3px dashed var(--ink-40);
}
.cal__slot--completed strong { color: var(--ink-55); font-weight: 600; }
@media (max-width: 880px) {
  .cal { grid-template-columns: 56px repeat(7, minmax(94px, 1fr)); overflow-x: auto; }
  .cal__hour { font-size: 9px; right: 7px; }
}

/* ---------- Product footer (thin strip on product/placeholder pages) ---------- */
.pfooter {
  border-top: 1px solid var(--rule);
  margin-top: clamp(48px, 6vw, 80px);
  padding: 22px 0 28px;
}
.pfooter__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.pfooter__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.pfooter__links {
  display: inline-flex;
  gap: 22px;
  flex-wrap: wrap;
}
.pfooter__links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.pfooter__links a:hover { color: var(--accent); }

/* ---------- Legal pages (about / privacy / terms) ---------- */
.legal-page {
  background: transparent;
  color: var(--ink);
}
.legal-hero {
  padding: clamp(120px, 14vh, 168px) var(--gutter) clamp(48px, 6vw, 80px);
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.legal-hero .overline { justify-content: center; }
.legal-hero__title {
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.95;
  margin: 22px auto 18px;
  max-width: 900px;
}
.legal-hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink-70);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.35;
}
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(72px, 9vw, 112px);
}
.legal-section { padding: 32px 0; border-top: 1px solid var(--rule); }
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.legal-section__num { color: var(--accent); }
.legal-section h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  font-weight: 400;
}
.legal-section p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0 0 14px;
  max-width: 640px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.legal-section li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-70);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--ink-40);
}
.legal-section a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}
.legal-section a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.legal-draft-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 18px 20px;
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-70);
}
.legal-draft-note strong { color: var(--ink); }
.legal-foot {
  border-top: 1px solid var(--rule-strong);
  padding-top: 28px;
  margin-top: 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Accessibility ---------- */
/* accent-strong, not accent: focus indicators need ≥3:1 against the page. */
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── a11y: skip link (Phase 5) ──────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #111;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 99999;
}
.skip-link:focus {
  left: 16px;
  outline: 2px solid #6E5B66;
  outline-offset: 2px;
}

/* =========================================================
   EDITORIAL EVOLUTION — signature motif, motion, photography
   Cool editorial base + fashion-magazine personality. Universally
   compatible with any studio brand: neutral imagery, micro-pink fingerprint.
   ========================================================= */

:root {
  --pink-micro: #E6C2CB;   /* signature micro-pink — used in tiny doses only */
}

/* Signature fingerprint: every section label carries a micro-pink dot. */
.overline-dot { background: var(--pink-micro); }

/* Image-slot → editorial frame (soft neutral wash, hairline border) */
image-slot { background: #ECECEE; }
image-slot::part(frame) { background: linear-gradient(135deg, #EFEFF1 0%, #E4E4E7 100%); }
image-slot::part(ring) { border-style: solid; border-color: var(--rule-strong); }

/* Scroll reveal — slow, refined. Active only where <html> has .spur-anim
   (set per page) and the user hasn't asked for reduced motion. If JS or the
   class is absent, content stays fully visible — no hidden-content risk. */
@media (prefers-reduced-motion: no-preference) {
  .spur-anim .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out);
    will-change: opacity, transform;
  }
  .spur-anim .reveal--in { opacity: 1; transform: none; }
}

/* Gentle shimmer on the Join-the-list CTA — a soft light sweep on hover */
@media (prefers-reduced-motion: no-preference) {
  .waitlist__submit:hover {
    background: linear-gradient(90deg, var(--cta) 0%, var(--cta) 38%, #AEB9CE 50%, var(--cta) 62%, var(--cta) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ctaShimmer 1.5s linear infinite;
  }
  @keyframes ctaShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
}

/* Gradient motif tokens — the blush/lavender wash that carries the brand
   into avatars, monogram tiles, passes, and app surfaces. */
:root {
  --grad-tile: linear-gradient(150deg, var(--accent-soft), var(--violet-soft));
  --grad-band: linear-gradient(110deg, rgba(231,225,241,0.85), rgba(245,232,232,0.82));
  --grad-card: linear-gradient(150deg, rgba(231,225,241,0.6), rgba(245,232,232,0.55));
}

/* Image-led venue card — shared by the home "open right now" grid and the
   full browse list so both read identically. */
.vcard { display: flex; flex-direction: column; gap: 18px; color: var(--ink); }
.vcard__media { position: relative; width: 100%; }
.vcard__media image-slot { display: block; width: 100%; height: clamp(240px, 26vw, 360px); transition: transform 900ms var(--ease-out); }
.vcard:hover .vcard__media image-slot { transform: translateY(-3px); }
.vcard__photo {
  position: relative;
  width: 100%; height: clamp(240px, 26vw, 360px);
  border-radius: 16px;
  background: var(--grad-tile);
  display: grid; place-items: center;
  transition: transform 900ms var(--ease-out);
  overflow: hidden;
}
.vcard:hover .vcard__photo { transform: translateY(-3px); }
.vcard__mono {
  font-family: var(--font-wordmark);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  color: rgba(110, 91, 102, 0.45);
}
.vcard__time {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); padding: 6px 11px; border-radius: 999px; white-space: nowrap;
}
.vcard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vcard__name { font-family: var(--font-display); font-size: clamp(21px, 1.9vw, 27px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.vcard__price { display: flex; align-items: baseline; gap: 8px; margin: 9px 0 0; }
.vcard__rate { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.vcard__was { font-family: var(--font-body); font-size: 13px; color: var(--ink-55); }
.vcard__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-70);
}
.vcard__go {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  border: 1px solid var(--rule-strong); display: grid; place-items: center;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.vcard:hover .vcard__go { background: var(--cta); color: var(--paper); border-color: var(--cta); }

/* ---------- Faint blue gradient wash ----------
   A soft, feminine blue/lavender wash echoing the hero orbs.
   body.blue-page washes the entire page behind all content (how-it-works,
   salons); it pins to the viewport so the gradient reads consistently. */
:root {
  --blue-wash: linear-gradient(168deg,
    rgba(208, 224, 246, 0.45) 0%,
    rgba(224, 222, 240, 0.34) 50%,
    rgba(214, 231, 243, 0.42) 100%);
}
body.blue-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--blue-wash);
}

/* =========================================================
   React-app additions (ported from prototype inline <style>
   blocks so the Next.js routes match the static prototype).
   ========================================================= */

/* Account avatar dropdown (was inline in account.html). */
.pnav__user { position: relative; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  min-width: 220px; background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 10px;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.16);
  padding: 6px; overflow: hidden;
}
.acct-menu[hidden] { display: none; }
.acct-menu__head { padding: 12px 12px 14px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; display: flex; flex-direction: column; gap: 3px; }
.acct-menu__name { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.acct-menu__email { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-55); }
.acct-menu__item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  padding: 10px 12px; transition: background 120ms var(--ease-out);
}
.acct-menu__item:hover, .acct-menu__item:focus-visible { background: var(--accent-soft); outline: none; }

/* Product pages (partner, admin, account/slot/booking-confirmed) use Fraunces
   for display headings — the prototype sets --font-display inline per page.
   Apply via this scoping class instead of a render-blocking inline script. */
.fraunces-display { --font-display: "Fraunces", "Times New Roman", serif; }

/* …but these specific titles stay on the bold grotesque (matches prototype). */
.account-hero__title,
.fraunces-display .product-hero__title,
.fraunces-display .section-heading__title {
  font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
  font-weight: 700; letter-spacing: -0.02em; text-transform: none;
}

/* New-slot pulse for the partner calendar (added/edited slot flashes). */
@keyframes cal-slot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(160, 78, 78, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(160, 78, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(160, 78, 78, 0); }
}
.cal__slot--new { animation: cal-slot-pulse 1.6s var(--ease-out); }

/* Partner calendar week nav + legend (was inline in partner-slots.html). */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.weeknav__group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.weeknav__btn {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-70); background: transparent; border: 1px solid var(--rule-strong); border-radius: 6px;
  padding: 9px 14px; cursor: pointer; transition: border-color 140ms var(--ease-out), color 140ms var(--ease-out);
}
.weeknav__btn:hover { border-color: var(--ink); color: var(--ink); }
.weeknav__reset {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-strong); background: transparent; border: none; cursor: pointer; padding: 6px;
}
.cal-dot { width: 10px; height: 10px; display: inline-block; vertical-align: -1px; margin-right: 6px; border-radius: 2px; }
