/* ============================================================
   helm — homepage variations shared styles
   ============================================================ */

:root {
  /* Brand */
  --brand-1: #14B8A6;
  --brand-2: #0EA5E9;
  --brand-grad: linear-gradient(135deg, #14B8A6 0%, #0EA5E9 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(20,184,166,0.10) 0%, rgba(14,165,233,0.10) 100%);
  --brand-ink: #0F2A36;

  /* Neutrals (from nimbly-admin-ui grey scale) */
  --grey-50:  #FCFDFD;
  --grey-100: #F9FAFB;
  --grey-200: #F4F6F8;
  --grey-300: #DFE3E8;
  --grey-400: #C4CDD5;
  --grey-500: #919EAB;
  --grey-600: #637381;
  --grey-700: #454F5B;
  --grey-800: #1C252E;
  --grey-900: #141A21;

  /* Status */
  --success: #22C55E;
  --warning: #FFAB00;
  --error:   #FF5630;
  --info:    #00B8D9;

  /* Surfaces (light) */
  --bg:        #FFFFFF;
  --bg-soft:   #F9FAFB;
  --bg-tint:   #F4F6F8;
  --ink-1:     #0F2A36;
  --ink-2:     #454F5B;
  --ink-3:     #637381;
  --line:      #E5E9EE;
  --line-soft: #EEF1F4;
}

/* Dark mode overrides applied when [data-theme="dark"] */
[data-theme="dark"] {
  --bg:        #0B1620;
  --bg-soft:   #0F1E2A;
  --bg-tint:   #14242F;
  --ink-1:     #FFFFFF;
  --ink-2:     #C4CDD5;
  --ink-3:     #919EAB;
  --line:      #1F2F3B;
  --line-soft: #182834;
}

/* Reset within artboard */
.helm-art *,
.helm-art *::before,
.helm-art *::after {
  box-sizing: border-box;
}

.helm-art {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  color: var(--ink-1);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  width: 1440px;
}

.helm-art img,
.helm-art svg {
  display: block;
  max-width: 100%;
}

.helm-art a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Reusable atoms
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--brand-ink);
  color: #fff;
}
.btn-primary.brand-gradient {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 16px -8px rgba(14,165,233,.55);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-1);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-tint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-1);
}

/* Pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.chip.brand {
  background: rgba(20,184,166,0.08);
  color: #0E7B70;
  border-color: rgba(20,184,166,0.18);
}
.chip.warning {
  background: rgba(255,171,0,0.10);
  color: #8A5A00;
  border-color: rgba(255,171,0,0.22);
}
.chip.success {
  background: rgba(34,197,94,0.10);
  color: #0F7A3D;
  border-color: rgba(34,197,94,0.22);
}
.chip.error {
  background: rgba(255,86,48,0.10);
  color: #B23A20;
  border-color: rgba(255,86,48,0.22);
}

/* ============================================================
   Logo
   ============================================================ */
.helm-logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--brand-ink);
}
[data-theme="dark"] .helm-logo { color: #fff; }
.helm-logo svg { height: 28px; width: auto; }

/* ============================================================
   Fake UI primitives — used in mocked product screenshots
   ============================================================ */
.ui-window {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgba(15,42,54,0.04),
    0 24px 48px -16px rgba(15,42,54,0.18),
    0 60px 100px -40px rgba(15,42,54,0.16);
  overflow: hidden;
  color: #1C252E;
  font-size: 13px;
}
.ui-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FCFDFD, #F4F6F8);
}
.ui-traffic { display: flex; gap: 6px; }
.ui-traffic span { width: 11px; height: 11px; border-radius: 50%; background: #DFE3E8; }
.ui-traffic span:nth-child(1) { background: #FF5F57; }
.ui-traffic span:nth-child(2) { background: #FEBC2E; }
.ui-traffic span:nth-child(3) { background: #28C840; }
.ui-url {
  flex: 1; text-align: center;
  font-size: 12px; color: #637381;
  background: #fff;
  border: 1px solid #DFE3E8;
  border-radius: 8px;
  padding: 4px 10px;
}

/* Sidebar */
.ui-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 0; }

/* Main pane peek-into-app affordance:
   - soft fade-out at the bottom suggests there's more content below the fold
   - tiny static scrollbar hint on the right says "this is a scrollable app"
   The Mock* content reserves bottom padding so the fade sits over padding, not data. */
.ui-shell > main { position: relative; }
.ui-shell > main::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(to top, #FBFCFD 35%, rgba(251,252,253,0));
  pointer-events: none; z-index: 1;
}
.ui-shell > main::before {
  content: "";
  position: absolute; right: 4px; top: 64px; bottom: 24px;
  width: 4px; border-radius: 3px;
  background:
    linear-gradient(to bottom,
      rgba(15,42,54,0.04) 0%, rgba(15,42,54,0.04) 22%,
      rgba(15,42,54,0.18) 22%, rgba(15,42,54,0.18) 48%,
      rgba(15,42,54,0.04) 48%, rgba(15,42,54,0.04) 100%);
  pointer-events: none; z-index: 2;
}
.ui-side {
  background: #FBFCFD;
  border-right: 1px solid var(--line);
  padding: 14px 12px;
}
.ui-side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 6px 14px; }
.ui-side-brand .dot {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--brand-grad);
}
.ui-side-brand span { font-weight: 600; font-size: 14px; color: #0F2A36; letter-spacing: -0.02em; }
.ui-nav-group { margin-top: 12px; }
.ui-nav-group h6 { font-size: 10px; font-weight: 600; color: #919EAB; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; margin: 0; }
.ui-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 8px;
  font-size: 13px; color: #454F5B; font-weight: 500;
  margin: 2px 0;
}
.ui-nav-item.active { background: rgba(20,184,166,0.10); color: #0E7B70; }
.ui-nav-item .ic {
  width: 16px; height: 16px; border-radius: 4px;
  background: #DFE3E8;
  flex: 0 0 auto;
}
.ui-nav-item.active .ic { background: var(--brand-grad); }

/* Topbar */
.ui-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.ui-search {
  flex: 1;
  background: #F4F6F8;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  color: #919EAB;
  display: flex; align-items: center; gap: 8px;
}
.ui-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #FFD666, #FFAB00); display: inline-flex; align-items: center; justify-content: center; color:#fff; font-weight: 700; font-size: 12px; }
.ui-icon-btn { width: 32px; height: 32px; border-radius: 8px; background: #F4F6F8; display: inline-flex; align-items: center; justify-content: center; color: #637381; }

/* Cards */
.ui-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.ui-stat-label { font-size: 12px; color: #637381; font-weight: 500; }
.ui-stat-value { font-size: 28px; font-weight: 700; color: #0F2A36; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; font-feature-settings: 'tnum'; }
.ui-stat-delta { font-size: 12px; font-weight: 600; }
.ui-stat-delta.up { color: #118D57; }
.ui-stat-delta.down { color: #B71D18; }

/* Table */
.ui-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
}
.ui-table th {
  text-align: left;
  font-weight: 600; font-size: 11px;
  color: #919EAB; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.ui-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); color: #1C252E; }
.ui-table tr:last-child td { border-bottom: none; }

/* Bar chart */
.ui-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.ui-bars .bar { flex: 1; background: var(--brand-grad); border-radius: 4px 4px 0 0; opacity: .85; }
.ui-bars .bar.muted { background: #DFE3E8; }

/* Line chart sparkline (svg-built inline per file) */

/* Avatars stack */
.ui-stack { display: inline-flex; }
.ui-stack > * { margin-left: -8px; border: 2px solid #fff; border-radius: 50%; width: 26px; height: 26px; }
.ui-stack > *:first-child { margin-left: 0; }

/* Tags */
.ui-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: #F4F6F8; color: #454F5B;
}
.ui-tag.brand { background: rgba(20,184,166,0.12); color: #0E7B70; }
.ui-tag.warn  { background: rgba(255,171,0,0.14); color: #8A5A00; }
.ui-tag.ok    { background: rgba(34,197,94,0.14); color: #0F7A3D; }
.ui-tag.err   { background: rgba(255,86,48,0.14); color: #B23A20; }
.ui-tag.purple{ background: rgba(142,51,255,0.12); color: #5119B7; }

/* placeholder pattern (for swatches we expect customer logos / photos to go) */
.helm-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--bg-tint) 0 6px, transparent 6px 12px),
    var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  letter-spacing: 0.04em;
}

/* Section spacing */
.helm-section { padding: 96px 80px; }
.helm-section.tight { padding: 64px 80px; }

/* Display headings */
.h-display {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink-1);
}
.h-display.sm { font-size: 44px; }
.h-display.md { font-size: 56px; }
.h-display.lg { font-size: 76px; }
.h-display.xl { font-size: 92px; }

.h-eyebrow-lg {
  font-size: 14px; font-weight: 600;
  color: var(--brand-1);
  letter-spacing: 0;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  max-width: 640px;
}
