/* =====================================================
   TOKENS — matched to laughingprofessor.net theme
   ===================================================== */
:root {
  /* Surfaces */
  --bg:          #f9f9f9;
  --bg-card:     #ffffff;
  --bg-hover:    #0E5077;          /* main-site dark-blue, used on tile hover */
  --fg:          #1a1a2e;
  --fg-muted:    #555555;
  --fg-subtle:   #999999;

  /* Accent — gold, exactly as used in main-site nav */
  --accent:      #FFD700;
  --accent-dim:  rgba(255, 204, 0, 0.13);
  --accent-glow: rgba(255, 204, 0, 0.30);

  /* Blues from main site */
  --blue:        #0056b3;
  --blue-dk:     #0E5077;

  /* Borders */
  --border:      #e1e5e9;
  --border-h:    rgba(255, 193, 7, 0.55);

  /* Radii / type */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --font:        'Inter', system-ui, sans-serif;
  --mono:        'JetBrains Mono', monospace;
  --ease:        200ms cubic-bezier(.4,0,.2,1);

  /* Site gradient — identical to main site */
  --grad: radial-gradient(ellipse at top left, #6699FF, #6666CC, #00CCFF);
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-image: var(--grad);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #e1e5e9; }
::-webkit-scrollbar-thumb { background: #aaa; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }

/* =====================================================
   CIRCUIT CANVAS
   ===================================================== */
#circuit-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .18; }

/* =====================================================
   HEADER — gradient bg, white text (matches main nav)
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-image: var(--grad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .625rem; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--ease);
}
.logo:hover .logo-icon { transform: scale(1.08); }
.logo-text {
  font-size: .95rem; font-weight: 700;
  letter-spacing: -.02em; white-space: nowrap;
  color: #fff;
}

.nav-links { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; }
.nav-link {
  padding: .5rem .75rem;
  font-size: .82rem; font-weight: 600;
  color: #e0e8ff;                       /* main-site nav link color */
  border-radius: var(--radius-sm);
  border-bottom: 3px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  white-space: nowrap; min-height: 44px;
  display: flex; align-items: center;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--accent);
}
.nav-link.active { color: #fff; border-bottom-color: var(--accent); }

.hamburger {
  display: none; width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--accent);
  transition: background var(--ease);
}
.hamburger:hover { background: rgba(255, 255, 255, 0.1); }
.hamburger svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}
.mobile-nav {
  display: none; flex-direction: column;
  background-image: var(--grad);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: .75rem; gap: .2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: flex; align-items: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: #e0e8ff;
  transition: color var(--ease), background var(--ease);
  min-height: 44px;
}
.mobile-nav-link:hover { color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.mobile-nav-sep {
  font-family: var(--mono); font-size: .62rem;
  color: var(--accent); padding: .5rem 1rem .1rem;
  letter-spacing: .12em; text-transform: uppercase;
}

@media (max-width: 700px) { .nav-links { display: none; } .hamburger { display: flex; } }
@media (min-width: 701px) { .hamburger { display: none; } }

/* =====================================================
   HERO — sits on the body gradient, white text
   (mirrors .lp-hero in main site)
   ===================================================== */
.hero { position: relative; overflow: hidden; z-index: 1; }
.hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(102, 153, 255, 0.07);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  max-width: 720px;
}
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.eyebrow-line { height: 1px; width: 50px; background: linear-gradient(to right, var(--accent), transparent); }
.eyebrow-text {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; color: var(--accent);
}
.hero-h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.03em; margin-bottom: 1.1rem;
  color: #fff;
}
.hero-h1 span { color: var(--accent); }
.hero-desc {
  font-size: 1rem; color: rgba(200, 215, 255, 0.85);
  line-height: 1.7; max-width: 520px; margin-bottom: 2rem;
}
.hero-cta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* Primary button — gold, matches main site .lp-btn-primary */
.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.6rem;
  background: var(--accent); color: #1a1a2e !important;
  font-weight: 700; font-size: .88rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--accent);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
  min-height: 44px;
}
.btn-primary:hover {
  background: #ffe84d;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Ghost button — transparent with white border (on gradient) */
.btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.4rem;
  background: rgba(255, 255, 255, 0.10); color: #fff;
  font-weight: 600; font-size: .88rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: color var(--ease), background var(--ease);
  min-height: 44px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* =====================================================
   STATS BAR — semi-transparent on gradient, white text
   ===================================================== */
.stats-bar {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat-item { padding: 1.1rem 1.25rem; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.1; letter-spacing: -.03em; }
.stat-label { font-size: .72rem; color: rgba(200, 215, 255, 0.75); margin-top: .15rem; }
@media (max-width: 800px) {
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* =====================================================
   SECTION CHROME — white panels over gradient
   ===================================================== */
.section-divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.section-label {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--accent); white-space: nowrap;
}
.section-line { flex: 1; height: 1px; background: var(--border); }
.section-desc { font-size: .9rem; color: var(--fg-muted); margin-bottom: 1.75rem; max-width: 600px; }

/* =====================================================
   CATEGORY SECTIONS — white panel on gradient
   ===================================================== */
.category-section {
  position: relative; z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* First section: slightly rounded bottom to frame the hero */
.category-section:last-of-type { border-radius: 0 0 18px 18px; }

/* =====================================================
   PILLAR GRID (services)
   ===================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 1100px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pillars-grid { grid-template-columns: 1fr; } }

.pillar-col {
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.pillar-col.visible { opacity: 1; transform: translateY(0); }
.pillar-col:nth-child(2) { transition-delay: .08s; }
.pillar-col:nth-child(3) { transition-delay: .16s; }
.pillar-col:nth-child(4) { transition-delay: .24s; }

.pillar-header {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.15rem; margin-bottom: .6rem;
  display: block; min-height: 44px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.pillar-header:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.pillar-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%);
  opacity: 0; transition: opacity var(--ease);
}
.pillar-header:hover::before { opacity: 1; }

.pillar-meta {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: .4rem; position: relative;
}
.pillar-num {
  font-family: var(--mono); font-size: .68rem;
  font-weight: 700; color: var(--accent); letter-spacing: .1em;
}
.pillar-arrow {
  width: 15px; height: 15px;
  stroke: var(--fg-subtle); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--ease), transform var(--ease);
}
.pillar-header:hover .pillar-arrow { stroke: var(--blue); transform: translateX(3px); }
.pillar-title {
  font-size: 1rem; font-weight: 800;
  letter-spacing: -.02em; line-height: 1.2;
  margin-bottom: .25rem; position: relative;
  color: var(--blue-dk);               /* #0E5077 — main site heading colour */
}
.pillar-subtitle { font-size: .7rem; color: var(--fg-muted); position: relative; }

.flow-arrow { display: flex; justify-content: center; padding: 2px 0; }
.flow-arrow svg {
  width: 13px; height: 13px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: .5;
}

/* =====================================================
   TASK TILES
   ===================================================== */
.tiles-list { display: flex; flex-direction: column; gap: 0; }
.tile-wrap { display: flex; flex-direction: column; align-items: left; }

.task-tile {
  display: block; width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: .8rem .9rem; min-height: 44px;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: border-color var(--ease), background var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
/* Gold left-bar on hover — matches main site CTA hover feel */
.task-tile::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent);
  transform: scaleY(0); transition: transform var(--ease);
  transform-origin: bottom;
}
.task-tile:hover {
  border-color: var(--border-h);
  background: var(--bg-hover);          /* #0E5077 dark blue */
  transform: translateY(-1px) translateX(2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.task-tile:hover::before { transform: scaleY(1); }

.tile-inner { display: flex; align-items: center; gap: .6rem; }
.tile-icon {
  flex-shrink: 0; width: 30px; height: 30px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.task-tile:hover .tile-icon { background: rgba(255, 204, 0, 0.20); }
.tile-icon svg {
  width: 14px; height: 14px;
  stroke: var(--blue-dk); fill: none;       /* blue icon default */
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--ease);
}
.task-tile:hover .tile-icon svg { stroke: var(--accent); } /* gold on hover */

.tile-body { min-width: 0; }
.tile-title {
  font-size: .8rem; font-weight: 600; line-height: 1.3;
  color: var(--fg);
  transition: color var(--ease);
}
.task-tile:hover .tile-title { color: var(--accent); }
.tile-step {
  font-family: var(--mono); font-size: .63rem;
  color: var(--fg-subtle); margin-top: 1px;
}
.task-tile:hover .tile-step { color: rgba(200,215,255,0.6); }

.tile-connector {
  width: 1px; height: 9px;
  background: linear-gradient(to bottom, var(--accent-dim), transparent);
}
.pillar-influence {
  margin-top: .65rem; text-align: center;
  font-family: var(--mono); font-size: .62rem;
  color: var(--blue); letter-spacing: .05em;   /* blue instead of faint gold */
}

/* =====================================================
   TOOLS GRID (tool pages / white label / demos)
   ===================================================== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.15rem; min-height: 44px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease,
              border-color var(--ease), box-shadow var(--ease);
}
.tool-card.visible { opacity: 1; transform: translateY(0); }
.tool-card:nth-child(2) { transition-delay: .06s; }
.tool-card:nth-child(3) { transition-delay: .12s; }
.tool-card:nth-child(4) { transition-delay: .18s; }
.tool-card:nth-child(5) { transition-delay: .24s; }
.tool-card:nth-child(6) { transition-delay: .30s; }

.tool-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 70%);
  opacity: 0; transition: opacity var(--ease);
}
.tool-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 0 1px var(--accent-glow), 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}
.tool-card:hover::before { opacity: 1; }

.tool-card-head {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .6rem; position: relative;
}
.tool-badge {
  font-family: var(--mono); font-size: .6rem; color: var(--blue-dk);
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 20px; padding: .15rem .55rem;
  font-weight: 600;
}
.tool-card-icon {
  width: 34px; height: 34px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .6rem; position: relative; flex-shrink: 0;
}
.tool-card-icon svg {
  width: 16px; height: 16px;
  stroke: var(--blue-dk); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--ease);
}
.tool-card:hover .tool-card-icon svg { stroke: var(--blue); }

.tool-card h4 {
  font-size: .9rem; font-weight: 700;
  margin-bottom: .25rem; position: relative;
  color: var(--blue-dk);              /* #0E5077 */
  transition: color var(--ease);
}
.tool-card:hover h4 { color: var(--blue); }
.tool-card p {
  font-size: .78rem; color: var(--fg-muted);
  line-height: 1.55; position: relative; flex: 1;
}
.tool-card-arrow {
  width: 14px; height: 14px;
  stroke: var(--fg-subtle); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--ease), transform var(--ease);
  flex-shrink: 0; margin-top: 2px;
}
.tool-card:hover .tool-card-arrow { stroke: var(--blue); transform: translateX(3px); }

/* =====================================================
   PROCESS INTRO — white panel
   ===================================================== */
.process-intro {
  position: relative; z-index: 1;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) { .intro-grid { grid-template-columns: 1fr; } }

.intro-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: .9rem;
  color: var(--blue-dk);
}
.intro-text h2 span { color: var(--blue); }
.intro-text p { color: var(--fg-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }

.feature-list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.75rem; }
.feature-item { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--fg); }
.feature-check {
  width: 17px; height: 17px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-check svg {
  width: 9px; height: 9px;
  stroke: var(--blue-dk); fill: none;
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.5rem; }
.quick-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: .78rem; font-weight: 600;
  color: var(--blue-dk);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  min-height: 44px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.quick-link:hover {
  color: #1a1a2e;
  border-color: var(--border-h);
  background: var(--accent-dim);
}
.quick-link svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* =====================================================
   FOOTER — gradient bg, white text (matches main footer)
   ===================================================== */
.site-footer {
  position: relative; z-index: 1;
  background-image: var(--grad);
  border-top: 3px solid var(--accent);   /* gold top-border, like main site */
  padding-block: clamp(2rem, 4vw, 3rem);
  color: rgba(200, 215, 255, 0.85);
}
.footer-label {
  font-family: var(--mono); font-size: .66rem;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--accent); margin-bottom: 1.25rem;
}
.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 2rem;
}
@media (max-width: 900px) { .footer-nav-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .footer-nav-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-pillar-title {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700;
  color: #fff; margin-bottom: .65rem;
  transition: color var(--ease);
}
.footer-pillar-title:hover { color: var(--accent); }
.footer-pillar-num { font-family: var(--mono); font-size: .62rem; color: var(--accent); }
.footer-tool-list { display: flex; flex-direction: column; gap: .35rem; }
.footer-tool-link {
  font-size: .75rem; color: rgba(200, 215, 255, 0.7);
  transition: color var(--ease); padding: .08rem 0;
}
.footer-tool-link:hover { color: var(--accent); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
}
.footer-logo { display: flex; align-items: center; gap: .5rem; }
.footer-logo-icon {
  width: 26px; height: 26px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-text { font-size: .82rem; font-weight: 700; color: #fff; }
.footer-copy { font-size: .72rem; color: rgba(200, 215, 255, 0.55); }

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */
.anim-fade-up {
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   SKIP LINK
   ===================================================== */
.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--accent); color: #1a1a2e;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700; font-size: .82rem;
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }

@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}
.scroll-arrow { animation: bounce-down 2s ease-in-out infinite; }

/* =====================================================
   BREADCRUMB NAV (inside .site-header)
   ===================================================== */
.breadcrumb-nav {
  display: none;
  align-items: center; gap: .35rem;
  font-size: .8rem; color: rgba(200,215,255,.65);
}
.breadcrumb-nav a {
  color: rgba(200,215,255,.65);
  transition: color var(--ease);
}
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav .sep { color: rgba(200,215,255,.3); }
.breadcrumb-nav .current { color: var(--accent); font-weight: 600; }
@media (min-width: 700px) { .breadcrumb-nav { display: flex; } }

/* =====================================================
   HERO LAYOUT UTILITIES
   ===================================================== */
/* Flex wrapper: text left, decorative image right */
.hero-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
}
/* Service subtitle — between h1 and hero-desc */
.hero-sub {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: .9rem;
}
/* Decorative image in hero — hidden on mobile, shrinks on tablet */
.hero-deco {
  flex: 0 0 340px;
  display: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: .85;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.25));
}
.hero-deco img { width: 100%; height: auto; display: block; }
@media (min-width: 960px)  { .hero-deco { display: block; } }
@media (min-width: 1100px) { .hero-deco { flex-basis: 420px; } }

/* =====================================================
   BACK LINK (tool pages — inside .hero)
   ===================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 500;
  color: rgba(200,215,255,.75);
  margin-bottom: 1.25rem; min-height: 44px;
  transition: color var(--ease);
  text-decoration: none;
}
.back-link:hover { color: var(--accent); }
.back-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* =====================================================
   TOOL PAGE — 2-COLUMN WORKSPACE
   ===================================================== */
.tool-workspace {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 920px) { .tool-workspace { grid-template-columns: 1fr; } }

.tool-main    { display: flex; flex-direction: column; gap: 1.25rem; }
.tool-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

/* =====================================================
   CONTENT CARD (general white card for tool pages)
   ===================================================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.content-card h2 {
  font-size: .95rem; font-weight: 700;
  color: var(--blue-dk);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.content-card h2 svg {
  width: 17px; height: 17px;
  stroke: var(--blue); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.content-card p {
  font-size: .875rem; color: var(--fg-muted); line-height: 1.65;
}

/* =====================================================
   CHECK GRID (key checks inside content-card)
   ===================================================== */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: .9rem;
}
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }

.check-item {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .6rem .75rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255,204,0,.18);
  border-radius: var(--radius-md);
  font-size: .8rem; color: var(--fg); line-height: 1.4;
}
.check-item svg {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px;
  stroke: var(--blue-dk); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* =====================================================
   QUICK-START CARD (sidebar)
   ===================================================== */
.qs-card {
  background: var(--bg-card);
  border: 2px solid var(--border-h);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(255,204,0,.1);
}
.qs-card h3 {
  font-size: .9rem; font-weight: 700; color: var(--blue-dk);
  margin-bottom: .35rem;
  display: flex; align-items: center; gap: .4rem;
}
.qs-card h3 svg {
  width: 15px; height: 15px;
  stroke: var(--accent); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.qs-card > p { font-size: .78rem; color: var(--fg-muted); margin-bottom: .85rem; }

.qs-input {
  width: 100%; padding: .7rem .9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .85rem; color: var(--fg);
  outline: none; min-height: 44px;
  margin-bottom: .6rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.qs-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.qs-btn {
  width: 100%; padding: .75rem;
  background: var(--accent); color: #1a1a2e;
  font-weight: 700; font-size: .85rem;
  border-radius: var(--radius-md);
  border: none; cursor: pointer; min-height: 44px;
  transition: background var(--ease), transform var(--ease);
}
.qs-btn:hover { background: #ffe84d; transform: translateY(-1px); }

/* =====================================================
   FLOW NAV CARD (sidebar — navigate between steps)
   ===================================================== */
.flow-nav-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.flow-nav-card > h3 {
  font-family: var(--mono); font-size: .62rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--fg-subtle); margin-bottom: .75rem;
}
.flow-nav-links { display: flex; flex-direction: column; gap: .5rem; }

.flow-nav-link {
  display: flex; align-items: center;
  justify-content: space-between; gap: .5rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 44px;
  transition: border-color var(--ease), background var(--ease);
  text-decoration: none;
}
.flow-nav-link:hover {
  border-color: var(--border-h);
  background: var(--accent-dim);
}
.flow-nav-link .fnl-label { font-size: .68rem; color: var(--fg-subtle); display: block; }
.flow-nav-link .fnl-name  { font-size: .83rem; font-weight: 600; color: var(--blue-dk); }
.flow-nav-link:hover .fnl-name { color: var(--blue); }
.flow-nav-link svg {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: var(--fg-subtle); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.flow-nav-link:hover svg { stroke: var(--blue); }

/* =====================================================
   TOOL PREV / NEXT NAV (bottom of tool pages)
   ===================================================== */
.tool-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.tool-nav-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .75rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-decoration: none; min-height: 44px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.tool-nav-btn:hover {
  border-color: var(--border-h);
  background: var(--accent-dim);
  transform: translateY(-1px);
}
.tool-nav-btn .dir  { font-size: .68rem; color: var(--fg-subtle); display: block; }
.tool-nav-btn .name { font-size: .85rem; font-weight: 600; color: var(--blue-dk); }
.tool-nav-btn:hover .name { color: var(--blue); }
.tool-nav-btn svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: var(--fg-subtle); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tool-nav-btn:hover svg { stroke: var(--blue); }
/* Reverse order for "next" button so arrow is on the right */
.tool-nav-btn.next { flex-direction: row-reverse; text-align: right; }

/* =====================================================
   IMPACT NOTICE (pillar cross-link label)
   ===================================================== */
.impact-notice {
  margin-top: 1.5rem;
  padding: .7rem 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(255,204,0,.22);
  border-radius: var(--radius-md);
  font-family: var(--mono); font-size: .72rem;
  color: var(--blue-dk); font-weight: 600;
}
.impact-notice i { color: var(--blue); margin-right: .35rem; }