/* Behike Hogar — shared design system
 * Apple HIG-inspired tokens + components. Used by /care-log, /family-today,
 * and any other page that links this stylesheet.
 *
 * Two themes: dark (caregiver phone, on-shift legibility) + light (family,
 * admin, daytime). Switch via [data-theme="dark"|"light"] on <html>.
 */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root,
[data-theme="light"] {
  /* surfaces */
  --bg:        #f5f5f7;     /* macOS Sequoia desktop */
  --surface:   #ffffff;
  --panel:     #ffffff;
  --elevated:  #ffffff;
  --overlay:   rgba(255,255,255,0.78);

  /* hairlines (extremely subtle, like Apple) */
  --hairline:       rgba(0,0,0,0.06);
  --hairline-strong: rgba(0,0,0,0.10);
  --separator:      rgba(0,0,0,0.04);

  /* text */
  --text:      #1c1c1e;
  --text-2:    #3a3a3c;
  --dim:       #8e8e93;       /* Apple gray system */
  --dim-2:     #c7c7cc;

  /* accent + semantic (Apple system colors) */
  --accent:        #2563eb;   /* keep Behike blue */
  --accent-soft:   rgba(37,99,235,0.10);
  --accent-strong: #1d4ed8;

  --green:     #34c759;
  --green-soft: rgba(52,199,89,0.12);
  --red:       #ff3b30;
  --red-soft:  rgba(255,59,48,0.10);
  --amber:     #ff9500;
  --amber-soft: rgba(255,149,0,0.12);
  --purple:    #af52de;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-fab: 0 8px 24px rgba(37,99,235,0.32);
}

[data-theme="dark"] {
  --bg:        #000000;
  --surface:   #0e0e0f;
  --panel:     #161618;
  --elevated:  #1c1c1e;
  --overlay:   rgba(28,28,30,0.78);

  --hairline:       rgba(255,255,255,0.07);
  --hairline-strong: rgba(255,255,255,0.12);
  --separator:      rgba(255,255,255,0.05);

  --text:      #f2f2f7;
  --text-2:    #d1d1d6;
  --dim:       #8e8e93;
  --dim-2:     #48484a;

  --accent:        #2f7bff;   /* slightly brighter on black */
  --accent-soft:   rgba(47,123,255,0.16);
  --accent-strong: #5e9bff;

  --green:     #30d158;
  --green-soft: rgba(48,209,88,0.18);
  --red:       #ff453a;
  --red-soft:  rgba(255,69,58,0.18);
  --amber:     #ff9f0a;
  --amber-soft: rgba(255,159,10,0.18);
  --purple:    #bf5af2;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
  --shadow-fab: 0 8px 24px rgba(47,123,255,0.45);
}

/* ─── RESET + BASE ───────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  font-feature-settings: 'ss01','cv11','ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  letter-spacing: -0.01em;
  line-height: 1.47;
}
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}
button { cursor: pointer; user-select: none; }
a { color: var(--accent); text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ─── TYPE SCALE (Apple HIG) ─────────────────────────────── */
.type-large-title { font-size: 34px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.12; }
.type-title-1     { font-size: 28px; font-weight: 700; letter-spacing: -0.016em; line-height: 1.18; }
.type-title-2     { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.22; }
.type-title-3     { font-size: 20px; font-weight: 600; letter-spacing: -0.008em; line-height: 1.25; }
.type-headline    { font-size: 17px; font-weight: 600; letter-spacing: -0.004em; }
.type-body        { font-size: 17px; font-weight: 400; }
.type-callout     { font-size: 16px; font-weight: 400; }
.type-subheadline { font-size: 15px; font-weight: 400; color: var(--text-2); }
.type-footnote    { font-size: 13px; font-weight: 400; color: var(--dim); }
.type-caption     { font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.type-mono        { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0; }
.type-eyebrow     { font-size: 11px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── SPACING SCALE ──────────────────────────────────────── */
/* 4 / 8 / 12 / 16 / 20 / 24 / 32 / 40 / 56 / 80 px */

/* ─── COMPONENTS ─────────────────────────────────────────── */

/* SafeArea wrappers */
.safe-top { padding-top: env(safe-area-inset-top, 0); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* Cards */
.bk-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.bk-card-lg { border-radius: 18px; }
.bk-card-xl { border-radius: 22px; box-shadow: var(--shadow-md); }

/* Hairline divider */
.bk-divider {
  height: 0.5px;
  background: var(--hairline);
  margin: 12px 0;
}

/* Buttons */
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1), background 0.15s ease;
  min-height: 44px;
}
.bk-btn:active { transform: scale(0.97); }
.bk-btn-primary { background: var(--accent); color: #fff; }
.bk-btn-primary:active { background: var(--accent-strong); }
.bk-btn-secondary { background: var(--accent-soft); color: var(--accent); }
.bk-btn-tinted { background: var(--panel); color: var(--text); border: 1px solid var(--hairline); }
.bk-btn-plain { color: var(--accent); padding: 8px 12px; }
.bk-btn-large { padding: 16px 24px; font-size: 17px; min-height: 52px; }

/* Pill / Segmented control */
.bk-segmented {
  display: inline-flex;
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 2px;
  gap: 0;
}
.bk-segmented button {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.15s ease;
}
.bk-segmented button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* List rows (iOS-style settings list) */
.bk-list {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  overflow: hidden;
}
.bk-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  min-height: 56px;
  border-bottom: 0.5px solid var(--separator);
  transition: background 0.12s ease;
}
.bk-list-row:last-child { border-bottom: none; }
.bk-list-row:active { background: var(--accent-soft); }
.bk-list-row .bk-row-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}
.bk-list-row .bk-row-body { flex: 1; min-width: 0; }
.bk-list-row .bk-row-title { font-size: 15px; font-weight: 500; line-height: 1.3; }
.bk-list-row .bk-row-sub { font-size: 13px; color: var(--dim); margin-top: 1px; }
.bk-list-row .bk-row-trail { color: var(--dim); font-size: 13px; }

/* Sticky frosted top bar */
.bk-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--overlay);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--hairline);
  padding: 14px 20px;
  padding-top: calc(env(safe-area-inset-top, 14px) + 14px);
}
.bk-topbar h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; }

/* Floating Action Button */
.bk-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1);
  z-index: 30;
}
.bk-fab:active { transform: scale(0.93); }
.bk-fab.is-active { background: var(--green); box-shadow: 0 8px 24px rgba(52,199,89,0.45); }

/* Toast */
.bk-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 64px);
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  background: rgba(28,28,30,0.94);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  box-shadow: var(--shadow-lg);
  border: 0.5px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}
.bk-toast.show { transform: translateX(-50%) translateY(0); }
.bk-toast.error { background: var(--red); }

/* Modal / Sheet */
.bk-sheet-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.bk-sheet-bg.show { display: flex; }
.bk-sheet {
  background: var(--surface);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  width: 100%;
  max-width: 540px;
  padding: 24px 24px calc(env(safe-area-inset-bottom, 24px) + 24px);
  max-height: 80vh;
  overflow-y: auto;
  border: 0.5px solid var(--hairline);
  border-bottom: none;
}
.bk-sheet h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; margin-bottom: 6px; }

/* Stat chip */
.bk-stat {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
}
.bk-stat-num { font-size: 24px; font-weight: 700; letter-spacing: -0.018em; line-height: 1.1; }
.bk-stat-num small { font-size: 13px; font-weight: 500; color: var(--dim); margin-left: 3px; }
.bk-stat-lbl { font-size: 11px; color: var(--dim); margin-top: 2px; font-weight: 500; letter-spacing: 0.02em; }

/* Badge */
.bk-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.bk-badge.accent { background: var(--accent-soft); color: var(--accent); }
.bk-badge.green  { background: var(--green-soft); color: var(--green); }
.bk-badge.red    { background: var(--red-soft); color: var(--red); }
.bk-badge.amber  { background: var(--amber-soft); color: var(--amber); }

/* Subtle hover lift on desktop */
@media (hover: hover) and (pointer: fine) {
  .bk-card:hover, .bk-list-row:hover { transition: box-shadow 0.2s ease; }
  .bk-list-row:hover { background: var(--accent-soft); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ═════════════════════════════════════════════════════════ */
/* APPLE.COM PATTERNS                                        */
/* Massive hero, bento grid, product tiles, sticky nav.      */
/* ═════════════════════════════════════════════════════════ */

/* Apple massive type — for marketing-page heroes */
.bk-display-1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; }
.bk-display-2 { font-size: clamp(32px, 4.8vw, 56px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.06; }
.bk-display-3 { font-size: clamp(24px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.1; }
.bk-eyebrow   { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; text-transform: none; }
.bk-tagline   { font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; color: var(--text-2); line-height: 1.45; max-width: 720px; }

/* Apple-style sticky nav */
.bk-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--overlay);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--hairline);
}
.bk-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
}
.bk-nav-brand { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.bk-nav-brand i { color: var(--accent); font-style: normal; }
.bk-nav-links { display: flex; gap: 4px; }
.bk-nav-links a {
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.bk-nav-links a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* Apple section + hero */
.bk-section { padding: clamp(56px, 8vw, 96px) 0; }
.bk-section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.bk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.bk-wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 28px; }

.bk-section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px);
}
.bk-section-h h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.08; }
.bk-section-h .more { font-size: 15px; color: var(--accent); font-weight: 500; white-space: nowrap; }

/* Hero (Apple-style: eyebrow + massive headline + tagline + CTAs) */
.bk-hero { padding: clamp(72px, 10vw, 120px) 0; text-align: left; border-bottom: 0.5px solid var(--hairline); }
.bk-hero-center { text-align: center; }
.bk-hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 32px); }
.bk-hero-center .bk-hero-ctas { justify-content: center; }

/* Apple pill CTAs */
.bk-pill {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  min-height: 38px;
}
.bk-pill-primary { background: var(--accent); color: #fff; }
.bk-pill-primary:hover { background: var(--accent-strong); text-decoration: none; }
.bk-pill-link { color: var(--accent); }
.bk-pill-link:hover { text-decoration: underline; }
.bk-pill-link::after { content: " ›"; font-weight: 600; }
.bk-pill-tinted { background: var(--accent-soft); color: var(--accent); }
.bk-pill-tinted:hover { background: rgba(37,99,235,0.18); }
.bk-pill:active { transform: scale(0.97); }

/* Bento grid — Apple-style mixed-size product tiles */
.bk-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bk-bento .bk-tile {
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.bk-bento .bk-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bk-bento .span-12 { grid-column: span 12; }
.bk-bento .span-8  { grid-column: span 8; }
.bk-bento .span-6  { grid-column: span 6; }
.bk-bento .span-4  { grid-column: span 4; }
.bk-bento .span-3  { grid-column: span 3; }

.bk-tile .bk-tile-eyebrow { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.bk-tile h3 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; letter-spacing: -0.014em; line-height: 1.12; }
.bk-tile p { font-size: 15px; color: var(--text-2); line-height: 1.5; max-width: 56ch; }
.bk-tile .bk-tile-foot { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.bk-tile .bk-tile-num { font-size: clamp(48px, 6vw, 80px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--accent); margin: 8px 0; }

@media (max-width: 900px) {
  .bk-bento { grid-template-columns: 1fr; }
  .bk-bento .bk-tile, .bk-bento [class*="span-"] { grid-column: span 1 !important; min-height: 240px; }
  .bk-nav-links { display: none; }
}

/* Apple-style data table */
.bk-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 0.5px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.bk-table th { text-align: left; padding: 14px 18px; background: var(--panel); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); border-bottom: 0.5px solid var(--hairline); }
.bk-table td { padding: 14px 18px; font-size: 14px; border-bottom: 0.5px solid var(--separator); }
.bk-table tbody tr:last-child td { border-bottom: none; }
.bk-table .num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

/* Apple footer */
.bk-footer-apple {
  padding: 40px 28px 32px;
  border-top: 0.5px solid var(--hairline);
  background: var(--panel);
  font-size: 12px;
  color: var(--dim);
  text-align: center;
  letter-spacing: 0;
}
.bk-footer-apple a { color: var(--text-2); margin: 0 8px; }
.bk-footer-apple .copy { margin-top: 8px; }

/* Photo / image hero (Apple often pairs hero with full-bleed image) */
.bk-image-hero {
  width: 100%;
  aspect-ratio: 16/8;
  background: var(--panel);
  border-radius: 22px;
  overflow: hidden;
  margin: clamp(24px, 3vw, 40px) 0;
  border: 0.5px solid var(--hairline);
}
.bk-image-hero img { width: 100%; height: 100%; object-fit: cover; }

/* Subtle CTA strip Apple uses at section bottoms */
.bk-cta-strip { display: inline-flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.bk-cta-strip a { font-size: 17px; color: var(--accent); font-weight: 400; }
.bk-cta-strip a::after { content: " ›"; font-weight: 600; }
.bk-cta-strip a:hover { text-decoration: underline; }

/* ═════════════════════════════════════════════════════════ */
/* APP-WIDE COMPONENTS — canonical visual language           */
/* Single source for the gradient hero, pill action row,     */
/* black CTA, mini-stats, status pill. Used across every     */
/* customer-facing screen.                                   */
/* ═════════════════════════════════════════════════════════ */

/* Gradient hero card — Behike blue */
.bk-hero-gradient {
  position: relative;
  margin: 0 20px;
  background: linear-gradient(135deg, #4f8aff 0%, #2563eb 55%, #1d4ed8 100%);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 10px 28px rgba(37,99,235,0.22), 0 2px 6px rgba(37,99,235,0.10);
  color: #fff;
  overflow: hidden;
}
.bk-hero-gradient::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 100% 0%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.bk-hero-gradient .who      { position: relative; font-size: 12px; color: rgba(255,255,255,0.78); margin-bottom: 6px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.bk-hero-gradient .head     { position: relative; font-size: 28px; font-weight: 700; letter-spacing: -0.022em; line-height: 1.18; margin-bottom: 14px; color: #fff; }
.bk-hero-gradient .body     { position: relative; font-size: 15px; color: rgba(255,255,255,0.92); line-height: 1.55; }
.bk-hero-gradient .big-num  { position: relative; display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.bk-hero-gradient .big-num strong { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.bk-hero-gradient .big-num span   { font-size: 13px; color: rgba(255,255,255,0.78); font-weight: 500; }

/* Stats inline on a gradient hero (white text) */
.bk-hero-metrics { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 4px; }
.bk-hero-metric .m-num { font-size: 28px; font-weight: 700; letter-spacing: -0.022em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.bk-hero-metric .m-lbl { font-size: 11px; color: rgba(255,255,255,0.78); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

/* Status pill — sits inside the gradient hero */
.bk-pill-status {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 14px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.bk-pill-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,0.25);
}
.bk-pill-status.attention::before { background: #ff9500; box-shadow: 0 0 0 3px rgba(255,149,0,0.30); }
.bk-pill-status.alert::before { background: #ff3b30; box-shadow: 0 0 0 3px rgba(255,59,48,0.30); }

/* Action row — 4 light pills, app-wide */
.bk-action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 20px 0; }
.bk-action-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bk-action-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.bk-pill-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--surface);
  border: 0.5px solid var(--hairline);
  border-radius: 18px;
  color: var(--text);
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
  min-height: 76px;
}
.bk-pill-btn:active { transform: scale(0.96); }
.bk-pill-btn:hover { box-shadow: var(--shadow-md); }
.bk-pill-btn .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.bk-pill-btn .ico svg { width: 18px; height: 18px; }
.bk-pill-btn.accent .ico { background: var(--green-soft); color: var(--green); }
.bk-pill-btn.warn   .ico { background: var(--amber-soft); color: var(--amber); }
.bk-pill-btn.danger .ico { background: var(--red-soft);   color: var(--red); }
.bk-pill-btn .label { line-height: 1.1; }

/* Black-pill full-width CTA */
.bk-cta-black {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 40px);
  margin: 14px 20px 0;
  padding: 16px;
  background: #0a0a0a;
  color: #fff;
  border: none; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease;
  min-height: 52px;
}
.bk-cta-black:active { transform: scale(0.985); }
.bk-cta-black:disabled { background: var(--dim); cursor: not-allowed; transform: none; }

/* Mini-stats — three small chips below a hero */
.bk-mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 20px 0; }
.bk-mini-stats.cols-2 { grid-template-columns: repeat(2,1fr); }
.bk-mini-stats.cols-4 { grid-template-columns: repeat(4,1fr); }
.bk-mini-stat {
  background: var(--surface); border: 0.5px solid var(--hairline);
  border-radius: 14px; padding: 12px 14px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.bk-mini-stat .mini-num { font-size: 22px; font-weight: 700; letter-spacing: -0.018em; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.1; }
.bk-mini-stat .mini-lbl { font-size: 11px; color: var(--dim); font-weight: 500; margin-top: 2px; }

/* Severity chips — used for alerts and incidents */
.bk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.bk-chip.green { background: var(--green-soft); color: var(--green); }
.bk-chip.amber { background: var(--amber-soft); color: var(--amber); }
.bk-chip.red   { background: var(--red-soft); color: var(--red); }
.bk-chip.blue  { background: var(--accent-soft); color: var(--accent); }
.bk-chip.gray  { background: rgba(142,142,147,0.16); color: var(--dim); }

/* Section heading — used to introduce a stack of cards */
.bk-section-eyebrow { font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; padding: 0 24px; margin: 28px 0 10px; }

/* Mobile responsive */
@media (max-width: 360px) {
  .bk-action-row { grid-template-columns: repeat(2, 1fr); }
  .bk-hero-metrics { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .bk-mini-stats { grid-template-columns: repeat(2, 1fr); }
}
