/* StylistDesk: one page, mobile first. Warm, a little luxe: a boutique
   salon's own website, not a software page.
   Type: Cormorant Garamond (display, with italic accents) + Jost (text), both
   self-hosted, SIL Open Font License.
   Palette: cream, blush, deep plum and champagne. Contrast ratios are noted
   next to every color that carries text (WCAG AA is 4.5:1, 3:1 for large).
   Riaz is colorblind (deuteranopia): no red/green pair ever carries meaning. */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Jost;
  src: url('/fonts/jost.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --cream: #FBF4EE;       /* page */
  --cream-2: #F6EAE3;     /* soft band */
  --blush: #F1DCD3;       /* pricing band */
  --white: #FFFCFA;
  --line: #E7D3C9;
  --ink: #2B1728;         /* 15.7:1 on cream */
  --muted: #5F4B59;       /* 7.9:1 on cream, 7.0:1 on blush */
  --rose: #973A5A;        /* accent text, 6.4:1 on cream, 5.6:1 on blush */
  --rose-dark: #7A2B47;
  --plum: #3D1A36;        /* dark bands, 14.6:1 with cream */
  --plum-2: #57274D;
  --on-plum: #FBF4EE;
  --on-plum-muted: #E6D2DD; /* 10.6:1 on plum */
  --champagne: #E4C8A0;   /* on plum 9.4:1; button fill with plum text */
  --gold: #B98A55;        /* decoration only, never text */

  --f-display: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-text: Jost, 'Avenir Next', 'Helvetica Neue', Arial, system-ui, sans-serif;

  --t-h1: clamp(2.75rem, 1.9rem + 4.4vw, 5.25rem);
  --t-h2: clamp(2.125rem, 1.6rem + 2.6vw, 3.625rem);
  --t-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.875rem);
  --t-body: clamp(1.0625rem, 1.03rem + 0.17vw, 1.1875rem);
  --t-small: 0.9375rem;

  --gutter: 20px;
  --radius: 22px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow: 0 24px 60px -28px rgba(61, 26, 54, 0.45);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-text);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--rose); }
.band-plum h2 em, .full-bleed h2 em { color: var(--champagne); }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--plum); color: var(--on-plum); padding: 12px 18px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.band-plum :focus-visible, .full-bleed :focus-visible { outline-color: var(--champagne); }

.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
.band-plum .eyebrow, .full-bleed .eyebrow { color: var(--champagne); }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); color: var(--muted); max-width: 38em; }
.band-plum .lede, .full-bleed .lede { color: var(--on-plum-muted); }
.center .lede { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--t-h2); max-width: 17em; }
.section-head.center h2 { margin: 0 auto; }
.section-head .lede { margin-top: 16px; }

/* Buttons: pills, 52px tall, always at least 44x44. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 28px; border-radius: 999px;
  background: var(--plum); color: var(--on-plum);
  font: 500 1.0625rem/1.2 var(--f-text); letter-spacing: 0.02em; text-decoration: none; text-align: center;
  border: 2px solid var(--plum);
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s;
}
.btn:hover { background: var(--plum-2); border-color: var(--plum-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--on-plum); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 1rem; }
.btn-light { background: var(--cream); color: var(--plum); border-color: var(--cream); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-champagne { background: var(--champagne); color: var(--plum); border-color: var(--champagne); }
.btn-champagne:hover { background: #EDD6B5; border-color: #EDD6B5; }
.btn-outline-light { background: transparent; color: var(--on-plum); border-color: rgba(251, 244, 238, 0.7); }
.btn-outline-light:hover { background: rgba(251, 244, 238, 0.12); border-color: var(--on-plum); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 244, 238, 0.9);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(231, 211, 201, 0.7);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 600 1.75rem/1 var(--f-display); color: var(--plum); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark em { font-weight: 500; color: var(--rose); padding-right: 1px; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 500; color: var(--muted); border-radius: 999px; }
.nav-links a:hover { color: var(--plum); background: var(--cream-2); }

/* Hero: full-bleed image on a phone, arch-framed split on a wide screen. */
.hero { position: relative; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: min(66svh, 118vw); object-fit: cover; object-position: 50% 28%; }
.hero-media::after {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 38%;
  background: linear-gradient(to bottom, rgba(251, 244, 238, 0), rgba(251, 244, 238, 0.85) 60%, var(--cream));
}
.hero-copy { position: relative; padding: 0 var(--gutter) 56px; margin-top: -44px; max-width: 640px; }
.hero h1 { font-size: var(--t-h1); color: var(--plum); line-height: 0.98; }
.hero h1 em { display: block; }
.hero .lede { margin-top: 20px; color: var(--muted); }
.promises { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promises li {
  font-size: var(--t-small); font-weight: 500; color: var(--plum);
  padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.promises li::before { content: '\2726'; color: var(--gold); margin-right: 8px; font-size: 0.75em; vertical-align: 1px; }
.hero-note { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }
.salon-link {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; margin-top: 26px;
  padding: 12px 20px; border-radius: 18px; background: var(--plum); color: var(--on-plum-muted);
  text-decoration: none; font-size: var(--t-small); max-width: 460px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.salon-link span { font: 600 1.25rem/1.2 var(--f-display); color: var(--champagne); }
.salon-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Ribbon: a slow drifting line of who we're for. */
.ribbon { overflow: hidden; background: var(--plum); color: var(--champagne); padding: 16px 0; border-bottom: 1px solid rgba(228, 200, 160, 0.25); }
.ribbon-track { display: flex; width: max-content; animation: drift 38s linear infinite; }
.ribbon span { font: italic 500 1.5rem/1 var(--f-display); padding: 0 22px; white-space: nowrap; }
.ribbon span::after { content: '\2726'; font-style: normal; font-size: 0.6em; margin-left: 44px; vertical-align: 4px; color: var(--gold); }
@keyframes drift { to { transform: translateX(-50%); } }

/* Bands */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-plum { background: radial-gradient(120% 80% at 50% 0%, var(--plum-2), var(--plum) 60%); color: var(--on-plum); }
.band-plum h2 { color: var(--on-plum); }
.band-blush { background: var(--blush); }
.band-cream-2 { background: var(--cream-2); }

/* Carousels: native scroll-snap, so a swipe works with or without JS. */
.carousel { position: relative; }
.track {
  display: flex; gap: 18px; margin: 0; padding: 8px var(--gutter) 24px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline-offset: -3px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.round {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 2px solid currentColor; color: var(--plum);
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round:hover:not(:disabled) { background: var(--plum); color: var(--on-plum); }
.round:disabled { opacity: 0.35; cursor: default; }
.band-plum .round { color: var(--champagne); }
.band-plum .round:hover:not(:disabled) { background: var(--champagne); color: var(--plum); }
.count { min-width: 4.5em; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Demo carousel: phones in a row. */
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -12px 0 28px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 10px 20px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(228, 200, 160, 0.55); background: rgba(251, 244, 238, 0.06);
  color: var(--on-plum); font: 500 1rem/1.2 var(--f-text);
}
.chip span { color: var(--on-plum-muted); font-size: 0.875rem; }
.chip[aria-pressed="true"] { background: var(--champagne); color: var(--plum); border-color: var(--champagne); }
.chip[aria-pressed="true"] span { color: var(--plum); }
.demo-carousel .track { padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
.slide { flex: 0 0 min(76vw, 300px); margin: 0; scroll-snap-align: center; }
.phone {
  position: relative; border-radius: 44px; padding: 24px 10px 12px; background: linear-gradient(145deg, #1d0c1a, #4a2342);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.6), inset 0 0 0 1.5px rgba(228, 200, 160, 0.4);
  transition: transform 0.5s var(--ease);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 600 / 1299; object-fit: cover; background: var(--plum-2); }
.phone::before {
  content: ''; position: absolute; top: 9px; left: 50%; width: 22%; height: 6px; transform: translateX(-50%);
  background: rgba(228, 200, 160, 0.35); border-radius: 999px;
}
.slide figcaption { margin-top: 18px; color: var(--on-plum-muted); font-size: var(--t-small); line-height: 1.5; }
.slide figcaption strong { display: block; font: 600 1.375rem/1.2 var(--f-display); color: var(--on-plum); margin-bottom: 4px; }
.band-plum .count { color: var(--on-plum); }
.demo-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Feature carousel: tall image cards. */
.feature-carousel .track { padding-left: max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); }
.feature {
  flex: 0 0 min(80vw, 340px); scroll-snap-align: start; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--plum); color: var(--on-plum); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature-body {
  position: absolute; inset: auto 0 0 0; padding: 72px 22px 24px;
  background: linear-gradient(to bottom, rgba(61, 26, 54, 0), rgba(43, 18, 38, 0.86) 38%, rgba(43, 18, 38, 0.96));
}
.feature .num { font: italic 500 1.125rem/1 var(--f-display); color: var(--champagne); }
.feature h3 { font-size: var(--t-h3); margin: 6px 0 8px; color: var(--on-plum); }
.feature p { font-size: var(--t-small); color: var(--on-plum-muted); line-height: 1.5; }
.feature-carousel .carousel-controls { color: var(--plum); }

/* Full-bleed image bands (salon owners, contact). */
.full-bleed { position: relative; isolation: isolate; color: var(--on-plum); overflow: hidden; }
.bleed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.full-bleed::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(43, 18, 38, 0.72), rgba(43, 18, 38, 0.9) 55%, rgba(43, 18, 38, 0.96));
}
.full-bleed h2 { color: var(--on-plum); }
.salons { padding: clamp(72px, 11vw, 150px) 0; }
.salons-inner { display: grid; gap: 40px; align-items: center; }
.salons h2 { font-size: clamp(2.375rem, 1.7rem + 3.4vw, 4.25rem); }
.salons .lede { margin-top: 18px; }
.salons-card {
  background: rgba(251, 244, 238, 0.97); color: var(--ink); border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.salons-card .owner { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 25%; }
.owner-gets { list-style: none; margin: 0; padding: 12px 24px 24px; }
.owner-gets li { padding: 16px 0 16px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--t-small); }
.owner-gets li:last-child { border-bottom: 0; }
.owner-gets li::before { content: '\2726'; position: absolute; left: 4px; top: 18px; color: var(--rose); }
.owner-gets strong { display: block; font: 600 1.375rem/1.2 var(--f-display); color: var(--plum); margin-bottom: 2px; }

/* Pricing */
.price-grid { display: grid; gap: 22px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--white); border-radius: 28px; padding: 34px 26px 28px; border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card .plan { font: italic 500 1.375rem/1 var(--f-display); color: var(--rose); }
.price-card h3 { font-size: 1.75rem; color: var(--plum); }
.price { margin-top: 14px; color: var(--muted); }
.price strong { font: 600 3.5rem/1 var(--f-display); color: var(--plum); letter-spacing: -0.02em; }
.price .from { font-size: var(--t-small); margin-right: 2px; }
.price .per { font-size: 1rem; }
.price-card:last-child .price strong { font-size: 2.375rem; }
.price-note { color: var(--muted); font-size: var(--t-small); }
.ticks { list-style: none; margin: 18px 0 26px; padding: 0; flex: 1; }
.ticks li { position: relative; padding: 8px 0 8px 30px; border-top: 1px solid var(--line); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
  border-left: 2px solid var(--rose); border-bottom: 2px solid var(--rose); transform: rotate(-45deg);
}
.price-card .btn { align-self: stretch; }
.price-card.featured {
  background: radial-gradient(130% 90% at 50% 0%, var(--plum-2), var(--plum) 70%); color: var(--on-plum);
  border-color: var(--plum); box-shadow: 0 30px 70px -30px rgba(61, 26, 54, 0.8);
}
.featured .plan { color: var(--champagne); }
.featured h3, .featured .price strong { color: var(--on-plum); }
.featured .price, .featured .price-note { color: var(--on-plum-muted); }
.featured .ticks li { border-color: rgba(228, 200, 160, 0.3); }
.featured .ticks li::before { border-color: var(--champagne); }
.ribbon-tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--champagne); color: var(--plum); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(61, 26, 54, 0.5);
}
.terms { list-style: none; margin: 36px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--plum); font-weight: 500; font-size: var(--t-small); text-align: center; }
.terms li::before { content: '\2726'; color: var(--gold); margin-right: 8px; font-size: 0.75em; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 30px 26px 28px 96px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blush); color: var(--rose-dark);
  font: italic 600 2rem/1 var(--f-display);
}
.steps h3 { font-size: var(--t-h3); color: var(--plum); margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border-radius: 18px; border: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 22px; font: 600 1.375rem/1.25 var(--f-display); color: var(--plum);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blush); color: var(--rose-dark); font: 400 1.5rem/1 var(--f-text); transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); }

/* Contact */
.contact { padding: clamp(84px, 12vw, 160px) 0; }
.contact h2 { font-size: clamp(2.5rem, 1.7rem + 4vw, 4.5rem); }
.contact .lede { margin-top: 16px; }
.contact-buttons { display: grid; gap: 12px; margin: 34px auto 0; max-width: 380px; }
.contact-buttons .btn { min-height: 64px; font-size: 1.125rem; }
.contact-buttons .num { font-weight: 400; opacity: 0.85; }
.email { margin-top: 22px; color: var(--on-plum-muted); }
.email a { display: inline-flex; align-items: center; min-height: 44px; color: var(--champagne); font-weight: 500; }

/* Footer */
.site-footer { background: #2A1126; color: var(--on-plum-muted); padding: 44px 0 52px; font-size: var(--t-small); }
.site-footer .wrap { display: grid; gap: 8px; }
.wordmark-small { color: var(--on-plum); font-size: 1.75rem; min-height: 0; }
.wordmark-small em { color: var(--champagne); }

/* Gentle entrance, only once JS is running and only if motion is welcome. */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s; }
.js .reveal.in { opacity: 1; translate: none; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 96px 26px 30px; }
  .steps li::before { left: 26px; top: 26px; }
  .contact-buttons { grid-template-columns: 1fr 1fr; max-width: 640px; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hero {
    display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px;
    max-width: 1200px; margin: 0 auto; padding: 56px 32px 80px;
  }
  .hero-media { order: 2; }
  .hero-media img { height: auto; aspect-ratio: 4 / 5; border-radius: var(--arch); box-shadow: 0 40px 80px -36px rgba(61, 26, 54, 0.6); }
  .hero-media::after { display: none; }
  .hero-media::before {
    content: ''; position: absolute; inset: -18px -18px 36px 36px; border-radius: var(--arch);
    border: 1.5px solid var(--gold); z-index: -1;
  }
  .hero-copy { margin: 0; padding: 0; max-width: none; }
  .slide { flex-basis: 300px; }
  .demo-carousel .track, .feature-carousel .track { gap: 28px; }
  .feature { flex-basis: 360px; }
  .salons-inner { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .salons-card { display: grid; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .ribbon-track { animation: none; }
  .js .reveal { opacity: 1; translate: none; }
  .feature:hover img, .btn:hover, .price-card:hover, .salon-link:hover { transform: none; }
}
