/* ==========================================================================
   Growthmarkt Design System
   Source of truth: 03_brandbook.html (2026 working draft)
   Dark navy product environment, single cyan accent, DM Sans + DM Serif Display.
   No rounded corners on buttons. No gradients on brand elements.
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --cyan:        #00D4FF;
  --cyan-light:  #67E8F9;
  --cyan-dark:   #0891B2;
  --cyan-faint:  #ECFEFF;
  --navy:        #0A0F1E;
  --slate:       #0F172A;
  --slate-mid:   #1E293B;
  --slate-light: #334155;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --gray-100:    #F1F5F9;
  --gray-300:    #CBD5E1;
  --gray-500:    #64748B;
  --gray-700:    #374151;
  --red:         #EF4444;
  --green:       #4ADE80;
  --amber:       #F59E0B;

  --font:        'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:  'DM Serif Display', Georgia, serif;

  --sidebar-w:   216px;
  --topbar-h:    64px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--gray-300);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-light); }

::selection { background: rgba(0,212,255,0.25); }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--white); letter-spacing: -0.02em; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; }
.h2 { font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -0.8px; }
.h3 { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.4px; }

.serif { font-family: var(--font-serif); font-weight: 400; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-3);
}

.body-lg { font-size: 18px; line-height: 1.7; font-weight: 300; }
.muted   { color: var(--gray-500); }
.small   { font-size: 13px; }

/* ---- Logo ---- */
.logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.logo .growth { color: var(--white); }
.logo .markt  { color: var(--cyan); }
.logo .dot {
  display: inline-block;
  width: 0.32em; height: 0.32em;
  background: var(--cyan);
  border-radius: 50%;
  margin-left: 0.14em;
  align-self: center;
  transform: translateY(0.06em);
}
a.logo:hover .growth { color: var(--white); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}

.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: var(--cyan-light); color: var(--navy); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  border-color: rgba(255,255,255,0.2);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  font-weight: 600;
  border-color: var(--cyan);
}
.btn-ghost:hover { background: rgba(0,212,255,0.08); color: var(--cyan); }

.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { display: block; width: 100%; }

/* ---- Forms ---- */
.input-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }

.label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  letter-spacing: 0.05em;
}

.input, .select, .textarea {
  background: var(--slate);
  border: 1px solid var(--slate-light);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  padding: 12px 16px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
}
.input::placeholder { color: var(--gray-500); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan); }
.input.error { border-color: var(--red); }

.form-error { font-size: 12px; color: var(--red); }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-cyan  { background: rgba(0,212,255,0.12);  border: 1px solid rgba(0,212,255,0.3);  color: var(--cyan); }
.tag-amber { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: var(--amber); }
.tag-red   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: var(--red); }
.tag-green { background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.3); color: var(--green); }
.tag-gray  { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: var(--gray-300); }

/* ---- Cards ---- */
.card {
  background: var(--slate-mid);
  border: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-5);
}
.card-flat { background: var(--slate); }

.callout {
  background: rgba(0,212,255,0.05);
  border-left: 3px solid var(--cyan);
  padding: var(--space-3) var(--space-4);
}
.callout-red   { background: rgba(239,68,68,0.06);  border-left-color: var(--red); }
.callout-amber { background: rgba(245,158,11,0.06); border-left-color: var(--amber); }

/* ---- Progress bars ---- */
.bar-track {
  height: 4px;
  background: var(--slate-light);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--cyan);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Score color semantics (methodology bands) */
.score-strong     { color: var(--cyan); }   /* >= 80 */
.score-developing { color: var(--green); }  /* 60-79 */
.score-early      { color: var(--amber); }  /* 40-59 */
.score-fragile    { color: var(--red); }    /* < 40 */

.bar-strong     { background: var(--cyan); }
.bar-developing { background: var(--green); }
.bar-early      { background: var(--amber); }
.bar-fragile    { background: var(--red); }

/* ---- Dimension row (dashboard / score card) ---- */
.dim-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 0;
}
.dim-row + .dim-row { border-top: 1px solid rgba(255,255,255,0.05); }
.dim-name { font-size: 13px; color: var(--white); font-weight: 500; min-width: 150px; }
.dim-score { font-size: 13px; font-weight: 700; min-width: 36px; text-align: right; }

/* ==========================================================================
   Layout shell: fixed sidebar + top nav (matches landing reference)
   ========================================================================== */
.shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--navy);
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  z-index: 50;
}

.sidebar-logo {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.sidebar-logo .logo { font-size: 18px; }

.sidebar-section {
  padding: var(--space-4);
}
.sidebar-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; list-style: none; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.sidebar-link.active { background: rgba(0,212,255,0.08); color: var(--cyan); }
.sidebar-link .icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }
.sidebar-link .soon {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.35);
  padding: 2px 7px;
  text-transform: uppercase;
}
.sidebar-link.disabled { opacity: 0.55; cursor: default; }
.sidebar-link.disabled:hover { background: transparent; color: var(--gray-300); }

/* ---- Sidebar collapse (app surface, desktop only) ---- */
.sidebar-toggle {
  margin-left: auto; flex-shrink: 0;
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--gray-500); cursor: pointer; border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
.sidebar-toggle:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.sidebar-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
@media (min-width: 861px) {
  body.sidebar-collapsed { --sidebar-w: 72px; }
  body.sidebar-collapsed .sidebar-logo { justify-content: center; padding: 0; }
  body.sidebar-collapsed .sidebar-logo .logo { display: none; }
  body.sidebar-collapsed .sidebar-toggle { margin-left: 0; }
  body.sidebar-collapsed .sidebar-toggle svg { transform: rotate(180deg); }
  body.sidebar-collapsed .sidebar-heading { display: none; }
  body.sidebar-collapsed .sidebar-section { padding: var(--space-3) 10px; }
  body.sidebar-collapsed .sidebar-link { justify-content: center; gap: 0; padding: 11px 0; }
  body.sidebar-collapsed .sidebar-link span { display: none; }
}

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-6);
  z-index: 40;
  gap: var(--space-4);
}

.topbar-nav { display: flex; gap: var(--space-5); list-style: none; margin: 0 auto; }
.topbar-nav a {
  font-size: 14px;
  color: var(--gray-300);
  font-weight: 500;
}
.topbar-nav a:hover, .topbar-nav a.active { color: var(--white); }

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-mid);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 16px 7px 8px;
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.profile-pill:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,212,255,0.15);
  border: 1px solid rgba(0,212,255,0.4);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.main {
  margin-left: 0;
  padding-top: var(--topbar-h);
  min-height: 100vh;
  /* Sticky footer: the footer carries margin-top auto, so on short pages
     it sits at the viewport bottom instead of mid-screen. */
  display: flex;
  flex-direction: column;
}
.main > * { width: 100%; }
/* The sidebar offset applies only to the product surface (app shell). */
body.has-sidebar .topbar { left: var(--sidebar-w); }
body.has-sidebar .main { margin-left: var(--sidebar-w); }
.topbar { transition: box-shadow 0.2s ease; }
.topbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.28); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow { max-width: 760px; }

.section { padding: var(--space-8) 0; }
.section-slate { background: var(--slate); }

/* ---- Hero glow (landing) ---- */
.glow {
  position: relative;
  overflow: hidden;
}
.glow::before {
  content: '';
  position: absolute;
  top: -220px; right: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(0,212,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--slate);
  padding: var(--space-7) 0 var(--space-5);
  font-size: 13px;
  color: var(--gray-500);
  margin-top: auto; /* sticky footer: pushes to the bottom of .main */
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
  margin-bottom: var(--space-3);
}
.footer-col-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { color: var(--gray-500); font-size: 13px; }
.footer-col-links a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--gray-700);
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Tables ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 12px 16px;
  border-bottom: 1px solid var(--slate-light);
}
.table td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--gray-300); }

/* ---- Coming soon (blurred widgets) ---- */
.coming-soon { position: relative; overflow: hidden; }
.coming-soon .cs-content { filter: blur(5px); opacity: 0.55; pointer-events: none; user-select: none; }
.coming-soon .cs-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,15,30,0.35);
}

/* ---- Utilities ---- */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.flex-center { display: flex; align-items: center; gap: var(--space-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.gap-2 { gap: var(--space-2); }
.mt-2 { margin-top: var(--space-2); }  .mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }  .mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.hidden { display: none !important; }

/* ---- Skeleton / loading ---- */
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.skeleton { background: var(--slate-mid); animation: pulse 1.6s ease-in-out infinite; min-height: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--slate-light);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .topbar { left: 0; padding: 0 var(--space-4); }
  .topbar .logo-mobile { display: inline-flex; }
  .topbar-nav { display: none; }
  .main { margin-left: 0; }
  .container { padding: 0 var(--space-4); }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-7) 0; }
  .dim-name { min-width: 110px; }
}
@media (min-width: 861px) {
  .topbar .logo-mobile { display: none; }
}

/* ---- Horizontal-overflow guard (mobile safety net) ---- */
html, body { overflow-x: hidden; }

/* ---- Mobile navigation: hamburger + slide-in drawer ---- */
.m-burger { display: none; }
.m-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 999; }
.m-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px);
  background: var(--slate); border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 1000; padding: calc(var(--topbar-h) + 16px) 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%);
  transition: transform 0.25s ease; overflow-y: auto;
}
.m-drawer[hidden] { display: none; }
.m-drawer.open { transform: translateX(0); }
.m-drawer-link { display: block; padding: 14px 4px; color: var(--gray-300); font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.m-drawer-link:hover, .m-drawer-link.active { color: var(--white); }
.m-drawer-auth { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.m-drawer-auth .flex-center { flex-direction: column; align-items: stretch; gap: 12px !important; }
.m-drawer-auth .btn { width: 100%; }
.m-drawer-auth .profile-pill { width: 100%; justify-content: center; }
body.m-nav-open { overflow: hidden; }
@media (min-width: 861px) { .m-drawer, .m-overlay { display: none !important; } }
@media (max-width: 860px) {
  .m-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 11px; margin-left: auto; flex-shrink: 0;
    background: none; border: none; cursor: pointer;
  }
  .m-burger span { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 1px; transition: transform 0.2s, opacity 0.2s; }
  .m-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .m-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .m-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .topbar #shell-auth-area { display: none; }
}
@media (max-width: 560px) {
  .btn-lg { padding: 14px 22px; font-size: 15px; }
}

/* ---- Cookie consent banner ---- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: var(--slate); border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 20px;
}
.consent-text { font-size: 13px; color: var(--gray-300); max-width: 640px; line-height: 1.5; }
.consent-text a { color: var(--cyan); }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- Accessibility: skip link + focus ring ---- */
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--cyan); color: var(--navy); font-weight: 700; font-size: 13px;
  padding: 10px 16px; border-radius: var(--radius);
  transform: translateY(-220%); transition: transform 0.15s ease;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--white); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}
.main:focus { outline: none; }

/* ---- Footer email capture ---- */
.footer-subscribe { margin-top: 18px; max-width: 280px; }
.footer-sub-label { display: block; font-size: 12px; color: var(--gray-500); margin-bottom: 8px; }
.footer-sub-row { display: flex; gap: 8px; }
.footer-sub-input {
  flex: 1; min-width: 0; background: var(--slate); border: 1px solid var(--slate-light);
  color: var(--white); font-family: var(--font); font-size: 13px; padding: 8px 12px;
}
.footer-sub-input::placeholder { color: var(--gray-500); }
.footer-sub-msg { font-size: 12px; color: var(--gray-500); margin-top: 8px; min-height: 14px; }

/* ==========================================================================
   Visual layer (creative direction, June 2026)
   Texture, rings, flows, icon circles. Same tokens, more depth.
   ========================================================================== */

/* ---- Dot-grid texture (hero) ---- */
.dotgrid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,212,255,0.25) 1px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 55%);
  mask-image: linear-gradient(135deg, black 0%, transparent 55%);
}

/* ---- Score rings ---- */
.ring-block { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring-wrap svg { transform: rotate(-90deg); }
.ring-wrap circle { transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-num {
  position: absolute;
  font-family: var(--font-serif);
  color: var(--white);
}
.ring-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ---- Icon circles ---- */
.icon-circle {
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
}
.icon-circle svg {
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-circle.amber { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.35); }
.icon-circle.amber svg { stroke: var(--amber); }
.icon-circle.red { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }
.icon-circle.red svg { stroke: var(--red); }
.icon-circle.gray { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.icon-circle.gray svg { stroke: var(--gray-300); }

/* ---- Connected flow (Audit -> Dashboard -> Roadmap) ---- */
.flow { display: flex; align-items: flex-start; }
.flow-step { flex: 1; text-align: center; position: relative; padding: 0 12px; }
.flow-node {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  border-width: 1.5px;
  border-color: var(--cyan);
}
.flow-node svg { width: 24px; height: 24px; }
.flow-line {
  position: absolute;
  top: 26px; left: calc(50% + 34px); right: calc(-50% + 34px);
  height: 1.5px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(0,212,255,0.12) 100%);
}
.flow-step:last-child .flow-line { display: none; }
@media (max-width: 860px) {
  .flow { flex-direction: column; gap: 32px; }
  .flow-step { text-align: left; display: flex; gap: 16px; padding: 0; }
  .flow-node { margin: 0; }
  .flow-line { display: none; }
}

/* ---- Dimension cards ---- */
.dims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dim-card {
  background: var(--slate-mid);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: 3px solid var(--cyan);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s, border-color 0.15s;
}
.dim-card:hover { transform: translateY(-3px); border-color: rgba(0,212,255,0.4); }
.dim-card .icon-circle { width: 34px; height: 34px; }
.dim-card .icon-circle svg { width: 17px; height: 17px; }
.dim-card .dtitle { font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.35; }
.dim-card .ddesc { font-size: 12px; color: var(--gray-500); line-height: 1.55; flex: 1; }
@media (max-width: 640px) { .dims-grid { grid-template-columns: 1fr; } }

/* ---- Source pills ---- */
.source-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.source-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-300);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 16px;
}
.source-pill.hl {
  color: var(--cyan);
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
}

/* ---- Destination panel (final CTA, spotlight) ---- */
.panel-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-mid) 0%, #16243d 100%);
  border: 1px solid rgba(0,212,255,0.15);
}
.panel-glow::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,212,255,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.panel-glow > * { position: relative; z-index: 1; }

/* ---- Impact pill ---- */
.impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 4px 10px;
  white-space: nowrap;
}
.impact-pill svg { width: 12px; height: 12px; stroke: var(--cyan); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Blog articles ---- */
.article { max-width: 720px; }
.article h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: -0.3px;
  margin: 44px 0 14px;
}
.article h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.article p { margin: 0 0 16px; line-height: 1.75; font-size: 15.5px; }
.article ul, .article ol { margin: 0 0 16px 22px; line-height: 1.75; font-size: 15.5px; }
.article li { margin-bottom: 8px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 8px 0 24px;
}
.article th, .article td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: var(--gray-300);
  vertical-align: top;
}
.article td strong, .article th { color: var(--white); }
.article a:not(.btn) { color: var(--cyan); }
.article strong { color: var(--white); }
.post-byline { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 18px; }
.related-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.related-list a { font-size: 14px; }

/* ==========================================================================
   Motion and depth layer (visual system V1/V3).
   Reveal-on-scroll: content is fully visible by default. Only when JS adds
   body.has-reveal does the hidden state apply, so a JS failure never blanks
   the page. Reduced-motion is honored.
   ========================================================================== */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
body.has-reveal .reveal { opacity: 0; transform: translateY(18px); }
body.has-reveal .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  body.has-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* Hover lift for interactive cards/tiles. */
.hover-lift { transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease; }
.hover-lift:hover { transform: translateY(-3px); }
.dim-card { transition: transform 0.16s ease, border-color 0.16s ease; }
.dim-card:hover { transform: translateY(-3px); border-color: rgba(0, 212, 255, 0.3); }

/* Interactive sample-question options (how-it-works). */
.sq-opt { padding: 12px 16px; background: var(--slate); border: 1px solid var(--slate-light); cursor: pointer; transition: border-color 0.15s ease, color 0.15s ease; }
.sq-opt:hover { border-color: rgba(0, 212, 255, 0.4); }
.sq-opt.sel { border-color: var(--cyan); color: var(--white); }

/* ==========================================================================
   Print: a clean light report for Save-as-PDF (B2 v1). Screen rendering is
   untouched; this only applies on print.
   ========================================================================== */
@media print {
  .sidebar, .topbar, .footer, #shell-auth-area, .btn { display: none !important; }
  .glow::before, .panel-glow::before, .dotgrid { display: none !important; }
  body, .main { background: #ffffff !important; }
  body, p, td, th, li, .small, .muted, .body-lg { color: #1a1a1a !important; }
  .h1, .h2, .h3, .display, .serif, .text-white { color: #000000 !important; }
  .eyebrow { color: #0090b0 !important; }
  .card, .panel-glow, .callout, .glass { background: #fafafa !important; border-color: #e2e2e2 !important; box-shadow: none !important; }
  a { color: #0090b0 !important; }
  .section { padding: 18px 0 !important; }
}

/* Depth utilities, available for richer sections. */
.glass {
  background: rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glow-soft { box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.08), 0 24px 70px -28px rgba(0, 212, 255, 0.22); }

/* Hero score ring: draws in on load (the homepage preview card). */
@keyframes ring-draw { from { stroke-dashoffset: 263.9; } to { stroke-dashoffset: 95; } }
.hero-ring { animation: ring-draw 1.1s ease-out 0.25s both; }
@media (prefers-reduced-motion: reduce) { .hero-ring { animation: none; } }
.mesh {
  background-image:
    radial-gradient(55% 45% at 18% 8%, rgba(0, 212, 255, 0.10), transparent 60%),
    radial-gradient(45% 45% at 92% 18%, rgba(0, 212, 255, 0.06), transparent 55%);
}

/* ---- Difficulty dots ---- */
.diff-dots { display: inline-flex; gap: 3px; align-items: center; }
.diff-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-light); }
.diff-dots span.on { background: var(--cyan); }

/* ---- Dimension snapshot widget (reused: audit landing, advisor) ---- */
.al-dims { display: flex; gap: 8px; align-items: flex-end; }
.al-dim { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.al-dim-bar { width: 100%; max-width: 26px; height: 48px; background: var(--slate-light); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.al-dim-bar > i { display: block; width: 100%; border-radius: 3px; transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.al-dim-l { font-size: 9px; letter-spacing: 0.04em; color: var(--gray-500); font-weight: 700; }
.al-dims-cap { margin-top: 14px; }

/* ---- Long-form article: reading progress bar + table of contents ---- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cyan); z-index: 200; transition: width 0.1s linear; }
.post-toc { background: var(--slate-mid); border: 1px solid rgba(255,255,255,0.06); border-left: 3px solid var(--cyan); padding: 18px 22px; margin: 0 0 34px; }
.post-toc-label { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gray-500); font-weight: 700; margin-bottom: 11px; }
.post-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.post-toc li { font-size: 14px; }
.post-toc a { color: var(--gray-300); text-decoration: none; }
.post-toc a:hover { color: var(--cyan); }
