/* Local Web Advisor — design system per design/DESIGN.md (Framer-inspired) */

@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mona Sans'; src: url('../fonts/mona-sans-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --canvas: #090909;
  --surface-1: #141414;
  --surface-2: #1c1c1c;
  --hairline: #262626;
  --hairline-soft: #1a1a1a;
  --ink: #ffffff;
  --ink-muted: #999999;
  --ink-soft: #c7c7c7;
  --accent: #0099ff;
  --grad-magenta: #d44df0;
  --grad-violet: #6a4cf5;
  --grad-orange: #ff7a3d;
  --success: #22c55e;
  --display: 'Mona Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --container: 1200px;
  --radius: 14px;
  --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
h1, h2, h3, .display-xl, .display-lg, .display-md { overflow-wrap: break-word; }
::selection { background: rgba(0, 153, 255, 0.28); color: #fff; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv01', 'cv05', 'cv09', 'cv11', 'ss03', 'ss07';
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--accent); }
p a:hover, .prose a:hover { text-decoration: underline; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 8px 16px; border-radius: 8px; }

/* Typography */
.display-xl, .display-lg, .display-md, h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--ink); }
.display-xl { font-size: clamp(44px, 7.5vw, 92px); line-height: 0.95; letter-spacing: -0.05em; }
.display-lg { font-size: clamp(34px, 5vw, 58px); line-height: 1.0; letter-spacing: -0.045em; }
.display-md { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.02em; }
.sub { font-size: clamp(17px, 2vw, 21px); color: var(--ink-muted); line-height: 1.45; letter-spacing: -0.01em; max-width: 640px; }
.eyebrow {
  font-family: var(--body); font-size: 13px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); display: inline-block; margin-bottom: 18px;
}
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* Buttons — white pills on dark per spec */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: -0.1px;
  padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-pill { background: var(--ink); color: #000; }
.btn-pill:hover { background: #e8e8e8; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: #3a3a3a; background: var(--surface-1); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-blue { background: var(--accent); color: #001325; }
.btn-blue:hover { background: #2bb0ff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9,9,9,0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  font-size: 14.5px; color: var(--ink-soft); padding: 8px 13px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-1); }
.has-sub { position: relative; }
.has-sub:hover .nav-drop, .has-sub:focus-within .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease;
}
.nav-drop a { display: block; padding: 9px 12px; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.phone-link { font-size: 14px; color: var(--ink-muted); }
.phone-link:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: transform .2s; }

/* Hero */
.hero { padding: clamp(70px, 11vw, 140px) 0 clamp(50px, 7vw, 90px); position: relative; overflow: hidden; }
.hero-inner { max-width: 860px; }
.hero .sub { margin: 26px 0 36px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-glow {
  position: absolute; pointer-events: none; width: 900px; height: 900px; border-radius: 50%;
  filter: blur(140px); opacity: 0.16; z-index: -1;
  background: radial-gradient(circle, var(--grad-violet), transparent 65%);
  top: -320px; right: -240px;
}

/* Sections */
section { padding: clamp(56px, 8vw, 110px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 720px; }
.section-head .sub { margin-top: 16px; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--surface-1); border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg); padding: 30px 28px;
  transition: border-color .2s ease, transform .25s ease;
}
.card:hover { border-color: #333; transform: translateY(-3px); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,153,255,0.1); color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }
a.card { display: block; }
.card .price-tag { color: var(--accent); font-size: 13.5px; font-weight: 500; margin-top: 14px; display: inline-block; }
.card-link { color: var(--ink); font-size: 14.5px; font-weight: 500; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.card-link::after { content: '→'; transition: transform .15s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* Gradient showcase panels (spec: atmosphere tiles) */
.panel {
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px);
  position: relative; overflow: hidden; border: 1px solid var(--hairline-soft);
  background: var(--surface-1);
}
.panel-glow { position: absolute; inset: auto -30% -60% -30%; height: 130%; filter: blur(110px); opacity: .32; z-index: 0; }
.panel > * { position: relative; z-index: 1; }
.glow-violet { background: radial-gradient(ellipse at bottom, var(--grad-violet), transparent 70%); }
.glow-magenta { background: radial-gradient(ellipse at bottom, var(--grad-magenta), transparent 70%); }
.glow-orange { background: radial-gradient(ellipse at bottom, var(--grad-orange), transparent 70%); }

/* Stats band — legacy flex (kept for other pages) */
.stats { display: flex; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); padding: 34px 0; }
.stat b { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; display: block; }
.stat span { color: var(--ink-muted); font-size: 14px; }

/* Proof stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  position: relative; overflow: hidden; background: var(--surface-1);
  border: 1px solid var(--hairline-soft); border-radius: 18px; padding: 26px 24px;
  transition: border-color .25s ease, transform .25s ease;
}
.stat-card:hover { border-color: #333; transform: translateY(-3px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sc, #6a4cf5), transparent); }
.stat-card .sc-ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); color: var(--sc, #6a4cf5); margin-bottom: 18px; }
.stat-card .sc-ic svg { width: 22px; height: 22px; }
.stat-card b { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 46px); letter-spacing: -0.035em; display: block; line-height: 1; }
.stat-card span { color: var(--ink-muted); font-size: 14px; display: block; margin-top: 8px; }
.stat-card .sc-bar { height: 4px; border-radius: 3px; background: var(--hairline); margin-top: 18px; overflow: hidden; }
.stat-card .sc-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--sc, #6a4cf5); transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.stat-card.in .sc-bar i { width: var(--fill, 100%); }

/* Tech stack strip */
.techstrip { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px;
  border: 1px solid var(--hairline-soft); border-radius: 999px; background: var(--surface-1);
  color: var(--ink-muted); font-size: 14.5px; font-weight: 500; transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.tech-chip svg { width: 18px; height: 18px; fill: currentColor; transition: fill .2s ease; }
.tech-chip:hover { color: var(--ink); border-color: #3a3a3a; transform: translateY(-2px); }
.tech-chip:hover svg { fill: var(--accent); }

/* Steps / process */
.step { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--hairline-soft); }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--display); font-size: 30px; color: var(--accent); font-weight: 500; }
.step p { color: var(--ink-muted); margin-top: 6px; max-width: 620px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hairline-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em;
  padding: 22px 40px 22px 0; cursor: pointer; list-style: none; position: relative;
  border-radius: var(--radius); outline-offset: 4px;
}
.faq-item summary:focus:not(:focus-visible) { outline: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--ink-muted); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 0 22px; color: var(--ink-muted); max-width: 700px; }

/* Forms */
form.lead-form { display: grid; gap: 14px; max-width: 560px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; background: var(--surface-1); border: 1px solid var(--hairline);
  color: var(--ink); font-family: var(--body); font-size: 15px;
  padding: 13px 16px; border-radius: 12px; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 153, 255, 0.15); }
textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { font-size: 14.5px; padding: 12px 16px; border-radius: 10px; display: none; }
.form-msg.ok { display: block; background: rgba(34,197,94,.12); color: var(--success); }
.form-msg.err { display: block; background: rgba(255,90,90,.12); color: #ff7a7a; }

/* CTA band */
.cta-band { text-align: center; padding: clamp(70px, 10vw, 130px) 0; border-top: 1px solid var(--hairline-soft); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; left: 50%; bottom: -55%; width: 800px; height: 500px;
  transform: translateX(-50%); filter: blur(130px); opacity: .22;
  background: radial-gradient(ellipse, var(--grad-violet), transparent 70%);
}
.cta-band .sub { margin: 18px auto 34px; }
.cta-band .cta-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline-soft); padding: 64px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.f-brand p { color: var(--ink-muted); margin-top: 14px; max-width: 300px; }
.f-contact a { color: var(--ink-soft); }
.site-footer h3 { font-size: 14px; font-family: var(--body); font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.site-footer nav a { color: var(--ink-muted); display: inline-block; padding: 4px 0; }
.site-footer nav a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hairline-soft); padding-top: 24px; color: var(--ink-muted); font-size: 13px; }
.footer-bottom a { color: var(--ink-muted); } .footer-bottom a:hover { color: var(--ink); }

/* Blog hero image — dark-mode depth via light edge (not dark shadow), spacing, entrance animation */
.post-hero { margin-bottom: clamp(44px, 6vw, 76px); }
.post-hero-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04),
              0 18px 50px -12px rgba(0,153,255,.35),
              0 30px 70px -20px rgba(106,76,245,.30),
              0 10px 30px rgba(0,0,0,.55);
  animation: heroIn .9s cubic-bezier(.2,.8,.2,1) both;
  transition: transform .35s ease, box-shadow .35s ease;
}
.post-hero-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06),
              0 24px 60px -10px rgba(0,153,255,.5),
              0 36px 90px -20px rgba(106,76,245,.4),
              0 12px 34px rgba(0,0,0,.6);
}
.post-hero-frame img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px) scale(1.03); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .post-hero-frame { animation: none; } }

/* Reading progress bar */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--grad-violet), var(--accent), var(--grad-magenta)); transition: width .1s linear; }

/* Byline */
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.byline-av { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(140deg, var(--grad-violet), var(--grad-magenta)); letter-spacing: -0.02em; }
.byline-name { font-weight: 500; font-size: 15px; }
.byline-meta { color: var(--ink-muted); font-size: 13.5px; margin-top: 2px; }

/* Post layout: article + sticky aside */
.post-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; max-width: 1040px; }
.post-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 28px; }
.toc-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
.toc nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--hairline); }
.toc nav a { color: var(--ink-muted); font-size: 14px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; transition: color .18s ease, border-color .18s ease; }
.toc nav a:hover { color: var(--ink-soft); }
.toc nav a.active { color: var(--accent); border-left-color: var(--accent); }
.share-btns { display: flex; gap: 8px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--hairline); background: var(--surface-1); color: var(--ink-muted); cursor: pointer; transition: color .18s ease, border-color .18s ease, transform .18s ease; }
.share-btn svg { width: 17px; height: 17px; }
.share-btn:hover { color: var(--ink); border-color: #3a3a3a; transform: translateY(-2px); }
.copy-msg { display: block; font-size: 13px; color: var(--success); margin-top: 10px; opacity: 0; transition: opacity .2s ease; }
.copy-msg.show { opacity: 1; }

/* Author bio */
.author-bio { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 26px; background: var(--surface-1); border: 1px solid var(--hairline-soft); border-radius: 18px; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-meta { font-size: 13px; color: var(--ink-muted); display: flex; gap: 10px; margin-bottom: 12px; }
.post-meta .cat { color: var(--accent); }
.prose { max-width: 720px; font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.prose > p:first-of-type { font-size: 20px; color: var(--ink); line-height: 1.6; }
.prose h2 { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; margin: 52px 0 18px; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; margin: 34px 0 12px; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin-bottom: 22px; }
.prose ul { list-style: none; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose ol li { margin-bottom: 10px; padding-left: 4px; }
.prose ol li::marker { color: var(--accent); font-weight: 500; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,153,255,.4); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin: 30px 0; color: var(--ink); font-family: var(--font-voice, Georgia), serif; font-size: 21px; line-height: 1.5; font-style: italic; }
.prose blockquote p { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin: 32px 0; border: 1px solid var(--hairline-soft); }
.prose code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 15px; font-family: var(--font-mono, monospace); color: #7fbfff; }
.prose pre { background: var(--surface-1); border: 1px solid var(--hairline); padding: 18px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 22px; }
.prose h2 + p, .prose h3 + p { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--hairline-soft); margin: 40px 0; }

/* Gradient spotlight cards — Framer signature. Real saturated color, white text, cursor-follow glow. */
.spotlight {
  position: relative; overflow: hidden; border-radius: 30px; padding: 40px;
  color: #fff; isolation: isolate; display: block;
  transition: transform .3s ease;
}
.spotlight:hover { transform: translateY(-4px); }
.spotlight.sl-violet  { background: linear-gradient(150deg, #6a4cf5 0%, #8b5cf6 55%, #4a2fd0 100%); }
.spotlight.sl-magenta { background: linear-gradient(150deg, #d44df0 0%, #b23bd8 55%, #7e2ca8 100%); }
.spotlight.sl-orange  { background: linear-gradient(150deg, #ff7a3d 0%, #ff5577 60%, #d63d2e 100%); }
.spotlight.sl-coral   { background: linear-gradient(150deg, #ff5577 0%, #ff7a9c 55%, #d63d5e 100%); }
.spotlight::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,0.45), transparent 60%);
  opacity: .55; transition: opacity .3s ease;
}
.spotlight:hover::before { opacity: .9; }
.spotlight .sl-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.spotlight h3 { color: #fff; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; margin: 0 0 12px; }
.spotlight p { color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.5; max-width: 42ch; }
.spotlight .sl-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px); color: #fff;
  padding: 11px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  border: 1px solid rgba(255,255,255,.28); transition: background .2s ease;
}
.spotlight .sl-cta:hover { background: rgba(255,255,255,.28); }

/* Ticker / marquee — Framer-style scrolling strip */
.marquee { overflow: hidden; border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { color: var(--ink-muted); font-size: 15px; white-space: nowrap; letter-spacing: -0.01em; }
.marquee span::after { content: '·'; margin-left: 48px; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Reveal animations — only hide when JS is active, so content never gets stuck invisible */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Tools */
.tool-box { max-width: 720px; margin: 0 auto; }
.tool-input-row { display: flex; gap: 10px; }
.tool-input-row input { flex: 1; font-size: 16px; padding: 15px 18px; }
.scan-steps { margin: 28px 0 0; }
.scan-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink-muted); font-size: 15px; opacity: 0; transform: translateY(8px); transition: all .35s ease; }
.scan-step.on { opacity: 1; transform: none; }
.scan-step.done { color: var(--ink-soft); }
.scan-step .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hairline); flex-shrink: 0; position: relative; }
.scan-step.on .dot { border-color: var(--accent); animation: pulse-dot 1s ease infinite; }
.scan-step.done .dot { border-color: var(--success); background: rgba(34,197,94,.15); animation: none; }
.scan-step.done .dot::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--success); }
@keyframes pulse-dot { 0%,100% { box-shadow: 0 0 0 0 rgba(0,153,255,.35); } 50% { box-shadow: 0 0 0 6px rgba(0,153,255,0); } }
.score-wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin: 8px 0 30px; }
.score-ring { width: 150px; height: 150px; position: relative; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val b { font-family: var(--display); font-size: 42px; font-weight: 500; line-height: 1; }
.score-ring .val span { font-size: 12px; color: var(--ink-muted); }
.check-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline-soft); }
.check-row .ic { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.check-row.pass .ic { background: rgba(34,197,94,.15); color: var(--success); }
.check-row.fail .ic { background: rgba(255,90,90,.15); color: #ff7a7a; }
.check-row b { font-weight: 500; font-size: 15px; display: block; }
.check-row p { color: var(--ink-muted); font-size: 14px; margin-top: 2px; }
.cat-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 30px 0 4px; font-weight: 500; }
.risk-badge { display: inline-block; padding: 8px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.risk-High { background: rgba(255,90,90,.15); color: #ff7a7a; }
.risk-Medium { background: rgba(239,159,39,.15); color: #efa027; }
.risk-Low { background: rgba(34,197,94,.15); color: var(--success); }
.tech-pill { display: inline-block; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 18px; margin: 0 8px 10px 0; font-size: 14.5px; animation: pill-in .4s ease backwards; }
@keyframes pill-in { from { opacity: 0; transform: scale(.85); } }

/* Breadcrumbs */
.crumbs { font-size: 13px; color: var(--ink-muted); margin-bottom: 22px; }
.crumbs a { color: var(--ink-muted); } .crumbs a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat { min-width: 0; }
  .stat b { font-size: 30px; }
  .stat span { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
  .phone-link { display: none; }
  .nav-toggle { display: block; }
  .main-nav ul#nav-menu {
    display: none; position: fixed; inset: 68px 0 auto 0; background: var(--canvas);
    flex-direction: column; padding: 16px 24px 28px; border-bottom: 1px solid var(--hairline);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .main-nav.open ul#nav-menu { display: flex; }
  .main-nav a { display: block; padding: 13px 8px; font-size: 17px; }
  .nav-drop { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 16px; }
  .nav-drop a { font-size: 15px; color: var(--ink-muted); }
  .step { grid-template-columns: 48px 1fr; }
  .post-layout { grid-template-columns: 1fr; gap: 24px; }
  .post-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline-soft); }
  .toc { display: none; }
  .prose { font-size: 17px; }
  .prose > p:first-of-type { font-size: 18px; }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .post-layout { grid-template-columns: 200px minmax(0,1fr); gap: 32px; }
}
