/**
 * AdZhi — Design System v3
 * ========================
 * Refined dark intelligence aesthetic.
 * Bloomberg × premium creative tool × acoustic precision.
 */

/* ── TOKENS ── */
:root {
  /* Brand */
  --teal:        #01292b;
  --teal-mid:    #0d3230;
  --teal-deep:   #091f21;
  --teal-light:  #b4e1dc;
  --teal-pale:   #e8f5f4;
  --accent:      #00c9b1;
  --accent-glow: rgba(0,201,177,.18);

  /* Ink */
  --ink:     #0a1628;
  --muted:   #4a5557;
  --subtle:  #9ca8ab;

  /* Surfaces */
  --bg:          #f0f4f3;
  --bg-card:     #ffffff;
  --bg-hover:    #f6fafa;
  --glass:       rgba(255,255,255,.72);
  --glass-dark:  rgba(1,41,43,.88);

  /* Borders */
  --border:      #d8e8e6;
  --border-dark: rgba(180,225,220,.12);

  /* Semantic */
  --green:       #16a34a;
  --green-bg:    #dcfce7;
  --green-text:  #14532d;
  --red:         #dc2626;
  --red-bg:      #fee2e2;
  --red-text:    #7f1d1d;
  --amber:       #d97706;
  --amber-bg:    #fef3c7;
  --amber-text:  #78350f;
  --purple:      #7c3aed;
  --purple-bg:   #ede9fe;
  --blue:        #2563eb;

  /* Typography */
  --font-sans:    "DM Sans", system-ui, sans-serif;
  --font-serif:   "DM Serif Display", Georgia, serif;
  --font-mono:    "JetBrains Mono", "Fira Code", monospace;

  /* Radius */
  --r-xs:  4px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Shadows — layered for depth */
  --shadow-xs: 0 1px 2px rgba(1,41,43,.04);
  --shadow-sm: 0 1px 3px rgba(1,41,43,.06), 0 1px 2px rgba(1,41,43,.04);
  --shadow-md: 0 4px 16px rgba(1,41,43,.08), 0 1px 3px rgba(1,41,43,.05);
  --shadow-lg: 0 12px 40px rgba(1,41,43,.12), 0 2px 8px rgba(1,41,43,.06);
  --shadow-xl: 0 24px 64px rgba(1,41,43,.16), 0 4px 12px rgba(1,41,43,.08);
  --shadow-glow: 0 0 0 1px rgba(0,201,177,.2), 0 4px 24px rgba(0,201,177,.12);

  /* Layout */
  --header-h:      56px;
  --max-w:         1080px;
  --max-w-narrow:  780px;

  /* Spacing — 4pt grid */
  --sp-1:   4px;  --sp-2:   8px;  --sp-3:  12px;  --sp-4:  16px;
  --sp-5:  20px;  --sp-6:  24px;  --sp-8:  32px;  --sp-10: 40px;
  --sp-12: 48px;  --sp-16: 64px;  --sp-20: 80px;

  /* Type scale — modular ratio ~1.25× per step */
  --text-xs:   .65rem;
  --text-sm:   .75rem;
  --text-body: .875rem;
  --text-ui:   .875rem;
  --text-read: 1rem;
  --text-h4:   1.1rem;
  --text-h3:   clamp(1.15rem, 2vw, 1.5rem);
  --text-h2:   clamp(1.6rem, 3vw, 2.4rem);
  --text-h1:   clamp(2.2rem, 4.5vw, 3.5rem);

  /* Motion */
  --t-fast:   100ms ease;
  --t-base:   180ms ease;
  --t-slow:   340ms cubic-bezier(.16,1,.3,1);
  --t-spring: 500ms cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'kern' 1, 'liga' 1; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

/* ── GLOBAL HEADING LETTER-SPACING ── */
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }
/* Section labels / eyebrows — uppercase tracked out */
.section-label,
.sec-label,
.label,
.eyebrow,
.section-eyebrow {
  letter-spacing: 0.08em;
}

/* ── CUSTOM SCROLLBAR ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(1,41,43,.16); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(1,41,43,.28); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: rgba(1,41,43,.16) transparent; }

/* ── TEXT SELECTION ── */
::selection     { background: rgba(0,201,177,.22); color: var(--teal); }
::-moz-selection { background: rgba(0,201,177,.22); color: var(--teal); }

/* Tabular nums for all metric displays */
.stat-num, .score-ring-num, .sig-val, .ih-stat-num { font-feature-settings: 'tnum' 1; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img, canvas { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }

/* ── HEADER ── */
.az-header {
  background: var(--teal);
  height: var(--header-h);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle noise texture on header */
.az-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: .4;
}

.az-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  letter-spacing: -.4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: .92;
}

.az-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.az-nav a,
.az-nav button {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(180,225,220,.6);
  background: none;
  border: none;
  padding: 5px 11px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  letter-spacing: -.01em;
  line-height: 1;
}
.az-nav a:hover,
.az-nav button:hover {
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.07);
}
.az-nav a[aria-current="page"],
.az-nav a.active,
.az-nav a.nav-active {
  color: white;
  font-weight: 600;
  background: rgba(255,255,255,.07);
  position: relative;
}
.az-nav a[aria-current="page"]::after,
.az-nav a.active::after,
.az-nav a.nav-active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.az-nav .nav-cta {
  background: var(--accent) !important;
  color: var(--teal) !important;
  font-weight: 600 !important;
  margin-left: 6px;
  border-radius: 8px !important;
  padding: 5px 14px !important;
  transition: filter 0.15s ease, transform 0.2s ease !important;
}
.az-nav .nav-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* ── MARKETING NAV ── */
.az-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.az-nav-links {
  display: flex;
  gap: 2px;
}
.az-nav-links a {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(180,225,220,.7);
  padding: 5px 11px;
  border-radius: var(--r-sm);
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.az-nav-links a:hover,
.az-nav-links a.active {
  color: white;
  background: rgba(255,255,255,.07);
}
.az-nav-actions { display: flex; gap: 8px; align-items: center; }

/* ── PAGE WRAPPERS ── */
.az-main        { max-width: var(--max-w);        margin: 0 auto; padding: 32px 24px 100px; width: 100%; }
.az-main-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 32px 24px 100px; width: 100%; }

/* ── FOOTER ── */
.az-footer {
  background: var(--teal);
  color: var(--teal-light);
  padding: 44px 24px 28px;
  margin-top: auto;
}
.az-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(180,225,220,.08);
}
.az-footer-brand .az-logo { font-size: 1.15rem; color: white; margin-bottom: 10px; display: block; opacity: .85; }
.az-footer-brand p { font-size: .78rem; color: rgba(180,225,220,.48); line-height: 1.65; max-width: 200px; }
.az-footer-col h5 { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; opacity: .8; }
.az-footer-col a { display: block; font-size: .78rem; color: rgba(180,225,220,.55); margin-bottom: 8px; transition: color 0.15s ease; }
.az-footer-col a:hover { color: rgba(180,225,220,.95); }
.az-footer-bottom { max-width: var(--max-w); margin: 22px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: .72rem; color: rgba(180,225,220,.32); flex-wrap: wrap; gap: 8px; }
.az-footer-bottom a { color: inherit; transition: color 0.15s ease; }
.az-footer-bottom a:hover { color: rgba(180,225,220,.6); }
@media (max-width: 680px) {
  .az-footer-inner { grid-template-columns: 1fr 1fr; }
  .az-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .az-footer-inner { grid-template-columns: 1fr; }
}

/* ── JOB PROGRESS BAR (dashboard recent list) ── */
.jr-progress-track {
  height: 3px;
  background: rgba(0,201,177,.12);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.jr-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .6s cubic-bezier(.16,1,.3,1);
  min-width: 6px;
}
.jr-progress-fill.indeterminate {
  width: 40% !important;
  animation: progress-slide 1.8s ease-in-out infinite;
}
@keyframes progress-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── PAGE HEADER ── */
.page-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 4px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.page-sub {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.65;
  font-weight: 400;
}

/* ── SECTION LABEL ── */
.sec-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sec-label::before {
  content: '';
  display: block;
  width: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── CARD — three variants ── */
.card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-2px);
  border-color: #b5d5d2;
}

/* Elevated card — key sections */
.card-elevated {
  background: var(--bg-card);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-elevated:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* Dark card — accent sections */
.card-dark {
  background: var(--teal);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.card-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 0%,rgba(0,201,177,.1) 0%,transparent 60%);
  pointer-events: none;
}

.card-pad  { padding: 22px 26px; }
.card-pad-sm { padding: 14px 18px; }

/* Section card — used on account, api-keys pages */
.section { background: white; border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.section-title { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.section-title::before { content: ''; display: block; width: 12px; height: 2.5px; background: var(--accent); border-radius: 2px; }

.card-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title::before {
  content: '';
  display: block;
  width: 12px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 1px;
  flex-shrink: 0;
}
.card-action {
  font-size: .75rem;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: none;
  padding: 3px 8px;
  border-radius: 8px;
  transition: background 0.15s ease;
}
.card-action:hover { background: var(--teal-pale); }

/* ── BUTTONS ── */
/* Three tiers: primary (teal), secondary/ghost (outline), text-link */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1;
  position: relative;
  letter-spacing: -.01em;
}

/* Primary: teal bg, white text */
.btn-primary {
  background: var(--teal);
  color: white;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(1,41,43,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-primary:hover {
  background: #023537;
  box-shadow: 0 4px 16px rgba(0,201,177,.3);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: none !important;
}

/* Secondary/ghost: transparent bg, teal border, teal text */
.btn-secondary {
  background: white;
  color: var(--teal);
  border: 1.5px solid var(--border);
  box-shadow: 0 1px 2px rgba(1,41,43,.04);
  font-weight: 600;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--teal);
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
}

/* Accent: teal-green bg, teal text (maps to primary CTA colour) */
.btn-accent {
  background: var(--accent);
  color: var(--teal);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,201,177,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-accent:hover {
  filter: brightness(1.04);
  box-shadow: 0 4px 16px rgba(0,201,177,.38);
  transform: translateY(-2px);
}
.btn-accent:active  { transform: scale(.97) translateY(0) !important; }
.btn-secondary:active { transform: scale(.98) !important; }
.btn-ghost:active { transform: scale(.97) !important; }

/* Text-link tier: no bg, no border, teal text */
.btn-ghost {
  background: transparent;
  color: var(--teal);
  padding: 12px 24px;
  border: none;
}
.btn-ghost:hover {
  background: var(--teal-pale);
  text-decoration: none;
}
.btn-danger {
  background: white;
  color: var(--red-text);
  border: 1.5px solid #fca5a5;
  box-shadow: 0 1px 2px rgba(1,41,43,.04);
  font-weight: 600;
}
.btn-danger:hover { background: var(--red-bg); border-color: #f87171; }
.btn-sm  { padding: 5px 12px; font-size: .75rem; border-radius: 8px; }
.btn-lg  { padding: 12px 24px; font-size: .92rem; border-radius: 8px; }
.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
  background: #c8dedd !important;
  color: #7a9490 !important;
  border-color: #c8dedd !important;
}
.btn-accent:disabled { background: rgba(0,201,177,.25) !important; color: rgba(1,41,43,.4) !important; border-color: transparent !important; }

/* ── FORM FIELDS ── */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: .005em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .88rem;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.field input::placeholder,
.field textarea::placeholder { color: #888; }
.field input.has-error,
.field select.has-error,
.field textarea.has-error {
  border-color: var(--red);
  background: rgba(220,38,38,.03);
}
.field input.has-error:focus,
.field select.has-error:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.field-hint { font-size: .72rem; color: var(--muted); margin-top: 5px; }
.field-error { font-size: .72rem; color: var(--red); margin-top: 5px; font-weight: 500; }

.az-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .84rem;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 0.15s ease, outline-color 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
}
.az-input::placeholder { color: #888; }
.az-input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── FOCUS VISIBLE — outline approach, consistent everywhere ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }
.btn:focus-visible { outline-offset: 3px; }
/* inputs use :focus (not :focus-visible) for better keyboard/click parity */
.field input:not(:focus-visible):focus,
.field select:not(:focus-visible):focus,
.field textarea:not(:focus-visible):focus,
.az-input:not(:focus-visible):focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The main landmark is focusable for in-page anchors, but no focus ring needed */
main:focus { outline: none; }

/* ── CHIPS / BADGES ── */
/* Badge/pill system: fully rounded, consistent sizing */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.chip-done    { background: var(--green-bg);  color: var(--green-text); border: 1px solid rgba(22,163,74,.15); }
.chip-queue   { background: var(--amber-bg);  color: var(--amber-text); border: 1px solid rgba(217,119,6,.15); }
.chip-fail    { background: var(--red-bg);    color: var(--red-text);   border: 1px solid rgba(220,38,38,.15); }
.chip-info    { background: #dbeafe;          color: #1e40af;           border: 1px solid rgba(37,99,235,.12); }
.chip-neutral { background: var(--teal-pale); color: var(--teal);       border: 1px solid rgba(1,41,43,.08); }
.chip-purple  { background: var(--purple-bg); color: var(--purple);     border: 1px solid rgba(124,58,237,.15); }

/* ── SCORE RING — animated SVG ── */
.score-ring {
  position: relative;
  flex-shrink: 0;
}
.score-ring svg {
  position: absolute; top: 0; left: 0;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 4px rgba(0,201,177,.2));
}
.score-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -.02em;
}

/* ── METRIC BAR — progress bar with glow ── */
.metric-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.metric-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--t-slow);
  position: relative;
}
.metric-bar-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 8px;
  background: inherit;
  filter: blur(3px);
  opacity: .6;
}

/* ── ALERTS ── */
.alert {
  padding: 11px 15px;
  border-radius: var(--r-md);
  font-size: .84rem;
  line-height: 1.5;
  margin-bottom: 14px;
  border: 1px solid;
}
.alert-error   { background: var(--red-bg);   color: var(--red-text);   border-color: #fca5a5; }
.alert-success { background: var(--green-bg);  color: var(--green-text); border-color: #86efac; }
.alert-warn    { background: var(--amber-bg);  color: var(--amber-text); border-color: #fde68a; }
.alert-info    { background: #dbeafe;          color: #1e40af;           border-color: #bfdbfe; }
.alert { display: none; }
.alert.show { display: block; animation: fadeUp .3s var(--t-slow) both; }

/* ── SPINNER ── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: az-spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner-sm    { width: 12px; height: 12px; border-width: 1.5px; }
.spinner-lg    { width: 22px; height: 22px; border-width: 2.5px; }
.spinner-white { border-color: rgba(255,255,255,.2); border-top-color: white; }
@keyframes az-spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: .4;
}
.empty-state h3 { font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.empty-state p  { font-size: .84rem; line-height: 1.55; }

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--subtle); font-size: .75rem; margin: 18px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── WAVEFORM — acoustic visualisation primitive ── */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
}
.waveform-bar {
  flex: 1;
  border-radius: 1px 1px 0 0;
  background: var(--accent);
  min-width: 2px;
  transition: height 0.3s ease;
}

/* ── STAT BLOCK ── */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-num-sm { font-size: 1.3rem; }
.stat-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── SIGNAL INDICATOR ── */
.signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
}
.signal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.signal-good .signal-dot  { background: var(--green); box-shadow: 0 0 6px rgba(22,163,74,.4); }
.signal-warn .signal-dot  { background: var(--amber); box-shadow: 0 0 6px rgba(217,119,6,.4); }
.signal-bad  .signal-dot  { background: var(--red);   box-shadow: 0 0 6px rgba(220,38,38,.4); }

/* ── GLASS PANEL — for overlapping UI elements ── */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.glass-panel-dark {
  background: var(--glass-dark);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-lg);
}

/* ── GRADIENT MESH — ambient background effect ── */
.mesh-bg {
  position: relative;
  isolation: isolate;
}
.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0,201,177,.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 80% 80%, rgba(124,58,237,.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── DATA TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 11px 12px;
  font-size: .84rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ── TOAST ── */
.az-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  transform: translateY(16px);
  opacity: 0;
  background: var(--teal);
  color: white;
  padding: 11px 18px 11px 16px;
  border-radius: var(--r-lg);
  font-size: .84rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(1,41,43,.28), 0 2px 8px rgba(1,41,43,.16), inset 0 1px 0 rgba(255,255,255,.08);
  z-index: 9999;
  transition: transform var(--t-slow), opacity .25s ease;
  white-space: nowrap;
  border: 1px solid rgba(180,225,220,.14);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 56px);
}
.az-toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.az-toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 640px) {
  .az-toast { right: 16px; bottom: 80px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn  { from { opacity:0; transform:scale(.96); } to { opacity:1; transform:scale(1); } }
@keyframes slideRight { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulse    { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }
@keyframes shimmer  { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes glow-pulse { 0%,100%{box-shadow:0 0 0 0 rgba(0,201,177,0)} 50%{box-shadow:0 0 0 6px rgba(0,201,177,.15)} }

.anim-up    { animation: fadeUp  .5s var(--t-slow) both; }
.anim-in    { animation: fadeIn  .4s ease both; }
.anim-scale { animation: scaleIn .45s var(--t-slow) both; }
.anim-right { animation: slideRight .4s var(--t-slow) both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .10s; }
.d3 { animation-delay: .15s; } .d4 { animation-delay: .20s; }
.d5 { animation-delay: .25s; } .d6 { animation-delay: .30s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--bg-hover) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}
/* Hero-stat skeleton — works on dark teal background */
.stat-skeleton {
  display: inline-block;
  min-width: 48px;
  height: 1.75rem;
  background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.07) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 6px;
  vertical-align: middle;
}

/* ── UTILITIES ── */
.text-muted   { color: var(--muted); }
.text-ink     { color: var(--ink); }
.text-accent  { color: var(--accent); }
.text-teal    { color: var(--teal); }
.text-green   { color: var(--green); }
.text-red     { color: var(--red); }
.text-amber   { color: var(--amber); }
.text-white   { color: white; }
.font-serif   { font-family: var(--font-serif); }
.font-mono    { font-family: var(--font-mono); }
.font-600     { font-weight: 600; }
.font-700     { font-weight: 700; }
.text-sm      { font-size: .78rem; }
.text-xs      { font-size: .72rem; }
.text-read    { font-size: 1rem; line-height: 1.75; }
.text-center  { text-align: center; }
.flex         { display: flex; }
.flex-1       { flex: 1; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.flex-wrap    { flex-wrap: wrap; }
.gap-2  { gap: 2px; }  .gap-4  { gap: 4px; }  .gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.mt-4  { margin-top: 4px;  } .mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-4  { margin-bottom: 4px;  } .mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden  { display: none !important; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* App nav: secondary links hidden */
  .az-nav a.hide-mobile,
  .az-nav-links a.hide-mobile { display: none; }

  /* Marketing nav: collapse link list entirely */
  .az-nav-links { display: none; }

  /* Layout */
  .az-main, .az-main-narrow { padding: 20px 16px 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Tables: horizontal scroll on small screens */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

@media (max-width: 640px) {
  /* Marketing nav: hide login ghost, keep primary CTA */
  .az-nav-actions .btn-ghost { display: none; }
  .az-nav-inner { padding: 0 16px; gap: 12px; }

  /* App header: tighter padding, scrollable nav for overflow */
  .az-header { padding: 0 14px; gap: 8px; }
  .az-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    max-width: calc(100vw - 90px);
  }
  .az-nav::-webkit-scrollbar { display: none; }
  .az-nav a, .az-nav button { padding: 4px 9px; font-size: .76rem; white-space: nowrap; }

  /* Page headers */
  .page-title { font-size: 1.4rem; }
  .page-sub   { font-size: .82rem; margin-bottom: 20px; }

  /* Cards */
  .card-pad    { padding: 16px 18px; }
  .card-pad-sm { padding: 10px 14px; }

  /* Utility overrides */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 10px; }

  /* Footer */
  .az-footer { padding: 28px 16px 20px; }
}

@media (max-width: 480px) {
  :root { --header-h: 50px; }
  .btn-lg  { padding: 10px 18px; font-size: .88rem; }
  .btn     { font-size: .82rem; }
  .az-logo { font-size: 1rem; }
  .page-title { font-size: 1.25rem; }
  .card-pad   { padding: 14px 16px; }
}

@media (max-width: 375px) {
  /* iPhone SE and similar small phones */
  .az-main, .az-main-narrow { padding-left: 12px; padding-right: 12px; }
  .az-nav a, .az-nav button { padding: 4px 7px; font-size: .72rem; }
}

/* ── MARKETING NAV WRAPPER ── */
nav.az-nav {
  background: var(--teal);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(.25,.46,.45,.94), transform 0.55s cubic-bezier(.25,.46,.45,.94);
}
.reveal.revealed { opacity: 1; transform: none; }
/* Legacy .visible alias so inline JS can also use it */
.reveal.visible  { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════
   MOBILE HAMBURGER  (marketing landing nav)
═══════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: rgba(180,225,220,.85);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(1,41,43,.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(180,225,220,.1);
  z-index: 899;
  padding: 16px 20px 24px;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .22s cubic-bezier(.16,1,.3,1), opacity .2s;
}
.nav-drawer.open {
  display: flex;
  transform: none;
  opacity: 1;
}
.nav-drawer a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(180,225,220,.8);
  padding: 12px 8px;
  border-radius: 10px;
  border-bottom: 1px solid rgba(180,225,220,.07);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: white; background: rgba(255,255,255,.05); }
.nav-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.nav-drawer-actions a {
  flex: 1;
  text-align: center;
  border-bottom: none !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .az-header .az-nav { display: none; }
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV  (app pages)
═══════════════════════════════════════════════════════ */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(1,41,43,.97);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(180,225,220,.12);
    z-index: 500;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  }
  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px 6px;
    min-height: 52px;
    color: rgba(180,225,220,.4);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-item.active, .mbn-item.mbn-active, .mbn-item:hover { color: var(--accent); }
  .mbn-item.active .mbn-icon,
  .mbn-item.mbn-active .mbn-icon { background: rgba(0,201,177,.12); border-radius: 8px; }
  .mbn-item.active::before,
  .mbn-item.mbn-active::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }
  .mbn-item { position: relative; }
  .mbn-icon { display: block; width: 22px; height: 22px; flex-shrink: 0; padding: 4px; transition: background 0.15s ease; }
  .mbn-icon svg { display: block; width: 14px; height: 14px; }
  /* Push page content above bottom nav */
  .az-main, .az-main-narrow { padding-bottom: 90px !important; }
}

/* ── PAGE LOAD PROGRESS BAR ── */
#az-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,201,177,.6));
  z-index: 9999;
  transition: width .3s ease, opacity .4s ease;
  box-shadow: 0 0 8px rgba(0,201,177,.5);
  pointer-events: none;
}
#az-progress.done { width: 100%; opacity: 0; }

/* ── METRIC TOOLTIP — data-tip attribute hover ── */
[data-tip] { cursor: help; position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 0; bottom: calc(100% + 8px);
  width: 200px; padding: 8px 12px;
  background: rgba(1,41,43,.95); color: rgba(200,235,230,.9);
  font-size: .72rem; font-weight: 400; line-height: 1.5;
  border-radius: 9px; pointer-events: none; opacity: 0;
  z-index: 200; white-space: normal;
  box-shadow: 0 6px 24px rgba(1,41,43,.35);
  border: 1px solid rgba(180,225,220,.12);
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(4px);
}
[data-tip]:hover::after { opacity: 1; transform: translateY(0); }
/* On dark backgrounds use lighter tooltip */
.intel-hero [data-tip]::after {
  background: rgba(255,255,255,.96); color: var(--teal);
  box-shadow: 0 6px 24px rgba(1,41,43,.28);
  border: 1px solid rgba(0,201,177,.18);
}

/* ── IN-PROGRESS JOB PULSE ── */
.job-processing {
  background: rgba(0,201,177,.03) !important;
  border-color: rgba(0,201,177,.3) !important;
  animation: jobPulse 2.5s ease-in-out infinite;
}
@keyframes jobPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,177,.15); }
  50%       { box-shadow: 0 0 0 6px rgba(0,201,177,.05); }
}

/* ── UPGRADE NUDGE FADE OUT ── */
@keyframes nudgeFadeOut { to { opacity: 0; transform: translateY(-8px); } }

/* ── TREND INDICATOR ── */
.sig-trend { font-size: .62rem; font-weight: 600; min-height: 1em; margin-top: 4px; letter-spacing: .01em; }
.trend-up   { color: rgba(74,222,128,.9); }
.trend-down { color: rgba(239,100,100,.9); }
.trend-flat { color: rgba(180,225,220,.4); }

/* ── GLOBAL CARD SHADOW SYSTEM — applies to page-scoped card variants ── */
/* Step cards (landing page) */
.step-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.15s ease;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
}

/* Signal cards (landing page) */
.sig-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.sig-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
}

/* Blog cards (landing page) */
.blog-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
}

/* Testimonial cards (pricing page) */
.test-card {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: box-shadow 0.2s ease, border-color 0.15s ease, transform 0.2s ease;
}
.test-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
}

/* Pricing plan cards */
.plan {
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  transition: border-color 0.15s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
  transform: translateY(-2px);
}
.plan.featured {
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.09);
}

/* ── BADGE / PILL SYSTEM — fully rounded, consistent ── */
/* Plan badge — should be pill-shaped, not square */
.plan-badge {
  border-radius: 99px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Annual billing badge on toggle */
.annual-badge {
  border-radius: 99px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* "For" badges on pricing who-strip */
.for-badge {
  border-radius: 99px;
  padding: 3px 10px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
}

/* ── PRINT ── */
@media print {
  .az-header, .mobile-bottom-nav, .az-footer, .az-nav { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .card, .card-elevated { box-shadow: none; border: 1px solid #ccc; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
  canvas { max-width: 100%; page-break-inside: avoid; }
}

/* ── ANIMATED LINK UNDERLINE — body text links only ── */
a:not(.btn):not([class*="btn"]):not(nav a):not(.nav-login):not(.nav-signup):not(.nav-links a):not(.az-nav a):not(.az-nav-links a):not(.card-action):not(.blog-see-all):not(.blog-read):not(.blog-card):not(.footer-col a):not(.az-footer-col a):not(.az-footer-bottom a):not([class*="nav"]) {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.2s ease;
}
a:not(.btn):not([class*="btn"]):not(nav a):not(.nav-login):not(.nav-signup):not(.nav-links a):not(.az-nav a):not(.az-nav-links a):not(.card-action):not(.blog-see-all):not(.blog-read):not(.blog-card):not(.footer-col a):not(.az-footer-col a):not(.az-footer-bottom a):not([class*="nav"]):hover {
  background-size: 100% 1px;
}

/* ── STAT / NUMBER DISPLAY REFINEMENT ── */
.traction-num,
.stat-num,
.score-ring-num,
.sig-val,
.ih-stat-num,
.ba-num,
.dw-score-num,
.dw-metric-val,
.dt-ring-num span,
.dt-tile-val,
.hz-sig-val {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: -0.02em;
}

/* ── HEADING LINE-HEIGHTS ── */
h1 { line-height: 1.15; font-weight: 700; }
h2 { line-height: 1.15; font-weight: 700; }
h3 { line-height: 1.25; font-weight: 700; }
h4 { line-height: 1.25; font-weight: 600; }
p  { line-height: 1.65; }
.section-sub { line-height: 1.6; }

/* ── REDUCED MOTION — respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .jr-progress-fill.indeterminate { animation: none; width: 60% !important; }
}
