/* =========================================================================
   MyShopMetrics v2 — Design System
   Industrial B2B SaaS for machine shops.
   Tokens + component classes derived from the Claude Design prototype.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Primary — Cyan (CTA) */
  --cyan-50:#ecfeff; --cyan-100:#cffafe; --cyan-300:#67e8f9;
  --cyan-500:#06b6d4; --cyan-600:#0891b2; --cyan-700:#0e7490; --cyan-900:#164e63;

  /* Accent — Blue */
  --blue-400:#60a5fa; --blue-500:#3498db; --blue-600:#2874a6; --blue-700:#1f5a82;

  /* Hero / Graphite */
  --graphite-900:#1a2433; --graphite-800:#2c3e50; --graphite-700:#3a516b; --graphite-600:#556779;

  /* Steel neutrals */
  --steel-950:#0f172a; --steel-900:#1f2a37; --steel-800:#334155; --steel-700:#475569;
  --steel-600:#64748b; --steel-500:#8794a3; --steel-400:#a3aeb9; --steel-300:#cbd2d9;
  --steel-200:#d4d8dd; --steel-150:#e2e5ea; --steel-100:#eceef2; --steel-75:#e7eaee;
  --steel-50:#f5f5f4; --steel-25:#fafafa; --white:#ffffff;

  /* Brass — earned accent */
  --brass-50:#fbf7ee; --brass-200:#ecd8a8; --brass-400:#d4a44a;
  --brass-500:#c08a2e; --brass-600:#9a6d21; --brass-700:#74511a;

  /* Semantic */
  --success-50:#ecfdf5; --success-500:#15803d; --success-700:#166534;
  --warning-50:#fef7ec; --warning-500:#c2791f; --warning-700:#8a5112;
  --danger-50:#fef2f2;  --danger-500:#b91c1c;  --danger-700:#991b1b;
  --info-50:#f0f9ff;    --info-500:#0284c7;

  /* Semantic roles */
  --bg-app:var(--steel-25); --bg-page:var(--white); --bg-alt:var(--steel-50);
  --bg-raised:var(--white); --bg-sunken:var(--steel-75); --bg-hover-row:#f1f3f6;
  --bg-hero:var(--graphite-800); --bg-hero-deep:var(--graphite-900);
  --bg-scrim:rgb(15 23 42 / 0.5);

  --fg-1:var(--steel-950); --fg-2:var(--steel-700); --fg-3:var(--steel-600);
  --fg-4:var(--steel-500); --fg-inverse:var(--white);
  --fg-on-hero:#e7eaee; --fg-on-hero-dim:#a3aeb9;

  --border-default:var(--steel-150); --border-strong:var(--steel-200);
  --border-subtle:var(--steel-100); --border-inverse:#1f2a37;
  --border-focus:var(--cyan-500);

  --action-primary:var(--cyan-500); --action-primary-hover:var(--cyan-600); --action-primary-press:var(--cyan-700);
  --action-primary-bg:linear-gradient(180deg,var(--cyan-500) 0%,var(--cyan-600) 100%);
  --action-primary-fg:var(--white);

  --link:var(--cyan-600); --link-hover:var(--cyan-700);

  --badge-pro-bg:var(--brass-500);    --badge-pro-fg:var(--white);
  --badge-trial-bg:var(--blue-500);   --badge-trial-fg:var(--white);
  --badge-new-bg:var(--cyan-500);     --badge-new-fg:var(--white);

  /* Type */
  --font-sans:'Inter Tight',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;

  --fs-11:11px; --fs-12:12px; --fs-13:13px; --fs-14:14px; --fs-15:15px; --fs-16:16px;
  --fs-18:18px; --fs-20:20px; --fs-24:24px; --fs-30:30px; --fs-36:36px; --fs-48:48px;
  --fs-60:60px; --fs-64:64px; --fs-72:72px;

  --lh-tight:1.05; --lh-snug:1.2; --lh-body:1.55; --lh-loose:1.7;
  --tracking-tight:-0.02em; --tracking-stencil:0.08em;

  /* Spacing (8pt) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px;
  --space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px;
  --space-16:64px; --space-24:96px; --space-32:128px;

  /* Radii */
  --radius-none:0; --radius-xs:2px; --radius-sm:4px; --radius-md:6px; --radius-lg:8px; --radius-pill:999px;

  /* Shadows */
  --shadow-card:0 1px 0 rgb(15 23 42/0.04),0 1px 2px rgb(15 23 42/0.06);
  --shadow-lift:0 2px 4px rgb(15 23 42/0.06),0 8px 16px rgb(15 23 42/0.08);
  --shadow-hero:0 20px 50px rgb(0 0 0/0.4);
  --shadow-focus:0 0 0 2px var(--white),0 0 0 4px var(--cyan-500);

  /* Motion */
  --ease-machined:cubic-bezier(0.2,0.8,0.2,1);
  --dur-micro:120ms; --dur-state:200ms; --dur-page:320ms;

  /* Layout */
  --maxw-marketing:1200px; --maxw-app:1440px;
  --sidebar-w:240px; --topbar-h:56px; --marketing-nav-h:64px;
}

/* =========================================================================
   RESET / BASE
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); color: var(--fg-1); background: var(--bg-page); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--fs-16); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-family: var(--font-sans); color: var(--fg-1); letter-spacing: var(--tracking-tight); }
h1 { font-size: var(--fs-48); line-height: var(--lh-snug); font-weight: 700; }
h2 { font-size: var(--fs-36); line-height: var(--lh-snug); font-weight: 600; }
h3 { font-size: var(--fs-24); line-height: var(--lh-snug); font-weight: 600; }
h4 { font-size: var(--fs-18); line-height: var(--lh-snug); font-weight: 600; letter-spacing: -0.01em; }
p  { margin: 0; color: var(--fg-2); }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: var(--fs-14); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border-default); margin: var(--space-8) 0; }
button { font-family: inherit; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

/* Utilities */
.stencil {
  font-size: var(--fs-11); font-weight: 600;
  letter-spacing: var(--tracking-stencil); text-transform: uppercase;
  color: var(--fg-3);
}
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--font-mono); }

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border: none; border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; line-height: 1;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-machined),
              color var(--dur-micro) var(--ease-machined),
              transform var(--dur-micro) var(--ease-machined);
}
.btn:hover { text-decoration: none; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

.btn-primary {
  background: var(--action-primary-bg); color: var(--action-primary-fg);
}
.btn-primary:hover { background: var(--cyan-600); color: #fff; }
.btn-primary:active { transform: translateY(1px); background: var(--cyan-700); }

.btn-secondary {
  background: var(--white); color: var(--fg-1);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--steel-50); color: var(--fg-1); }
.btn-secondary-dark {
  background: transparent; color: #fff;
  border: 1px solid #334155;
}
.btn-secondary-dark:hover { background: rgba(255,255,255,0.05); color: #fff; }

.btn-graphite { background: var(--graphite-800); color: #fff; }
.btn-subtle   { background: var(--steel-100); color: var(--fg-1); }
.btn-ghost    { background: transparent; color: var(--fg-2); }

/* =========================================================================
   BADGES
   ========================================================================= */

.badge {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px;
  border-radius: var(--radius-pill); background: var(--steel-100); color: var(--fg-2);
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase;
}
.badge-pro    { background: var(--brass-500); color: #fff; }
.badge-trial  { background: var(--blue-500);  color: #fff; }
.badge-new    { background: var(--cyan-500);  color: #fff; }

/* =========================================================================
   CARDS / PANELS
   ========================================================================= */

.card {
  background: var(--bg-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-xs); box-shadow: var(--shadow-card);
}
.panel {
  background: var(--bg-raised); border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
}
.hairline { border-top: 1px solid var(--border-default); }

/* =========================================================================
   DASHBOARD — SIDEBAR + TOPBAR
   ========================================================================= */

.dash-layout { display: flex; min-height: 100vh; background: var(--bg-app); }
.dash-main   { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-content { padding: 24px; flex: 1; }
.dash-content-inner { display: grid; grid-template-columns: 1fr 320px; gap: 20px; max-width: 1280px; margin: 0 auto; }

.sidebar {
  width: var(--sidebar-w); background: var(--graphite-800); color: var(--steel-300);
  height: 100vh; position: sticky; top: 0; flex-shrink: 0;
  display: flex; flex-direction: column; border-right: 1px solid var(--steel-900);
}
.sidebar-brand {
  padding: 16px 18px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--steel-900);
}
.sidebar-mark {
  width: 28px; height: 28px; background: var(--steel-950); color: #fff;
  font-weight: 700; font-size: 13px; letter-spacing: var(--tracking-tight);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs); position: relative;
}
.sidebar-mark::after {
  content: ''; position: absolute; right: 0; top: 0;
  width: 0; height: 0;
  border-top: 7px solid var(--cyan-500); border-left: 7px solid transparent;
}
.sidebar-wordmark { color: #fff; font-weight: 700; font-size: 15px; letter-spacing: var(--tracking-tight); }
.sidebar-wordmark em { font-style: normal; color: var(--cyan-300); }

.sidebar-cta { padding: 14px 12px; }
.sidebar-cta .btn { width: 100%; }

.sidebar-nav { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav.bottom { margin-top: auto; margin-bottom: 12px; }
.sidebar-label { padding: 10px 10px 6px; color: var(--steel-600); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-xs); cursor: pointer;
  color: var(--steel-300); font-size: 13px; font-weight: 500;
  border-left: 2px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease-machined);
}
.sidebar-item:hover { background: rgba(103,232,249,0.05); color: #fff; text-decoration: none; }
.sidebar-item.active { background: rgba(103,232,249,0.08); color: #fff; font-weight: 600; border-left-color: var(--cyan-500); }
.sidebar-item-icon { width: 16px; height: 16px; }
.sidebar-item-pro { margin-left: auto; font-size: 10px; color: var(--cyan-300); font-family: var(--font-mono); }
.sidebar-item-soon {
  margin-left: auto; font-size: 9px; color: var(--steel-600);
  padding: 2px 6px; border: 1px solid var(--steel-700); border-radius: var(--radius-pill);
  letter-spacing: var(--tracking-stencil); font-weight: 600;
}
.sidebar-item.disabled { opacity: 0.55; cursor: not-allowed; }
.sidebar-item.disabled:hover { background: transparent; color: var(--steel-300); }

.sidebar-user {
  padding: 12px 10px 6px; border-top: 1px solid var(--steel-900); margin-top: 6px;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar {
  width: 28px; height: 28px; border-radius: 999px; background: var(--graphite-600);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 500; }
.sidebar-user-company { color: var(--steel-600); font-size: 11px; }

.topbar {
  height: var(--topbar-h); padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border-bottom: 1px solid var(--border-default);
  position: sticky; top: 0; z-index: 10;
}
.topbar-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-2); }
.topbar-crumb .here { color: var(--fg-1); font-weight: 500; }
.topbar-search {
  flex: 1; max-width: 420px; position: relative;
  display: flex; align-items: center;
  background: var(--bg-sunken); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); padding: 6px 10px;
}
.topbar-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 13px; color: var(--fg-1); font-family: inherit;
}
.topbar-search input::placeholder { color: var(--fg-4); }
.topbar-search .kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3);
  padding: 2px 6px; border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); background: var(--white);
}

/* =========================================================================
   DASHBOARD — WELCOME STRIP
   ========================================================================= */

.welcome-strip {
  background: linear-gradient(180deg, var(--graphite-800) 0%, var(--graphite-900) 100%);
  color: #fff; border-radius: var(--radius-xs); padding: 22px 24px; margin-bottom: 16px;
  position: relative; overflow: hidden; border: 1px solid var(--steel-900);
}
.welcome-strip::before {
  content:''; position: absolute; inset: 0; opacity: 0.06; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.welcome-strip::after {
  content: ''; position: absolute; right: -50px; top: -50px; width: 280px; height: 280px;
  background: radial-gradient(circle, rgb(6 182 212 / 0.15), transparent 60%);
  pointer-events: none;
}
.welcome-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.welcome-stencil { color: var(--cyan-300); margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }
.welcome-title { font-size: 30px; font-weight: 700; letter-spacing: var(--tracking-tight); line-height: 1.05; color: #fff; margin: 0; }
.welcome-sub { font-size: 14px; color: var(--steel-300); margin: 6px 0 0; max-width: 620px; }
.welcome-sub b { color: #fff; font-weight: 600; }

.welcome-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; align-items: start; }
.stat-label { font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; color: var(--steel-500); margin-bottom: 4px; }
.stat-value { font-family: var(--font-mono); font-size: 15px; font-weight: 600; white-space: nowrap; }
.stat-value.brass { color: var(--brass-500); }
.stat-value.cyan  { color: var(--cyan-300); }
.stat-value.white { color: var(--steel-75); }

/* =========================================================================
   DASHBOARD — PILLARS
   ========================================================================= */

.pillar { background: var(--white); border: 1px solid var(--border-default); border-radius: var(--radius-xs); margin-bottom: 16px; }
.pillar-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.pillar-stencil { color: var(--cyan-700); margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }
.pillar-title-row { display: flex; align-items: baseline; gap: 10px; }
.pillar-title { font-size: 18px; font-weight: 600; margin: 0; color: var(--fg-1); letter-spacing: -0.01em; }
.pillar-sub   { font-size: 13px; color: var(--fg-3); }

/* Active conversation card (the big resume) */
.active-convo {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: start;
  padding: 16px; background: var(--graphite-800); color: #fff;
  border-radius: var(--radius-xs); position: relative; overflow: hidden;
}
.active-convo::before {
  content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgb(6 182 212 / 0.18), transparent 60%); pointer-events: none;
}
.active-convo-mark {
  width: 44px; height: 44px; background: var(--cyan-500); color: var(--steel-950);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: var(--tracking-tight);
}
.active-convo-body { min-width: 0; position: relative; }
.active-convo-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.active-convo-meta .stencil { color: var(--cyan-300); }
.active-convo-meta .count { font-size: 11px; color: var(--steel-400); }
.active-convo-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.active-convo-specs { font-family: var(--font-mono); font-size: 12px; color: var(--cyan-300); margin-bottom: 10px; }
.active-convo-reply { font-size: 13px; color: var(--steel-300); line-height: 1.5; max-width: 560px; }
.active-convo-reply b { color: var(--steel-75); font-weight: 400; }
.active-convo-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; position: relative; }
.active-convo-kbd { font-size: 11px; color: var(--steel-500); font-family: var(--font-mono); }

/* Wrapper around the active convo card */
.active-convo-wrap { padding: 18px 20px 20px; border-bottom: 1px solid var(--border-subtle); }

/* Recent + Open Questions grid */
.pillar-split { display: grid; grid-template-columns: 1.3fr 1fr; }
.pillar-col { padding: 14px 20px 18px; }
.pillar-col + .pillar-col { border-left: 1px solid var(--border-subtle); }

.col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.col-head-count { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }
.col-head-link  { font-size: 11px; color: var(--link); cursor: pointer; font-weight: 500; }

/* Mini conversation row */
.convo-row {
  padding: 10px 10px; margin: 0 -10px; cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  position: relative;
  transition: background-color var(--dur-micro) var(--ease-machined);
}
.convo-row:last-child { border-bottom: none; }
.convo-row:hover { background: var(--bg-hover-row); }
.convo-row:hover::before { content: ''; position: absolute; left: -10px; top: 0; bottom: 0; width: 2px; background: var(--cyan-500); }
.convo-row-main { min-width: 0; }
.convo-row-title { font-size: 13px; font-weight: 500; color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-row-preview { font-size: 11px; color: var(--fg-3); margin-top: 2px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-row-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.convo-row-meta { font-size: 11px; color: var(--fg-3); white-space: nowrap; }

/* Open questions */
.open-q {
  padding: 10px 12px; background: var(--steel-50);
  border: 1px solid var(--border-default); border-radius: var(--radius-xs);
  border-left: 2px solid var(--brass-500); margin-bottom: 8px;
}
.open-q:last-child { margin-bottom: 0; }
.open-q-text { font-size: 13px; color: var(--fg-1); line-height: 1.45; margin-bottom: 4px; }
.open-q-thread { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); }

/* =========================================================================
   DASHBOARD — MY SHOP + SIDE PANELS
   ========================================================================= */

.side-panel { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xs); padding: 18px; margin-bottom: 16px; }
.side-panel h3 { font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.side-stencil { font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }

.shop-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap; gap: 10px; margin-bottom: 10px;
}
.shop-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.shop-row-k { font-size: 13px; color: var(--fg-2); }
.shop-row-v { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--fg-1); }

.shop-progress {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle);
}
.shop-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--fg-3); margin-bottom: 6px; letter-spacing: var(--tracking-stencil); text-transform: uppercase; font-weight: 600; }
.shop-progress-label .pct { font-family: var(--font-mono); color: var(--brass-500); }
.shop-progress-bar { height: 4px; background: var(--steel-100); border-radius: var(--radius-pill); overflow: hidden; }
.shop-progress-fill { height: 100%; background: var(--brass-500); border-radius: inherit; }
.shop-progress-hint { font-size: 12px; color: var(--fg-3); margin-top: 8px; line-height: 1.45; }

/* Trial widget */
.trial-widget { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xs); padding: 18px; }
.trial-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.trial-days { font-family: var(--font-mono); font-size: 28px; font-weight: 600; color: var(--brass-500); letter-spacing: var(--tracking-tight); }
.trial-days .total { color: var(--fg-3); font-size: 20px; }
.trial-hint { font-size: 12px; color: var(--fg-3); margin: 6px 0 14px; line-height: 1.45; }
.trial-widget .btn { width: 100%; }

/* Daily intel card */
.intel-card {
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xs);
  padding: 16px 18px; border-top: 2px solid var(--cyan-500);
}
.intel-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.intel-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.35; color: var(--fg-1); }
.intel-body { font-size: 13px; color: var(--fg-2); line-height: 1.5; margin-bottom: 10px; }
.intel-meta { font-size: 11px; color: var(--fg-3); font-family: var(--font-mono); display: flex; gap: 10px; align-items: center; justify-content: space-between; }

/* Calculator quick launch strip */
.calc-strip { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xs); }
.calc-strip-head { padding: 14px 20px; border-bottom: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; }
.calc-strip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border-subtle); }
.calc-cell {
  background: #fff; padding: 14px 12px; text-align: center; cursor: pointer;
  text-decoration: none; color: var(--fg-1);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: background-color var(--dur-micro) var(--ease-machined);
}
.calc-cell:hover { background: var(--bg-hover-row); color: var(--fg-1); text-decoration: none; }
.calc-cell-icon { width: 18px; height: 18px; color: var(--cyan-600); }
.calc-cell-label { font-size: 12px; font-weight: 500; line-height: 1.3; }

/* =========================================================================
   MARKETING — NAV + HERO + SECTIONS
   ========================================================================= */

.mkt-nav {
  height: var(--marketing-nav-h); padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: sticky; top: 0; z-index: 10;
  background: var(--graphite-800); border-bottom: 1px solid var(--steel-900);
}
.mkt-nav-brand { display: flex; align-items: center; gap: 10px; }
.mkt-nav-brand .sidebar-mark { width: 30px; height: 30px; font-size: 14px; }
.mkt-nav-brand .sidebar-wordmark { font-size: 17px; }
.mkt-nav-links { display: flex; align-items: center; gap: 28px; }
.mkt-nav-link { color: var(--steel-300); font-size: 14px; font-weight: 500; text-decoration: none; }
.mkt-nav-link:hover { color: #fff; text-decoration: none; }
.mkt-nav-actions { display: flex; align-items: center; gap: 12px; }
.mkt-nav-signin { color: var(--steel-300); font-size: 14px; font-weight: 500; text-decoration: none; }
.mkt-nav-signin:hover { color: #fff; text-decoration: none; }

.hero {
  position: relative; background-color: var(--graphite-800); color: #fff; overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(10,14,20,0.78) 0%, rgba(10,14,20,0.70) 45%, rgba(10,14,20,0.88) 100%),
    image-set(
      url("/images/hero/hero-desktop.avif") type("image/avif"),
      url("/images/hero/hero-desktop.webp") type("image/webp")
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero::after {
  content: ''; position: absolute; right: -10%; top: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgb(6 182 212 / 0.18), transparent 60%); pointer-events: none;
}
.hero-inner {
  max-width: var(--maxw-marketing); margin: 0 auto;
  padding: 96px 48px; position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.hero-eyebrow { color: var(--cyan-300); margin-bottom: 20px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }
.hero-title { font-size: 64px; line-height: 1.02; font-weight: 700; letter-spacing: -0.025em; color: #fff; margin: 0 0 20px; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--steel-300); max-width: 520px; margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-trust { margin-top: 20px; font-size: 13px; color: var(--steel-500); display: flex; gap: 20px; flex-wrap: wrap; }
.hero-trust span { white-space: nowrap; }

/* Hero chat card */
.hero-chat {
  background: var(--steel-950); border: 1px solid var(--steel-900);
  border-radius: var(--radius-sm); padding: 18px;
  font-size: 14px; line-height: 1.5; box-shadow: var(--shadow-hero);
  position: relative;
}
.hero-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--steel-900);
}
.hero-chat-4m {
  width: 22px; height: 22px; border-radius: var(--radius-xs);
  background: var(--cyan-500); color: var(--steel-950);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px;
}
.hero-chat-brand { display: flex; align-items: center; gap: 8px; }
.hero-chat-brand-name { font-weight: 600; color: #fff; font-size: 13px; }
.hero-chat-live { color: var(--cyan-300); font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }
.hero-chat-q {
  background: var(--steel-900); padding: 10px 12px;
  border-radius: var(--radius-xs); color: var(--steel-75); margin-bottom: 12px;
}
.hero-chat-a { color: var(--steel-300); margin-bottom: 10px; }
.hero-chat-a .tok { font-family: var(--font-mono); color: var(--cyan-300); }
.hero-chat-spec {
  background: var(--graphite-900); border: 1px solid var(--steel-900);
  padding: 10px 12px; border-radius: var(--radius-xs);
  font-family: var(--font-mono); font-size: 13px; color: #fff; margin-bottom: 10px;
}
.hero-chat-spec > div { display: grid; grid-template-columns: 50px 1fr; gap: 8px; }
.hero-chat-spec .v { color: var(--cyan-300); }
.hero-chat-spec .rng { color: var(--steel-600); margin-left: 4px; }
.hero-chat-src { font-size: 12px; color: var(--steel-600); }

/* Section helpers */
.mkt-section { padding: 96px 48px; }
.mkt-section.alt { background: var(--bg-alt); }
.mkt-inner { max-width: var(--maxw-marketing); margin: 0 auto; }
.mkt-h2 { font-size: 36px; font-weight: 600; letter-spacing: var(--tracking-tight); margin: 0 0 16px; }
.mkt-lede { font-size: 18px; color: var(--fg-2); max-width: 680px; margin: 0 0 48px; line-height: 1.55; }
.mkt-eyebrow { color: var(--cyan-700); margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }

/* How-it-works panels */
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hiw-panel {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--radius-xs); padding: 24px; position: relative;
}
.hiw-num { font-family: var(--font-mono); font-size: 13px; color: var(--cyan-600); margin-bottom: 12px; letter-spacing: var(--tracking-stencil); }
.hiw-title { font-size: 18px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.hiw-body  { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin-bottom: 16px; }
.hiw-convo { background: var(--steel-950); border: 1px solid var(--steel-900); border-radius: var(--radius-xs); padding: 12px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--steel-300); line-height: 1.5; }
.hiw-convo .q { color: var(--steel-75); }
.hiw-convo .a { color: var(--cyan-300); margin-top: 6px; }

/* Calculators grid */
.calc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); border-radius: var(--radius-xs); overflow: hidden; }
.calc-card {
  background: #fff; padding: 22px 20px; text-decoration: none; color: var(--fg-1);
  display: flex; flex-direction: column; gap: 8px;
  transition: background-color var(--dur-micro) var(--ease-machined);
}
.calc-card:hover { background: var(--bg-hover-row); text-decoration: none; color: var(--fg-1); }
.calc-card-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 6px; }
.calc-card-desc { font-size: 12px; color: var(--fg-3); line-height: 1.4; }
.calc-card.soon { cursor: not-allowed; opacity: 0.6; }
.calc-card.soon:hover { background: #fff; }
.calc-soon-chip {
  font-size: 9px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase;
  color: var(--steel-600); padding: 2px 6px; border: 1px solid var(--border-default); border-radius: var(--radius-pill);
}

/* Social proof */
.proof-band {
  background: var(--graphite-800); color: #fff; padding: 40px 48px;
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.proof-stat { text-align: center; }
.proof-stat-v { font-family: var(--font-mono); font-size: 30px; font-weight: 600; color: var(--cyan-300); letter-spacing: var(--tracking-tight); }
.proof-stat-l { font-size: 12px; color: var(--steel-400); letter-spacing: var(--tracking-stencil); text-transform: uppercase; font-weight: 600; margin-top: 4px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-xs);
  padding: 28px; position: relative;
}
.price-card.featured { border-color: var(--cyan-500); border-width: 2px; }
.price-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -10px; left: 24px;
  background: var(--cyan-500); color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: var(--tracking-stencil); text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--radius-xs);
}
.price-tier  { font-size: 14px; font-weight: 600; color: var(--fg-1); margin-bottom: 4px; letter-spacing: var(--tracking-stencil); text-transform: uppercase; }
.price-amt   { font-size: 42px; font-weight: 700; letter-spacing: var(--tracking-tight); color: var(--fg-1); }
.price-amt .unit { font-size: 16px; color: var(--fg-3); font-weight: 500; }
.price-desc  { font-size: 13px; color: var(--fg-2); margin: 10px 0 20px; line-height: 1.55; }
.price-feats { list-style: none; padding: 0; margin: 0 0 20px; }
.price-feats li { font-size: 13px; color: var(--fg-2); padding: 6px 0 6px 20px; position: relative; }
.price-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--cyan-600); font-weight: 600; }
.price-card .btn { width: 100%; }

/* Footer */
.mkt-footer {
  background: var(--graphite-900); color: var(--steel-400); padding: 48px; border-top: 1px solid var(--steel-900);
}
.mkt-footer-inner { max-width: var(--maxw-marketing); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.mkt-footer h4 { font-size: 11px; color: var(--steel-400); letter-spacing: var(--tracking-stencil); text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.mkt-footer a { color: var(--steel-400); font-size: 13px; display: block; padding: 4px 0; text-decoration: none; }
.mkt-footer a:hover { color: #fff; text-decoration: none; }
.mkt-footer-bottom {
  max-width: var(--maxw-marketing); margin: 48px auto 0; padding-top: 24px;
  border-top: 1px solid var(--steel-900); font-size: 12px; color: var(--steel-600);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1023px) {
  .hero-inner,
  .hiw-grid,
  .price-grid,
  .mkt-footer-inner,
  .dash-content-inner { grid-template-columns: 1fr; }
  .pillar-split { grid-template-columns: 1fr; }
  .pillar-col + .pillar-col { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .calc-grid, .calc-strip-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 44px; }
  .mkt-section { padding: 64px 24px; }
  .mkt-nav { padding: 0 24px; }
  .sidebar { display: none; }
}
@media (max-width: 639px) {
  .calc-grid, .calc-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 64px 24px; }
  .hero-title { font-size: 36px; }
  .welcome-stats { grid-template-columns: repeat(3, auto); gap: 16px; }
}
