/* ============================================================
   BRANDOSE — Design System v3 "Full Dose"
   Bold agency · dark base · acid green · cream breaks
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0b0a;
  --ink-2: #121412;
  --ink-3: #1a1d1a;
  --cream: #f3efe6;
  --cream-2: #e9e3d4;
  --green: #7cc983;
  --acid: #b3f05c;
  --white: #ffffff;
  --grey: #9aa39b;
  --line: rgba(243, 239, 230, 0.14);
  --line-dark: rgba(10, 11, 10, 0.15);
  --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius: 20px;
  --nav-h: 76px;
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--acid); color: var(--ink); }

/* Noise overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }
.display-xl { font-size: clamp(3rem, 9vw, 8rem); text-transform: uppercase; }
.display-lg { font-size: clamp(2.4rem, 6.5vw, 5.2rem); text-transform: uppercase; }
.display-md { font-size: clamp(1.9rem, 4.5vw, 3.4rem); }
.display-sm { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cream);
}
.acid { color: var(--acid); }
.green { color: var(--green); }
em.tilt { font-style: italic; font-family: var(--font-display); font-weight: 500; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--acid); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--grey); max-width: 46ch; }
.on-cream .lead { color: #4a4f4a; }

/* ---------- Pill / sticker motifs ---------- */
.pill-o {
  display: inline-flex; align-items: center; justify-content: center;
  width: 0.8em; height: 0.8em;
  background: linear-gradient(135deg, var(--acid), var(--green));
  border-radius: 50%;
  color: var(--ink) !important;
  font-style: normal; font-weight: 700; font-size: 0.82em;
  margin: 0 0.03em; position: relative; top: 0.02em;
  box-shadow: 0 0 18px rgba(179, 240, 92, 0.45);
  flex-shrink: 0; line-height: 1;
}
.pill-o::after {
  content: ''; position: absolute; left: 12%; right: 12%; top: 50%;
  height: 1.5px; background: rgba(10, 11, 10, 0.3);
}
.sticker {
  display: inline-block;
  background: var(--acid); color: var(--ink);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 18px; border-radius: 100px;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--ink-3);
}
.sticker.alt { background: var(--cream); transform: rotate(2deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 16px 32px; border-radius: 100px;
  border: 2px solid var(--acid);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s, box-shadow 0.25s;
  cursor: pointer;
}
.btn-primary { background: var(--acid); color: var(--ink); box-shadow: 5px 5px 0 rgba(179,240,92,0.25); }
.btn-primary:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 8px 8px 0 rgba(179,240,92,0.35); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }
.on-cream .btn-ghost { color: var(--ink); border-color: var(--line-dark); }
.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Nav ---------- */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(10, 11, 10, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo-css {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.7rem; color: var(--cream);
  display: inline-flex; align-items: center; letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block; padding: 10px 12px;
  font-size: 0.92rem; font-weight: 500;
  border-radius: 100px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-links > li > a:hover, .nav-links > li > a.active { background: var(--ink-3); color: var(--acid); }
.nav-cta { margin-left: 8px; padding: 12px 20px; font-size: 0.8rem; white-space: nowrap; }

/* Mega menu */
.mega { position: static; }
.mega-panel {
  position: absolute; top: calc(var(--nav-h) - 8px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(920px, 92vw);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.mega:hover .mega-panel, .mega:focus-within .mega-panel, .mega.open .mega-panel {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-col h5 {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--acid); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.mega-col h5 a { color: inherit; }
.mega-col h5 a:hover { text-decoration: underline; }
.mega-col a.sub {
  display: block; padding: 7px 0;
  font-size: 0.92rem; color: var(--grey);
  transition: color 0.15s, padding-left 0.15s;
}
.mega-col a.sub:hover { color: var(--cream); padding-left: 6px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; z-index: 110; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--cream); margin: 6px 0; transition: 0.3s; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: calc(var(--nav-h) + 26px) var(--pad) 0;
  font-size: 0.82rem; color: var(--grey);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.breadcrumbs a { color: var(--grey); transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--acid); }
.breadcrumbs .sep { color: var(--green); }
.breadcrumbs .current { color: var(--cream); }

/* ---------- Sections ---------- */
section { padding: clamp(70px, 10vw, 130px) var(--pad); position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 900px; }
.on-cream { background: var(--cream); color: var(--ink); }
.on-cream .outline-text { -webkit-text-stroke-color: var(--ink); }
.on-cream .eyebrow { color: #3e7a45; }
.big-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 10vw, 9rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--green);
  opacity: 0.85;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  position: relative; overflow: hidden;
}
.hero-kicker { margin-bottom: 8px; }
.hero h1 { margin: 10px 0 26px; }
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row span { display: inline-block; animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero h1 .row:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .row:nth-child(3) span { animation-delay: 0.24s; }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 34px; }
.hero-blob {
  position: absolute; right: -12vw; top: 20%;
  width: 44vw; height: 44vw; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(179, 240, 92, 0.16), transparent 65%);
  pointer-events: none;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: var(--ink-2);
}
.marquee.loud { background: var(--acid); border: none; }
.marquee-track { display: inline-flex; gap: 0; animation: scroll-x 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem); text-transform: uppercase;
  padding: 0 28px; letter-spacing: 0.02em;
}
.marquee.loud span { color: var(--ink); }
.marquee span::after { content: '✦'; margin-left: 56px; color: var(--green); }
.marquee.loud span::after { color: var(--ink); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, background 0.25s;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px;
}
.card:hover { transform: translateY(-8px) rotate(-0.5deg); border-color: var(--acid); }
.card .num {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--green); letter-spacing: 0.1em;
}
.card h3 { font-size: 1.45rem; }
.card p { color: var(--grey); font-size: 0.96rem; flex-grow: 1; }
.card .card-link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--acid);
}
.card .card-link:hover { text-decoration: underline; }
.on-cream .card { background: var(--white); border-color: var(--line-dark); }
.on-cream .card p { color: #4a4f4a; }
.on-cream .card h3 { color: var(--ink); }

/* Pillar cards (big) */
.pillar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center;
  padding: clamp(30px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
}
.pillar:first-child { border-top: 1px solid var(--line); }
.pillar:hover { padding-left: 18px; }
.pillar:hover .pillar-title { color: var(--acid); }
.pillar-title { font-size: clamp(1.7rem, 4vw, 3rem); text-transform: uppercase; transition: color 0.2s; }
.pillar p { color: var(--grey); max-width: 52ch; margin-top: 8px; }
.pillar .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 13px; color: var(--grey);
  transition: all 0.15s;
}
a.tag:hover { border-color: var(--acid); color: var(--acid); }
.pillar .go {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: all 0.25s;
}
.pillar:hover .go { background: var(--acid); border-color: var(--acid); color: var(--ink); transform: rotate(-45deg); }

/* ---------- Horizontal rail ---------- */
.rail-wrap { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 10px var(--pad); }
.rail-wrap::-webkit-scrollbar { display: none; }
.rail { display: flex; gap: 22px; width: max-content; }
.rail .card { width: min(400px, 82vw); flex-shrink: 0; }
.rail-hint { font-size: 0.8rem; color: var(--grey); text-transform: uppercase; letter-spacing: 0.15em; margin-top: 18px; }

/* ---------- Process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; counter-reset: step; }
.step { border-top: 2px solid var(--green); padding-top: 22px; }
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--grey); font-size: 0.95rem; }
.on-cream .step p { color: #4a4f4a; }
.step .step-num { font-family: var(--font-display); color: var(--acid); font-size: 2.4rem; font-weight: 600; display: block; margin-bottom: 12px; }
.on-cream .step .step-num { color: #3e7a45; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--cream);
}
.on-cream .faq-item button { color: var(--ink); }
.faq-item button .ico { font-size: 1.5rem; color: var(--acid); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open button .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { color: var(--grey); padding: 0 0 26px; max-width: 68ch; }
.on-cream .faq-a p { color: #4a4f4a; }

/* ---------- Work / case cards ---------- */
.case {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 50px);
  margin-bottom: 26px;
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.case .case-tag { color: var(--green); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; }
.case h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.case .pio { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.case .pio h4 { color: var(--acid); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.case .pio p { color: var(--grey); font-size: 0.93rem; }
.case .outcomes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.outcome-chip {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 100px; padding: 9px 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: var(--acid);
}

/* ---------- Symptom list (challenge sections) ---------- */
.symptoms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.symptom {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 24px; color: var(--grey); font-size: 0.97rem;
}
.symptom strong { color: var(--cream); font-family: var(--font-display); display: block; margin-bottom: 6px; font-size: 1.05rem; }
.on-cream .symptom { border-color: var(--line-dark); color: #4a4f4a; }
.on-cream .symptom strong { color: var(--ink); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--acid); color: var(--ink);
  border-radius: calc(var(--radius) * 1.4);
  margin: 0 var(--pad) clamp(70px, 9vw, 120px);
  padding: clamp(50px, 7vw, 90px) clamp(28px, 5vw, 70px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(2rem, 5.5vw, 4.2rem); text-transform: uppercase; margin-bottom: 18px; }
.cta-banner p { max-width: 56ch; margin: 0 auto 32px; font-size: 1.05rem; color: rgba(10, 11, 10, 0.75); }
.cta-banner .btn { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.cta-banner .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(10, 11, 10, 0.25); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); display: block; margin-bottom: 8px; }
input, select, textarea {
  width: 100%; background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 15px 18px; font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acid); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--grey); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card .meta { font-size: 0.8rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.12em; }
.post-body { max-width: 780px; margin: 0 auto; }
.post-body h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 48px 0 18px; }
.post-body h3 { font-size: 1.35rem; margin: 36px 0 14px; }
.post-body p { margin-bottom: 20px; color: #c9cec8; }
.post-body ul { list-style: disc; padding-left: 24px; margin-bottom: 20px; color: #c9cec8; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 3px solid var(--acid); padding: 6px 0 6px 24px;
  font-family: var(--font-display); font-size: 1.25rem; margin: 30px 0;
}
.post-hero { padding-top: 20px; }
.post-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 20ch; }

/* ---------- Related links / interlink strip ---------- */
.related { border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.related-grid a {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; font-family: var(--font-display); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  transition: all 0.2s; font-size: 0.98rem;
}
.related-grid a:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-3px); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(50px, 7vw, 90px) var(--pad) 34px;
  background: var(--ink-2);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 54px; }
.footer-grid h5 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--acid);
  margin-bottom: 18px;
}
.footer-grid a { display: block; padding: 5px 0; color: var(--grey); font-size: 0.92rem; transition: color 0.15s; }
.footer-grid a:hover { color: var(--cream); }
.footer-brand p { color: var(--grey); font-size: 0.95rem; max-width: 34ch; margin: 16px 0 20px; }
.footer-contact a { color: var(--cream); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: var(--grey);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.err-wrap { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); }
.err-wrap h1 { font-size: clamp(5rem, 18vw, 14rem); color: transparent; -webkit-text-stroke: 2px var(--acid); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mega-panel { grid-template-columns: 1fr; max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 1120px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 105;
    background: var(--ink);
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    padding: calc(var(--nav-h) + 20px) var(--pad) 40px;
    gap: 2px; overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li > a { font-size: 1.3rem; font-family: var(--font-display); padding: 14px 0; border-radius: 0; white-space: normal; }
  .hamburger { display: block; }
  .hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mega-panel {
    position: static; transform: none; width: 100%;
    opacity: 1; visibility: hidden; display: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 10px 14px;
  }
  .mega.open .mega-panel { display: grid; visibility: visible; transform: none; }
  .nav-cta { margin: 18px 0 0; justify-content: center; }
  .pillar { grid-template-columns: 1fr; gap: 14px; }
  .pillar .go { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-banner { margin-left: 14px; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Brand Vitals Dashboard ---------- */
.vitals {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  width: min(460px, 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(179,240,92,0.03);
  position: relative;
  font-family: var(--font-body);
}
.vitals::before {
  content: '';
  position: absolute; inset: 0; border-radius: var(--radius);
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(179,240,92,0.02) 3px 4px);
  pointer-events: none;
}
.vitals-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.vitals-head .vt-title {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--cream);
}
.vt-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--acid);
}
.vt-live::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--acid); animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }
.vt-ekg { margin: 6px 0 16px; }
.vt-ekg polyline {
  fill: none; stroke: var(--acid); stroke-width: 2;
  stroke-dasharray: 640; stroke-dashoffset: 640;
  animation: ekg 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(179,240,92,0.6));
}
@keyframes ekg { to { stroke-dashoffset: 0; } }
.vt-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.vt-row label {
  width: 118px; margin: 0; font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--grey); text-transform: uppercase; flex-shrink: 0;
}
.vt-bar { flex-grow: 1; height: 8px; background: var(--ink-3); border-radius: 100px; overflow: hidden; }
.vt-bar i {
  display: block; height: 100%; width: 0; border-radius: 100px;
  background: linear-gradient(90deg, var(--green), var(--acid));
}
.vitals.on .vt-bar i { transition: width 1.4s cubic-bezier(0.22,1,0.36,1); }
.vt-val { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; color: var(--acid); width: 58px; text-align: right; flex-shrink: 0; }
.vt-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.75rem; color: var(--grey); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vt-foot .rx { font-family: var(--font-display); color: var(--cream); font-size: 0.8rem; }

/* Stagger reveal children */
.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.stagger.in > *:nth-child(8) { transition-delay: 0.56s; }

/* Floating pills background decor */
.float-pill {
  position: absolute; border-radius: 100px;
  background: linear-gradient(135deg, rgba(179,240,92,0.12), rgba(124,201,131,0.05));
  border: 1px solid rgba(179,240,92,0.15);
  animation: floaty 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-26px) rotate(6deg); }
}
.hero-split2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 1024px) { .hero-split2 { grid-template-columns: 1fr; } }

/* Live Website Preview Widget */
.site-preview {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s;
  height: 100%;
}
.site-preview:hover {
  transform: translateY(-4px);
  border-color: var(--acid);
}
.site-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--ink-3);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.75rem;
}
.site-preview__dots {
  display: flex;
  gap: 6px;
}
.site-preview__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-dark);
}
.site-preview__dots span:nth-child(1) { background: #ff5f56; }
.site-preview__dots span:nth-child(2) { background: #ffbd2e; }
.site-preview__dots span:nth-child(3) { background: #27c93f; }

.site-preview__url {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  animation: blink 1.2s infinite;
}
.site-preview__out {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.site-preview__out:hover {
  color: var(--acid);
}
.site-preview__frame-container {
  flex-grow: 1;
  position: relative;
  background: var(--white);
  min-height: 400px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: all 0.3s ease;
}
.site-preview__frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}
.site-preview__frame-container.mobile-view {
  min-height: 500px;
}
.site-preview__frame-container.mobile-view iframe {
  width: 375px;
  height: 812px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.61);
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 30px;
  border: 8px solid #1a1a1a;
}
.site-preview__controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.vp-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--grey);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}
.vp-btn:hover {
  border-color: var(--acid);
  color: var(--cream);
}
.vp-btn.active {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}
.site-preview__meta {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-preview__meta h3 {
  font-size: 1.1rem;
  margin: 0;
}
.site-preview__meta .tag {
  background: var(--ink-3);
  border: none;
  font-size: 0.7rem;
  padding: 4px 10px;
}

/* Mobile Responsiveness Overhaul */
@media (max-width: 768px) {
  /* Fix grid overflows on small screens */
  .card-grid, .steps, .symptoms, .logo-grid, .quote-rail { 
    grid-template-columns: 1fr !important; 
  }
  .footer-grid { grid-template-columns: 1fr !important; gap: 30px; }
  
  /* Prevent horizontal scroll from long words or overflowing items */
  body { font-size: 16px; overflow-x: hidden; }
  
  /* Scale down massive display fonts */
  .display-xl { font-size: clamp(2.5rem, 11vw, 3.5rem) !important; }
  .display-lg { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .display-md { font-size: clamp(1.6rem, 7vw, 2.5rem) !important; }
  .big-num { font-size: clamp(3rem, 12vw, 4rem) !important; }
  
  /* Adjust section padding for mobile */
  section { padding: 50px var(--pad) !important; }
  .hero { padding-top: calc(var(--nav-h) + 20px) !important; }
  
  /* Hide decorative blobs that might cause overflow */
  .hero-blob, .float-pill { display: none !important; }
  
  /* Ensure the site-preview widget fits on mobile */
  .site-preview__frame-container.mobile-view iframe {
      transform: translateX(-50%) scale(0.45) !important;
  }
  .site-preview { width: 100%; max-width: 100%; }
}

