/* =========================================================================
         Bookivea landing — "Signal" design system (mirrors the app).
         Source of truth: app docs/DESIGN.md + app/globals.css. Every colour is a
         token defined in BOTH themes; .dark is applied by the blocking no-flash
         script in each page's <head> (before first paint), driven by stored
         choice or prefers-color-scheme. Never hardcode a hex in a rule — it will
         be wrong in one theme.
         ========================================================================= */
:root {
  color-scheme: light;

  /* ---- structure: a cool ink scale, not a warm one ---- */
  --bg: #f0f3f8;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #e8edf5;
  --border: #dbe3ee;
  --border-strong: #78879f;
  --ink: #0a1524;
  --muted: #52627a;
  --subtle: #616e84;

  /* ---- accent: one vivid teal (fill colour; use --accent-press for text) ---- */
  --on-accent: #041a19; /* text ON accent — near-black, never white */
  --accent: #00b0a8;
  --accent-hover: #009a93;
  --accent-press: #00736e; /* the readable accent for text/icons, 5.71:1 */
  --accent-soft: #dbf6f4;
  --accent-soft-2: #bbeeea;
  --accent-softer: #eefbfa;
  --accent-ring: rgba(0, 176, 168, 0.36);

  /* ---- reservation status: semantic + load-bearing, never decorative ---- */
  --booked: #2563eb;
  --booked-soft: #dbe7fe;
  --booked-text: #1d4ed8;
  --done: #16a34a;
  --done-soft: #dcfce7;
  --done-text: #15803d;
  --cancel: #e11d48;
  --cancel-soft: #ffe4e9;
  --cancel-text: #be123c;
  --noshow: #d97706;
  --noshow-soft: #fef3c7;
  --noshow-text: #b45309;

  /* ---- categorical ramp: decoration only (avatars, category chips) ---- */
  --cat-1: #7c3aed;
  --cat-2: #0ea5e9;
  --cat-3: #c026d3;
  --cat-4: #65a30d;
  --cat-5: #92400e;
  --cat-6: #db2777;
  --cat-7: #64748b;

  /* ---- themed chrome: translucent / gradient surfaces need per-theme values ---- */
  --header-bg: rgba(240, 243, 248, 0.82);
  --scrim: rgba(10, 21, 36, 0.34);
  --hero-bloom: rgba(0, 176, 168, 0.14);
  --band-from: #dbf6f4;
  --band-to: #eefbfa;
  --cta-bg: #0a1524; /* deep ink panel, echoes the app login aside */
  --cta-fg: #ffffff;
  --cta-border: transparent;
  --cta-glow: rgba(20, 200, 190, 0.2);

  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* ---- elevation: cool-tinted to match the ink ---- */
  --sh-xs: 0 1px 2px rgba(13, 26, 48, 0.06);
  --sh-sm: 0 1px 3px rgba(13, 26, 48, 0.08), 0 1px 2px rgba(13, 26, 48, 0.04);
  --sh-md: 0 4px 12px rgba(13, 26, 48, 0.09), 0 2px 4px rgba(13, 26, 48, 0.05);
  --sh-lg: 0 12px 32px rgba(13, 26, 48, 0.13), 0 4px 10px rgba(13, 26, 48, 0.07);
  --sh-pop: 0 24px 60px rgba(8, 16, 32, 0.24);

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1140px;
}

/* =========================================================================
         Dark theme — not an inversion. Surfaces climb toward the viewer as they
         lighten; the accent gains luminance (a mid teal goes muddy on near-black);
         "soft" status fills become deep tints of their own hue; shadows flatten
         and depth is carried by borders.
         ========================================================================= */
.dark {
  color-scheme: dark;

  --bg: #070b12;
  --surface: #0e1520;
  --surface-2: #141d2b;
  --surface-3: #1c2739;
  --border: #232f44;
  --border-strong: #5d6f90;
  --ink: #e8eff9;
  --muted: #98a8bf;
  --subtle: #7d8ea6;

  --on-accent: #031615;
  --accent: #14c8be;
  --accent-hover: #34dad0;
  --accent-press: #0caaa1;
  --accent-soft: #0b2f2f;
  --accent-soft-2: #0f3e3c;
  --accent-softer: #092121;
  --accent-ring: rgba(20, 200, 190, 0.36);

  --booked: #60a5fa;
  --booked-soft: #132440;
  --booked-text: #93c5fd;
  --done: #4ade80;
  --done-soft: #0f2b1b;
  --done-text: #86efac;
  --cancel: #fb7185;
  --cancel-soft: #341420;
  --cancel-text: #fda4af;
  --noshow: #fbbf24;
  --noshow-soft: #2f220a;
  --noshow-text: #fcd34d;

  --cat-1: #a78bfa;
  --cat-2: #38bdf8;
  --cat-3: #e879f9;
  --cat-4: #a3e635;
  --cat-5: #c97b4a;
  --cat-6: #f472b6;
  --cat-7: #94a3b8;

  --header-bg: rgba(7, 11, 18, 0.82);
  --scrim: rgba(0, 0, 0, 0.65);
  --hero-bloom: rgba(20, 200, 190, 0.16);
  --band-from: #0b2f2f;
  --band-to: #071414;
  --cta-bg: #0e1726;
  --cta-fg: #ffffff;
  --cta-border: #263349;
  --cta-glow: rgba(20, 200, 190, 0.22);

  --sh-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.3);
  --sh-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.35);
  --sh-lg: 0 12px 32px rgba(0, 0, 0, 0.6), 0 4px 10px rgba(0, 0, 0, 0.4);
  --sh-pop: 0 24px 60px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
.tnum {
  font-variant-numeric: tabular-nums;
}
img,
svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 1px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0 18px;
  height: 46px;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.04s;
}
.btn:active {
  transform: translateY(0.5px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--sh-xs);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-primary:active {
  background: var(--accent-press);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--sh-xs);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-sm {
  height: 40px;
  font-size: 14px;
  padding: 0 15px;
}
.btn-lg {
  height: 52px;
  font-size: 16px;
  padding: 0 24px;
}
.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
header.site.scrolled {
  border-color: var(--border);
  box-shadow: var(--sh-xs);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex: none;
  display: block;
  object-fit: cover;
  box-shadow: var(--sh-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.14s,
    color 0.14s;
}
.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-login {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--r-md);
}
.nav-login:hover {
  background: var(--surface-2);
}
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
}

/* mobile sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--scrim);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: var(--surface);
  box-shadow: var(--sh-lg);
  z-index: 61;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sheet.open {
  transform: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet a.s-link {
  padding: 13px 12px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.sheet a.s-link:hover {
  background: var(--surface-2);
}
.sheet .divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}
.iconbtn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--muted);
}

/* ---------- generic section ---------- */
section {
  padding: 84px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-press);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  padding: 6px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.section-head {
  max-width: 620px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: 38px;
  font-weight: 800;
  margin: 18px 0 14px;
  letter-spacing: -0.03em;
}
.section-head p {
  font-size: 18px;
  color: var(--muted);
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 92px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    120% 80% at 50% -20%,
    var(--hero-bloom) 0%,
    transparent 55%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero h1 .accent {
  color: var(--accent-press);
}
.hero-sub {
  font-size: 20px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}
.trust .t-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---------- product mockup (browser window) ---------- */
.window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.win-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.win-url {
  margin-left: 10px;
  flex: 1;
  height: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11.5px;
  color: var(--subtle);
  font-weight: 600;
  gap: 6px;
}
.app {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 392px;
}
.app-rail {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.rail-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: block;
  object-fit: cover;
  margin-bottom: 8px;
}
.rail-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--subtle);
}
.rail-ico.active {
  background: var(--accent-soft);
  color: var(--accent-press);
}
.app-main {
  padding: 18px 20px;
  min-width: 0;
}
.app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.app-h {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.app-date {
  font-size: 11.5px;
  color: var(--subtle);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.2;
}
.mini-btn {
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}
.kpi {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 11px 12px;
  background: var(--surface);
}
.kpi .lbl {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi .chip {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi .val {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 7px;
}
.sched {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sched-h {
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.appt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--border);
}
.appt:last-child {
  border-bottom: none;
}
.appt .time {
  font-size: 11px;
  font-weight: 700;
  width: 38px;
  color: var(--ink);
}
.appt .av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}
.appt .who {
  flex: 1;
  min-width: 0;
}
.appt .who .n {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt .who .s {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appt .px {
  font-size: 12.5px;
  font-weight: 700;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* floating stat card on hero mockup */
.hero-media {
  position: relative;
}
.float-card {
  position: absolute;
  bottom: -26px;
  left: -28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-pop);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.float-card .ring {
  width: 42px;
  height: 42px;
  flex: none;
}
.float-card .fc-l {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.float-card .fc-v {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- social proof ---------- */
.proof {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.proof-lead {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 24px;
}
.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
  flex-wrap: wrap;
  opacity: 0.78;
}
.logo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
  transition:
    box-shadow 0.18s,
    transform 0.18s;
}
.fcard:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.fic {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent-press);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.fcard h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 7px;
  letter-spacing: -0.02em;
}
.fcard p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- how it works ---------- */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.step .num {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.step p {
  font-size: 14.5px;
  color: var(--muted);
}
.step-arrow {
  position: absolute;
  right: -16px;
  top: 42px;
  color: var(--border-strong);
  z-index: 2;
}

/* ---------- benefit band ---------- */
.band {
  background: linear-gradient(180deg, var(--band-from) 0%, var(--band-to) 100%);
  border-top: 1px solid var(--accent-soft-2);
  border-bottom: 1px solid var(--accent-soft-2);
}
.band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.band-grid > * {
  min-width: 0;
}
.band h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.band p.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 22px;
}
.band ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.band li {
  display: flex;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
}
.band li .tick {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* report card mockup */
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 22px;
}
.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.rc-title {
  font-size: 15px;
  font-weight: 800;
}
.rc-seg {
  display: inline-flex;
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}
.rc-seg span {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 7px;
  color: var(--muted);
}
.rc-seg span.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-xs);
}
.rc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.rc-kpi .l {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.rc-kpi .v {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bar-row .bl {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 5px;
}
.bar-row .bl .amt {
  font-weight: 800;
}
.track {
  height: 9px;
  background: var(--surface-2);
  border-radius: var(--r-full);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  border-radius: var(--r-full);
}

/* ---------- pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.ptier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 26px;
  box-shadow: var(--sh-sm);
  display: flex;
  flex-direction: column;
}
.ptier.popular {
  border: 1.5px solid var(--accent);
  box-shadow: var(--sh-md);
  position: relative;
}
.pop-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
  white-space: nowrap;
}
.ptier .pname {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-press);
}
.ptier .pdesc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 38px;
}
.ptier .pprice {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 14px 0 6px;
}
.ptier .pprice .amt {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ptier .pprice .per {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
}
.ptier ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ptier li {
  display: flex;
  gap: 9px;
  font-size: 14px;
  color: var(--ink);
}
.ptier li .tk {
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.ptier .btn {
  margin-top: auto;
}
.price-note {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--subtle);
}
.single-price {
  max-width: 430px;
  margin: 0 auto;
}
.ptier .price-sub {
  font-size: 13px;
  color: var(--muted);
  margin: -2px 0 2px;
}
.cur-toggle {
  display: flex;
  justify-content: center;
  gap: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 3px;
  width: max-content;
  margin: 0 auto 30px;
}
.cur-toggle button {
  font-family: var(--font);
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.14s,
    color 0.14s,
    box-shadow 0.14s;
}
.cur-toggle button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-xs);
}

/* ---------- faq ---------- */
.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}
.acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 19px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}
.acc-btn:hover {
  background: var(--surface-2);
}
.acc-ico {
  flex: none;
  transition: transform 0.22s;
  color: var(--muted);
}
.acc[open] .acc-ico,
.acc.open .acc-ico {
  transform: rotate(45deg);
  color: var(--accent-press);
}
.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.26s ease;
}
.acc.open .acc-body {
  max-height: 240px;
}
.acc-body p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- final cta ---------- */
.cta-band {
  padding: 0 0 92px;
}
.cta-inner {
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: var(--r-xl);
  padding: 60px 48px;
  text-align: center;
  color: var(--cta-fg);
  box-shadow: var(--sh-lg);
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% -10%, var(--cta-glow), transparent 60%);
  pointer-events: none;
}
.cta-inner h2 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
}
.cta-inner p {
  font-size: 18px;
  opacity: 0.86;
  margin: 14px auto 30px;
  max-width: 520px;
  position: relative;
}
.cta-inner .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  position: relative;
}
.cta-inner .btn-primary:hover {
  background: var(--accent-hover);
}
.cta-inner .btn-ghost {
  color: var(--cta-fg);
  border-color: rgba(255, 255, 255, 0.4);
  position: relative;
}
.cta-inner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- footer ---------- */
footer.site {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 280px;
}
.foot-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 14px;
}
.foot-col a {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 500;
}
.foot-col a:hover {
  color: var(--ink);
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.foot-bottom .copy {
  font-size: 13.5px;
  color: var(--subtle);
}
.gdpr {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--r-full);
}

.hide-d {
  display: none;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .feature-grid,
  .steps,
  .price-grid,
  .rc-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .step-arrow {
    display: none;
  }
}
@media (max-width: 800px) {
  .nav-links,
  .nav-right .btn,
  .nav-right .nav-login {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-grid,
  .band-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-sub {
    font-size: 18px;
  }
  .float-card {
    left: 0;
    bottom: -22px;
  }
  section {
    padding: 60px 0;
  }
  .section-head h2,
  .band h2,
  .cta-inner h2 {
    font-size: 30px;
  }
  .feature-grid,
  .steps,
  .price-grid {
    grid-template-columns: 1fr;
  }
  .price-grid {
    max-width: 420px;
  }
  .ptier.popular {
    order: -1;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-inner {
    padding: 44px 24px;
  }
  .logos {
    gap: 28px;
  }
}
@media (max-width: 520px) {
  .wrap {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .rc-kpis {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero-cta .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
  }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--muted);
  transition:
    background 0.14s,
    color 0.14s,
    border-color 0.14s;
}
.theme-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}
/* Show the icon for the theme you'd switch TO: moon in light, sun in dark. */
.theme-toggle .i-sun {
  display: none;
}
.theme-toggle .i-moon {
  display: block;
}
.dark .theme-toggle .i-sun {
  display: block;
}
.dark .theme-toggle .i-moon {
  display: none;
}
/* ---------- vertical selector (homepage) ---------- */
.vert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vert-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition:
    box-shadow 0.18s,
    transform 0.18s,
    border-color 0.18s;
}
.vert-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.vert-card .vt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vert-card .vt svg {
  color: var(--accent-press);
  flex: none;
  transition: transform 0.18s;
}
.vert-card:hover .vt svg {
  transform: translateX(3px);
}
.vert-card .vd {
  font-size: 13.5px;
  color: var(--muted);
}
@media (max-width: 920px) {
  .vert-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .vert-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- hero mockup: the day ribbon (the app's signature element) ----------
         The dashboard opens with the booked day drawn at true proportion: booked
         slots fill solid, completed ones recede to a soft fill, a live marker sits
         at the current minute. This is the one shape a salon, a clinic and a tutor
         genuinely share, so the marketing hero leans on it rather than a generic
         screenshot. */
.mk-ribbon-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px 9px;
  margin-bottom: 14px;
  background: var(--surface);
}
.mk-ribbon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.mk-ribbon-head .t {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.mk-ribbon-head .n {
  font-size: 10.5px;
  color: var(--subtle);
  font-weight: 700;
}
.mk-ribbon {
  position: relative;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-2);
  overflow: hidden;
}
.mk-seg {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.mk-now {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--accent);
  z-index: 2;
}
.mk-now::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Full-width toggle row inside the mobile sheet */
.s-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 12px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: var(--font);
}
.s-toggle:hover {
  background: var(--surface-2);
}
