/* SalonNow website. Mobile first. Headings: Outfit Bold (self-hosted, SIL OFL 1.1, see OFL-Outfit.txt).
   Body: the phone's or computer's own system font. Nothing is loaded from other websites. */

@font-face {
  font-family: "Outfit";
  src: url("/outfit-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #3d3683;          /* SalonNow purple */
  --brand-strong: #2e2866;
  --brand-ink: #3d3683;      /* links and brand text on the page background */
  --on-brand: #ffffff;
  --bg: #ffffff;
  --surface: #f6f5fb;
  --tint: #eeecf9;
  --text: #17152b;
  --muted: #4d4a63;
  --border: #e3e0f0;
  --shadow: 0 1px 2px rgba(23, 21, 43, 0.06), 0 8px 24px rgba(23, 21, 43, 0.06);

  /* Salon section: the Partner app colours */
  --partner-bg: #1f1b3d;
  --partner-card: #29244f;
  --partner-border: #3d3772;
  --partner-accent: #a99bff;
  --partner-text: #ffffff;
  --partner-muted: #d6d1f5;

  --radius: 20px;
  --wrap: 72rem;
  --read: 46rem;
  --heading: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #c3bdf7;
    --brand-strong: #ddd9fb;
    --brand-ink: #c3bdf7;
    --on-brand: #17152b;
    --bg: #0f0e1a;
    --surface: #1a1830;
    --tint: #262243;
    --text: #eeedf7;
    --muted: #bdbad3;
    --border: #2f2c4a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --partner-bg: #1f1b3d;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 1rem, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--brand-ink); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* The focus ring takes the element's own text colour, so it has the same strong contrast as the text */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}
main:focus { outline: none; }

[id] { scroll-margin-top: 5.5rem; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 50;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.btn-lg { min-height: 52px; padding: 0.6rem 1.5rem; font-size: 1.05rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-outline { border-color: currentColor; color: var(--brand-ink); background: transparent; }
.btn-outline:hover { background: var(--tint); }
.btn-accent { background: var(--partner-accent); color: var(--partner-bg); }
.btn-accent:hover { background: #c2b8ff; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--text);
  font-family: var(--heading);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 10px; }

.main-nav { display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: none; }

/* Phones: Contact button and a Menu that opens without JavaScript */
.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--tint); }
.nav-menu ul {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(100% + 0.5rem);
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.nav-menu li { margin: 0; }
.nav-menu ul a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.nav-menu ul a:hover { background: var(--tint); }

/* Small phones: smaller logo text and an icon-only Menu button (still named "Menu" for screen readers) */
@media (max-width: 25rem) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.45rem; font-size: 1.2rem; }
  .brand img { width: 32px; height: 32px; }
  .main-nav { gap: 0.4rem; }
  .nav-contact { padding: 0 0.9rem; }
  .nav-menu summary { padding: 0; justify-content: center; }
  .nav-menu summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (min-width: 52rem) {
  .nav-menu { display: none; }
  .nav-links {
    display: flex;
    gap: 0.25rem;
    margin: 0 0.75rem 0 0;
    padding: 0;
    list-style: none;
  }
  .nav-links li { margin: 0; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.8rem;
    border-radius: 999px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
  }
  .nav-links a:hover { background: var(--tint); }
}
.nav-links a[aria-current="page"],
.nav-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.4em;
}

/* ---------- Home: hero ---------- */
.hero {
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--tint), transparent 60%),
    radial-gradient(40rem 24rem at 0% 100%, var(--surface), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.75rem;
  padding-bottom: 3.5rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.badge-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(2.3rem, 5vw + 1rem, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
.hero h1 .hl { color: var(--brand-ink); }
.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.hero-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

/* The phone drawing (a sample screen with invented data). It keeps its own light colours in dark mode. */
.mockup {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.phone-stage { position: relative; width: min(300px, 100%); }
.phone {
  width: 100%;
  padding: 10px;
  border-radius: 42px;
  background: #17152b;
  box-shadow: 0 30px 60px -20px rgba(61, 54, 131, 0.55), 0 0 0 1px #2e2b48;
}
.screen {
  overflow: hidden;
  border-radius: 33px;
  background: #f7f6fc;
  color: #17152b;
  font-size: 0.8rem;
  line-height: 1.35;
}
.screen-top {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1.25rem 0.25rem;
  font-weight: 700;
  font-size: 0.7rem;
}
.screen-notch {
  width: 5.5rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #17152b;
}
.screen-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.75rem;
  font-family: var(--heading);
  font-size: 1rem;
}
.screen-body { padding: 0 0.85rem 1rem; display: grid; gap: 0.6rem; }
.s-card {
  background: #ffffff;
  border: 1px solid #e6e3f3;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
}
.s-salon { display: flex; align-items: center; gap: 0.6rem; }
.s-avatar {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d3683, #7a6fe0);
}
.s-title { font-weight: 700; font-size: 0.85rem; }
.s-sub { color: #5a5772; font-size: 0.72rem; }
.s-row { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; }
.s-label { color: #5a5772; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; }
.s-chips { display: flex; gap: 0.35rem; margin-top: 0.35rem; }
.s-chip {
  flex: 1;
  text-align: center;
  padding: 0.35rem 0;
  border: 1px solid #d9d5ee;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
}
.s-chip.on { background: #3d3683; border-color: #3d3683; color: #ffffff; }
.s-hold {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: #e5f8f4;
  color: #0b5c50;
  font-weight: 700;
  font-size: 0.72rem;
}
.s-total { display: flex; justify-content: space-between; font-weight: 700; padding: 0 0.2rem; }
.s-button {
  padding: 0.7rem;
  border-radius: 999px;
  background: #3d3683;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 0.78rem;
}
.float-card {
  position: absolute;
  right: -0.25rem;
  top: 19%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: #ffffff;
  color: #17152b;
  box-shadow: 0 12px 30px -10px rgba(23, 21, 43, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.float-card .tick {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #00d2b4;
  color: #0b3d36;
}
.float-card small { display: block; font-weight: 600; color: #5a5772; }
/* Phones: under the phone, over its bottom edge, so it covers no text */
@media (max-width: 29.99rem) {
  .phone-stage { margin-bottom: 1.5rem; }
  .float-card { top: auto; bottom: -1.75rem; }
}
@media (min-width: 30rem) { .float-card { right: -3.5rem; } }
@media (min-width: 60rem) { .float-card { right: -5.25rem; } }

.sample-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ---------- Home: sections ---------- */
.section { padding: 4rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2.25rem; }
.section-head h2 { margin-top: 0; }
.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-lead { font-size: 1.15rem; color: var(--muted); }

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--tint);
  color: var(--brand-ink);
}
.icon svg { width: 1.6rem; height: 1.6rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card-grid > li { margin: 0; }

/* Five cards: no lonely card on its own row */
.steps-grid, .perk-grid { grid-template-columns: 1fr; }
@media (min-width: 40rem) {
  .steps-grid, .perk-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid > li:last-child { grid-column: 1 / -1; }
  .perk-grid > .featured { grid-column: 1 / -1; }
}
@media (min-width: 64rem) {
  .steps-grid { grid-template-columns: repeat(5, 1fr); }
  .steps-grid > li:last-child { grid-column: auto; }
  .perk-grid { grid-template-columns: repeat(3, 1fr); }
  .perk-grid > .featured { grid-column: auto; grid-row: span 2; }
}
.card {
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h3 { margin: 1rem 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.step-no {
  display: block;
  margin-top: 1rem;
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step-no + h3 { margin-top: 0.2rem; }

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
}
.facts svg { flex: none; width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; color: var(--brand-ink); }
@media (min-width: 52rem) { .facts { grid-template-columns: repeat(3, 1fr); } }

.story {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--tint), var(--surface));
  border: 1px solid var(--border);
}
.story h3 { margin-top: 0.25rem; font-size: 1.4rem; }
.timeline {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.timeline strong { display: block; font-family: var(--heading); color: var(--brand-ink); }
.story-foot { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 52rem) {
  .story { padding: 2.25rem; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}

/* Salon section: dark, in the Partner app colours */
.section-partner {
  background: var(--partner-bg);
  color: var(--partner-text);
}
.section-partner a { color: var(--partner-accent); }
.section-partner a.btn-accent { color: var(--partner-bg); }
.section-partner .eyebrow { color: var(--partner-accent); }
.section-partner .section-lead,
.section-partner .card p { color: var(--partner-muted); }
.section-partner .card {
  background: var(--partner-card);
  border-color: var(--partner-border);
}
.section-partner .card.featured {
  border: 2px solid var(--partner-accent);
}
.section-partner .icon {
  background: rgba(169, 155, 255, 0.16);
  color: var(--partner-accent);
}
.perk-tag {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--partner-accent);
  color: var(--partner-bg);
  font-size: 0.8rem;
  font-weight: 700;
}
.split {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}
.split h3 { margin-top: 0; font-size: 1.35rem; }
.split ul, .split ol { padding-left: 1.25rem; }
.split li::marker { color: var(--partner-accent); font-weight: 700; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin-top: 2rem; }

/* Trust badges */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-grid li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.trust-grid strong { display: block; font-family: var(--heading); font-size: 1.05rem; line-height: 1.25; }
.trust-grid span { color: var(--muted); font-size: 0.95rem; }
.section-trust { background: var(--surface); border-top: 1px solid var(--border); }
.trust-more { margin: 1.75rem 0 0; }

/* ---------- Legal and other text pages ---------- */
.page {
  max-width: var(--read);
  margin: 0 auto;
  padding: 2.75rem 1rem 4rem;
}
.lead { font-size: 1.2rem; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.95rem; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem 0.6rem;
  margin: 1.75rem 0;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 0.5rem; }

.note {
  background: var(--surface);
  border-left: 4px solid var(--brand-ink);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note > :last-child { margin-bottom: 0; }
.example { color: var(--muted); font-style: italic; }

/* Tables: on phones each row becomes a small card, so nothing scrolls sideways */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
thead th { background: var(--surface); }
@media (max-width: 36rem) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  table.stack th,
  table.stack td { display: block; border: 0; padding: 0.2rem 0; }
}

.agreement { padding-left: 1.5rem; }
.agreement li { margin-bottom: 1rem; padding-left: 0.25rem; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.85rem;
  margin-bottom: 1rem;
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-card {
  display: grid;
  gap: 0;
  padding: 0.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.details-card dt { font-weight: 700; padding-top: 0.75rem; }
.details-card dd { margin: 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.details-card dd:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 3rem;
  font-size: 1rem;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 700;
}
.footer-brand img { border-radius: 8px; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-note { color: var(--muted); }
.site-footer .updated { margin: 0; }
.footer-heading {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}
.footer-links a[aria-current="page"] { text-decoration-thickness: 3px; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: 2fr 1fr; gap: 3rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-links a, .nav-menu ul a { transition: background-color 0.15s ease; }
}

@media print {
  .site-header, .skip-link, .footer-nav, .mockup { display: none; }
  .section-partner { background: none; color: inherit; }
  a { color: inherit; }
}
