/* =========================================================================
   ΥΠΑΛΛΗΛΟΣ AI
   Luxury minimalist — black/white monochrome, ultra-thin typography.
   Mobile-first responsive.
   ========================================================================= */

:root {
  /* Warm off-white paper background, deep forest green ink. */
  --bg: #f7f6f0;
  --bg-2: #f1efe6;
  --surface: #ffffff;
  --surface-2: #fafaf5;
  --line: rgba(14, 59, 46, 0.12);
  --line-strong: rgba(14, 59, 46, 0.28);
  --line-bright: rgba(14, 59, 46, 0.55);
  --text: #0e3b2e;
  --text-soft: rgba(14, 59, 46, 0.82);
  --muted: rgba(14, 59, 46, 0.6);
  --muted-2: rgba(14, 59, 46, 0.4);
  --accent: #1d6b53;
  --display: "Josefin Sans", "Jost", system-ui, sans-serif;
  --body: "Jost", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --radius: 0px;
  --radius-pill: 999px;
  --tracking-wide: 0.18em;
  --tracking-wider: 0.28em;
  --glow-soft: 0 0 10px rgba(14, 59, 46, 0.18), 0 0 22px rgba(14, 59, 46, 0.08);
  --glow-strong: 0 0 14px rgba(14, 59, 46, 0.28), 0 0 36px rgba(14, 59, 46, 0.14);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  font-weight: 300;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, p { margin-top: 0; }

/* =========================================================================
   Scroll progress (very subtle white line)
   ========================================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 0;
  height: 1px;
  background: var(--text);
  box-shadow: 0 0 10px rgba(14, 59, 46, 0.35);
}

.site-shell { position: relative; }

/* =========================================================================
   Navbar — minimalist uppercase
   ========================================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px clamp(20px, 5vw, 60px);
  background: rgba(247, 246, 240, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.navbar > .nav-links { margin-left: auto; }
.navbar > .nav-actions { margin-left: auto; }
.navbar > .nav-links + .nav-actions { margin-left: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-logo {
  width: 88px;
  height: 64px;
  object-fit: contain;
  /* Recolor to brand deep forest green (#0e3b2e) */
  filter: brightness(0) saturate(100%) invert(18%) sepia(58%) saturate(440%) hue-rotate(110deg) brightness(92%) contrast(90%);
}

.brand strong, .brand small { display: block; }

.brand strong {
  font-family: var(--display);
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
}

.brand strong em {
  font-style: normal;
  font-weight: 300;
  color: var(--text);
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.8vw, 44px);
  font-family: var(--display);
  font-weight: 200;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-shadow: var(--glow-soft);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-login::after {
  content: "→";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.25s ease;
}

.nav-login:hover {
  color: var(--text);
  text-shadow: var(--glow-soft);
}

.nav-login:hover::after { transform: translateX(3px); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: transparent;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--glow-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   Sections, headings
   ========================================================================= */
.section {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) clamp(20px, 5vw, 60px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 200;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  border-radius: 0;
  background: var(--text);
  opacity: 0.55;
}

h1 {
  max-width: 1100px;
  margin-bottom: 28px;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: none;
}

h1 span,
.section-heading h2 span {
  font-style: italic;
  font-weight: 200;
  color: var(--accent);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-heading h2,
.proof-copy h2 {
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.section-heading p:not(.eyebrow),
.proof-copy p:not(.eyebrow),
.hero-lead {
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

.section-heading .eyebrow {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: clamp(60px, 10vh, 120px);
  padding-bottom: clamp(60px, 10vh, 100px);
}

.hero-copy { position: relative; }

.hero-lead {
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
  box-shadow: var(--glow-soft);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(14, 59, 46, 0.05);
  box-shadow: var(--glow-soft);
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 640px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 22px 22px 0 0;
  border-right: 1px solid var(--line);
}

.hero-stats div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-stats strong {
  display: block;
  font-family: var(--body);
  font-weight: 200;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =========================================================================
   Hero visual — live status panel
   ========================================================================= */
.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(29, 107, 83, 0.10), transparent 60%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.clinical-photo,
.ai-orb { display: none; }

.status-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  margin-left: auto;
  padding: 32px 32px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(14, 59, 46, 0.06);
  display: grid;
  gap: 26px;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(29, 107, 83, 0.55);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(29, 107, 83, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(29, 107, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 107, 83, 0); }
}

.status-time {
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.status-block {
  display: grid;
  gap: 12px;
}

.status-label-sm {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.status-quote {
  margin: 0;
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  min-height: 1.6em;
}

.status-reply {
  margin: 0;
  position: relative;
  padding-left: 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 1.55em;
}

.status-reply::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--accent);
}

.status-feed {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.status-feed li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: baseline;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.5;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.status-feed li time {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.status-feed li.is-new {
  animation: feedIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes feedIn {
  from { opacity: 0; transform: translateY(-6px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.status-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.status-kpis div {
  text-align: left;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}

.status-kpis div:last-child {
  border-right: 0;
  padding-right: 0;
}

.status-kpis strong {
  display: block;
  color: var(--text);
  font-family: var(--body);
  font-size: 26px;
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.status-kpis span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.phone-card {
  position: relative;
  z-index: 2;
  width: min(380px, 100%);
  margin: 24px auto 0;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.phone-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px rgba(14, 59, 46, 0.08);
}

.phone-top {
  width: 60px;
  height: 4px;
  margin: 0 auto 32px;
  border-radius: 999px;
  background: var(--line-strong);
}

.call-status {
  display: grid;
  place-items: center;
  text-align: center;
}

.pulse-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--text);
  animation: pulse 2.6s ease-out infinite;
}

.pulse-ring::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(14, 59, 46, 0.35);
  border-radius: 999px;
  animation: pulseRing 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 59, 46, 0.35); }
  70% { box-shadow: 0 0 0 22px rgba(14, 59, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 59, 46, 0); }
}

@keyframes pulseRing {
  0% { transform: scale(0.88); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

.call-icon {
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
}

.status-label {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.call-status strong {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 200;
  letter-spacing: 0.02em;
}

.transcript {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}

.transcript small {
  color: var(--muted-2);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.transcript p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
}

.transcript .assistant-line {
  position: relative;
  padding-left: 14px;
  color: var(--text);
  font-weight: 300;
}

.transcript .assistant-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--text);
  box-shadow: 0 0 6px rgba(14, 59, 46, 0.35);
}

.calendar-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.calendar-strip span,
.calendar-strip em {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.calendar-strip strong {
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.calendar-strip em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.calendar-strip em::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: var(--glow-soft);
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.mini-dashboard div {
  padding: 14px 8px;
  background: var(--surface);
  text-align: center;
}

.mini-dashboard span {
  display: block;
  min-height: 22px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mini-dashboard strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 200;
  letter-spacing: -0.01em;
}

.floating-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(14, 59, 46, 0.08);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: float 7s ease-in-out infinite;
}

.floating-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: var(--glow-soft);
}

.badge-one { top: 40px; left: -8px; }
.badge-two { top: 220px; right: -14px; animation-delay: 1.6s; }
.badge-three { bottom: 60px; left: 0; animation-delay: 3.2s; }

/* =========================================================================
   Ticker
   ========================================================================= */
.ticker {
  display: flex;
  width: 100%;
  padding: 26px 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.ticker div {
  display: flex;
  min-width: max-content;
  gap: 64px;
  padding-right: 64px;
  animation: ticker 50s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ticker span::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 0;
  background: var(--text);
  transform: rotate(45deg);
}

/* =========================================================================
   Cards — shared base
   ========================================================================= */
.metric-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.metric-grid article,
.feature-grid article,
.steps article,
.pricing-card,
.quote-card,
.audio-panel,
.calculator,
.faq-list details,
.content-card,
.seo-copy,
.inline-cta,
.cta-panel {
  position: relative;
  background: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Metric cards — borderless, separated by hairlines */
.metric-grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-grid article {
  padding: 48px 36px;
  text-align: left;
  border-right: 1px solid var(--line);
}

.metric-grid article:last-child { border-right: 0; }

.metric-grid strong,
.metric-grid span {
  display: inline-block;
  font-family: var(--body);
  color: var(--text);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 100;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-grid p {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* Feature grid — hairline cells */
.feature-grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article:hover {
  background: rgba(14, 59, 46, 0.04);
}

.feature-grid article span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.3em;
}

.feature-grid article.is-hidden { display: none; }

.feature-grid h3,
.steps h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.feature-grid p,
.steps p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

/* Steps — same hairline grid */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.steps article {
  padding: 40px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.steps article span {
  display: block;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 200;
  letter-spacing: 0.3em;
}

.steps article.active {
  background: rgba(14, 59, 46, 0.05);
}

.steps article.active span {
  color: var(--text);
  text-shadow: var(--glow-soft);
}

.steps article:hover {
  background: rgba(14, 59, 46, 0.04);
}

/* =========================================================================
   Demo / audio
   ========================================================================= */
.audio-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 48px;
  border: 1px solid var(--line);
  text-align: center;
}

.waveform {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  height: 110px;
  margin-bottom: 28px;
}

.waveform span {
  width: 2px;
  height: 12px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.35;
  transition: height 0.18s ease, opacity 0.18s ease;
}

.waveform.playing span {
  opacity: 1;
  animation: wave 0.78s ease-in-out infinite;
}

.play-button {
  width: 84px;
  height: 84px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-size: 22px;
  font-weight: 200;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.play-button:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow: var(--glow-strong);
  transform: scale(1.04);
}

.audio-meta {
  max-width: 620px;
  margin: 28px auto 0;
}

.audio-meta > span {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.progress-track {
  position: relative;
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
}

.progress-track div {
  width: 0;
  height: 100%;
  background: var(--text);
  box-shadow: 0 0 6px rgba(14, 59, 46, 0.35);
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   ROI Calculator
   ========================================================================= */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 48px;
  border: 1px solid var(--line);
}

.calculator label {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.calculator label > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text);
  font-family: var(--body);
  font-size: 28px;
  font-weight: 200;
  letter-spacing: -0.01em;
  text-transform: none;
}

.calculator label > span > span { color: var(--text); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 1px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  box-shadow: var(--glow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--glow-strong);
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  cursor: pointer;
}

.roi-result {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.roi-result span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.roi-result strong {
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 100;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Rich ROI summary (lose / save / mini stats) ---------- */
.roi-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.roi-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: rgba(14, 59, 46, 0.02);
}

.roi-stat-label {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.roi-stat strong {
  font-family: var(--body);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 100;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.roi-stat small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roi-stat-lose strong {
  color: var(--text-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(14, 59, 46, 0.35);
}

.roi-stat-save {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}

.roi-stat-save .roi-stat-label,
.roi-stat-save small {
  color: rgba(247, 246, 240, 0.65);
}

.roi-stat-save strong {
  color: var(--surface);
}

.roi-mini-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-top: 0;
  margin-top: -24px;
}

.roi-mini {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  text-align: left;
}

.roi-mini:last-child { border-right: 0; }

.roi-mini strong {
  font-family: var(--body);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 200;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.roi-mini span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.roi-vat-note {
  max-width: 1080px;
  margin: 18px auto 0;
  padding: 0 4px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
}

/* =========================================================================
   CTA badges & form notes
   ========================================================================= */
.cta-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: #f7f6f0;
  color: #0e3b2e;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  border-radius: 999px;
  vertical-align: middle;
}

.nav-cta:hover .cta-badge {
  background: var(--accent);
  color: #f7f6f0;
}

.free-badge {
  display: inline-block;
  padding: 2px 7px !important;
  background: var(--accent);
  color: #f7f6f0;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.form-note {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

.form-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =========================================================================
   Calendly inline widget on /kleise-demo/
   ========================================================================= */
.calendly-section { padding-top: 24px; }

.calendly-wrapper {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--surface, #f7f6f0);
  border: 1px solid var(--line);
  overflow: hidden;
}

.calendly-inline-widget { width: 100%; }

.calendly-note {
  max-width: 1080px;
  margin: 18px auto 0;
  text-align: center;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendly-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   Testimonials section
   ========================================================================= */
.testimonials-section { padding-top: 32px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 28px;
  background: var(--surface, #f7f6f0);
  border: 1px solid var(--line);
  position: relative;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.testimonial-quote {
  margin: 0;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.testimonial-quote::before {
  content: "“";
  font-family: var(--display);
  font-size: 56px;
  font-weight: 200;
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.testimonial-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--text);
  margin-bottom: 2px;
}

.testimonial-meta span {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

@media (max-width: 980px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Contact section — co-founders + channels
   ========================================================================= */
.contact-section { padding-top: 96px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto 32px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 36px 32px 32px;
  background: rgba(14, 59, 46, 0.02);
  border: 1px solid var(--line);
}

.contact-role {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.contact-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 200;
  color: var(--text);
  letter-spacing: 0.01em;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-link:hover {
  background: var(--text);
  color: var(--surface);
}

.contact-icon { font-size: 14px; line-height: 1; }

.contact-channels {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.contact-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-channel:last-child { border-right: 0; }
.contact-channel:hover { background: rgba(14, 59, 46, 0.04); }

.contact-channel-label {
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-channel strong {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  word-break: break-word;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .contact-channel { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-channel:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .roi-summary { grid-template-columns: 1fr; gap: 14px; }
  .roi-mini-row { grid-template-columns: 1fr; margin-top: -14px; }
  .roi-mini { border-right: 0; border-bottom: 1px solid var(--line); }
  .roi-mini:last-child { border-bottom: 0; }
  .roi-vat-note { text-align: left; }
}

/* =========================================================================
   Filter row / toggles
   ========================================================================= */
.filter-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-row button,
.toggle-line button {
  min-height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-family: var(--display);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.filter-row button:hover,
.toggle-line button:hover {
  color: var(--text);
}

.filter-row button.active,
.toggle-line button.active {
  color: var(--bg);
  background: var(--text);
  box-shadow: var(--glow-soft);
}

.toggle-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 28px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.section-heading .toggle-line {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================================
   Proof + quote
   ========================================================================= */
.proof-section {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.proof-copy { max-width: 620px; }

.quote-card {
  padding: 48px 44px;
  border: 1px solid var(--line);
}

.quote-card p {
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
  font-weight: 200;
  letter-spacing: 0.005em;
}

.quote-card strong {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =========================================================================
   Pricing
   ========================================================================= */
.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-card.featured {
  background: rgba(14, 59, 46, 0.05);
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.01em;
}

.pricing-card .subtitle {
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
}

.price {
  margin: 28px 0 4px;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price small {
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.setup {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pricing-card ul {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--text);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-note {
  margin-top: 28px;
  color: var(--muted-2);
  text-align: center;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
  display: grid;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list details {
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding-right: 40px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  letter-spacing: 0.01em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 16px;
  font-weight: 200;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-list details[open] summary::after {
  content: "\2212";
  background: var(--text);
  color: var(--bg);
}

.faq-list p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
}

/* =========================================================================
   CTA panel + form
   ========================================================================= */
.cta-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 48px;
  border: 1px solid var(--line);
}

/* Desktop only: keep the kleise-demo demo form a focused, centered card so it
   doesn't stretch edge-to-edge. Mobile layout is intentionally untouched. */
/* Show the demo form immediately on every screen — no scroll-reveal fade. */
#formStep .cta-panel.reveal { opacity: 1; transform: none; }

@media (min-width: 900px) {
  #formStep .cta-panel { max-width: 640px; padding: 48px 44px; }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* `display: grid` above otherwise overrides the [hidden] attribute, so hidden
   form labels (e.g. the "Άλλο" free-text field) would stay visible. */
form label[hidden] { display: none; }

input, select, textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  outline: none;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: border-color 0.25s ease;
}

input, select { height: 52px; padding: 0 2px; }
textarea {
  min-height: 130px;
  margin-top: 22px;
  padding: 14px 2px;
  resize: vertical;
}

input::placeholder, textarea::placeholder {
  color: var(--muted-2);
  font-weight: 300;
}

input:focus, select:focus, textarea:focus {
  border-bottom-color: var(--text);
  box-shadow: 0 1px 0 0 rgba(14, 59, 46, 0.35);
}

select { appearance: none; -webkit-appearance: none; }
select option { color: var(--text); background: var(--bg); }

.form-submit { width: 100%; margin-top: 32px; }

.form-status {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--text);
  text-align: center;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1320px;
  margin: 80px auto 0;
  padding: 36px clamp(20px, 5vw, 60px) 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-copyright {
  margin-top: 6px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: none;
  opacity: 0.7;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-legal a,
.footer-legal .footer-link-btn {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal .footer-link-btn:hover {
  color: var(--text);
}

/* "CLINICBRAIN" external link — used both in navbar (.brand-by) and footer (.brand-by-link) */
.brand-by,
.brand-by-link {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.brand-by:hover,
.brand-by-link:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.brand-by:focus-visible,
.brand-by-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-legal {
    margin-left: 0;
    gap: 14px;
  }
}

/* =========================================================================
   Legal pages (privacy / cookies / terms)
   ========================================================================= */
.legal-section {
  padding-top: 0;
}

.legal-body {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text);
}

.legal-body h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 200;
  margin: 56px 0 16px;
  color: var(--text);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 300;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-body p { margin: 0 0 14px; }

.legal-body ul {
  padding-left: 22px;
  margin: 0 0 18px;
}

.legal-body li { margin-bottom: 8px; }

.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-body a:hover { color: var(--text); }

.legal-meta {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-callout {
  background: rgba(29, 107, 83, 0.06);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 13.5px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table th {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(14, 59, 46, 0.02);
}

/* =========================================================================
   Cookie banner (bottom-left, small) + settings modal
   ========================================================================= */
.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 9000;
  width: min(380px, calc(100vw - 40px));
  background: var(--surface, #f7f6f0);
  border: 1px solid var(--line-strong, rgba(14, 59, 46, 0.18));
  box-shadow: 0 12px 36px rgba(14, 59, 46, 0.12);
  padding: 18px 18px 16px;
  font-family: var(--body);
  color: var(--text);
  animation: cookieRise 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cookieRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cookie-banner-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.cookie-banner-text {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-soft, var(--text));
}

.cookie-banner-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 14px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-btn:hover { background: var(--text); color: var(--surface, #f7f6f0); }

.cookie-btn-primary {
  background: var(--text);
  color: var(--surface, #f7f6f0);
}

.cookie-btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface, #f7f6f0);
}

.cookie-btn-ghost { border-color: var(--line-strong, rgba(14, 59, 46, 0.18)); }

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 59, 46, 0.5);
  backdrop-filter: blur(2px);
}

.cookie-modal-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--surface, #f7f6f0);
  border: 1px solid var(--line-strong, rgba(14, 59, 46, 0.18));
  box-shadow: 0 24px 60px rgba(14, 59, 46, 0.25);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.cookie-modal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 0.01em;
}

.cookie-modal-close {
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.cookie-modal-close:hover { color: var(--text); }

.cookie-modal-body {
  padding: 18px 22px 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
}

.cookie-modal-body > p { margin: 0 0 14px; color: var(--text-soft, var(--text)); }

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.cookie-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cookie-row strong {
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-row small {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-soft, var(--muted));
  line-height: 1.5;
}

.cookie-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--line-strong, rgba(14, 59, 46, 0.18));
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  margin-top: 2px;
  transition: background 0.2s ease;
}

.cookie-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--surface, #f7f6f0);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.cookie-row input[type="checkbox"]:checked {
  background: var(--accent);
}

.cookie-row input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

.cookie-row input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cookie-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1; }
}

/* =========================================================================
   Subpages
   ========================================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--text);
  transition: text-shadow 0.25s ease;
}

.breadcrumb a:hover { text-shadow: var(--glow-soft); }

.page-hero {
  padding-top: clamp(60px, 10vh, 110px);
  padding-bottom: clamp(40px, 8vh, 80px);
}

.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 100;
}

.page-hero .hero-lead { max-width: 780px; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.content-grid.two { grid-template-columns: repeat(2, 1fr); }

.content-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content-card:hover { background: rgba(14, 59, 46, 0.04); }

.content-card h2,
.content-card h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.content-card p,
.seo-copy p,
.page-list li {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
}

.seo-copy {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--line);
}

.seo-copy h2, .seo-copy h3 {
  color: var(--text);
  margin-bottom: 14px;
  font-family: var(--body);
  font-weight: 200;
  letter-spacing: 0.005em;
}

.page-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-list li {
  position: relative;
  padding-left: 26px;
}

.page-list li::before {
  content: "";
  position: absolute;
  top: 0.85em;
  left: 0;
  width: 14px;
  height: 1px;
  background: var(--text);
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 40px;
  padding: 40px;
  border: 1px solid var(--line);
}

.inline-cta h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 200;
  letter-spacing: 0.005em;
}

.inline-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* =========================================================================
   Reveal animation — fade + subtle blur (luxury feel)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
  transition:
    opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* =========================================================================
   Keyframes
   ========================================================================= */
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes wave {
  0%, 100% { height: 12px; }
  50% { height: 64px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }

  .hero,
  .proof-section { grid-template-columns: 1fr; gap: 50px; }

  .content-grid,
  .content-grid.two { grid-template-columns: 1fr; }

  .metric-grid,
  .feature-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }

  .hero-visual { min-height: auto; }
  .hero-visual::before { display: none; }

  /* Hairline cells on 2-col layout */
  .feature-grid article:nth-child(2n) { border-right: 1px solid var(--line); }
  .metric-grid article { border-right: 1px solid var(--line); }
  .metric-grid article:nth-child(2n) { border-right: 1px solid var(--line); }
}

/* Mobile menu drawer */
@media (max-width: 1080px) {
  .navbar { position: relative; }

  .navbar.open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .navbar.open .nav-links a {
    padding: 14px clamp(20px, 5vw, 60px);
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .navbar.open .nav-links a.active {
    background: rgba(14, 59, 46, 0.05);
  }

}

@media (max-width: 720px) {
  .navbar { padding: 18px 20px; gap: 12px; }
  .brand strong { font-size: 12px; letter-spacing: 0.26em; }
  .brand small { display: none; }
  .nav-actions { gap: 10px; }
  .nav-cta { display: none; }
  .nav-login { font-size: 10.5px; letter-spacing: 0.2em; }

  .section { padding: 72px 18px; }

  .hero { gap: 40px; padding-top: 40px; padding-bottom: 30px; min-height: auto; }

  h1 { font-size: clamp(34px, 9vw, 50px); }
  .section-heading h2 { font-size: clamp(26px, 7vw, 38px); }
  .section-heading { margin-bottom: 44px; }

  .hero-lead,
  .section-heading p:not(.eyebrow) { font-size: 15px; line-height: 1.75; }

  .hero-stats,
  .metric-grid,
  .feature-grid,
  .pricing-grid,
  .steps,
  .form-grid,
  .calculator {
    grid-template-columns: 1fr;
  }

  .hero-stats { max-width: 100%; }
  .hero-stats div {
    padding: 22px 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-stats div:last-child { border-bottom: 0; }

  .hero-visual { min-height: auto; padding: 10px 0 20px; }
  .phone-card { width: 100%; max-width: 380px; margin: 12px auto 0; padding: 24px; }
  .floating-badge { display: none; }

  .status-panel {
    max-width: 100%;
    margin: 0 auto;
    padding: 28px 22px 24px;
  }
  .status-time { font-size: 16px; }
  .status-quote { font-size: 14px; }
  .status-reply { font-size: 14.5px; }
  .status-feed li { grid-template-columns: 48px 1fr; font-size: 13px; }
  .status-kpis strong { font-size: 22px; }

  .metric-grid article,
  .feature-grid article,
  .steps article,
  .pricing-card,
  .content-card { border-right: 0; }

  .ticker div { gap: 36px; padding-right: 36px; }
  .ticker span { font-size: 10px; letter-spacing: 0.22em; gap: 14px; }

  .audio-panel { padding: 40px 24px; }
  .audio-panel .waveform { height: 90px; gap: 3px; }
  .play-button { width: 74px; height: 74px; font-size: 20px; }

  .calculator { padding: 36px 24px; gap: 28px; }
  .roi-result { flex-direction: column; align-items: flex-start; gap: 14px; }

  .inline-cta, .footer {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .inline-cta { padding: 30px 24px; }
  .inline-cta .btn { width: 100%; }

  .quote-card { padding: 32px 26px; }

  .cta-panel { padding: 36px 24px; }
  .pricing-card { min-height: auto; padding: 36px 26px; }
  .seo-copy { padding: 32px 24px; }

  .filter-row { width: 100%; justify-content: center; }
  .filter-row button { font-size: 10px; padding: 0 16px; min-height: 36px; }

  .hero-actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 20px; font-size: 10.5px; letter-spacing: 0.2em; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

/* =========================================================================
   Login page
   ========================================================================= */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 90px);
  padding: clamp(40px, 8vh, 80px) 22px;
}

.login-stack {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 24px;
}

.login-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 6px;
  text-align: center;
}

.login-brand img {
  width: 112px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(58%) saturate(440%) hue-rotate(110deg) brightness(92%) contrast(90%);
}

.login-brand strong {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text);
}

.login-brand small {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.login-headline {
  text-align: center;
  margin-bottom: 8px;
}

.login-headline h1 {
  margin: 0 0 10px;
  font-family: var(--body);
  font-size: clamp(34px, 4.5vw, 46px);
  font-weight: 200;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.login-headline p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-card {
  position: relative;
  padding: 32px 30px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 60px rgba(14, 59, 46, 0.06);
}

.login-card form {
  display: grid;
  gap: 22px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.login-card .field {
  position: relative;
}

.login-card .field svg,
.login-card .field .field-icon {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.login-card input {
  padding-left: 26px;
  height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
}

.login-card input:focus {
  border-bottom-color: var(--text);
  box-shadow: 0 1px 0 0 rgba(14, 59, 46, 0.35);
}

.login-card .password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-card .password-toggle:hover { color: var(--text); }

.login-card .btn {
  width: 100%;
  margin-top: 4px;
}

.login-status {
  min-height: 22px;
  margin: 0;
  color: var(--text);
  text-align: center;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-secondary {
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}

.login-secondary .icon-pill {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 18px;
}

.login-secondary h2 {
  margin: 0 0 8px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.005em;
  color: var(--text);
}

.login-secondary p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.login-secondary .btn { width: 100%; }

.login-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px auto 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  justify-self: center;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.login-back::before {
  content: "←";
  font-size: 14px;
  letter-spacing: 0;
  transition: transform 0.25s ease;
}

.login-back:hover {
  color: var(--text);
  text-shadow: var(--glow-soft);
}

.login-back:hover::before { transform: translateX(-3px); }

@media (max-width: 720px) {
  .login-page { padding: 30px 18px 60px; min-height: auto; }
  .login-card { padding: 26px 22px; }
  .login-secondary { padding: 24px 22px 26px; }
  .login-stack { gap: 20px; }
}

/* =========================================================================
   Dashboard (app shell)
   ========================================================================= */
.dash-body {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
  background: var(--bg);
}

.dash-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.dash-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.dash-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-family: var(--display);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.dash-profile-meta { min-width: 0; }

.dash-profile-name {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.dash-profile-email {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.dash-nav {
  flex: 1;
  display: grid;
  gap: 2px;
  padding: 16px 14px;
  align-content: start;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-nav a:hover {
  color: var(--text);
  background: rgba(14, 59, 46, 0.04);
}

.dash-nav a.active {
  color: var(--surface);
  background: var(--text);
}

.dash-nav a .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dash-nav a .badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 10px;
  font-weight: 600;
}

.dash-nav a.active .badge { background: var(--surface); color: var(--text); }

.dash-sidebar-foot {
  padding: 14px 14px 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.dash-agent-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(14, 59, 46, 0.04);
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dash-agent-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted-2);
}

.dash-agent-status.is-online .dot {
  background: var(--accent);
  animation: livePulse 2s ease-out infinite;
}

.dash-agent-status.is-offline .dot { background: #c44; }

.dash-plan-pill {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-plan-pill:hover {
  background: rgba(14, 59, 46, 0.04);
  border-color: var(--accent);
}

.dash-plan-pill strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dash-plan-pill span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 300;
}

.dash-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-logout:hover { color: var(--text); background: rgba(14, 59, 46, 0.04); }

.dash-logout svg { width: 16px; height: 16px; }

/* Hide drawer backdrop by default — only visible on mobile when drawer is open */
.dash-backdrop { display: none; }

/* Main area */
.dash-main {
  min-width: 0;
  padding: clamp(20px, 3vw, 40px);
}

.dash-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.dash-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.dash-mobile-brand img {
  width: 48px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(18%) sepia(58%) saturate(440%) hue-rotate(110deg) brightness(92%) contrast(90%);
}

.dash-mobile-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Header row */
.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.dash-header h1 {
  margin: 0 0 6px;
  font-family: var(--body);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dash-header .greeting-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dash-header-actions { display: flex; gap: 10px; }

.dash-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-icon-btn:hover {
  background: rgba(14, 59, 46, 0.04);
  border-color: var(--accent);
}

.dash-icon-btn svg { width: 18px; height: 18px; }

.dash-icon-btn.is-syncing svg { animation: spin 0.9s linear infinite; }

@keyframes spin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* Quick actions */
.dash-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.dash-quick button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.25s ease, background 0.2s ease;
}

.dash-quick button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.dash-quick button.is-primary {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.dash-quick button.is-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.dash-quick button svg { width: 18px; height: 18px; flex-shrink: 0; }

/* KPI cards */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.dash-kpis article {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.dash-kpis .kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dash-kpis .kpi-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.dash-kpis .kpi-icon svg { width: 16px; height: 16px; }

.dash-kpis .kpi-trend {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dash-kpis .kpi-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dash-kpis .kpi-value strong {
  font-family: var(--body);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.dash-kpis .kpi-value small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.dash-kpis .kpi-label {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Main grid: chart + sidebar widgets */
.dash-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* Setup / onboarding banner — shown until all 3 steps are done. Without these
   rules the step <svg> icons had no size and expanded to full width. */
.setup-banner {
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 22px;
}
.setup-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.setup-banner-head h2 {
  margin: 0 0 4px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
}
.setup-banner-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.setup-banner-progress {
  flex: none;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--accent);
  white-space: nowrap;
}
.setup-banner-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.setup-step:first-child { border-top: none; }
.setup-step-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--accent);
}
.setup-step-icon svg { width: 20px; height: 20px; display: block; }
.setup-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.setup-step-body strong { font-weight: 500; font-size: 14.5px; color: var(--text); }
.setup-step-status { color: var(--muted); font-size: 13px; line-height: 1.5; }
.setup-step > .btn { flex: none; }
.setup-step.is-done .setup-step-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.setup-step.is-done .setup-step-body strong { color: var(--muted); }
@media (max-width: 560px) {
  .setup-step { flex-wrap: wrap; }
  .setup-step > .btn { width: 100%; margin-left: 54px; }
}

.dash-card {
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dash-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card-head h2 {
  margin: 0 0 4px;
  font-family: var(--body);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.dash-card-head p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dash-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dash-card-link::after { content: "→"; transition: transform 0.2s ease; }
.dash-card-link:hover { color: var(--accent); }
.dash-card-link:hover::after { transform: translateX(3px); }

/* Bar chart — Y-axis with numeric ticks, horizontal gridlines, solid bars.
   Layout: [yaxis 36px] [plot]. Gridlines render via 4 equal-height rows
   plus a baseline; bars sit absolutely positioned over the plot area so
   the heights and the tick spacing share the same axis max. */
.dash-chart {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  height: 260px;
  padding: 18px 4px 8px 0;
}

.chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 26px; /* leave room for the day labels under the bars */
  font-size: 11px;
  color: var(--muted);
}

.chart-plot {
  position: relative;
  display: grid;
  grid-template-rows: repeat(4, 1fr) 26px;
}

.chart-gridline {
  border-bottom: 1px dashed rgba(14, 59, 46, 0.12);
}
.chart-gridline:nth-last-child(2) {
  border-bottom-color: rgba(14, 59, 46, 0.28);
  border-bottom-style: solid;
}
.chart-gridline:last-child { border-bottom: 0; }

.chart-bars {
  position: absolute;
  inset: 0 0 26px 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  z-index: 1;
}

.chart-day {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.chart-day .bar {
  position: relative;
  width: 100%;
  background: #1d6b53;
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.18s, filter 0.18s;
  cursor: default;
}
.chart-day .bar:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
}

.chart-day .bar-value {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.chart-day .bar-label {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Calls list / apt list */
.dash-list { display: grid; gap: 0; }

.dash-list-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.dash-list-item:last-child { border-bottom: 0; }

.dash-list-item .avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
}

.dash-list-item .avatar.has-glow {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.dash-list-item .meta { min-width: 0; }

.dash-list-item .meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-list-item .name {
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.dash-list-item .sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-list-item .time {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dash-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dash-tag.is-success { border-color: var(--accent); color: var(--accent); }
.dash-tag.is-info { border-color: var(--line-strong); }
.dash-tag.is-warning { border-color: #b48a25; color: #8a6919; }
.dash-tag.is-danger { border-color: #c44; color: #b04444; }

.dash-empty {
  padding: 36px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.dash-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  opacity: 0.4;
}

/* Usage card */
.dash-usage .usage-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}

.dash-usage .usage-big strong {
  font-family: var(--body);
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 200;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.dash-usage .usage-big span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.dash-usage .usage-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(14, 59, 46, 0.1);
  overflow: hidden;
  margin-bottom: 10px;
}

.dash-usage .usage-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--text);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dash-usage .usage-fill.near-limit { background: #b48a25; }

.dash-usage .usage-pct-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.dash-usage .usage-pct-row .pct { color: var(--text); }

.dash-usage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.dash-usage li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.dash-usage li:first-child { padding-top: 0; border-top: 0; }

.dash-usage li strong {
  color: var(--text);
  font-weight: 400;
}

/* Banner */
.dash-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid #b48a25;
  background: rgba(180, 138, 37, 0.08);
  color: #6a5212;
  font-size: 14px;
}

.dash-banner svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Today apts strip */
.dash-today {
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--accent);
  background: rgba(29, 107, 83, 0.06);
}

.dash-today-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

.dash-today-head .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  animation: livePulse 2s ease-out infinite;
}

.dash-today-list { display: flex; flex-wrap: wrap; gap: 10px; }

.dash-today-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dash-today-item .avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-family: var(--display);
  font-size: 10px;
}

.dash-today-item .meta strong {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
}

.dash-today-item .meta span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.dash-today-item.is-next {
  border-color: var(--accent);
  background: rgba(29, 107, 83, 0.06);
}

.dash-today-tag {
  display: inline-flex !important;
  margin-top: 0 !important;
  padding: 1px 7px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent) !important;
  font-family: var(--display);
  font-size: 9px !important;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

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

.dash-action-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.dash-action-item:last-child { border-bottom: 0; }

.dash-action-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.dash-action-item.is-warning .dash-action-dot { background: #b48a25; }
.dash-action-item.is-danger .dash-action-dot { background: #c44; }
.dash-action-item.is-info .dash-action-dot { background: var(--line-bright); }

.dash-action-item strong,
.dash-action-empty strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.dash-action-item span:not(.dash-action-dot),
.dash-action-empty span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.dash-action-empty {
  padding: 22px 0 6px;
}

.dash-empty-compact {
  padding: 18px 0 4px;
  text-align: left;
}

.dash-performance-card {
  margin-bottom: 24px;
}

.dash-metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.dash-metric-strip div {
  min-width: 0;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.dash-metric-strip div:last-child { border-right: 0; }

.dash-metric-strip span {
  display: block;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dash-metric-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Skeletons */
.dash-skeleton {
  height: 14px;
  border-radius: 4px;
  background: rgba(14, 59, 46, 0.08);
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Modal */
.dash-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 59, 46, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.dash-modal.is-open { display: flex; }

.dash-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 28px 28px 24px;
  position: relative;
}

.dash-modal-card h2 {
  margin: 0 0 22px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

.dash-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.dash-modal-close:hover { color: var(--text); }

.dash-modal-card form {
  display: grid;
  gap: 18px;
}

.dash-modal-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dash-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.dash-modal-actions .btn { flex: 1; min-width: 0; }

/* Danger button (Διαγραφή) lives on its own row below the primary actions */
.dash-modal-actions .btn-danger {
  flex-basis: 100%;
  order: 99;
  margin-top: 4px;
}

/* On phones the two side-by-side actions (Αναβάθμιση / Ακύρωση) overflow and
   overlap — stack them full-width instead. */
@media (max-width: 520px) {
  .dash-modal-actions { flex-direction: column; }
  .dash-modal-actions .btn { flex: 1 1 auto; width: 100%; }
}

/* Toolbar (search + pills) */
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.dash-search {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.dash-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.dash-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 0;
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
}

.dash-search input:focus {
  outline: none;
  border-color: var(--accent);
}

.dash-pills {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 4px;
  background: var(--surface);
  gap: 2px;
}

.dash-pills button {
  border: 0;
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.dash-pills button:hover { color: var(--text); }

.dash-pills button.active {
  background: var(--text);
  color: var(--surface);
}

.dash-view-toggle {
  margin-left: auto;
}

.dash-view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dash-view-toggle button svg {
  width: 14px;
  height: 14px;
}

/* Appointments calendar grid */
.apts-cal-card {
  padding: 0;
  overflow: hidden;
}

.apts-cal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.apts-cal-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 200;
  letter-spacing: 0.005em;
  color: var(--text);
}

.apts-cal-count {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.apts-cal-head .dash-icon-btn {
  width: 32px;
  height: 32px;
}

.apts-cal-today {
  margin-left: auto;
  width: auto !important;
  padding: 0 14px;
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.apts-cal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.apts-cal-summary div {
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.apts-cal-summary div:last-child { border-right: 0; }

.apts-cal-summary span {
  display: block;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.apts-cal-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apts-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px 0 6px;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.apts-cal-weekdays span {
  text-align: center;
}

.apts-cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

.apts-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(96px, auto);
  background: var(--line);
  gap: 1px;
  border-top: 1px solid var(--line);
}

.apts-cal-cell {
  position: relative;
  background: var(--card, #ffffff);
  padding: 8px 8px 10px;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.apts-cal-cell:hover {
  background: rgba(29, 107, 83, 0.04);
}

.apts-cal-cell.is-selected {
  background: rgba(29, 107, 83, 0.08);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.apts-cal-cell.is-other {
  background: rgba(14, 59, 46, 0.02);
  cursor: default;
}

.apts-cal-cell.is-other .day-num {
  color: var(--muted);
}

.apts-cal-cell .day-num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 300;
  color: var(--text);
  align-self: flex-end;
  line-height: 1;
}

.apts-cal-cell.is-today .day-num {
  background: var(--text);
  color: var(--surface);
  padding: 4px 8px;
  border-radius: 999px;
}

.day-count {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 400;
}

.apt-chip-stack {
  display: grid;
  gap: 4px;
  margin-top: auto;
}

.apt-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 300;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(29, 107, 83, 0.1);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 1px solid rgba(29, 107, 83, 0.12);
  transition: background 0.18s ease;
}
.apt-chip:hover { background: rgba(29, 107, 83, 0.22); }

.apt-chip strong {
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.apt-chip.is-past {
  opacity: 0.55;
  text-decoration: line-through;
}

.dash-list-item.is-clickable { cursor: pointer; }
.dash-list-item.is-clickable:hover { background: rgba(14, 59, 46, 0.03); }

/* Hide the Transcript field in the Edit Call modal when the plan is locked. */
body:not(.plan-has-transcripts) .dash-plan-transcript { display: none; }

/* In-dashboard upgrade modal — opened from sidebar pill, billing CTA, home QA. */
.dash-upgrade-card { max-width: 920px; padding-top: 48px; }
.dash-modal-close.is-top-left { left: 14px; right: auto; }
.dash-upgrade-sub {
  margin: 4px 0 18px;
  color: rgba(14, 59, 46, 0.7);
  font-size: 0.95rem;
}
.dash-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dash-upgrade-plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-upgrade-plan.is-current { border-color: #1d6b53; background: rgba(29, 107, 83, 0.04); }
.dash-upgrade-plan header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-upgrade-plan h3 { margin: 0; font-size: 1.05rem; }
.dash-upgrade-plan .upgrade-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.dash-upgrade-plan .upgrade-price .strike {
  text-decoration: line-through;
  color: rgba(14, 59, 46, 0.45);
  font-size: 1rem;
}
.dash-upgrade-plan .upgrade-price strong {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}
.dash-upgrade-plan .upgrade-price small { color: rgba(14, 59, 46, 0.6); }
.dash-upgrade-plan .upgrade-save {
  font-size: 0.78rem;
  color: #1d6b53;
  background: rgba(29, 107, 83, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.dash-upgrade-plan ul {
  list-style: none;
  margin: 4px 0 14px;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: rgba(14, 59, 46, 0.78);
}
.dash-upgrade-plan ul li::before { content: "✓ "; color: #1d6b53; font-weight: 700; }
.dash-upgrade-plan .btn { margin-top: auto; }
.dash-upgrade-foot {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(14, 59, 46, 0.6);
  text-align: center;
}
.dash-upgrade-foot a { color: var(--text); }
@media (max-width: 720px) {
  .dash-upgrade-grid { grid-template-columns: 1fr; }
}

/* Contact list inside the cancel-subscription modal. */
.dash-contact-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dash-contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(14, 59, 46, 0.03);
}
.dash-contact-list li span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(14, 59, 46, 0.55);
}
.dash-contact-list li a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.dash-contact-list li a:hover { text-decoration: underline; }

/* Lock icon next to a sidebar nav link when the plan can't reach it. */
.dash-nav a[data-locked] { position: relative; }
.dash-nav a[data-locked]::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: auto;
  background: currentColor;
  opacity: 0.5;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'><rect x='3' y='11' width='18' height='11' rx='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>") center/contain no-repeat;
}

/* Locked feature page — blurred preview behind a frosted upsell overlay. */
.dash-locked {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 360px;
}
.dash-locked-preview {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  display: grid;
  gap: 12px;
  padding: 4px;
}
.dash-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  text-align: center;
  background: rgba(247, 246, 240, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dash-locked-overlay h2 { margin: 0; font-size: 1.25rem; color: var(--text); }
.dash-locked-overlay p {
  margin: 0;
  max-width: 460px;
  font-size: 0.95rem;
  color: rgba(14, 59, 46, 0.7);
  line-height: 1.5;
}
.dash-locked-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 59, 46, 0.08);
  color: #1d6b53;
}

/* Plan-features card on the Settings page — shows included vs locked rows. */
.dash-plan-features {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.dash-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text);
}
.dash-plan-features li svg {
  flex: 0 0 16px;
  color: rgba(14, 59, 46, 0.6);
}
.dash-plan-features li.is-included svg {
  color: #1d6b53;
}
.dash-plan-features li.is-locked {
  color: rgba(14, 59, 46, 0.45);
}
.dash-plan-features li.is-locked svg {
  color: rgba(14, 59, 46, 0.35);
}
.dash-plan-card #settingsPlanUpgrade {
  margin-top: 14px;
  align-self: flex-start;
}

/* Past (completed) appointments — faded with strikethrough across the row. */
.dash-list-item.is-past,
.dash-today-item.is-past {
  opacity: 0.55;
  transition: opacity 320ms ease;
}
.dash-list-item.is-past .name,
.dash-list-item.is-past .sub,
.dash-today-item.is-past .meta strong,
.dash-today-item.is-past .meta span {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(14, 59, 46, 0.55);
}
.dash-list-item.is-past .avatar,
.dash-today-item.is-past .avatar {
  filter: grayscale(1);
}
.dash-list-item.is-past .dash-tag {
  background: rgba(14, 59, 46, 0.08);
  color: rgba(14, 59, 46, 0.7);
}

.btn-danger {
  background: transparent;
  color: #a83a3a;
  border: 1px solid rgba(168, 58, 58, 0.35);
}
.btn-danger:hover { background: #a83a3a; color: #f7f6f0; border-color: #a83a3a; }

.apt-chip-more {
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2px 4px;
  cursor: pointer;
}

.apt-chip-more:hover { color: var(--text); }

.apts-day-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--surface);
  min-width: 0;
}

.apts-day-panel header {
  display: grid;
  gap: 4px;
}

.apts-day-panel header span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.apts-day-panel header strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
}

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

.apts-day-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
}

.apts-day-item:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.apts-day-time {
  color: var(--text);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.apts-day-meta {
  min-width: 0;
}

.apts-day-meta strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

.apts-day-meta small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.apts-day-item .dash-tag {
  grid-column: 2;
  justify-self: start;
}

@media (max-width: 720px) {
  .apts-cal-head { flex-wrap: wrap; }
  .apts-cal-count {
    order: 5;
    width: 100%;
  }
  .apts-cal-summary { grid-template-columns: 1fr; }
  .apts-cal-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .apts-cal-summary div:last-child { border-bottom: 0; }
  .apts-cal-layout { grid-template-columns: 1fr; }
  .apts-cal-grid { grid-auto-rows: minmax(64px, auto); }
  .apts-cal-cell { padding: 4px; min-height: 64px; }
  .apt-chip {
    font-size: 0;
    padding: 2px 4px;
  }
  .apt-chip strong { font-size: 9.5px; }
  .apts-cal-cell .day-num { font-size: 11px; }
  .day-count {
    top: 4px;
    left: 4px;
    min-width: 17px;
    height: 17px;
    font-size: 9px;
  }
  .apts-day-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* Transcripts list */
.dash-transcripts {
  display: grid;
  gap: 14px;
}

.dash-transcript-card {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.dash-transcript-card:hover { border-color: var(--line-strong); }

.dash-transcript-head {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.dash-transcript-head .avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.dash-transcript-head .avatar svg { width: 14px; height: 14px; }

.dash-transcript-meta .top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dash-transcript-meta .name {
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
}

.dash-transcript-meta .sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 300;
}

.dash-transcript-chev {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.dash-transcript-card.is-open .dash-transcript-chev {
  transform: rotate(90deg);
}

.dash-transcript-body {
  padding: 0 20px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: none;
}

.dash-transcript-card.is-open .dash-transcript-body { display: block; padding-top: 18px; }

/* Billing extras */
.dash-plan-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.dash-plan-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 13.5px;
  font-weight: 300;
}

.dash-plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.dash-renew {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 13px;
}

.dash-renew strong { color: var(--text); font-weight: 400; }

.dash-payment {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}

.dash-payment-card {
  width: 44px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.dash-payment-card svg { width: 18px; height: 18px; }

.dash-payment-meta strong {
  display: block;
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 400;
}

.dash-payment-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Settings forms */
.dash-form {
  display: grid;
  gap: 20px;
}

.dash-form label {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dash-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--body);
  font-size: 14px;
  color: var(--text);
}

.dash-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.dash-form input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dash-form .btn { justify-self: start; min-width: 200px; }

.dash-input-wrap { position: relative; }

.dash-input-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
}

.dash-input-toggle:hover { color: var(--text); }

/* Toast */
.dash-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 200;
  padding: 12px 22px;
  background: var(--text);
  color: var(--surface);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.dash-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile drawer */
@media (max-width: 900px) {
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 264px;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 30px 60px rgba(14, 59, 46, 0.2);
  }
  .dash-body.drawer-open .dash-sidebar { transform: translateX(0); }
  .dash-mobile-bar { display: flex; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-quick { grid-template-columns: repeat(2, 1fr); }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-metric-strip div:nth-child(2) { border-right: 0; }
  .dash-metric-strip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .dash-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 59, 46, 0.32);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
  }
  .dash-body.drawer-open .dash-backdrop { display: block; }
}

@media (max-width: 560px) {
  .dash-main { padding: 18px 16px 36px; }
  .dash-quick { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-action-item {
    grid-template-columns: 10px 1fr;
    align-items: start;
  }
  .dash-action-item .dash-card-link {
    grid-column: 2;
    justify-self: start;
  }
  .dash-metric-strip { grid-template-columns: 1fr; }
  .dash-metric-strip div,
  .dash-metric-strip div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .dash-metric-strip div:last-child { border-bottom: 0; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-header-actions { width: 100%; }
  .dash-header-actions .btn { flex: 1; }
  .dash-card { padding: 22px 20px; }
  .dash-chart { gap: 8px; }
  .dash-chart-bar .bar-label { font-size: 9px; letter-spacing: 0.1em; }
}

/* =========================================================================
   Onboarding payment page
   ========================================================================= */
.onboarding-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(14, 59, 46, 0.035) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 50% 100%;
}

.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: start;
  min-height: calc(100vh - 92px);
  padding-top: clamp(54px, 8vh, 96px);
  padding-bottom: clamp(56px, 9vh, 108px);
}

.onboarding-copy h1 {
  max-width: 760px;
  font-size: clamp(48px, 7.2vw, 104px);
}

.onboarding-copy .hero-lead {
  max-width: 720px;
}

.onboarding-summary {
  position: sticky;
  top: 118px;
  align-self: start;
  padding: clamp(30px, 4vw, 46px);
  border-left: 1px solid var(--line);
  background: rgba(247, 246, 240, 0.86);
}

.secure-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.onboarding-summary h2 {
  margin-bottom: 12px;
  font-family: var(--body);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 200;
  line-height: 1.08;
}

.onboarding-summary > p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

.payment-price {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 34px 0 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.payment-price strong {
  font-family: var(--body);
  font-size: clamp(56px, 7vw, 86px);
  font-weight: 100;
  line-height: 0.95;
}

.payment-price span {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.payment-list {
  display: grid;
  gap: 14px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.payment-list li {
  position: relative;
  padding-left: 34px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.55;
}

.payment-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--text);
  opacity: 0.72;
}

.payment-button {
  width: 100%;
}

.payment-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.payment-note {
  margin: 22px auto 0;
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.onboarding-steps-section,
.onboarding-info-section,
.onboarding-form-section {
  border-top: 1px solid var(--line);
}

.client-onboarding-form {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
  padding: clamp(18px, 3vw, 34px) 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.onboarding-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.client-onboarding-form label {
  display: grid;
  gap: 12px;
}

.client-onboarding-form label > span,
.calendar-options label span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.client-onboarding-form input,
.client-onboarding-form select,
.client-onboarding-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 200;
  outline: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.client-onboarding-form input,
.client-onboarding-form select {
  min-height: 58px;
  padding: 0;
}

.client-onboarding-form textarea {
  min-height: 150px;
  padding: 14px 0;
  resize: vertical;
}

.client-onboarding-form input:focus,
.client-onboarding-form select:focus,
.client-onboarding-form textarea:focus {
  border-color: var(--text);
  background: transparent;
  box-shadow: 0 8px 18px -18px rgba(14, 59, 46, 0.8);
}

.calendar-connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(28px, 4vw, 52px);
  padding: clamp(30px, 5vw, 58px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-connect-card h3 {
  margin: 0 0 16px;
  font-family: var(--body);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 200;
  line-height: 1.1;
}

.calendar-connect-card p {
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.calendar-options {
  display: grid;
  gap: 14px;
  align-self: center;
}

.calendar-options label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 0;
  border: 1px solid var(--line);
  border-width: 0 0 1px;
  background: transparent;
}

.calendar-options input {
  width: 15px;
  min-height: 15px;
  margin-top: 2px;
  accent-color: var(--text);
}

.calendar-connect-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.calendar-connect-actions p,
.onboarding-submit-row p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.onboarding-wide-field {
  display: grid;
}

.onboarding-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.client-onboarding-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.onboarding-steps article {
  padding: clamp(28px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.onboarding-steps article:last-child {
  border-right: 0;
}

.onboarding-steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: var(--tracking-wider);
}

.onboarding-steps h3 {
  margin: 0 0 14px;
  font-family: var(--body);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 200;
}

.onboarding-steps p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.onboarding-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.28);
}

.onboarding-info h2 {
  margin-bottom: 16px;
  font-family: var(--body);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 200;
  line-height: 1.1;
}

.onboarding-info p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

@media (max-width: 980px) {
  .onboarding-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .onboarding-summary {
    position: relative;
    top: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .onboarding-steps article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .onboarding-steps article:last-child {
    border-bottom: 0;
  }

  .onboarding-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-form-grid,
  .calendar-connect-card {
    grid-template-columns: 1fr;
  }

  .calendar-connect-actions,
  .onboarding-submit-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .onboarding-page {
    background-size: 100% 100%;
  }

  .onboarding-copy h1 {
    font-size: clamp(42px, 13vw, 68px);
  }

  .onboarding-summary {
    padding: 30px 22px;
  }

  .payment-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .payment-price span {
    padding-bottom: 0;
  }

  .onboarding-info .btn,
  .payment-button,
  .calendar-connect-actions .btn,
  .onboarding-submit-row .btn {
    width: 100%;
  }
}

/* =========================================================================
   Windows / ClearType font-weight compensation
   ClearType renders 200/300 weights ~one notch heavier than macOS subpixel
   AA. Shift weights down on Windows + thin strokes via text-stroke trick.
   ========================================================================= */
html.is-windows body,
html.is-windows :is(p, li, span, label, time, small, em, blockquote, summary, td, th, dt, dd, figcaption, a, button, div, section, article, aside, header, footer, nav, main) {
  font-weight: 200;
}

html.is-windows :is(h1, h2, h3, h4, h5, h6) { font-weight: 100; }

html.is-windows :is(strong, b, .nav-cta, .nav-login, .btn, .plan-badge, .eyebrow, .filter-row button, .toggle-line button) {
  font-weight: 300;
}

html.is-windows :is(input, textarea, select) { font-weight: 300; }

/* Subpixel thinning — counters ClearType's stroke padding on Windows Chrome.
   The transparent stroke shaves the visual weight without affecting layout. */
html.is-windows body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: 0.25px transparent;
}

html.is-windows :is(h1, h2, h3, .hero h1) {
  -webkit-text-stroke: 0.35px transparent;
  letter-spacing: -0.005em;
}

/* =========================================================================
   Site-wide UI lock — block text selection (inputs remain editable)
   ========================================================================= */
body,
body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
body input,
body textarea,
body select,
body [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* =========================================================================
   Orchestrated entry transitions (page load + per-section variants)
   ========================================================================= */
html { scroll-behavior: smooth; }

body.has-entry { opacity: 0; transition: opacity 0.5s ease; }
body.has-entry.is-ready { opacity: 1; }

/* Navbar slides down */
body.has-entry .navbar {
  transform: translateY(-110%);
  opacity: 0;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.has-entry.is-ready .navbar { transform: none; opacity: 1; }

/* Hero copy — staggered rise + blur clear */
body.has-entry .hero-copy > * {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition:
    opacity 0.95s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.95s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.95s ease;
}
body.has-entry.is-ready .hero-copy > * { opacity: 1; transform: none; filter: blur(0); }
body.has-entry.is-ready .hero-copy > *:nth-child(1) { transition-delay: 0.08s; }
body.has-entry.is-ready .hero-copy > *:nth-child(2) { transition-delay: 0.22s; }
body.has-entry.is-ready .hero-copy > *:nth-child(3) { transition-delay: 0.38s; }
body.has-entry.is-ready .hero-copy > *:nth-child(4) { transition-delay: 0.52s; }
body.has-entry.is-ready .hero-copy > *:nth-child(5) { transition-delay: 0.66s; }

/* Hero stats — individual pop-in */
body.has-entry .hero-stats div {
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
body.has-entry.is-ready .hero-stats div { opacity: 1; transform: none; }
body.has-entry.is-ready .hero-stats div:nth-child(1) { transition-delay: 0.78s; }
body.has-entry.is-ready .hero-stats div:nth-child(2) { transition-delay: 0.9s; }
body.has-entry.is-ready .hero-stats div:nth-child(3) { transition-delay: 1.02s; }

/* Hero visual — slide in from right with blur clear */
body.has-entry .hero-visual {
  opacity: 0;
  transform: translateX(56px) translateY(18px);
  filter: blur(12px);
  transition:
    opacity 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1.1s ease;
  transition-delay: 0.32s;
}
body.has-entry.is-ready .hero-visual { opacity: 1; transform: none; filter: blur(0); }

/* Scroll-reveal motion variants (override default translateY) */
.reveal[data-anim="zoom"]  { transform: scale(0.9) translateY(14px); }
.reveal[data-anim="left"]  { transform: translateX(-36px); }
.reveal[data-anim="right"] { transform: translateX(36px); }
.reveal[data-anim="tilt"]  {
  transform: perspective(900px) rotateX(10deg) translateY(22px);
  transform-origin: top center;
}
.reveal[data-anim="rise"]  { transform: translateY(34px); }

.reveal[data-anim].visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body.has-entry { opacity: 1 !important; }
  body.has-entry .hero-copy > *,
  body.has-entry .hero-stats div,
  body.has-entry .hero-visual,
  body.has-entry .navbar { opacity: 1 !important; transform: none !important; filter: none !important; }
}
