/* RealAttend — friendly human-first aesthetic
   Type: Geist (UI) + JetBrains Mono (data)
   Color: warm neutrals + single sage accent
*/

:root {
  /* Accent — oklch-defined, mutable via Tweaks */
  --accent-h: 235;
  --accent: oklch(0.55 0.16 var(--accent-h));
  --accent-soft: oklch(0.95 0.04 var(--accent-h));
  --accent-deep: oklch(0.36 0.13 var(--accent-h));

  /* Warm neutrals — subtle hue, low chroma */
  --bg: oklch(0.985 0.004 80);
  --bg-elev: oklch(1 0 0);
  --bg-sunken: oklch(0.965 0.006 80);
  --border: oklch(0.92 0.006 80);
  --border-strong: oklch(0.86 0.008 80);
  --text: oklch(0.22 0.01 80);
  --text-muted: oklch(0.48 0.008 80);
  --text-subtle: oklch(0.62 0.008 80);

  /* Status */
  --amber: oklch(0.75 0.14 70);
  --amber-soft: oklch(0.96 0.04 70);
  --rose: oklch(0.65 0.17 25);
  --rose-soft: oklch(0.96 0.03 25);

  /* Density */
  --row-h: 44px;
  --gap: 16px;
  --pad: 20px;
  --radius: 10px;
  --radius-sm: 6px;

  /* Type scale */
  --font-ui: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ====== Global chrome ====== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent);
  position: relative;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.55);
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 120ms;
  cursor: pointer;
}
.nav-links a.active, .nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text);
}

/* ====== Buttons ====== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: all 120ms;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-sunken); }

.btn-primary {
  background: var(--text);
  color: var(--bg-elev);
  border-color: var(--text);
}
.btn-primary:hover { background: oklch(0.32 0.01 80); }

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-deep); }

.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-sunken); border-color: var(--text-subtle); }

.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ====== Cards ====== */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ====== Layout helpers ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid oklch(0.9 0.04 var(--accent-h));
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ====== Landing — Split Hero ====== */
.hero-split {
  padding: 60px 0 80px;
}
.hero-split .grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-split h1 {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-top: 22px;
  margin-bottom: 20px;
  font-weight: 600;
}
.hero-split h1 .accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.hero-split .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0;
}
.hero-split .actions {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}
.hero-split .actions .btn { padding: 12px 18px; font-size: 15px; }
.hero-split .trust-line {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--text-subtle);
  font-size: 13px;
  flex-wrap: wrap;
}
.trust-line .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-subtle);
}

/* Live roster card */
.roster-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px oklch(0.3 0.02 80 / 0.18), 0 2px 4px oklch(0.3 0.02 80 / 0.04);
  overflow: hidden;
  transform: rotate(0.3deg);
}
.roster-header,
.roster-footer {
  padding: 14px 18px;
  background: var(--bg-sunken);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.roster-header { border-bottom: 1px solid var(--border); font-weight: 600; }
.roster-footer { border-top: 1px solid var(--border); color: var(--text-subtle); font-size: 12px; }
.roster-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.roster-list { padding: 6px 0; }
.roster-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
}
.roster-row:last-child { border-bottom: none; }
.roster-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: oklch(0.25 0.05 80);
  font-size: 12px; font-weight: 600;
}
.roster-name { font-size: 14px; font-weight: 500; }
.roster-role { font-size: 12px; color: var(--text-subtle); }
.roster-status {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
}
.roster-status.in {
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.roster-status.late {
  color: oklch(0.45 0.1 25);
  background: var(--rose-soft);
}

/* ====== Landing — Editorial Hero (center-stacked) ====== */
.hero-editorial {
  padding: 80px 0 100px;
  text-align: center;
}
.hero-editorial h1 {
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 28px auto 24px;
  font-weight: 600;
  max-width: 960px;
}
.hero-editorial h1 .accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.hero-editorial .lede {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}
.hero-editorial .actions {
  display: flex;
  gap: 10px;
  margin-top: 36px;
  justify-content: center;
}
.hero-editorial .actions .btn { padding: 12px 20px; font-size: 15px; }
.hero-editorial .dashboard-mini-wrap {
  margin-top: 70px;
  position: relative;
}

/* Dashboard-mini component used by editorial variant */
.dashboard-mini {
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px oklch(0.3 0.02 80 / 0.2);
  overflow: hidden;
  text-align: left;
}
.dashboard-mini .topbar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunken);
  align-items: center;
}
.dashboard-mini .dot { width: 11px; height: 11px; border-radius: 50%; }
.dashboard-mini .url {
  margin-left: 14px;
  font-size: 12px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}
.dashboard-mini .stats {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--bg-sunken);
}
.dashboard-mini .stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.dashboard-mini .stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
}
.dashboard-mini .stat .value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.dashboard-mini .stat .value.amber  { color: oklch(0.55 0.14 70); }
.dashboard-mini .stat .value.accent { color: var(--accent-deep); }
.dashboard-mini .stat .sub {
  font-size: 12px;
  color: var(--text-subtle);
}
.dashboard-mini .split {
  padding: 28px;
  padding-top: 0;
  background: var(--bg-sunken);
}
.dashboard-mini .split-inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dashboard-mini .split .col-label {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.dashboard-mini .weekly-bars {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  height: 80px;
}
.dashboard-mini .weekly-bars .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dashboard-mini .weekly-bars .bar .fill {
  width: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.dashboard-mini .weekly-bars .bar.faded .fill {
  background: var(--border-strong);
  opacity: 0.5;
}
.dashboard-mini .weekly-bars .bar .day {
  font-size: 10px;
  color: var(--text-subtle);
}
.dashboard-mini .events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}
.dashboard-mini .events-list .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.dashboard-mini .events-list .row .time {
  color: var(--text-subtle);
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ====== Landing — Asymmetric Hero ====== */
.hero-asymmetric {
  padding: 60px 0 80px;
}
.hero-asymmetric .grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: end;
}
.hero-asymmetric .kicker {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-asymmetric h1 {
  font-size: 88px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0;
  font-weight: 600;
}
.hero-asymmetric h1 .muted { color: var(--text-subtle); }
.hero-asymmetric h1 .accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.hero-asymmetric .actions {
  display: flex;
  gap: 10px;
  margin-top: 36px;
}
.hero-asymmetric .actions .btn { padding: 12px 18px; font-size: 15px; }
.hero-asymmetric .stats-strip {
  margin-top: 64px;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.hero-asymmetric .stats-strip .k {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
}
.hero-asymmetric .stats-strip .v {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Phone mock — used by asymmetric variant */
.phone-mock {
  background: oklch(0.22 0.01 80);
  border-radius: 36px;
  padding: 8px;
  box-shadow: 0 40px 80px -30px oklch(0.2 0.02 80 / 0.35);
  width: 300px;
  margin-left: auto;
}
.phone-mock .screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
}
.phone-mock .statusbar {
  padding: 16px 20px 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text);
  font-weight: 600;
}
.phone-mock .screen-title {
  padding: 20px 20px 0;
}
.phone-mock .screen-title .small {
  font-size: 13px;
  color: var(--text-subtle);
}
.phone-mock .screen-title .big {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.phone-mock .scan-ring-wrap {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.phone-mock .scan-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 4px solid var(--accent);
  margin: 0 auto;
  width: 70%;
  position: relative;
  display: grid;
  place-items: center;
}
.phone-mock .scan-ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.4;
}
.phone-mock .scan-ring .face {
  font-size: 36px;
}
.phone-mock .scan-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.phone-mock .screen-footer {
  padding: 20px;
  padding-top: 0;
}
.phone-mock .screen-footer .location {
  text-align: center;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* ====== Mobile breakpoints for new variants ====== */
@media (max-width: 1024px) {
  .hero-editorial h1 { font-size: 64px; }
  .hero-asymmetric h1 { font-size: 60px; }
  .hero-asymmetric .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .phone-mock { margin: 0 auto; }
  .hero-asymmetric .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .dashboard-mini .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-mini .split-inner { grid-template-columns: 1fr; gap: 32px; }
  .dashboard-mini .events-list { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

@media (max-width: 768px) {
  .hero-editorial { padding: 56px 0 64px; }
  .hero-editorial h1 { font-size: 44px; }
  .hero-editorial .lede { font-size: 17px; }

  .hero-asymmetric { padding: 40px 0 56px; }
  .hero-asymmetric h1 { font-size: 42px; }
  .hero-asymmetric .stats-strip {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
    gap: 20px;
  }
  .hero-asymmetric .stats-strip .k { font-size: 28px; }
  .dashboard-mini { border-radius: 12px; }
  .dashboard-mini .stats { grid-template-columns: 1fr 1fr; padding: 16px; }
}

/* ====== Logo cloud ====== */
.logo-cloud {
  padding: 20px 0 48px;
  text-align: center;
}
.logo-cloud .label {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 18px;
}
.logo-cloud .logos {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0.7;
}
.logo-cloud .logos span {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

/* ====== Features grid ====== */
.features {
  padding: 80px 0;
}
.features .head {
  max-width: 640px;
  margin-bottom: 56px;
}
.features h2 {
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 600;
  margin-top: 16px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.feature-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  margin-bottom: 28px;
}
.feature-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  line-height: 1.15;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ====== How it works ====== */
.how {
  background: var(--bg-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.how h2 {
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 16px;
}
.how-side { position: sticky; top: 100px; }
.how-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child { border-bottom: none; }
.how-step .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-subtle);
  padding-top: 4px;
}
.how-step h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.how-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ====== CTA block ====== */
.cta-block { padding: 80px 0; }
.cta-card {
  background: oklch(0.22 0.01 80);
  color: oklch(0.96 0.005 80);
  border-radius: 20px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-card h2 {
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: white;
}
.cta-card p {
  color: oklch(0.75 0.005 80);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 14px;
  max-width: 440px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

/* ====== Footer ====== */
.site-footer {
  background: oklch(0.22 0.01 80);
  color: oklch(0.85 0.005 80);
  padding: 56px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  color: oklch(0.7 0.01 80);
  font-size: 14px;
  line-height: 1.55;
  max-width: 280px;
}
.footer-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: oklch(0.65 0.01 80);
  margin-bottom: 12px;
  font-weight: 600;
}
.footer-col a {
  color: oklch(0.85 0.005 80);
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid oklch(0.3 0.01 80);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: oklch(0.65 0.01 80);
}

/* ====== Blog index ====== */
.blog-header {
  padding: 32px 0 18px;
}
.blog-header h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 600;
}
.blog-header h1 .tagline {
  font-weight: 400;
  color: var(--text-subtle);
  font-size: 16px;
}

.tag-bar {
  padding: 0 0 32px;
}
.tag-bar .tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  align-items: center;
}
.tag-pill {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
}
.tag-pill.active {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg-elev);
}
.tag-bar .sort-label {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-subtle);
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 48px;
  cursor: pointer;
  transition: box-shadow 200ms;
}
.featured-post:hover {
  box-shadow: 0 30px 60px -30px oklch(0.3 0.02 80 / 0.15);
}
.featured-art {
  aspect-ratio: 4/3;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.featured-art .dashed {
  position: absolute;
  inset: 20px;
  border: 1.5px dashed oklch(0.3 0.02 80 / 0.2);
  border-radius: 8px;
}
.featured-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-elev);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.featured-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.featured-post h2 {
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.featured-post .excerpt {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.author-line {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-subtle);
}
.author-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: oklch(0.85 0.08 160);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: oklch(0.25 0.05 80);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  row-gap: 40px;
  padding-bottom: 80px;
}
.post-card { cursor: pointer; }
.post-card .art {
  aspect-ratio: 4/3;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease;
  margin-bottom: 16px;
}
.post-card:hover .art { transform: scale(1.02); }
.post-card .art .dashed {
  position: absolute;
  inset: 16px;
  border: 1px dashed oklch(0.3 0.02 80 / 0.18);
  border-radius: 6px;
}
.post-card .meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 8px;
}
.post-card h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.post-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.post-card .byline {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-subtle);
}

.newsletter {
  padding-bottom: 64px;
}
.newsletter-card {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter-card h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.newsletter-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}
.newsletter-card form {
  display: flex;
  gap: 8px;
}
.newsletter-card input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}
.newsletter-card input:focus {
  border-color: var(--accent);
}

/* ====== PPC page ====== */

.container-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

.ppc-body { background: var(--bg); }

.ppc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.ppc-top-beta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-subtle);
}
.ppc-beta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- PPC hero ---- */
.ppc-hero {
  padding: 64px 0 24px;
  text-align: center;
}
.ppc-hero-h1 {
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 22px 0 20px;
  font-weight: 600;
  text-wrap: balance;
}
.ppc-hero-h1 .accent-italic {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}
.ppc-hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}
.ppc-hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  justify-content: center;
  align-items: center;
}
.ppc-hero-cta { padding: 13px 22px; font-size: 15px; }
.ppc-hero-meta { font-size: 13px; color: var(--text-subtle); }

/* ---- 3-phone how-it-works ---- */
.ppc-how {
  padding: 32px 0 56px;
}
.ppc-how-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}
.ppc-how-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 10px;
}
.ppc-how-head h2 {
  font-size: 36px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 600;
}
.ppc-phones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
  position: relative;
}
.ppc-phones::before {
  /* dashed connector behind the phones */
  content: "";
  position: absolute;
  top: 240px;
  left: 16.6%;
  right: 16.6%;
  height: 2px;
  border-top: 2px dashed var(--border-strong);
  z-index: 0;
}
.ppc-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.ppc-phone-enroll  { transform: rotate(-1.5deg); }
.ppc-phone-clockin { transform: rotate(0deg); }
.ppc-phone-payroll { transform: rotate(1.5deg); }

/* Phone frame */
.phone-frame {
  background: oklch(0.22 0.01 80);
  border-radius: 34px;
  padding: 7px;
  box-shadow: 0 30px 60px -30px oklch(0.2 0.02 80 / 0.3);
  width: 260px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9/19;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-statusbar {
  padding: 14px 18px 6px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
}
.phone-title { padding: 14px 18px 0; }
.phone-title .small { font-size: 11px; color: var(--text-subtle); }
.phone-title .big {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.phone-body { flex: 1; padding: 16px; display: flex; flex-direction: column; }
.phone-footer { padding: 12px 16px 16px; }
.pill-cta {
  background: var(--accent);
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.pill-cta-dark {
  background: oklch(0.22 0.01 80);
}
.phone-footer .tiny {
  text-align: center;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-subtle);
}

/* --- Phone 1: Enroll (face with 3 angle dots) --- */
.phone-enroll-body {
  justify-content: center;
  align-items: center;
  position: relative;
}
.face-wrap {
  position: relative;
  width: 150px;
  height: 180px;
}
.face {
  width: 150px;
  height: 180px;
  border-radius: 50% 50% 46% 46% / 60% 60% 40% 40%;
  background: oklch(0.85 0.05 40);
  position: relative;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.face .eye {
  position: absolute;
  top: 38%;
  width: 10px;
  height: 6px;
  background: oklch(0.22 0.01 80);
  border-radius: 4px;
}
.face .eye.left  { left: 28%; }
.face .eye.right { right: 28%; }
.face .mouth {
  position: absolute;
  top: 60%;
  left: 35%;
  width: 30%;
  height: 8px;
  border-bottom: 2.5px solid oklch(0.22 0.01 80);
  border-radius: 0 0 50% 50%;
}
.angle-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.35;
}
.angle-left   { top: 45%; left: -14px; }
.angle-right  { top: 45%; right: -14px; }
.angle-center {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  opacity: 1;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.phone-enroll-body .caption {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}
.phone-enroll-body .caption b { color: var(--accent-deep); }

/* --- Phone 2: Clock in (scan ring with a dot target) --- */
.phone-clockin-body { justify-content: center; }
.scan-ring {
  aspect-ratio: 1;
  width: 72%;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 3px solid var(--accent);
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
}
.scan-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: 0.4;
}
.scan-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: oklch(0.22 0.01 80);
  box-shadow: 0 0 0 4px white, 0 0 0 5px var(--accent);
}
.phone-clockin-body .caption {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Phone 3: Payroll (list + synced card) --- */
.phone-payroll-body {
  padding: 16px 18px;
  gap: 10px;
}
.payroll-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.payroll-row:nth-last-of-type(1) { border-bottom: none; }
.payroll-row span:first-child { font-weight: 500; }
.payroll-row .mono { color: var(--text-muted); }
.synced-card {
  margin-top: auto;
  padding: 10px 12px;
  background: oklch(0.95 0.05 240);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.synced-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: oklch(0.35 0.1 240);
  color: white;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.synced-text { flex: 1; }
.synced-title { font-weight: 600; }
.synced-sub { color: var(--text-subtle); font-size: 10px; }

/* Step label under each phone */
.ppc-phone-label {
  text-align: center;
  max-width: 220px;
}
.ppc-phone-label .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.ppc-phone-label .step-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ppc-phone-label .step-body {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ---- Social proof ---- */
.ppc-social { padding: 8px 0 48px; }
.ppc-social-card {
  padding: 24px 28px;
  background: var(--bg-sunken);
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.ppc-social-lead .title { font-weight: 600; font-size: 14px; }
.ppc-social-lead .sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ppc-social-stat { border-left: 1px solid var(--border); padding-left: 24px; }
.ppc-social-stat .k {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.ppc-social-stat .v { font-size: 12px; color: var(--text-subtle); }

/* ---- Survey wrap ---- */
.ppc-survey-wrap { padding: 16px 0 80px; }

.ppc-incentive {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ppc-incentive-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.ppc-incentive-text .title { font-size: 14px; font-weight: 500; }
.ppc-incentive-text .sub { font-size: 12px; color: var(--text-subtle); }

.ppc-survey-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px oklch(0.3 0.02 80 / 0.15);
}
.ppc-survey-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.ppc-survey-head .small { font-size: 13px; color: var(--text-subtle); font-weight: 500; }
.ppc-survey-head .big {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.ppc-survey-count { font-size: 12px; color: var(--text-subtle); }

.ppc-survey-fields { display: flex; flex-direction: column; gap: 18px; }
.ppc-survey-field { display: flex; flex-direction: column; gap: 6px; }
.ppc-survey-label { font-size: 13px; font-weight: 500; line-height: 1.4; }

.ppc-survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.ppc-survey-opt {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms;
}
.ppc-survey-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ppc-survey-opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.ppc-survey-textarea,
.ppc-survey-input {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-elev);
  outline: none;
  color: var(--text);
  resize: vertical;
}
.ppc-survey-textarea:focus,
.ppc-survey-input:focus { border-color: var(--accent); }

.ppc-survey-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  justify-content: center;
  margin-top: 24px;
}
.ppc-survey-footnote {
  font-size: 11px;
  color: var(--text-subtle);
  text-align: center;
  margin-top: 10px;
}

/* ---- PPC footer ---- */
.ppc-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-sunken);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-subtle);
}

/* ---- Thank-you page ---- */
.ppc-thanks {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.ppc-thanks-check {
  display: inline-flex;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent-deep);
  margin-bottom: 28px;
}
.ppc-thanks-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  margin-bottom: 12px;
}
.ppc-thanks-h1 {
  font-size: 48px;
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 16px;
}
.ppc-thanks-h1 .accent-italic {
  color: var(--accent-deep);
  font-style: italic;
  font-weight: 500;
}
.ppc-thanks-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 40px;
}
.ppc-thanks-card {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}
.ppc-thanks-title { font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.ppc-thanks-steps { display: flex; flex-direction: column; gap: 14px; }
.ppc-thanks-steps .step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}
.ppc-thanks-steps .num { font-size: 11px; color: var(--accent-deep); padding-top: 2px; }
.ppc-thanks-steps .label { font-size: 14px; font-weight: 500; }
.ppc-thanks-steps .sub { font-size: 12px; color: var(--text-subtle); margin-top: 2px; }
.ppc-thanks-share {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ppc-thanks-share-text { text-align: left; }
.ppc-thanks-share-text .label { font-size: 13px; font-weight: 500; }
.ppc-thanks-share-text .sub { font-size: 12px; color: var(--text-subtle); }

/* ---- PPC mobile ---- */
@media (max-width: 1024px) {
  .ppc-phones { grid-template-columns: 1fr; gap: 48px; }
  .ppc-phones::before { display: none; }
  .ppc-phone { transform: none !important; }
  .ppc-social-card { grid-template-columns: 1fr; gap: 16px; }
  .ppc-social-stat { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
}

@media (max-width: 768px) {
  .container-narrow { padding: 0 20px; }
  .ppc-hero { padding: 40px 0 16px; }
  .ppc-hero-h1 { font-size: 40px; }
  .ppc-hero-sub { font-size: 16px; }
  .ppc-how { padding: 24px 0 40px; }
  .ppc-how-head h2 { font-size: 26px; }
  .ppc-thanks-h1 { font-size: 34px; }
  .ppc-thanks-share { flex-direction: column; align-items: stretch; }
  .ppc-footer { flex-direction: column; gap: 6px; text-align: center; }
}

/* ====== Admin dashboard ====== */

.admin-body {
  background: var(--bg-sunken);
  color: var(--text);
}

/* Shell: sidebar + main */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-brand .brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.admin-sidebar-brand .brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-top: 1px;
}

.admin-sidebar-nav {
  flex: 1;
  padding: 14px 8px;
  overflow-y: auto;
}
.nav-group-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  font-weight: 600;
  padding: 14px 12px 6px;
}
.admin-sidebar-nav .nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 1px 0;
}
.admin-sidebar-nav .nav-link:hover {
  background: var(--bg-sunken);
  color: var(--text);
}
.admin-sidebar-nav .nav-link.active {
  background: var(--text);
  color: var(--bg-elev);
}

.admin-sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 14px 18px;
  background: var(--bg-sunken);
}
.footer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}
.footer-meta { min-width: 0; flex: 1; }
.footer-email {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.footer-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-top: 1px;
}
.footer-logout button { width: 100%; justify-content: center; }

.admin-main { padding: 28px; min-width: 0; }
.admin-page {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.admin-page-head h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.admin-page-head .muted { font-size: 13px; color: var(--text-subtle); margin-top: 2px; }
.admin-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.admin-range a {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  font-weight: 500;
  color: var(--text-muted);
}
.admin-range a.active {
  background: var(--text);
  color: var(--bg-elev);
  border-color: var(--text);
}

/* KPI tiles */
.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.kpi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
}
.kpi-value {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

/* Section cards */
.admin-section {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.admin-section h2 {
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  font-weight: 600;
}
.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 0;
}
.admin-two-col > div {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  font-weight: 600;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table th.right, .admin-table td.right { text-align: right; }
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .muted { color: var(--text-subtle); font-size: 13px; }
.admin-table .nowrap { white-space: nowrap; }
.admin-table-events td { font-size: 13px; }

/* Daily view chart */
.admin-daily-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 8px 0;
}
.admin-daily-chart .day-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 20px;
}
.admin-daily-chart .stack {
  flex: 1;
  display: flex;
  flex-direction: column-reverse;
  background: var(--bg-sunken);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.admin-daily-chart .seg { width: 100%; }
.admin-daily-chart .seg-landing { background: var(--accent); }
.admin-daily-chart .seg-ppc     { background: oklch(0.65 0.17 40); }
.admin-daily-chart .seg-blog    { background: oklch(0.65 0.15 120); }
.admin-daily-chart .day-label {
  text-align: center;
  font-size: 10px;
  color: var(--text-subtle);
}
.admin-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}
.admin-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* Admin login */
.admin-login-wrap {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.admin-login-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 20px 40px -20px oklch(0.3 0.02 80 / 0.15);
}
.admin-login-head {
  text-align: center;
  margin-bottom: 24px;
}
.admin-login-head .logo-mark {
  margin: 0 auto 14px;
}
.admin-login-head h1 {
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.admin-login-head p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}
.admin-alert {
  background: var(--rose-soft);
  color: oklch(0.4 0.17 25);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid oklch(0.85 0.1 25);
}
.admin-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  margin-top: 14px;
}
.admin-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elev);
  outline: none;
}
.admin-input:focus { border-color: var(--accent); }
.admin-login-submit {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  margin-top: 22px;
}

/* Loading state — auto-applied on form submit by the layout's <script> */
.btn.is-loading {
  position: relative;
  padding-left: 32px;
  pointer-events: none;
  opacity: 0.85;
}
.btn.is-loading::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  opacity: 0.9;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Page-skeleton placeholders — for content that isn't there yet */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-sunken)  0%,
    var(--border)     50%,
    var(--bg-sunken)  100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  display: inline-block;
  height: 1em;
  width: 100%;
  vertical-align: middle;
}
.skeleton.skeleton-line { width: 100%; height: 14px; }
.skeleton.skeleton-line.short { width: 40%; }
.skeleton.skeleton-line.medium { width: 70%; }
.skeleton.skeleton-block { display: block; height: 80px; margin: 8px 0; }
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page-level "doing something" overlay (used by form submits as a backstop) */
.page-loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: page-loading-slide 1.2s linear infinite;
  z-index: 2000;
  pointer-events: none;
}
@keyframes page-loading-slide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Pagination footer for list views */
.admin-pagination {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.admin-pagination a { color: var(--accent-deep); font-weight: 500; }

/* Row actions cell — small inline button row in admin tables */
.row-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* Impersonation banner — shown at top of /app/* when sysadmin is in support mode */
.impersonation-banner {
  background: oklch(0.55 0.14 70);   /* amber */
  color: white;
  font-size: 13px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px oklch(0.3 0.02 80 / 0.15);
}
.impersonation-banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ib-pill {
  background: rgba(0,0,0,0.18);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-right: 8px;
}
.impersonation-banner .muted { color: rgba(255,255,255,0.7); }
.impersonation-banner .mono  { color: rgba(255,255,255,0.85); }
.ib-exit {
  background: white;
  color: oklch(0.45 0.14 70);
  border-color: white;
}
.ib-exit:hover {
  background: oklch(0.95 0.04 70);
  border-color: oklch(0.95 0.04 70);
}

/* Danger button */
.btn-danger {
  background: oklch(0.55 0.17 25);
  color: white;
  border-color: oklch(0.55 0.17 25);
}
.btn-danger:hover {
  background: oklch(0.45 0.17 25);
  border-color: oklch(0.45 0.17 25);
}
.btn-danger:disabled {
  background: oklch(0.85 0.04 25);
  border-color: oklch(0.85 0.04 25);
  color: white;
  cursor: not-allowed;
  opacity: 0.85;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.22 0.01 80 / 0.55);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);     /* 24px overlay padding × 2 */
  box-shadow: 0 30px 60px -20px oklch(0.2 0.02 80 / 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-head h2 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
}
.modal-close:hover {
  background: var(--bg-sunken);
  color: var(--text);
}
.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;                      /* lets flex child scroll inside parent */
}
.modal-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 12px;
}
.modal-target {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border-radius: 8px;
  font-size: 13px;
}
.modal-target li { padding: 3px 0; }
.modal-label {
  display: inline-block;
  width: 50px;
  color: var(--text-subtle);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.modal-warning {
  background: var(--rose-soft);
  color: oklch(0.45 0.17 25);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid oklch(0.85 0.1 25);
  margin: 0 0 18px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* Journey pills + session timeline */
.journey-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  background: var(--bg-sunken);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
}
.journey-pill.journey-landing      { background: var(--accent-soft); color: var(--accent-deep); border-color: oklch(0.85 0.08 var(--accent-h)); }
.journey-pill.journey-ppc          { background: oklch(0.95 0.04 40); color: oklch(0.4 0.17 40); border-color: oklch(0.85 0.08 40); }
.journey-pill.journey-ppc_thanks   { background: oklch(0.95 0.04 40); color: oklch(0.4 0.17 40); border-color: oklch(0.85 0.08 40); }
.journey-pill.journey-blog         { background: oklch(0.95 0.05 120); color: oklch(0.4 0.13 120); border-color: oklch(0.85 0.08 120); }
.journey-pill.journey-variant      { background: var(--bg-elev); color: var(--text-muted); border-color: var(--border-strong); text-transform: lowercase; font-family: var(--font-mono); }
.journey-pill.journey-convert      { background: oklch(0.95 0.05 150); color: oklch(0.35 0.15 150); border-color: oklch(0.82 0.1 150); }

.session-journey {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.session-journey::before {
  content: "";
  position: absolute;
  left: 105px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.journey-step {
  display: grid;
  grid-template-columns: 90px 30px 1fr;
  gap: 8px;
  padding: 10px 0;
  align-items: start;
  position: relative;
}
.journey-when {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.3;
}
.journey-marker {
  display: grid;
  place-items: center;
  padding-top: 4px;
}
.journey-marker .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 2px solid var(--border-strong);
  position: relative;
  z-index: 1;
}
.journey-marker .dot.dot-event {
  background: var(--accent);
  border-color: var(--accent);
}
.journey-body { padding: 2px 0; min-width: 0; }
.journey-title {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.journey-meta {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 4px;
}
.journey-meta summary { cursor: pointer; color: var(--text-muted); }
.journey-meta pre {
  font-size: 11px;
  background: var(--bg-sunken);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .admin-kpis    { grid-template-columns: repeat(2, 1fr); }
  .admin-two-col { grid-template-columns: 1fr; }

  /* Sidebar collapses to a horizontal top bar on small screens */
  .admin-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
  }
  .nav-group-label { display: none; }
  .admin-sidebar-nav .nav-link {
    padding: 6px 10px;
    margin: 0;
    font-size: 13px;
  }
  .admin-sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
  }
  .footer-user { margin-bottom: 0; }
  .footer-logout button { width: auto; }
}
@media (max-width: 600px) {
  .admin-main { padding: 16px; }
}

/* ====== Public signup chrome ====== */
.signup-body {
  background: var(--bg-sunken);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.signup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.signup-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.signup-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 44px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 30px 60px -30px oklch(0.3 0.02 80 / 0.18);
}
.signup-card-narrow { max-width: 440px; }
.signup-card-center { text-align: center; }
.signup-card-head { margin-bottom: 24px; }
.signup-card-head h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 4px 0 8px;
  text-wrap: balance;
}
.signup-card-head p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.signup-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.signup-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 28px;
  margin-bottom: 18px;
}
.signup-form { display: flex; flex-direction: column; }
.signup-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.signup-form > .admin-label { margin-top: 14px; }
.signup-submit {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
}

/* Password show/hide toggle */
.pw-wrap { position: relative; }
.pw-wrap .admin-input { padding-right: 70px; }
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.pw-toggle:hover { background: var(--bg-sunken); color: var(--text); }

/* ====== Sites list (cards) ====== */
.site-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}
.site-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 120ms;
}
.site-card:hover { border-color: var(--border-strong); }
.site-pin {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
}
.site-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.site-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.site-address { font-size: 13px; margin-top: 2px; }
.site-delete-form { margin: 0; }

/* Icon-only danger button (used for trash icon) */
.btn-icon-danger {
  background: transparent;
  border: 1px solid transparent;
  color: oklch(0.55 0.17 25);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 120ms;
}
.btn-icon-danger:hover {
  background: var(--rose-soft);
  border-color: oklch(0.85 0.1 25);
}

/* Allow modal-card .row-2 to share the signup styling */
.modal-card .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ====== Onboarding wizard checklist ====== */
.wizard-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.wizard-step {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
}
.wizard-step-done { background: var(--accent-soft); border-color: oklch(0.85 0.06 var(--accent-h)); }
.wizard-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-sunken);
  border: 2px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}
.wizard-step-done .wizard-marker {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-size: 16px;
}
.wizard-title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wizard-meta  { font-size: 12px; margin-top: 2px; }

/* ===== Scrollbar polish ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* ====== Mobile responsive ====== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-side { position: static; }
  .cta-card { padding: 48px 36px; }
  .hero-split h1 { font-size: 48px; }
  .features h2 { font-size: 36px; }
  .cta-card h2 { font-size: 36px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-nav { padding: 8px 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: inline-flex; }

  .hero-split { padding: 40px 0 60px; }
  .hero-split .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-split h1 { font-size: 40px; }
  .hero-split .lede { font-size: 17px; }

  .featured-post {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .featured-post h2 { font-size: 24px; }

  .features { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .features h2 { font-size: 30px; }

  .how { padding: 56px 0; }
  .how h2 { font-size: 32px; }
  .how-step { grid-template-columns: 40px 1fr; gap: 16px; }
  .how-step h3 { font-size: 19px; }

  .cta-block { padding: 56px 0; }
  .cta-card {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 24px;
    text-align: left;
  }
  .cta-card h2 { font-size: 30px; }
  .cta-actions { align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  .blog-header { padding: 24px 0 14px; }
  .blog-header h1 { font-size: 19px; }
  .blog-header h1 .tagline { display: block; font-size: 14px; margin-top: 2px; }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    row-gap: 32px;
  }

  .newsletter-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 18px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ============================================================================
   Tenant dashboard — date tabs, KPI cards, ERP strip, stack chart, late panel,
   live event feed.
   ============================================================================ */

.dashboard-page { max-width: 1200px; }

/* ---- Top bar: tabs + meta + filter + export ---- */
.dash-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-bar-spacer { flex: 1; }

.dash-tabs {
  display: inline-flex; padding: 4px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 10px;
}
.dash-tab {
  padding: 6px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  border-radius: 7px; transition: background .12s, color .12s;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.is-active {
  background: var(--accent); color: white;
}
.dash-tab-disabled { opacity: .4; cursor: not-allowed; }

.dash-meta { color: var(--text-subtle); font-size: 13px; }

.dash-filter { display: inline-flex; }
.dash-site-select {
  height: 36px; padding: 0 30px 0 12px; font-size: 13px;
  min-width: 180px;
}
.dash-export { height: 36px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; }

.dash-pii-note { margin-bottom: 14px; font-size: 13px; }

/* ---- KPI cards ---- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-bottom: 16px;
}
.kpi-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi-card .kpi-label {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.kpi-card .kpi-value {
  font-size: 36px; line-height: 1.1; font-weight: 700; font-family: var(--font-display);
  color: var(--accent-deep);
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.kpi-value.kpi-warn { color: var(--amber); }
.kpi-value.kpi-bad  { color: var(--rose); }
.kpi-value.kpi-muted{ color: var(--text-subtle); }
.kpi-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; gap: 8px; margin-top: 4px;
}
.kpi-delta {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px;
}
.kpi-delta.up   { color: oklch(0.45 0.16 145); background: oklch(0.95 0.04 145); }
.kpi-delta.down { color: var(--rose); background: var(--rose-soft); }
.kpi-delta.flat { color: var(--text-subtle); background: var(--bg-sunken); }

/* ---- ERP connection strip ---- */
.erp-strip {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.erp-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.erp-icon-muted { background: var(--bg-sunken); color: var(--text-muted); }
.erp-body { flex: 1; min-width: 0; }
.erp-title { font-weight: 600; font-size: 14px; }
.erp-meta { font-size: 12px; margin-top: 2px; }
.erp-actions { display: flex; align-items: center; gap: 10px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---- Two-column split: chart + late panel ---- */
.dash-split {
  display: grid; grid-template-columns: 1fr 380px; gap: 16px;
  margin-bottom: 16px;
}
.dash-split > section { margin: 0; }

.dash-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 16px;
}
.dash-card-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dash-card-head a { text-decoration: none; }
.dash-card-head a:hover { color: var(--accent); }

.dash-legend { display: inline-flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 5px; vertical-align: 1px;
}

/* ---- Stacked bar chart ---- */
.stack-chart {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 18px; height: 240px; padding-top: 8px;
}
.stack-col {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; height: 100%;
}
.stack-bar {
  flex: 1; width: 70%; max-width: 56px;
  display: flex; flex-direction: column-reverse; justify-content: flex-start;
  background: var(--bg-sunken); border-radius: 6px; overflow: hidden;
  align-self: flex-end;
}
.stack-seg { width: 100%; transition: height .3s; }
.seg-ontime { background: var(--accent); }
.seg-late   { background: var(--amber); }
.seg-absent { background: var(--text-subtle); opacity: .35; }
.stack-empty { color: var(--text-subtle); text-align: center; padding: 4px; font-size: 18px; }
.stack-label {
  text-align: center; font-size: 12px; color: var(--text-muted);
  font-weight: 500;
}

/* ---- Late & missing list ---- */
.late-list { display: flex; flex-direction: column; gap: 12px; }
.late-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  gap: 10px; align-items: center;
}
.late-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px; text-transform: uppercase;
}
.late-info { min-width: 0; }
.late-name { font-size: 14px; font-weight: 500; }
.late-role { font-size: 12px; }
.late-detail { font-size: 12px; }

.status-pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.status-no-show { background: var(--rose-soft); color: var(--rose); }
.status-late    { background: var(--amber-soft); color: oklch(0.45 0.14 70); }

/* ---- Live event feed ---- */
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-right: 4px; vertical-align: 1px;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.event-feed { display: flex; flex-direction: column; }
.event-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.event-row:last-child { border-bottom: none; }
.event-row-new {
  animation: event-flash 1.2s ease-out;
}
@keyframes event-flash {
  0%   { background: var(--accent-soft); }
  100% { background: transparent; }
}
.event-time { font-size: 13px; color: var(--text-muted); }
.event-line { font-size: 14px; }
.event-meta { font-size: 12px; margin-top: 2px; }
.event-confidence { font-size: 12px; }

.event-verb { font-size: 13px; font-weight: 500; }
.event-verb-in  { color: var(--accent-deep); }
.event-verb-out { color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-bar { gap: 8px; }
  .dash-bar-spacer { flex-basis: 100%; height: 0; }
  .stack-chart { height: 180px; gap: 8px; }
}

/* ============================================================================
   Brand logo image — used in nav + signup/login/admin headers.
   Sits alongside the legacy .logo-mark (CSS-only R square) which stays as a
   fallback and for dark-footer contexts where the full logo doesn't read well.
   ============================================================================ */
.logo-img {
  height: 64px; width: auto; display: block;
}
.logo a.logo, a.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.signup-header .logo-img,
.admin-header  .logo-img { height: 60px; }
.top-nav       .logo-img { height: 36px; }
.site-footer   .logo-img { height: 58px; }
@media (max-width: 640px) {
  .logo-img { height: 52px; }
}


