/* ==========================================================================
   Advirson Marketing — global styles
   Colour: black base, electric blue accents, white text
   Type: Space Grotesk (headings) + DM Sans (body)
   ========================================================================== */

:root {
  /* Palette */
  --black: #050507;
  --black-2: #0a0c12;
  --white: #f5f7fb;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93c5fd;

  /* Semantic tokens */
  --bg: var(--black);
  --surface: rgba(13, 16, 26, 0.72);
  --surface-strong: rgba(13, 16, 26, 0.92);
  --surface-hover: rgba(20, 26, 44, 0.85);
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(96, 165, 250, 0.4);
  --text: var(--white);
  --text-muted: #a7b0c2;
  --text-dim: #7c869b;
  --primary: var(--blue-600);
  --primary-hover: var(--blue-500);
  --accent: var(--blue-400);
  --ring: var(--blue-300);
  --success: #4ade80;
  --error: #f87171;

  /* Type */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  /* Spacing (8pt) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --intro-delay: 0s; /* set to the intro's length while the logo intro plays */
  --z-bg: -1; --z-base: 1; --z-header: 50; --z-menu: 60;
}

/* --- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Fluid background ---------------------------------------------------- */
#fluid {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: var(--z-bg); pointer-events: none; display: block;
}
/* Readability veil over the fluid, plus a static glow fallback (shown when WebGL / motion is off) */
.bg-veil {
  position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(5, 5, 7, 0.55) 100%),
    linear-gradient(to bottom, rgba(5, 5, 7, 0) 0%, rgba(5, 5, 7, 0.35) 100%);
}
html.no-fluid .bg-veil {
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(50% 45% at 85% 30%, rgba(96, 165, 250, 0.16), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgba(29, 78, 216, 0.18), transparent 70%);
}

/* --- Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: var(--s-9) 0; position: relative; }
.section--tight { padding: var(--s-8) 0; }
.section--panel { background: linear-gradient(to bottom, rgba(5, 5, 7, 0.65), rgba(5, 5, 7, 0.85)); border-block: 1px solid var(--border); backdrop-filter: blur(2px); }

.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.section-head p { margin-top: var(--s-4); color: var(--text-muted); font-size: 1.125rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: var(--s-4);
}

.text-blue { color: var(--accent); }
.gradient-text {
  background: linear-gradient(100deg, #ffffff 10%, var(--blue-300) 45%, var(--blue-500) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur) ease, transform var(--dur-fast) ease, color var(--dur-fast) ease;
  touch-action: manipulation;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.18); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.45); }
.btn-white { background: #fff; color: var(--black); }
.btn-white:hover { background: var(--blue-300); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header); height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, backdrop-filter var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 5, 7, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
/* letter-spacing adds space after the last letter, so matching left padding keeps the text optically centred */
.brand-name { font-family: "Michroma", var(--font-head); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.14em; padding-left: 0.14em; }
.site-footer .brand img { width: 44px; height: 44px; }
.site-footer .brand-name { font-size: 0.85rem; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent);
}
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu);
  background: rgba(5, 5, 7, 0.97); backdrop-filter: blur(16px);
  padding: 24px 20px 40px; display: flex; flex-direction: column; gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px; font-family: var(--font-head); font-size: 1.5rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:not(.btn) svg { width: 22px; height: 22px; color: var(--text-dim); flex-shrink: 0; }
.mobile-menu a[aria-current="page"] { color: var(--accent); }
.site-header:has(~ .mobile-menu.is-open) { background: rgba(5, 5, 7, 0.97); border-color: var(--border); }
.mobile-menu .btn { margin-top: 24px; }

@media (min-width: 1024px) {
  .nav-links, .header-cta { display: flex; }
  .nav-links a { white-space: nowrap; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-inner { gap: 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 9px; font-size: 0.9rem; }
  .header-cta { padding: 0 18px; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
  min-height: 100dvh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px; position: relative;
}
.hero-inner { max-width: 940px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; letter-spacing: -0.035em; }
.hero-lead { margin-top: var(--s-5); max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted); }
.hero .btn-row { margin-top: var(--s-6); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: var(--s-7); color: var(--text-muted); font-size: 0.92rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: var(--s-5);
  border-radius: 999px; border: 1px solid var(--border-accent); background: rgba(37, 99, 235, 0.12);
  font-size: 0.88rem; color: var(--blue-300); backdrop-filter: blur(8px);
}
.pill b { white-space: nowrap; background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s var(--ease-out) infinite; transform-origin: top; }
@media (max-height: 860px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Page hero (inner pages) */
.page-hero { padding: calc(var(--header-h) + 96px) 0 var(--s-9); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 900px; }
.page-hero .hero-lead { max-width: 680px; }
.page-hero .btn-row { margin-top: var(--s-6); }
.breadcrumb { display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-dim); margin-bottom: var(--s-5); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }

/* Page hero with image (e.g. Google Ads) */
.page-hero-split { display: grid; gap: 40px; align-items: center; }
.hero-media {
  margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(18px) scale(0.98);
  animation: rise 1s var(--ease-out) calc(var(--intro-delay) + 0.3s) forwards;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.45), transparent 35%);
}
@media (min-width: 1024px) {
  .page-hero-split { grid-template-columns: 1fr auto; gap: 64px; }
  .page-hero-split .hero-media { width: clamp(320px, 30vw, 420px); justify-self: end; }
  .page-hero-split h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }
}
@media (prefers-reduced-motion: reduce) { .hero-media { opacity: 1; transform: none; } }

/* --- Trades marquee --------------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: rgba(5, 5, 7, 0.6); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.marquee-track li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- Cards ----------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
  overflow: hidden;
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); }

.icon-box {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  border: 1px solid var(--border); color: var(--blue-300);
}
.icon-box svg { width: 26px; height: 26px; }

/* Service cards (home) */
.service-card { display: flex; flex-direction: column; min-height: 100%; padding: 36px; }
.service-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.service-card .tag { font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.service-card h3 { font-size: 1.7rem; }
.service-card ul { margin: 20px 0 28px; display: grid; gap: 10px; }
.service-card li { display: flex; gap: 10px; color: var(--text-muted); font-size: 0.97rem; }
.service-card li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--blue-300); }
.card-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.service-card:hover .card-link svg { transform: translateX(4px); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* "What you get" list on the service pages: numbered rows with hairline rules, no cards or icons */
.included-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 64px; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .included-list { grid-template-columns: 1fr 1fr; } }
.included-list li { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.included-num { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--blue-300); padding-top: 4px; }
.included-list h3 { font-size: 1.25rem; margin-bottom: 8px; }
.included-list p { color: var(--text-muted); max-width: 48ch; }

/* --- Split / feature rows ---------------------------------------------------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 80px; } }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); }
.split p + p { margin-top: 16px; }
.split .muted { color: var(--text-muted); font-size: 1.08rem; margin-top: 20px; }

.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .tick { width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; color: var(--blue-300); margin-top: 1px; }
.check-list .tick svg { width: 16px; height: 16px; }
.check-list strong { display: block; font-family: var(--font-head); font-weight: 600; }
.check-list span.d { color: var(--text-muted); font-size: 0.97rem; }

/* Comparison panel */
.compare { display: grid; gap: 16px; }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare .card { padding: 28px; }
.compare h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.compare h3 svg { width: 22px; height: 22px; flex-shrink: 0; }
.compare .bad h3 svg { color: var(--error); }
.compare .good h3 svg { color: var(--accent); }
.compare li { display: flex; gap: 10px; color: var(--text-muted); font-size: 0.95rem; padding: 8px 0; border-top: 1px solid var(--border); }
.compare li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.compare .bad svg { color: var(--error); }
.compare .good { border-color: rgba(96, 165, 250, 0.35); }
.compare .good svg { color: var(--accent); }

/* --- Process ---------------------------------------------------------------- */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 32px 28px; }
.step-num { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1; margin-bottom: 20px; color: var(--blue-300); }
.step h3 { font-size: 1.2rem; }

/* --- Results (placeholders for real screenshots) ------------------------------ */
.results-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .results-grid { grid-template-columns: repeat(3, 1fr); } }
.result-card { padding: 0; display: flex; flex-direction: column; }
@media (min-width: 1024px) { .results-grid--two { grid-template-columns: repeat(2, 1fr); } }
.result-media { aspect-ratio: 4 / 3; background: var(--black-2); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-placeholder {
  position: absolute; inset: 14px; border: 1.5px dashed rgba(96, 165, 250, 0.35); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
  color: var(--text-dim); font-size: 0.9rem; padding: 16px;
  background: repeating-linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0 12px, transparent 12px 24px);
}
.result-placeholder svg { width: 32px; height: 32px; color: var(--blue-400); opacity: 0.7; }
.result-body { padding: 24px 26px 28px; }
.result-body .trade { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.result-body h3 { font-size: 1.2rem; margin: 8px 0 6px; }
.result-body p { font-size: 0.95rem; }

/* --- FAQ ---------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); transition: border-color var(--dur) ease; }
.faq details[open] { border-color: rgba(255, 255, 255, 0.2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-accent); display: grid; place-items: center; flex-shrink: 0; transition: transform var(--dur) var(--ease-out), background-color var(--dur) ease; }
.faq summary .plus svg { width: 16px; height: 16px; color: var(--blue-300); }
.faq details[open] summary .plus { transform: rotate(45deg); background: rgba(37, 99, 235, 0.2); }
.faq .answer { padding: 0 24px 24px; color: var(--text-muted); max-width: 70ch; }

/* --- CTA band ------------------------------------------------------------------ */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: #0b1430;
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.5fr auto; } }
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.cta-band p { margin-top: 14px; color: #c9d6f2; font-size: 1.1rem; max-width: 560px; }

/* --- Stats strip (non-numeric promises) ---------------------------------------- */
.promise-strip { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 768px) { .promise-strip { grid-template-columns: repeat(4, 1fr); } }
.promise-strip > div { background: var(--surface-strong); padding: 28px; }
.promise-strip strong { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.promise-strip span { color: var(--text-muted); font-size: 0.93rem; }

/* --- Contact -------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.booking-embed { min-height: 640px; padding: 0; overflow: hidden; }
.booking-embed iframe { width: 100%; min-height: 680px; border: 0; display: block; }
.booking-placeholder { min-height: 640px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 40px 28px; }
.booking-placeholder .icon-box { margin: 0; width: 64px; height: 64px; }
.booking-placeholder h3, .booking-placeholder .booking-title { font-size: 1.6rem; }
.booking-placeholder p { max-width: 420px; }

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  font-size: 1rem;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--black-2); }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-400); background: rgba(37, 99, 235, 0.08); box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25); }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--error); }
.field .error-msg { color: var(--error); font-size: 0.86rem; display: none; }
.field[data-invalid] .error-msg { display: block; }
.form-note { font-size: 0.85rem; color: var(--text-dim); }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; }
.form-status.is-success { display: block; background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.35); color: #bbf7d0; }
.form-status.is-error { display: block; background: rgba(248, 113, 113, 0.1); border: 1px solid rgba(248, 113, 113, 0.35); color: #fecaca; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

.contact-details { display: grid; gap: 14px; margin-top: 8px; }
.contact-details a, .contact-details div { display: flex; align-items: center; gap: 14px; color: var(--text-muted); }
.contact-details a:hover { color: var(--text); }
.contact-details svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* --- Social buttons --------------------------------------------------------------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-btn {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text-muted);
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.social-btn:hover { color: #fff; border-color: var(--border-accent); background: rgba(37, 99, 235, 0.2); }
.social-btn svg { width: 20px; height: 20px; }
/* Social buttons stay hidden until a real profile URL replaces href="#" (then they appear automatically) */
.social-btn[href="#"] { display: none; }
.socials:not(:has(.social-btn:not([href="#"]))) { display: none; }
.social-block:not(:has(.social-btn:not([href="#"]))) { display: none; } /* contact page: hides "Follow us" too */

/* --- Footer ------------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: rgba(5, 5, 7, 0.9); padding: 72px 0 32px; position: relative; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-about p { color: var(--text-muted); margin: 18px 0 22px; max-width: 360px; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.97rem; }
/* comfortable tap targets for footer links on phones */
@media (max-width: 767px) { .footer-col ul { gap: 2px; } .footer-col a { display: inline-block; padding: 10px 0; } }
.footer-col a:hover { color: var(--text); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 0.86rem; }

/* --- Automation flow (CRM page) ------------------------------------------------ */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: flow; position: relative; }
.flow li { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.flow li strong { font-family: var(--font-head); font-size: 1.08rem; grid-column: 2; }
.flow li > span:last-child { grid-column: 2; color: var(--text-muted); font-size: 0.94rem; }
.flow-dot { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--blue-300); background: var(--black-2); border: 1px solid var(--border); }
.flow-dot svg { width: 24px; height: 24px; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .flow::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px; background: var(--border); }
  .flow li { grid-template-columns: 1fr; align-content: start; text-align: center; justify-items: center; row-gap: 8px; padding: 20px 14px 22px; background: transparent; border: 0; backdrop-filter: none; }
  .flow li strong, .flow li > span:last-child { grid-column: 1; }
  .flow-dot { grid-row: auto; width: 56px; height: 56px; margin-bottom: 6px; background: #0b1430; position: relative; }
}

/* --- Real pipeline screenshot (CRM page) --------------------------------------- */
.pipeline-shot { margin: 0; }
.pipeline-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.pipeline-shot figcaption { margin-top: 14px; font-size: 0.86rem; color: var(--text-dim); text-align: center; }

/* Single-column split (CRM "Built for trades"): points sit side by side on desktop */
.split--single { grid-template-columns: 1fr; }
.split--single h2, .split--single .muted { max-width: 720px; }
@media (min-width: 1024px) { .split--single .check-list { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; } }

/* --- Logo intro (plays once per visit; see the script in each page's <head>) --------- */
.intro { display: none; }
html.show-intro { --intro-delay: 1.9s; }
html.show-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--black); cursor: pointer;
  animation: intro-out 0.55s var(--ease-out) 1.85s forwards;
}
.intro-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: intro-logo-out 0.55s var(--ease-out) 1.85s forwards; }
.intro-mark { width: 92px; height: 92px; overflow: visible; filter: drop-shadow(0 0 28px rgba(59, 130, 246, 0.45)); }
.intro-mark path {
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1.05; /* hidden until drawn on */
  animation: intro-draw var(--d) var(--ease-out) var(--t) forwards;
}
.i-legs { stroke: #fff; stroke-width: 7; --d: 0.7s; --t: 0.15s; }
.i-knock { stroke: var(--black); stroke-width: 13; --d: 0.5s; --t: 0.65s; }
.i-line { stroke: url(#intro-g); stroke-width: 6; --d: 0.5s; --t: 0.65s; }
.i-head { stroke: url(#intro-g); stroke-width: 6; --d: 0.25s; --t: 1.08s; }
.intro-name {
  font-family: "Michroma", var(--font-head); font-size: 1.15rem; color: #fff;
  letter-spacing: 0.14em; padding-left: 0.14em; opacity: 0;
  animation: intro-name 0.75s var(--ease-out) 1.05s forwards;
}
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-name {
  from { opacity: 0; letter-spacing: 0.55em; padding-left: 0.55em; filter: blur(6px); }
  to { opacity: 1; letter-spacing: 0.14em; padding-left: 0.14em; filter: blur(0); }
}
@keyframes intro-logo-out { to { transform: translateY(-10px) scale(1.04); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
/* Click or key press skips the intro */
html.intro-skip .intro { animation: intro-out 0.25s ease forwards; }

/* --- Reveal on scroll ---------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero entrance */
.js .hero-anim > * { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease-out) var(--intro-delay) forwards; }
.js .hero-anim > *:nth-child(2) { animation-delay: calc(var(--intro-delay) + 0.08s); }
.js .hero-anim > *:nth-child(3) { animation-delay: calc(var(--intro-delay) + 0.16s); }
.js .hero-anim > *:nth-child(4) { animation-delay: calc(var(--intro-delay) + 0.24s); }
.js .hero-anim > *:nth-child(5) { animation-delay: calc(var(--intro-delay) + 0.32s); }
.js .hero-anim > *:nth-child(6) { animation-delay: calc(var(--intro-delay) + 0.4s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .hero-anim > * { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 16px 40px; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .scroll-cue::after { animation: none; }
}
