/* ==========================================================================
   Dutch Girl Hair Design — shared stylesheet
   Cream page, soft ink, one violet accent, teal-violet-rust spectrum marks.
   All color and type lives in the token block below. Fonts: /fonts/fonts.css.
   ========================================================================== */
/* Fonts embedded as woff2 data URIs — the page needs no network at all. */

/* ==========================================================================
   Dutch Girl Hair Design — booking prototype
   Warm cream, soft mocha, script + wide-tracked caps.
   All color and type lives in this token block.
   ========================================================================== */

:root {
  --bg:          #f7f7f8;
  --surface:     #ffffff;
  --surface-2:   #fbfbfc;
  --surface-3:   #f0f0f2;
  --line:        #e3e3e6;
  --line-soft:   #eeeef0;

  --ink:         #17171a;
  --ink-soft:    #45454b;
  /* Darkened from #9c8470: the 0.66rem tracked caps only reached 2.8:1 on
     the page. This clears 4.5:1 while staying visibly muted. */
  --ink-mute:    #6b6b73;

  --accent:      #5b4bbd;
  --accent-deep: #45359b;
  --accent-soft: #ece9f8;
  --heart:       #9a9aa2;

  /* The bursts. Used on small marks only — never as a surface. */
  --c-teal:      #1b9b94;
  --c-violet:    #5b4bbd;
  --c-rust:      #c2633f;
  --c-magenta:   #b2537a;
  --spectrum:    linear-gradient(95deg, var(--c-teal) 0%, var(--c-violet) 52%, var(--c-rust) 100%);
  /* Text that sits ON an accent fill. The accent inverts in dark mode, so
     this has to invert with it or every filled control loses contrast. */
  --on-accent:   #ffffff;
  /* Nicole's featured panel: a light card that LIFTS off the cream page
     (lighter than the background, not a tint of it) and carries one accent
     colour of its own. Change --pop and her whole card re-themes. */
  --feature-bg:  #ffffff;
  --feature-ink: #17171a;
  --pop:         #5b4bbd;
  --pop-deep:    #45359b;
  --pop-soft:    #f2f0fb;
  --on-pop:      #ffffff;

  --good:        #1a7f4b;
  --good-soft:   #e0f2e8;
  --bad:         #b3261e;
  --bad-soft:    #fbe6e4;

  --radius:      10px;
  --radius-sm:   7px;
  --radius-lg:   14px;
  --shadow:      0 1px 2px rgba(20,20,28,.04), 0 10px 28px -20px rgba(20,20,28,.26);
  --shadow-lg:   0 2px 8px rgba(20,20,28,.05), 0 30px 60px -32px rgba(20,20,28,.32);

  --script: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --sans:   'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max: 640px;
  --tap: 46px;

  /* Aliases for rules written against the earlier palette. */
  --gold:        var(--accent);
  --gold-deep:   var(--accent-deep);
  --gold-soft:   var(--accent-soft);
  --warn:        #8a5a12;
  --warn-soft:   #fbeed6;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #1c1512;
    --surface:     #251c17;
    --surface-2:   #2c211b;
    --surface-3:   #34271f;
    --line:        #43332a;
    --line-soft:   #382a22;

    --ink:         #f2e7da;
    --ink-soft:    #d3c2b1;
    --ink-mute:    #9e8a78;

    --accent:      #dd9468;
    --accent-deep: #eeae86;
    --accent-soft: #3d2a1e;
    --heart:       #d3926c;
    --on-accent:   #2a1e16;
    /* The panel stays light in both themes — it's already the brightest thing
       on an espresso page. Only the accent shifts, to hold up on warm cream. */
    --feature-bg:  #f4ebdf;
    --feature-ink: #33251b;
    --pop:         #b86a45;
    --pop-deep:    #99522e;
    --pop-soft:    #f4dcc7;
    --on-pop:      #ffffff;

    --good:        #96bb9c;
    --good-soft:   #222b22;
    --bad:         #d79c92;
    --bad-soft:    #33211e;

    --shadow:      0 1px 2px rgba(0,0,0,.5), 0 10px 30px -18px rgba(0,0,0,.8);
    --shadow-lg:   0 2px 6px rgba(0,0,0,.5), 0 30px 60px -28px rgba(0,0,0,.85);

    --warn:        #d9ab63;
    --warn-soft:   #2d2415;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* A whisper of paper grain, so the cream doesn't read as flat digital beige. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle at 14% 8%, rgba(27,155,148,.055), transparent 42%),
    radial-gradient(circle at 88% 72%, rgba(91,75,189,.05), transparent 44%),
    radial-gradient(circle at 60% 96%, rgba(194,99,63,.035), transparent 40%);
}

p { margin: 0 0 .75rem; }
dl { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.hidden { display: none !important; }
.muted { color: var(--ink-mute); }
.small { font-size: .85rem; }
.center { text-align: center; }
.spacer { flex: 1 1 auto; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row-tight { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- typography */

.script {
  font-family: var(--script);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: .18em;
}

.caps {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .66rem;
  font-weight: 500;
  color: var(--ink-mute);
}

h1, h2, h3 { margin: 0; font-weight: 400; }

h1 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.015em;
}

/* Tabular figures so times and dates line up column to column. */
.opening-date, .date-chip .dom, .time-btn, .appt-when .day,
.option-price, .total-row .amount, .summary-row dd, .sticky-bar .value {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
h2 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-size: 1rem; font-weight: 500; }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 12px;
}
.section-label:first-child { margin-top: 0; }
.section-label .caps { flex: none; }
.section-label::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* --------------------------------------------------------- heart divider */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.divider .heart {
  flex: none;
  width: 26px; height: 4px;
  border-radius: 2px;
  background: var(--spectrum);
  font-size: 0;
}
.divider.tight { margin: 12px 0; }
.divider.short::before, .divider.short::after { max-width: 54px; }

/* ------------------------------------------------------------- demo strip */

.demo-bar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.4;
}
.demo-bar .wrap {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px; padding-top: 7px; padding-bottom: 7px;
}
.demo-bar .tag {
  flex: none;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .6rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 4px 10px;
}
.demo-bar .what { min-width: 0; }
.demo-bar button {
  flex: none;
  appearance: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 13px;
  min-height: 32px;
  cursor: pointer;
}
.demo-bar button:hover { border-color: var(--accent); color: var(--accent-deep); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 10px;
  min-height: 62px; flex-wrap: nowrap;
}
.site-header nav { flex-wrap: nowrap; flex: none; }

.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-right: auto;
  min-width: 0;
  background: none; border: 0; padding: 0;
  color: inherit; cursor: pointer; text-align: left;
}
.brand .by {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .56rem;
  font-weight: 500;
  color: var(--ink-mute);
  flex: none;
}
.brand .name {
  font-family: var(--script);
  font-size: .98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

main { padding: 30px 0 36px; }

/* Footer: salon contact line and the staff entrance. Bottom padding keeps it
   clear of the sticky booking bar. */
.site-foot { padding: 0 18px calc(140px + env(safe-area-inset-bottom)); }
.site-foot-inner {
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: baseline; justify-content: space-between;
}
.site-foot p { margin: 0; }
.foot-link {
  color: var(--ink-mute); font-size: .85rem; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line);
}
.foot-link:hover { color: var(--accent); text-decoration-color: currentColor; }

.page-head { margin-bottom: 20px; }
.page-head .caps { margin-bottom: 8px; }
.page-head p { color: var(--ink-mute); margin: 7px 0 0; font-size: .92rem; }

/* --------------------------------------------------------------- hero card */

.hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 24px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero .sprig { opacity: 1; }
.hero .sparkle { display: none; }
.hero .lockup { margin: 16px 0 0; }
/* The lockup already carries a spectrum rule, so the divider directly beneath
   it stays plain — one colour moment per zone. */
.hero .divider .heart { display: none; }
.hero .markline {
  width: 58px; height: 3px;
  margin: 12px auto 12px;
  border-radius: 2px;
  background: var(--spectrum);
}
.hero .name {
  font-family: var(--script);
  font-size: 2.05rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: .2em;
  color: var(--ink);
  margin: 10px 0 10px;
}
.hero .sit {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--ink-mute);
  line-height: 1.4;
}
.hero .blurb {
  font-size: .92rem;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto;
}
.hero-flowers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------- openings teaser */

.openings { margin-top: 12px; }

.opening-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 4px;
  background: none;
  border: 0;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.opening-row:hover { background: var(--surface-2); }
.opening-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.opening-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #e7f4f3;
  color: var(--c-teal);
  display: grid; place-items: center;
}
.opening-date {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
}
.opening-times { font-size: .88rem; color: var(--ink-soft); }
.opening-times em { font-style: italic; color: var(--ink-mute); }
.opening-go { flex: none; color: var(--ink-mute); font-size: 1.1rem; }

.opening-sep {
  height: 1px;
  background: var(--line-soft);
  margin: 0 4px;
  font-size: 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-flat { box-shadow: none; background: var(--surface-2); }

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: var(--tap);
  padding: 12px 22px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .16s, border-color .16s, color .16s, transform .06s;
  background: var(--surface-3);
  color: var(--ink);
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: var(--accent-deep);
  color: var(--on-accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 600;
}
.btn-primary:hover:not([disabled]) { background: var(--accent); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover:not([disabled]) { background: var(--surface-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-mute); border-color: transparent; padding: 8px 10px; }
.btn-quiet:hover { color: var(--accent-deep); }
.btn-danger { background: transparent; border-color: var(--line); color: var(--bad); }
.btn-danger:hover:not([disabled]) { background: var(--bad-soft); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ inputs */

label { display: block; font-size: .84rem; font-weight: 500; margin-bottom: 7px; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 15px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field + .field { margin-top: 14px; }
.field-hint { font-size: .8rem; color: var(--ink-mute); margin-top: 6px; }

/* ------------------------------------------------------------------ alerts */

.alert { border-radius: var(--radius-sm); padding: 12px 15px; font-size: .88rem; border: 1px solid transparent; }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 26%, transparent); }
.alert-info { background: var(--surface-2); color: var(--ink-soft); border-color: var(--line); }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--surface-3);
  color: var(--ink-soft);
  white-space: nowrap;
}
/* Filled, so it still reads as a badge on the tinted selected card. */
.pill-accent { background: var(--accent-deep); color: var(--on-accent); }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }

/* ----------------------------------------------------------------- stepper */

.steps {
  display: flex; align-items: center; justify-content: center;
  gap: 5px;
  margin-bottom: 22px;
  overflow-x: auto; scrollbar-width: none;
  padding-bottom: 2px;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex: none;
  background: none; border: 0; padding: 0;
  font-family: var(--sans);
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 500;
  color: var(--ink-mute);
}
.step-num {
  width: 21px; height: 21px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: 0;
  background: transparent;
  color: var(--ink-mute);
  border: 1px solid var(--line);
}
.step.is-active { color: var(--ink); }
.step.is-active .step-num { background: var(--accent-deep); color: var(--on-accent); border-color: var(--accent-deep); }
.step.is-done { cursor: pointer; color: var(--accent-deep); }
.step.is-done .step-num { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
.step-sep { color: var(--line); flex: none; font-size: .6rem; }

/* ------------------------------------------------------- selectable options */

.option-list { display: grid; gap: 10px; }

.option {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit; color: inherit;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.option:hover { border-color: var(--accent); }
.option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.option.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.option-body { flex: 1 1 auto; min-width: 0; }
.option-title { font-weight: 500; font-size: 1rem; letter-spacing: .005em; }
.option-desc { font-size: .85rem; color: var(--ink-mute); margin-top: 4px; line-height: 1.5; }
.option-meta { display: flex; gap: 8px; align-items: center; margin-top: 9px; flex-wrap: wrap; }
.option-price {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  white-space: nowrap;
  flex: none;
}

.avatar {
  width: 46px; height: 46px; flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .04em;
}

/* Nicole's card. Lighter than the page so it lifts rather than sinks, with a
   rose wash and rose accents carrying the emphasis instead of a dark fill. */
.option.featured {
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 34px 24px 30px;
  background-color: var(--feature-bg);
  background-image: linear-gradient(175deg, var(--pop-soft) 0%, transparent 58%);
  color: var(--feature-ink);
  border-color: color-mix(in srgb, var(--pop) 42%, transparent);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* A rose band across the top edge — the pop reads even at a glance. */
.option.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--spectrum);
}

.option.featured:hover { border-color: var(--pop); }
.option.featured.is-selected {
  box-shadow: var(--shadow-lg), inset 0 0 0 2px var(--pop);
  border-color: var(--pop);
}
.option.featured .avatar {
  width: 60px; height: 60px;
  border-radius: 11px;
  font-size: 1.3rem;
  background: var(--pop-soft);
  color: var(--pop-deep);
  border: 1px solid color-mix(in srgb, var(--pop) 38%, transparent);
}
.option.featured .option-title {
  font-family: var(--script);
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  line-height: 1.1;
  margin-top: 14px;
  color: var(--ink);
}
/* Small text and the filled badge use the deeper shade: the mid tone clears
   3:1 against the panel but not the 4.5:1 that small type needs. */
.option.featured .caps { color: var(--pop-deep); }
.option.featured .option-desc {
  max-width: 38ch;
  color: color-mix(in srgb, var(--feature-ink) 82%, transparent);
}
.option.featured .pill-accent { background: var(--pop-deep); color: var(--on-pop); }

/* ---------------------------------------------------------------- date strip */

.date-strip {
  display: flex; gap: 9px;
  overflow-x: auto;
  padding: 4px 18px 12px;
  margin: 0 -18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.date-chip {
  flex: none; width: 66px;
  padding: 11px 4px 9px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center; cursor: pointer;
  font-family: inherit; color: inherit;
  scroll-snap-align: start;
  transition: border-color .16s, background .16s;
}
.date-chip:hover:not([disabled]) { border-color: var(--accent); }
.date-chip .dow {
  font-size: .58rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-mute); font-weight: 500;
}
.date-chip .dom { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.25; }
.date-chip .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-teal);
  margin: 4px auto 0;
  font-size: 0; line-height: 0;
}
.date-chip[disabled] { opacity: .35; cursor: not-allowed; }
.date-chip[disabled] .dot { visibility: hidden; }
.date-chip.is-selected { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.date-chip.is-selected .dow { color: color-mix(in srgb, var(--on-accent) 75%, transparent); }
.date-chip.is-selected .dot { color: color-mix(in srgb, var(--on-accent) 85%, transparent); }

/* ----------------------------------------------------------------- time grid */

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.time-btn {
  min-height: var(--tap);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--serif);
  font-size: .94rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s, background .16s, color .16s;
}
.time-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.time-btn.is-selected { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent); }
.time-period + .time-period { margin-top: 20px; }

/* ------------------------------------------------------------------ summary */

.summary-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .92rem;
}
.summary-row:last-child { border-bottom: 0; }
.summary-row dt { color: var(--ink-mute); flex: none; }
.summary-row dd { margin: 0; text-align: right; font-weight: 500; }

.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.total-row .amount { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }

/* ------------------------------------------------------------- appointments */

.appt {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.appt-when {
  flex: none; width: 60px; text-align: center;
  padding-right: 16px;
  border-right: 1px solid var(--line-soft);
}
.appt-when .mon { font-size: .58rem; text-transform: uppercase; letter-spacing: .16em; color: var(--accent-deep); font-weight: 500; }
.appt-when .day { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.15; }
.appt-when .dow { font-size: .68rem; color: var(--ink-mute); letter-spacing: .06em; }
.appt-body { flex: 1 1 auto; min-width: 0; }
.appt-title { font-weight: 500; font-size: 1rem; }
.appt-sub { font-size: .86rem; color: var(--ink-mute); margin-top: 3px; }
.appt.is-past { opacity: .68; box-shadow: none; }

/* ---------------------------------------------------------- email preview */

.email-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
  text-align: left;
}
.email-head {
  padding: 12px 16px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  font-size: .76rem;
  color: var(--ink-mute);
}
.email-head strong { color: var(--ink-soft); font-weight: 500; }
.email-body {
  padding: 16px;
  font-size: .84rem;
  line-height: 1.65;
  white-space: pre-wrap;
  font-family: var(--sans);
  margin: 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ sticky */

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 11px 18px calc(11px + env(safe-area-inset-bottom));
}
.sticky-bar .inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.sticky-bar .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-mute); }
.sticky-bar .value { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; margin-top: 1px; }

/* -------------------------------------------------------------------- misc */

.empty { text-align: center; padding: 40px 20px; color: var(--ink-mute); }
.empty .mark { color: var(--heart); margin-bottom: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 90px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: calc(100vw - 36px);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .86rem;
  font-weight: 400;
  letter-spacing: .02em;
  box-shadow: var(--shadow-lg);
  animation: rise .24s ease-out;
}
.toast.is-error { background: var(--bad); color: var(--on-accent); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (min-width: 640px) {
  h1 { font-size: 1.85rem; }
  main { padding-top: 30px; }
  .hero { padding: 40px 32px 34px; }
  .hero .name { font-size: 2.5rem; }
  /* Password fields carry a Show / Hide control inside the input's right edge. */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 6px 8px; border-radius: 6px;
  font: inherit; font-size: .78rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-mute); cursor: pointer;
}
.pw-toggle:hover { color: var(--accent); background: var(--accent-soft); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .field-row .field + .field { margin-top: 0; }
}

/* ==========================================================================
   Carried over from the first stylesheet: pieces the dashboard still uses.
   ========================================================================== */

input[type="number"], input[type="date"], input[type="time"], input[type="search"], select {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 15px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
select { appearance: auto; }
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field + .field { margin-top: 0; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } .field-row .field + .field { margin-top: 14px; } }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  font-size: .92rem;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--ink);
}
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--accent-deep); }

.stack > * + * { margin-top: 14px; }

.brand-mark {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.brand-name {
  font-family: var(--script);
  font-size: .98rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eyebrow {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 6px;
}

.group-label {
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .24em;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 18px 0 8px;
}
.group-label:first-child { margin-top: 0; }

.btn-gold { background: var(--accent-deep); color: var(--on-accent); }
.btn-gold:hover:not([disabled]) { background: var(--accent); }

.pill-gold { background: var(--accent-soft); color: var(--accent-deep); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.alert-success { background: var(--good-soft); color: var(--good); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }

.appt-actions { margin-top: 10px; }

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 10px 14px;
  min-height: var(--tap);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-mute);
  cursor: pointer;
  white-space: nowrap;
}
.tab.is-active { color: var(--ink); border-bottom-color: var(--accent-deep); }

.skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: var(--radius-sm);
  height: 56px;
}
.skeleton + .skeleton { margin-top: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* On a narrow phone the signed-in nav crowds the header; drop the descriptor
   line so the salon name itself stays whole. */
@media (max-width: 420px) {
  .brand .by { display: none; }
}
