﻿/*
Theme Name: Pipelines
Theme URI: https://pipelines.in
Author: Zane
Author URI: https://pipelines.in
Description: Custom WordPress theme for Pipelines (by Zane), a lead generation agency. Mobile-first, no page builder, vanilla JS, in-house booking system, conversion-first design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pipelines
Tags: business, lead-generation, custom-theme
*/

/* ============ TOKENS ============ */
:root {
  --color-primary: #0050FF;
  --color-primary-hover: #0040CC;
  --color-primary-pressed: #0033A6;
  --color-primary-soft: #E6EEFF;
  --color-bg: #FFFFFF;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F7F9FC;
  --color-surface-invert: #0A1628;
  --color-text: #0A1628;
  --color-text-muted: #475569;
  --color-text-subtle: #8593A8;
  --color-text-invert: #FFFFFF;
  --color-text-on-primary: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-border-focus: #0050FF;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-accent-warm: #FFB547;

  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;

  --lh-tight: 1.1;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-loose: 1.8;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --gutter: 1.5rem;
  --gutter-lg: 3rem;
  --section-gap: 6rem;
  --section-gap-sm: 3rem;
  --content-max: 1440px;
  --content-narrow: 820px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10,22,40,0.04);
  --shadow-sm: 0 2px 6px rgba(10,22,40,0.06);
  --shadow-md: 0 8px 24px rgba(10,22,40,0.08);
  --shadow-lg: 0 16px 40px rgba(10,22,40,0.12);
  --shadow-focus: 0 0 0 3px rgba(0,80,255,0.25);
  --shadow-cta: 0 12px 32px rgba(0,80,255,0.28);

  --ease-standard: cubic-bezier(0.4,0,0.2,1);
  --ease-out: cubic-bezier(0,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}
img, svg { max-width: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a, button, input, select, textarea, label, [role="button"] { touch-action: manipulation; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--dur-base) var(--ease-standard); }
a:hover { color: var(--color-primary-hover); }
ul, ol { padding-left: 1.25rem; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: var(--lh-tight); color: var(--color-text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-2xl); line-height: var(--lh-snug); font-weight: 600; }
h4 { font-size: var(--fs-xl); line-height: var(--lh-snug); font-weight: 600; }
p { line-height: var(--lh-normal); }
.lead { font-size: var(--fs-md); color: var(--color-text-muted); line-height: 1.6; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-primary); }

/* ============ LAYOUT ============ */
.container { width: 100%; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--content-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-gap-sm) 0; }
@media (min-width: 768px) { .section { padding: var(--section-gap) 0; } }
.section--alt { background: var(--color-surface-alt); }
.section--invert { background: var(--color-surface-invert); color: var(--color-text-invert); }
.section--invert h1, .section--invert h2, .section--invert h3, .section--invert h4 { color: var(--color-text-invert); }
.stack > * + * { margin-top: var(--space-5); }
.stack-lg > * + * { margin-top: var(--space-7); }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.text-center { text-align: center; }
.muted { color: var(--color-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), box-shadow var(--dur-base); white-space: nowrap; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-text-on-primary); transform: translateY(-2px); }
.btn-primary:active { background: var(--color-primary-pressed); transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-primary); padding: 0 var(--space-3); min-height: 48px; }
.btn-ghost:hover { color: var(--color-primary-hover); text-decoration: underline; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
@media (min-width: 768px) { .btn { min-height: 56px; } }

/* ============ HEADER ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--color-border); }
#main { padding-top: 72px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: var(--space-4); }
.site-logo { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-lg); color: var(--color-text); letter-spacing: -0.02em; }
.site-logo img { max-height: 36px; width: auto; }
.site-logo span small { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--color-text-muted); letter-spacing: 0; margin-top: 2px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--radius-sm); color: var(--color-text); }
.nav-toggle:focus-visible { box-shadow: var(--shadow-focus); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-menu { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: flex; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: var(--space-6); list-style: none; padding: 0; margin: 0; align-items: center; }
.primary-nav a { color: var(--color-text); font-weight: 500; font-size: var(--fs-sm); }
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav .current-menu-item > a { color: var(--color-primary); }
.header-cta { display: none; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
  .header-cta { display: inline-flex; }
}
.mobile-nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--color-bg); padding: var(--space-6) var(--gutter) var(--space-8); transform: translateX(100%); transition: transform var(--dur-base) var(--ease-out); overflow-y: auto; z-index: 49; }
.mobile-nav[data-open="true"] { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-nav a { display: block; padding: var(--space-4); font-size: var(--fs-lg); font-weight: 600; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.mobile-nav .btn { margin-top: var(--space-5); width: 100%; justify-content: center; }

/* ============ HERO ============ */
.hero { padding: var(--space-7) 0 var(--space-8); position: relative; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: var(--space-9) 0 var(--space-10); } }
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); background: var(--color-primary-soft); color: var(--color-primary); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
.hero h1 { margin-top: var(--space-5); font-size: clamp(2.25rem, 6vw, 4rem); }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.hero-sub { margin-top: var(--space-5); font-size: var(--fs-md); color: var(--color-text-muted); line-height: 1.6; max-width: 36rem; }
.hero-cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-proof { margin-top: var(--space-6); display: flex; align-items: center; gap: var(--space-4); color: var(--color-text-muted); font-size: var(--fs-sm); }
.hero-proof strong { color: var(--color-text); font-weight: 700; }
.hero-visual { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--color-primary-soft) 0%, #FFFFFF 60%); display: flex; align-items: center; justify-content: center; padding: var(--space-5); }
.hero-visual .float-card { position: absolute; background: var(--color-surface); border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: var(--space-4); display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.hero-visual .float-card svg { color: var(--color-success); flex: none; }
.hero-visual .float-card--1 { top: 8%; left: 5%; }
.hero-visual .float-card--2 { bottom: 14%; right: -2%; }
.hero-visual .core-stat { background: var(--color-surface); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); text-align: center; }
.hero-visual .core-stat-num { font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 800; color: var(--color-primary); line-height: 1; }
.hero-visual .core-stat-label { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ============ TRUST BAR ============ */
.trust-bar { background: var(--color-surface-alt); padding: var(--space-6) 0; }
.trust-bar-title { text-align: center; font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: var(--space-5); font-weight: 600; }
.trust-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); align-items: center; }
@media (min-width: 640px) { .trust-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .trust-logos { grid-template-columns: repeat(6, 1fr); } }
.trust-logo { display: flex; align-items: center; justify-content: center; height: 48px; opacity: 0.6; filter: grayscale(1); transition: opacity var(--dur-base), filter var(--dur-base); font-weight: 600; color: var(--color-text-muted); }
.trust-logo:hover { opacity: 1; filter: grayscale(0); }

/* ============ CARDS ============ */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-4); }
.card h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.card p { color: var(--color-text-muted); line-height: 1.6; }
.card .card-link { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); color: var(--color-primary); font-weight: 600; font-size: var(--fs-sm); }
.card .card-link:hover { gap: var(--space-3); }

/* ============ PROCESS STEPS ============ */
.steps { display: grid; gap: var(--space-6); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); } }
.step { position: relative; padding-top: var(--space-6); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-3xl); color: var(--color-primary); line-height: 1; display: block; margin-bottom: var(--space-4); }
.step h3 { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
.step p { color: var(--color-text-muted); line-height: 1.6; }

/* ============ TESTIMONIAL ============ */
.testimonial { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: var(--space-6); }
.section--invert .testimonial { background: rgba(255,255,255,0.06); }
.testimonial-quote { font-size: var(--fs-md); line-height: 1.6; font-weight: 500; }
.testimonial-quote::before { content: "\201C"; display: block; font-family: var(--font-heading); font-size: 3rem; color: var(--color-primary); line-height: 0.6; margin-bottom: var(--space-3); }
.section--invert .testimonial-quote::before { color: var(--color-accent-warm); }
.testimonial-person { margin-top: var(--space-5); display: flex; align-items: center; gap: var(--space-3); }
.testimonial-avatar { width: 48px; height: 48px; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 0 0 2px var(--color-accent-warm); }
.testimonial-name { font-size: var(--fs-base); font-weight: 600; }
.testimonial-role { font-size: var(--fs-sm); color: var(--color-text-muted); }
.section--invert .testimonial-role { color: rgba(255,255,255,0.7); }

/* ============ STATS ============ */
.stats { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3.5rem); color: var(--color-primary); line-height: 1; }
.stat-label { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--color-text-muted); }
.section--invert .stat-num { color: var(--color-accent-warm); }
.section--invert .stat-label { color: rgba(255,255,255,0.7); }

/* ============ FAQ ============ */
.faq-list { max-width: var(--content-narrow); margin: 0 auto; }
.faq { border-bottom: 1px solid var(--color-border); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) 0; font-size: var(--fs-md); font-weight: 600; cursor: pointer; list-style: none; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-heading); font-size: var(--fs-xl); color: var(--color-primary); transition: transform var(--dur-base); flex: none; }
.faq[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 0 var(--space-5); color: var(--color-text-muted); line-height: 1.7; max-width: 64ch; }

/* ============ FORMS ============ */
.form-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-xs); background: var(--color-bg); color: var(--color-text); font-size: var(--fs-base); transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.field textarea { min-height: 132px; padding: var(--space-3) var(--space-4); resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.field--error input, .field--error textarea { border-color: var(--color-error); }
.field-error { font-size: var(--fs-sm); color: var(--color-error); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { padding: var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.form-status--success { background: rgba(16,185,129,0.1); color: var(--color-success); border: 1px solid rgba(16,185,129,0.3); }
.form-status--error { background: rgba(239,68,68,0.1); color: var(--color-error); border: 1px solid rgba(239,68,68,0.3); }

/* ============ STICKY CTA ============ */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; background: var(--color-bg); border-top: 1px solid var(--color-border); box-shadow: var(--shadow-lg); padding: var(--space-3) var(--gutter); z-index: 100; display: flex; align-items: center; gap: var(--space-3); transform: translateY(100%); transition: transform var(--dur-base) var(--ease-out); }
.sticky-cta[data-visible="true"] { transform: translateY(0); }
.sticky-cta .sticky-text { flex: 1; font-size: var(--fs-sm); }
.sticky-cta .sticky-text strong { display: block; font-size: var(--fs-base); }
.sticky-cta .btn { min-height: 48px; padding: 0 var(--space-5); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 80px; }
@media (min-width: 1024px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ============ FOOTER ============ */
.site-footer { background: var(--color-surface-invert); color: var(--color-text-invert); padding: var(--space-8) 0 var(--space-6); }
.site-footer h4 { color: var(--color-text-invert); font-size: var(--fs-base); margin-bottom: var(--space-4); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-8); } }
.footer-brand p { color: rgba(255,255,255,0.7); line-height: 1.6; margin-top: var(--space-3); max-width: 36ch; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { color: rgba(255,255,255,0.75); font-size: var(--fs-sm); }
.footer-grid a:hover { color: var(--color-text-invert); }
.footer-bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; color: rgba(255,255,255,0.6); font-size: var(--fs-sm); }
.footer-cta { background: var(--color-primary); color: var(--color-text-on-primary); padding: var(--space-8) 0; text-align: center; }
.footer-cta h2 { color: var(--color-text-on-primary); }
.footer-cta p { color: rgba(255,255,255,0.9); margin-top: var(--space-4); max-width: 48ch; margin-left: auto; margin-right: auto; }
.footer-cta .btn-primary { background: var(--color-text-invert); color: var(--color-primary); box-shadow: 0 12px 32px rgba(0,0,0,0.18); margin-top: var(--space-6); }
.footer-cta .btn-primary:hover { background: var(--color-text-invert); color: var(--color-primary-hover); }

/* ============ PAGE COMMON ============ */
.page-hero { padding: var(--space-8) 0 var(--space-7); background: linear-gradient(180deg, var(--color-primary-soft) 0%, var(--color-bg) 100%); }
.page-hero .breadcrumb { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.page-hero .breadcrumb a { color: var(--color-text-muted); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 24ch; }
.page-hero .lead { margin-top: var(--space-4); max-width: 56ch; }
.legal-body { max-width: var(--content-narrow); margin: 0 auto; padding: var(--space-7) 0; }
.legal-body h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); }
.legal-body h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-body p, .legal-body ul, .legal-body ol { color: var(--color-text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.legal-body a { color: var(--color-primary); text-decoration: underline; }

/* ============ INDUSTRIES ============ */
.industry-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: transform var(--dur-base), border-color var(--dur-base), box-shadow var(--dur-base); color: var(--color-text); min-height: 120px; }
.industry:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: var(--shadow-md); color: var(--color-text); }
.industry-icon { color: var(--color-primary); margin-bottom: var(--space-2); }
.industry-name { font-weight: 700; font-size: var(--fs-base); font-family: var(--font-heading); }
.industry-promise { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ============ THANK YOU ============ */
.thank-you { text-align: center; padding: var(--space-9) 0; }
.thank-you-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--color-success); color: white; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); }
.thank-you h1 { margin-bottom: var(--space-4); }

/* ============ 404 ============ */
.not-found { text-align: center; padding: var(--space-9) 0; }
.not-found-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(5rem, 15vw, 9rem); color: var(--color-primary); line-height: 1; }

/* ============ CONTACT GRID ============ */
.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-9); } }
.contact-card { background: var(--color-surface-alt); border-radius: var(--radius-lg); padding: var(--space-6); }
.contact-list { list-style: none; padding: 0; margin: var(--space-5) 0 0; display: flex; flex-direction: column; gap: var(--space-4); }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .contact-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--color-primary-soft); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.contact-list strong { display: block; font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 500; }
.contact-list a { color: var(--color-text); font-weight: 600; }

/* ============ UTILITIES ============ */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.hidden { display: none; }
@media (min-width: 768px) { .md\:flex { display: flex; } .md\:hidden { display: none; } }

/* =============================================================
   VISUAL POLISH LAYER v1.1
   Goals: more pleasing, more premium, zero hit on conversion.
   ============================================================= */

/* Logo mark - geometric pipes monogram */
.site-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-lg); color: var(--color-text); letter-spacing: -0.02em; line-height: 1; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #0050FF 0%, #3D7AFF 100%); position: relative; flex: none; box-shadow: 0 8px 20px rgba(0,80,255,0.32), inset 0 1px 0 rgba(255,255,255,0.25); }
.logo-mark::before, .logo-mark::after { content: ''; position: absolute; background: #fff; border-radius: 2px; }
.logo-mark::before { left: 9px; top: 8px; bottom: 8px; width: 3px; box-shadow: 7px 0 0 rgba(255,255,255,0.55), 14px 0 0 rgba(255,255,255,0.30); }
.logo-mark::after { display: none; }
.logo-word { letter-spacing: -0.02em; }
.site-footer .site-logo { color: var(--color-text-invert); }
.site-footer .logo-mark { box-shadow: 0 6px 18px rgba(0,80,255,0.45); }

/* Hero - atmospheric background, calmer composition */
.hero {
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(0,80,255,0.12) 0%, transparent 60%),
    radial-gradient(700px 480px at -10% 65%, rgba(255,181,71,0.08) 0%, transparent 60%),
    var(--color-bg);
  position: relative;
}
.hero h1 em { font-style: normal; color: var(--color-primary); display: block; }
.hero-eyebrow { padding: 8px 14px; background: #fff; border: 1px solid rgba(0,80,255,0.18); box-shadow: 0 4px 12px rgba(0,80,255,0.08); }
.hero-eyebrow::before { animation: pl-pulse 2.4s ease-in-out infinite; }
@keyframes pl-pulse { 0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0,80,255,0.5); } 50% { transform: scale(1.3); opacity: 0.6; box-shadow: 0 0 0 6px rgba(0,80,255,0); } }
.hero-visual { background: linear-gradient(135deg, #EAF1FF 0%, #F8FAFF 60%, #FFFFFF 100%); border: 1px solid rgba(0,80,255,0.10); position: relative; overflow: hidden; }
.hero-visual::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,80,255,0.14) 0%, transparent 70%); top: -120px; right: -90px; }
.hero-visual::after { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,0.18) 0%, transparent 70%); bottom: -80px; left: -60px; }
.hero-visual .core-stat { position: relative; z-index: 1; padding: var(--space-7); border: 1px solid rgba(0,80,255,0.10); }
.hero-visual .float-card { border: 1px solid rgba(0,80,255,0.08); animation: pl-float 6s ease-in-out infinite; }
.hero-visual .float-card--2 { animation-delay: 2.2s; }
@keyframes pl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Buttons - gradient + crisper shadow */
.btn-primary { background: linear-gradient(180deg, #1A60FF 0%, #003DCC 100%); box-shadow: 0 10px 28px rgba(0,80,255,0.32), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { background: linear-gradient(180deg, #0040CC 0%, #002F99 100%); box-shadow: 0 14px 32px rgba(0,80,255,0.4); }

/* Eyebrows - pill chip */
.eyebrow { display: inline-block; padding: 6px 14px; background: var(--color-primary-soft); border-radius: 999px; }
.section--invert .eyebrow { background: rgba(255,255,255,0.08); color: var(--color-accent-warm); }

/* Cards - refined */
.card { background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 1px 3px rgba(10,22,40,0.04); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), #3D7AFF); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.card:hover { border-color: rgba(0,80,255,0.22); box-shadow: 0 18px 40px rgba(10,22,40,0.10); }
.card:hover::before { transform: scaleX(1); }
.card-icon { background: linear-gradient(135deg, #E6EEFF 0%, #F3F8FF 100%); border: 1px solid rgba(0,80,255,0.14); box-shadow: 0 4px 10px rgba(0,80,255,0.08); }

/* Process steps - gradient numerals */
.steps { gap: var(--space-7); }
.step::before { background: linear-gradient(135deg, #0050FF 0%, #3D7AFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step { padding-top: var(--space-5); }

/* Industries - animated underline + lift */
.industry { position: relative; overflow: hidden; }
.industry::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), #3D7AFF); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.industry:hover::before { transform: scaleX(1); }
.industry-icon { transition: transform var(--dur-base) var(--ease-out); width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #E6EEFF 0%, #F3F8FF 100%); border: 1px solid rgba(0,80,255,0.10); display: inline-flex; align-items: center; justify-content: center; }
.industry:hover .industry-icon { transform: translateY(-3px); }

/* Stats - gradient numbers */
.stat-num { background: linear-gradient(135deg, #0050FF 0%, #5C8DFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section--invert .stat-num { background: linear-gradient(135deg, #FFB547 0%, #FFD68A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Testimonials - subtle decoration */
.testimonial { border: 1px solid var(--color-border); position: relative; overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base); }
.section--alt .testimonial { background: var(--color-surface); }
.testimonial:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(10,22,40,0.08); }
.testimonial::after { content: ''; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(0,80,255,0.06) 0%, transparent 70%); pointer-events: none; }
.section--invert .testimonial { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }
.section--invert .testimonial::after { background: radial-gradient(circle, rgba(255,181,71,0.10) 0%, transparent 70%); }

/* Sections - dark mode gradient depth */
.section--invert { background: linear-gradient(140deg, #0A1628 0%, #11223C 100%); }

/* Page-hero - softer, more inviting */
.page-hero {
  background:
    radial-gradient(900px 420px at 50% -180px, rgba(0,80,255,0.14) 0%, transparent 70%),
    linear-gradient(180deg, #F7F9FC 0%, var(--color-bg) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,0.16) 0%, transparent 70%); pointer-events: none; }
.page-hero > .container, .page-hero > .container-narrow { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.05; }

/* Trust bar - friendlier */
.trust-logo { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; }

/* FAQ refined */
.faq summary { transition: color var(--dur-base); }
.faq summary:hover { color: var(--color-primary); }
.faq[open] summary { color: var(--color-primary); }

/* Footer CTA - premium presence */
.footer-cta {
  background: linear-gradient(135deg, #0050FF 0%, #0033A6 100%);
  position: relative; overflow: hidden;
  padding: var(--space-9) 0;
}
.footer-cta::before { content: ''; position: absolute; left: -180px; top: -180px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 60%); }
.footer-cta::after { content: ''; position: absolute; right: -180px; bottom: -180px; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,0.22) 0%, transparent 60%); }
.footer-cta .container { position: relative; z-index: 1; }
.footer-cta h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* Header - slightly tighter, sharper border */
.site-header { background: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(10,22,40,0.06); }

/* Section spacing on desktop */
@media (min-width: 1024px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 5rem 0 6rem; }
  .stack-lg > * + * { margin-top: var(--space-6); }
}

/* Container side padding on large screens */
@media (min-width: 1024px) {
  .container, .container-narrow { padding: 0 var(--gutter-lg); }
}
@media (min-width: 1440px) {
  .container, .container-narrow { padding: 0 var(--space-6); }
}

/* Mobile nav refinements */
.mobile-nav a { transition: color var(--dur-base), padding-left var(--dur-base); }
.mobile-nav a:hover { color: var(--color-primary); padding-left: calc(var(--space-4) + 4px); }

/* Form polish */
.field input, .field textarea, .field select { background: var(--color-surface); transition: border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--color-primary); }
.contact-card { box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }

/* Sticky CTA - sharper */
.sticky-cta { box-shadow: 0 -8px 24px rgba(10,22,40,0.10); border-top: 1px solid rgba(0,80,255,0.10); }

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow::before { animation: none; }
  .hero-visual .float-card { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

/* Service card - whole surface clickable when it has a link */
a.card.card--link { display: block; text-decoration: none; color: var(--color-text); }
a.card.card--link:hover { color: var(--color-text); }
a.card.card--link:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
a.card.card--link h3 { color: var(--color-text); }
a.card.card--link .card-link { color: var(--color-primary); pointer-events: none; }
a.card.card--link:hover .card-link { gap: var(--space-3); }
a.card.card--link::after { content: ''; position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary-soft); opacity: 0; transition: opacity var(--dur-base); pointer-events: none; display: flex; align-items: center; justify-content: center; }
a.card.card--link:hover::after { opacity: 1; }

/* Industries - bigger, friendlier icons and centered text */
.industry { text-align: center; align-items: center; padding: var(--space-6) var(--space-4); }
.industry-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #E6EEFF 0%, #F3F8FF 100%); border: 1px solid rgba(0,80,255,0.10); box-shadow: 0 6px 14px rgba(0,80,255,0.08); margin-bottom: var(--space-2); color: var(--color-primary); }
.industry-icon svg { width: 26px; height: 26px; }
.industry-name { font-size: var(--fs-base); }
.industry-promise { font-size: var(--fs-sm); }
.industry:hover .industry-icon { box-shadow: 0 10px 20px rgba(0,80,255,0.18); }

/* Industry grid with 8 items: nice 4×2 desktop, 2×4 tablet, 1×8 mobile */
@media (min-width: 640px) and (max-width: 1023px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }

/* Make all card-icon containers consistent */
.card-icon { width: 52px; height: 52px; border-radius: 12px; }
.card-icon svg { width: 24px; height: 24px; }

/* =============================================================
   INDUSTRY DETAIL PAGE
   ============================================================= */
.industry-hero .hero-eyebrow { gap: 6px; display: inline-flex; align-items: center; }
.industry-hero .hero-eyebrow::before { display: none; }
.industry-hero-grid { display: grid; gap: var(--space-7); align-items: center; margin-top: var(--space-5); }
@media (min-width: 1024px) { .industry-hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-9); } }
.industry-hero-stat { position: relative; padding: var(--space-7); background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%); border: 1px solid rgba(0,80,255,0.10); border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 20px 50px rgba(0,80,255,0.10); overflow: hidden; }
.industry-hero-stat::before { content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(0,80,255,0.12) 0%, transparent 70%); top: -80px; right: -80px; }
.industry-hero-stat::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,181,71,0.18) 0%, transparent 70%); bottom: -60px; left: -60px; }
.industry-icon-xl { width: 96px; height: 96px; border-radius: 24px; background: linear-gradient(135deg, #0050FF 0%, #3D7AFF 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 16px 30px rgba(0,80,255,0.35); margin-bottom: var(--space-5); position: relative; z-index: 1; }
.industry-big-stat { position: relative; z-index: 1; }
.industry-big-num { font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.5rem, 8vw, 5rem); line-height: 1; background: linear-gradient(135deg, #0050FF 0%, #5C8DFF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.industry-big-label { margin-top: var(--space-3); font-size: var(--fs-md); color: var(--color-text-muted); max-width: 28ch; }

/* Pain cards - numbered, alarm tone */
.pain-card { display: flex; flex-direction: column; gap: var(--space-3); }
.pain-card .pain-num { font-family: var(--font-heading); font-weight: 800; font-size: var(--fs-2xl); background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.pain-card p { font-weight: 600; font-size: var(--fs-md); color: var(--color-text); line-height: 1.5; }
.pain-card::before { background: linear-gradient(90deg, #EF4444, #F59E0B); }

/* Hub cards: keep card layout left-aligned (richer text) */
.industry-hub-card { text-align: left; align-items: stretch; }
.industry-hub-card h3 { margin-top: var(--space-3); }
.industry-hub-card p { color: var(--color-text-muted); line-height: 1.5; }

/* =============================================================
   HORIZONTAL OVERFLOW - ROOT-CAUSE FIX
   ============================================================= */
.site-header { overflow: hidden; }
.site-header.is-nav-open { overflow: visible; }
@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}
.section, .page-hero, .hero, .footer-cta, .trust-bar, .site-footer { max-width: 100%; overflow: hidden; }
.container, .container-narrow { max-width: min(var(--content-max), 100%); }
.container-narrow { max-width: min(var(--content-narrow), 100%); }
.hero-grid, .industry-hero-grid, .contact-grid, .footer-grid, .grid, .steps, .stats, .industry-grid, .faq-list, .trust-logos { min-width: 0; }
.card, .industry, .testimonial, .pain-card, .hero-visual, .industry-hero-stat { min-width: 0; max-width: 100%; }

/* =============================================================
   HERO DASHBOARD ILLUSTRATION v2
   ============================================================= */
.hero-visual { padding: var(--space-5); }
.hv-dash { position: relative; z-index: 1; background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,80,255,0.18), 0 1px 0 rgba(255,255,255,0.6) inset; border: 1px solid rgba(0,80,255,0.10); padding: 14px; width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.hv-bar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid var(--color-border); }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: #E2E8F0; }
.hv-dot:first-child { background: #FF6B6B; }
.hv-dot:nth-child(2) { background: #FFB547; }
.hv-dot:nth-child(3) { background: #10B981; }
.hv-tab { margin-left: 12px; font-family: var(--font-body); font-size: 12px; color: var(--color-text-muted); font-weight: 500; }
.hv-card { padding: 14px; background: #FFFFFF; border-radius: 12px; border: 1px solid var(--color-border); }
.hv-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.hv-card-eyebrow { font-size: 11px; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hv-card-num { font-family: var(--font-heading); font-size: 28px; font-weight: 800; color: var(--color-text); line-height: 1; margin-top: 4px; letter-spacing: -0.02em; }
.hv-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.hv-pill--up { background: rgba(16,185,129,0.12); color: #059669; }
.hv-pill--up svg { stroke: #059669; }
.hv-chart { width: 100%; height: 100px; display: block; }
.hv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hv-tile { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 10px; }
.hv-tile-icon { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hv-tile-icon--blue { background: rgba(0,80,255,0.10); color: var(--color-primary); }
.hv-tile-icon--green { background: rgba(16,185,129,0.10); color: #059669; }
.hv-tile-label { font-size: 11px; color: var(--color-text-muted); font-weight: 500; }
.hv-tile-num { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-text); line-height: 1.1; }

/* =============================================================
   TRUST CHIPS
   ============================================================= */
.trust-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.trust-chip { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-text); font-weight: 600; font-size: var(--fs-base); text-decoration: none; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base); box-shadow: 0 2px 8px rgba(10,22,40,0.06); }
.trust-chip:hover { color: var(--color-primary); border-color: var(--color-primary); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,80,255,0.14); }
.trust-chip-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #E6EEFF 0%, #F3F8FF 100%); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 2px 6px rgba(0,80,255,0.12); }
.trust-bar { padding: var(--space-9) 0; background: var(--color-surface-alt); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-bar-title { margin-bottom: var(--space-6); font-size: var(--fs-base); color: var(--color-text); font-weight: 700; letter-spacing: 0; text-transform: none; }

/* =============================================================
   RESULTS SECTION v2 - premium cards on dark
   ============================================================= */
.results-band { position: relative; overflow: hidden; }
.results-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.results-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.results-orb--a { width: 480px; height: 480px; background: rgba(0,80,255,0.45); top: -180px; left: -200px; }
.results-orb--b { width: 380px; height: 380px; background: rgba(255,181,71,0.30); bottom: -160px; right: -150px; }
.results-orb--c { width: 280px; height: 280px; background: rgba(0,80,255,0.30); top: 40%; right: 20%; }
.results-grid { display: grid; gap: var(--space-5); position: relative; z-index: 1; }
@media (min-width: 640px) { .results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .results-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
.result-card { position: relative; padding: var(--space-6); background: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-md); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base); }
.result-card:hover { transform: translateY(-3px); border-color: rgba(255,181,71,0.4); }
.result-icon { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,80,255,0.30) 0%, rgba(0,80,255,0.10) 100%); color: var(--color-accent-warm); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,80,255,0.18); }
.result-num { margin-top: var(--space-5); font-family: var(--font-heading); font-weight: 800; font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.15; padding-bottom: 0.1em; background: linear-gradient(135deg, #FFFFFF 0%, #FFD68A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-label { margin-top: var(--space-3); color: rgba(255,255,255,0.7); font-size: var(--fs-sm); line-height: 1.45; }
.result-accent { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent-warm)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.result-card:hover .result-accent { transform: scaleX(1); }

/* =============================================================
   TESTIMONIAL - minimal (no avatar)
   ============================================================= */
.testimonial-person { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.section--invert .testimonial-person { border-top-color: rgba(255,255,255,0.10); }
.testimonial-name { font-size: var(--fs-base); font-weight: 700; color: var(--color-text); font-family: var(--font-heading); letter-spacing: -0.01em; }
.section--invert .testimonial-name { color: var(--color-text-invert); }
.testimonial-role { margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.section--invert .testimonial-role { color: rgba(255,255,255,0.7); }
.testimonial { padding: var(--space-7); }

/* =============================================================
   SERVICE/MODEL DETAIL PAGES
   ============================================================= */
.included-grid { gap: var(--space-4); }
.included-item { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: var(--fs-base); color: var(--color-text); line-height: 1.5; }
.included-tick { width: 28px; height: 28px; border-radius: 8px; background: rgba(16,185,129,0.12); color: #059669; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.excluded-mark { width: 28px; height: 28px; border-radius: 8px; background: rgba(239,68,68,0.12); color: var(--color-error); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bullet-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); flex: none; margin-top: 8px; }
.model-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1024px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
.model-block { padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.model-block--in { border-top: 3px solid #10B981; }
.model-block--out { border-top: 3px solid var(--color-error); }
.model-block--for { border-top: 3px solid var(--color-primary); }
.model-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.model-list li { display: flex; gap: var(--space-3); align-items: flex-start; color: var(--color-text-muted); line-height: 1.5; font-size: var(--fs-sm); }

/* =============================================================
   FOOTER - compact
   ============================================================= */
.site-footer { padding: var(--space-5) 0 var(--space-4); }
.footer-top { display: flex; flex-direction: column; gap: var(--space-5); align-items: flex-start; justify-content: space-between; padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; gap: var(--space-6); flex-wrap: wrap; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.footer-nav a { color: rgba(255,255,255,0.78); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: color var(--dur-base); }
.footer-nav a:hover { color: var(--color-text-invert); }
.footer-bottom { margin-top: var(--space-4); padding-top: 0; border-top: 0; display: flex; flex-direction: column; gap: 4px; color: rgba(255,255,255,0.5); font-size: var(--fs-xs); }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; gap: var(--space-4); } }

/* =============================================================
   INDUSTRY DETAIL - SECTIONS REDESIGN
   ============================================================= */

/* Shared section header */
.section-header { max-width: 56ch; margin: 0 auto var(--space-8); }

/* --- The Problem - richer pain cards --- */
.pain-card-title { font-size: var(--fs-lg); font-weight: 700; color: var(--color-text); line-height: 1.25; margin: 0; }
.pain-card-body { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.75; margin: 0; flex: 1; }

/* --- The System - outcome cards --- */
.outcome-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,22,40,0.04);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.outcome-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #3D7AFF);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.outcome-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10,22,40,0.10); border-color: rgba(0,80,255,0.20); }
.outcome-card:hover::before { transform: scaleX(1); }
.outcome-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E6EEFF 0%, #F3F8FF 100%);
  border: 1px solid rgba(0,80,255,0.12);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 4px 12px rgba(0,80,255,0.10);
}
.outcome-title { font-size: var(--fs-lg); font-weight: 700; color: var(--color-text); line-height: 1.25; margin: 0; }
.outcome-body { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.75; margin: 0; flex: 1; }

/* --- Three Steps - custom dark step cards --- */
.steps-custom {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
@media (min-width: 768px) { .steps-custom { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.step-card {
  position: relative;
  padding: var(--space-6);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: background var(--dur-base), border-color var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.step-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); transform: translateY(-2px); }
.step-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-warm));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.step-card:hover::after { transform: scaleX(1); }
.step-card-day {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
}
.step-card-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--fs-3xl);
  background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.30) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.step-card-title { font-size: var(--fs-xl); font-weight: 700; color: var(--color-text-invert); line-height: 1.25; margin: 0; }
.step-card-body { font-size: var(--fs-sm); color: rgba(255,255,255,0.68); line-height: 1.75; margin: 0; }

/* Steps CTA - centered below the cards */
.steps-cta { margin-top: var(--space-8); display: flex; justify-content: center; }
.site-footer .site-logo { color: var(--color-text-invert); }

/* Fix pain-card-body specificity so it matches outcome-body */
.pain-card .pain-card-body { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 400; line-height: 1.75; }

/* =============================================================
   BLOG CARDS
   ============================================================= */
.blog-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base); position: relative; }
.blog-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), #3D7AFF); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0,80,255,0.18); }
.blog-card:hover::before { transform: scaleX(1); }
.blog-card-inner { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); text-decoration: none; color: var(--color-text); height: 100%; }
.blog-card-cat { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary); }
.blog-card-title { font-family: var(--font-heading); font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; color: var(--color-text); margin: 0; flex: 1; }
.blog-card:hover .blog-card-title { color: var(--color-primary); }
.blog-card-excerpt { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--color-text-subtle); margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--color-border); }

/* Blog strip section header */
.blog-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); flex-wrap: wrap; }
.blog-strip-all { align-self: flex-end; white-space: nowrap; }

/* Archive */
.archive-cats { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.archive-cat-chip { display: inline-flex; align-items: center; padding: 6px 16px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); text-decoration: none; transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.archive-cat-chip:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); }
.archive-pagination { margin-top: var(--space-8); }
.archive-pagination ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; justify-content: center; }
.archive-pagination a, .archive-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 600; border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; transition: background var(--dur-base), color var(--dur-base), border-color var(--dur-base); }
.archive-pagination a:hover { background: var(--color-primary-soft); color: var(--color-primary); border-color: var(--color-primary); }
.archive-pagination .current span { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Single post */
.single-hero { text-align: left; }
.single-meta { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: var(--space-4); }
.single-meta-sep { color: var(--color-border-strong); }
.post-content { font-size: var(--fs-md); line-height: 1.8; color: var(--color-text); }
.post-content h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-top: var(--space-8); margin-bottom: var(--space-4); }
.post-content h3 { font-size: var(--fs-xl); margin-top: var(--space-7); margin-bottom: var(--space-3); }
.post-content p { margin-bottom: var(--space-5); }
.post-content ul, .post-content ol { margin-bottom: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.post-content li { line-height: 1.7; }
.post-content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--color-primary-hover); }
.post-content blockquote { border-left: 3px solid var(--color-primary); margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); background: var(--color-primary-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.post-content blockquote p { color: var(--color-text); margin: 0 0 var(--space-3); font-size: var(--fs-sm); font-family: monospace; white-space: pre-line; }
.post-content strong { font-weight: 700; color: var(--color-text); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.post-tag { display: inline-flex; align-items: center; padding: 4px 12px; background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-muted); text-decoration: none; transition: background var(--dur-base), color var(--dur-base); }
.post-tag:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.post-cta-box { margin-top: var(--space-8); padding: var(--space-7); background: linear-gradient(135deg, #EAF1FF 0%, #F7F9FF 100%); border: 1px solid rgba(0,80,255,0.12); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-5); }
@media (min-width: 768px) { .post-cta-box { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-6); } }
.post-cta-headline { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-2); }
.post-cta-sub { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.post-cta-box .btn { flex: none; white-space: nowrap; }

/* =============================================================
   FOOTER SITEMAP
   ============================================================= */
.footer-sitemap { display: grid; gap: var(--space-6) var(--space-4); grid-template-columns: 1fr; padding-bottom: var(--space-5); border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (min-width: 480px) { .footer-sitemap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-sitemap { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .footer-sitemap { grid-template-columns: 1.6fr repeat(5, 1fr); gap: var(--space-5) var(--space-4); } }

.footer-brand-logo { color: var(--color-text-invert); }
.footer-tagline { font-size: var(--fs-xs); color: rgba(255,255,255,0.6); line-height: 1.6; margin-top: var(--space-3); max-width: 26ch; }
.footer-social { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-3); font-size: var(--fs-xs); color: rgba(255,255,255,0.72); text-decoration: none; font-weight: 500; transition: color var(--dur-base); }
.footer-social:hover { color: var(--color-text-invert); }

.footer-col-heading { font-size: 10px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: var(--space-3); display: block; text-decoration: none; }
a.footer-col-heading:hover { color: rgba(255,255,255,0.65); }
.footer-sitemap ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-sitemap ul a { color: rgba(255,255,255,0.65); font-size: var(--fs-xs); text-decoration: none; transition: color var(--dur-base); line-height: 1.4; }
.footer-sitemap ul a:hover { color: var(--color-text-invert); }

/* Mobile footer — brand full-width, nav cols in compact 3-col grid, lists hidden */
@media (max-width: 767px) {
  .footer-sitemap { grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-3); }
  .footer-sitemap-col:first-child { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: var(--space-4); margin-bottom: var(--space-1); }
  .footer-sitemap ul { display: none; }
  .footer-col-heading { margin-bottom: 0; color: rgba(255,255,255,0.55); font-size: 11px; }
  .footer-tagline { max-width: none; }
  .footer-bottom span:last-child { display: none; }
}
@media (max-width: 400px) {
  .footer-sitemap { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   MOBILE RESPONSIVE + PERFORMANCE
   ============================================================= */

/* Trust chips - compact on small screens */
@media (max-width: 640px) {
  .trust-bar { padding: var(--space-7) 0; }
  .trust-chips { gap: 8px; }
  .trust-chip { padding: 10px 14px; font-size: var(--fs-sm); gap: 8px; }
  .trust-chip-icon { width: 26px; height: 26px; }
}

/* Model grid - 2-col at tablet before going 3-col */
@media (min-width: 640px) and (max-width: 1023px) {
  .model-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Page hero - tighter on small screens */
@media (max-width: 480px) {
  .page-hero { padding: var(--space-7) 0 var(--space-6); }
  .page-hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* Hero float cards - hide below 768px (they overflow the visual box) */
@media (max-width: 767px) {
  .hero-visual .float-card { display: none; }
}

/* Disable expensive backdrop-filter on mobile */
@media (max-width: 1023px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.99); }
  .result-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Thin the hero background radials on mobile (GPU cost) */
@media (max-width: 767px) {
  .hero { background: var(--color-bg); }
  .page-hero { background: var(--color-surface-alt); }
}

/* =============================================================
   MOBILE HERO — FULL WIDTH + DECLUTTER
   ============================================================= */

/* Reduce side gutter so hero content fills ≥ 90% on 375px screens */
@media (max-width: 767px) {
  .hero > .container,
  .page-hero > .container,
  .page-hero > .container-narrow {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Page hero: hide breadcrumb on mobile (navigation clutter) */
@media (max-width: 639px) {
  .page-hero .breadcrumb { display: none; }
  .page-hero { padding: var(--space-6) 0 var(--space-5); }
}

/* Home hero: compact dashboard panel on mobile */
@media (max-width: 767px) {
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .hero-visual {
    aspect-ratio: auto;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
  }
  .hv-dash {
    max-width: 100%;
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }
  .hv-card { padding: 10px; }
  .hv-card-num { font-size: 22px; }
  .hv-chart { height: 72px; }
  .hv-tile { padding: 8px 10px; }
  .hv-tile-num { font-size: 15px; }
}

/* Industry hero stat box: compact horizontal layout on mobile */
@media (max-width: 767px) {
  .industry-hero-stat {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    text-align: left;
    border-radius: var(--radius-lg);
  }
  .industry-icon-xl {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    flex: none;
    margin-bottom: 0;
  }
  .industry-big-num { font-size: clamp(2rem, 10vw, 3rem); }
  .industry-big-stat { flex: 1; }
}

/* Buttons - full-width on very small screens when stacked */
@media (max-width: 400px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Sticky CTA safe-area for notched phones */
.sticky-cta { padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }

/* Content-visibility for below-fold sections (trust-bar only — footer-cta/site-footer omitted to avoid stacking context conflicts with sticky-cta) */
.trust-bar {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* =============================================================
   DESKTOP LAYOUT POLISH (1200px+)
   ============================================================= */
@media (min-width: 1200px) {
  .grid-2 { gap: var(--space-8); }
  .grid-3 { gap: var(--space-7); }
  .grid-4 { gap: var(--space-6); }
  .hero-grid { gap: var(--space-10); }
  .section-header { max-width: 780px; margin-left: auto; margin-right: auto; }
  .industry-hero-grid { gap: var(--space-10); }
  .steps-custom { gap: var(--space-8); }
  .service-hero-grid { gap: var(--space-10); }
}

@media (min-width: 1440px) {
  .section { padding: 5.5rem 0; }
  .hero { padding: 6rem 0 7rem; }
  .grid-3 { gap: var(--space-8); }
  .hero h1 { font-size: clamp(3rem, 4vw, 4.5rem); }
  .page-hero h1 { font-size: clamp(2.5rem, 3.5vw, 3.75rem); }
  .footer-sitemap { grid-template-columns: 1.4fr repeat(5, 1fr); }
  .container-narrow { max-width: 1060px; }
}

.about-body-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .about-body-grid { grid-template-columns: 3fr 2fr; gap: var(--space-9); align-items: start; }
}

.section--intro { padding: var(--space-6) 0 var(--space-5); }
@media (min-width: 1024px) {
  .section--intro { padding: var(--space-7) 0; }
}
.intro-lead { max-width: 900px; font-size: var(--fs-lg); line-height: 1.7; color: var(--color-text-muted); }
@media (min-width: 1200px) {
  .intro-lead { max-width: 1100px; }
}

/* =============================================================
   HERO VISUAL REDESIGN
   ============================================================= */

/* Rich layered background on desktop */
@media (min-width: 768px) {
  .hero {
    background:
      radial-gradient(ellipse 900px 600px at 15% 120%, rgba(0,80,255,0.13) 0%, transparent 65%),
      radial-gradient(ellipse 600px 400px at 85% -60px, rgba(255,181,71,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 1200px 500px at 50% 100%, rgba(0,80,255,0.07) 0%, transparent 70%),
      var(--color-bg);
  }
  .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,80,255,0.09) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to bottom right, transparent 30%, rgba(0,0,0,0.6) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom right, transparent 30%, rgba(0,0,0,0.6) 60%, transparent 100%);
  }
  .hero > .container { position: relative; z-index: 1; }
}

/* Gradient text on the italic emphasis in h1 */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0050FF 0%, #3D7AFF 40%, #FFB547 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Dark hero-visual panel — creates contrast split */
.hero-visual {
  background: linear-gradient(145deg, #0B1E3D 0%, #071526 100%);
  border: 1px solid rgba(0,80,255,0.22);
  box-shadow:
    0 40px 80px rgba(0,0,0,0.35),
    0 0 0 1px rgba(0,80,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Float cards pop bright on dark panel */
.hero-visual .float-card {
  background: #FFFFFF;
  color: var(--color-text);
  box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.14);
  border: none;
}
.hero-visual .float-card--2 svg { color: var(--color-primary); }

/* Dark theme for hv-dash dashboard card */
.hv-dash {
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 100%);
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.08);
}
.hv-bar { border-bottom-color: rgba(255,255,255,0.08); }
.hv-tab { color: rgba(255,255,255,0.45); }
.hv-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}
.hv-card-eyebrow { color: rgba(255,255,255,0.50); }
.hv-card-num { color: #FFFFFF; }
.hv-pill--up { background: rgba(16,185,129,0.22); color: #34D399; }
.hv-pill--up svg { stroke: #34D399; }
.hv-tile {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.hv-tile-icon--blue { background: rgba(0,80,255,0.28); color: #7EA8FF; }
.hv-tile-icon--green { background: rgba(16,185,129,0.22); color: #34D399; }
.hv-tile-label { color: rgba(255,255,255,0.45); }
.hv-tile-num { color: #FFFFFF; }

/* Richer page-hero backgrounds */
.page-hero {
  background:
    radial-gradient(ellipse 800px 500px at 50% -100px, rgba(0,80,255,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 400px 300px at 90% 50%, rgba(255,181,71,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 0% 80%, rgba(0,80,255,0.08) 0%, transparent 70%),
    linear-gradient(180deg, #F4F7FF 0%, var(--color-bg) 100%);
}

/* Industry hero stat — dark variant for impact */
.industry-hero-stat {
  background: linear-gradient(145deg, #0B1E3D 0%, #071526 100%);
  border-color: rgba(0,80,255,0.25);
  box-shadow: 0 32px 64px rgba(0,0,0,0.32), 0 0 0 1px rgba(0,80,255,0.10);
}
.industry-hero-stat::before { background: radial-gradient(circle, rgba(0,80,255,0.30) 0%, transparent 70%); }
.industry-hero-stat::after { background: radial-gradient(circle, rgba(255,181,71,0.22) 0%, transparent 70%); }
.industry-big-num { background: linear-gradient(135deg, #FFFFFF 0%, #FFD68A 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.industry-hero-stat .hero-eyebrow { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.75); }
.industry-hero-stat .hero-eyebrow::before { background: rgba(255,255,255,0.55); }
.industry-stat-label { color: rgba(255,255,255,0.65); }

/* Included-grid: compact gap that beats the 1200px .grid-2 override (higher specificity via 2 classes) */
.grid-2.included-grid { gap: var(--space-4); }

/* =============================================================
   BLOG — TABLE OF CONTENTS
   ============================================================= */
.toc { background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-7); }
.toc-title { font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-4); }
.toc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); counter-reset: toc; }
.toc-list li { counter-increment: toc; display: flex; align-items: baseline; gap: var(--space-2); }
.toc-list li::before { content: counter(toc) "."; font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary); flex: none; min-width: 1.5em; }
.toc-list a { font-size: var(--fs-sm); color: var(--color-text); text-decoration: none; line-height: 1.5; transition: color var(--dur-base); }
.toc-list a:hover { color: var(--color-primary); }
.toc-sub { padding-left: var(--space-5); }
.toc-sub::before { content: none; }
.toc-sub a { color: var(--color-text-muted); font-size: var(--fs-xs); }

/* =============================================================
   BLOG — AUTHOR BOX
   ============================================================= */
.post-author-box { display: flex; gap: var(--space-5); align-items: flex-start; padding: var(--space-6); background: var(--color-surface-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-top: var(--space-7); }
.post-author-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary) 0%, #3D7AFF 100%); color: #fff; font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 14px rgba(0,80,255,0.30); }
.post-author-name { font-family: var(--font-heading); font-size: var(--fs-base); font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-2); }
.post-author-bio { font-size: var(--fs-sm); color: var(--color-text-muted); line-height: 1.65; margin: 0 0 var(--space-3); }
.post-author-link { font-size: var(--fs-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; }
.post-author-link:hover { text-decoration: underline; }

/* =============================================================
   HTML SITEMAP
   ============================================================= */
.sitemap-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .sitemap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sitemap-grid { grid-template-columns: repeat(4, 1fr); } }
.sitemap-heading { font-size: var(--fs-base); font-weight: 700; color: var(--color-text); margin: 0 0 var(--space-4); padding-bottom: var(--space-3); border-bottom: 2px solid var(--color-primary); display: inline-block; }
.sitemap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.sitemap-list a { font-size: var(--fs-sm); color: var(--color-text-muted); text-decoration: none; transition: color var(--dur-base); display: block; line-height: 1.4; }
.sitemap-list a:hover { color: var(--color-primary); }
.sitemap-date { font-size: var(--fs-xs); color: var(--color-text-subtle); margin-left: var(--space-2); }
.sitemap-empty { font-size: var(--fs-sm); color: var(--color-text-subtle); }

/* Trust bar eyebrow alignment */
.trust-bar .eyebrow { display: block; text-align: center; margin-bottom: var(--space-6); }

/* =============================================================
   MOBILE 2-COLUMN GRIDS (mobile only — capped with max-width)
   ============================================================= */

/* Industry cards: 2-col on mobile below the existing 640px breakpoint */
@media (max-width: 639px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Results cards: 2-col from 480px up to where the existing 640px rule takes over */
@media (min-width: 480px) and (max-width: 639px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Service / card grids: 2-col from 480px up to where the existing 768px rule takes over */
@media (min-width: 480px) and (max-width: 767px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
}

/* Strip expensive hero background radials on mobile */

/* =============================================================
   FOOTER ZANE LINK
   ============================================================= */
.footer-zane-link {
  color: #FF5100;
  font-weight: 700;
  text-decoration: none;
}
.footer-zane-link:hover {
  color: #FF5100;
  text-decoration: underline;
}

/* =============================================================
   BOOKING WIDGET
   ============================================================= */

/* Page layout */
.page-hero--book { padding-bottom: var(--space-8); }
.section--book { padding-top: var(--space-8); }

.book-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (max-width: 900px) {
  .book-layout { grid-template-columns: 1fr; gap: var(--space-7); }
}

/* Sidebar */
.book-sidebar-heading {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.book-expect-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.book-expect-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.book-expect-list li svg {
  flex: none;
  margin-top: 2px;
  color: var(--color-primary);
}
.book-expect-list strong {
  display: block;
  font-size: var(--fs-base);
  color: var(--color-text);
  margin-bottom: 2px;
}
.book-expect-list span {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.book-tz-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.book-tz-notice svg { flex: none; color: var(--color-primary); }
.book-tz-notice strong { color: var(--color-text); }

/* Widget shell */
.bw {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) {
  .bw { padding: var(--space-5); border-radius: var(--radius-lg); }
}

/* Step indicator */
.bw-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-7);
}
.bw-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.bw-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.bw-step-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.bw-step--active .bw-step-num {
  background: var(--color-primary);
  color: #fff;
}
.bw-step--active .bw-step-label { color: var(--color-text); font-weight: 600; }
.bw-step--completed .bw-step-num { background: #e8f5e9; color: #1a9e47; }
.bw-step-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  margin: 0 var(--space-3);
  min-width: 20px;
}

/* Calendar */
.bw-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.bw-cal-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
}
.bw-cal-nav {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.bw-cal-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }

.bw-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: var(--space-2);
}
.bw-cal-weekdays span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-2) 0;
}

.bw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.bw-cal-loading, .bw-slots-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
  color: var(--color-text-muted);
}
.bw-cal-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: var(--radius-md);
  background: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.bw-cal-cell--empty { pointer-events: none; }
.bw-cal-cell--past,
.bw-cal-cell--unavail {
  color: var(--color-text-muted);
  opacity: 0.4;
  cursor: not-allowed;
}
.bw-cal-cell--avail {
  cursor: pointer;
  background: var(--color-primary-light, #eff4ff);
  color: var(--color-primary);
  font-weight: 600;
}
.bw-cal-cell--avail:hover { background: var(--color-primary); color: #fff; }
.bw-cal-cell--selected { background: var(--color-primary) !important; color: #fff !important; }

/* Slots */
.bw-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.bw-back {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
}
.bw-back:hover { border-color: var(--color-primary); color: var(--color-primary); }
.bw-selected-date, .bw-selected-slot {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}
.bw-slots-heading {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.bw-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 480px) {
  .bw-slots { grid-template-columns: repeat(2, 1fr); }
}
.bw-slot {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: var(--space-3) var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bw-slot:hover { border-color: var(--color-primary); color: var(--color-primary); background: #eff4ff; }
.bw-slot--selected { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.bw-slots-empty {
  grid-column: 1 / -1;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding: var(--space-5) 0;
  text-align: center;
}

/* Form */
.bw-form { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-5); }
.bw-field { display: flex; flex-direction: column; gap: var(--space-2); }
.bw-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
}
.bw-field label span { color: var(--color-primary); margin-left: 1px; }
.bw-field input,
.bw-field select {
  height: 52px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 var(--space-4);
  font-size: var(--fs-base);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.bw-field input:focus,
.bw-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,80,255,0.12);
}
.bw-field-error {
  font-size: var(--fs-xs, 12px);
  color: #cc2200;
  min-height: 16px;
}
.bw-form-error {
  text-align: center;
  margin-top: var(--space-2);
}

/* Submit spinner */
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-spin { animation: bw-spin 0.8s linear infinite; }

/* Success */
.bw-success {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}
.bw-success-icon { color: #1a9e47; margin-bottom: var(--space-4); }
.bw-success-icon svg { width: 52px; height: 52px; }
.bw-success h2 {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.bw-success-date {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.bw-success p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* =============================================================
   BOOKING WIDGET v2 — Calendly-style two-panel layout
   ============================================================= */

/* Page wrapper — centre the card vertically */
.bw-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  background: var(--color-bg);
}

/* Card */
.bw {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.10);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
}

/* Two-panel inner */
.bw-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 640px;
}
.bw-host { overflow-y: visible; }
[data-panel="3"] { overflow-y: auto; }


/* Form state: host + form only */
.bw-inner--form {
  grid-template-columns: 300px 1fr;
}

/* ── Host panel ──────────────────────────────────────── */
.bw-host {
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: var(--space-7) var(--space-6);
  background: #fff;
}

.bw-host-img {
  margin-bottom: var(--space-5);
}
.bw-host-img img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}
.bw-host-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-5);
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.bw-host-divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: var(--space-5);
}

.bw-host-meta { flex: 1; }

.bw-host-name {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
  font-weight: 500;
}
.bw-meeting-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-5);
  line-height: 1.2;
}

.bw-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.bw-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.bw-meta-list li svg { flex: none; margin-top: 2px; }
.bw-meta-desc span { color: var(--color-text-muted); font-size: 13px; }

.bw-date-card {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: var(--space-5);
  background: #fff;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0,80,255,.13);
  border: 1px solid #e2e8f0;
}
.bw-date-card-dow {
  background: var(--color-primary);
  padding: 12px var(--space-3);
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.bw-date-card-body {
  padding: var(--space-3) var(--space-4) var(--space-5);
}
.bw-date-card-my {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 2px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.bw-date-card-d {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.04em;
}
.bw-date-card-t {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  min-height: 20px;
}

.bw-host-footer {
  padding-top: var(--space-5);
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}
.bw-host-footer a {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}
.bw-host-footer a:hover { color: var(--color-primary); }

/* ── Right panel ─────────────────────────────────────── */
.bw-right {
  display: contents;
}

[hidden] { display: none !important; }

[data-panel] {
  padding: var(--space-7) var(--space-6);
}

.bw-panel-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-6);
}

/* ── Calendar ────────────────────────────────────────── */
.bw-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}
.bw-cal-title {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
}
.bw-cal-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: color .15s, background .15s;
}
.bw-cal-nav:hover { color: var(--color-text); background: #f1f5f9; }

.bw-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  margin-bottom: var(--space-2);
}
.bw-cal-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: var(--space-2) 0;
}

.bw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 2px;
  margin-bottom: var(--space-6);
}

.bw-cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: none;
  background: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
  min-height: 52px;
  cursor: default;
  color: var(--color-text-muted);
  transition: background .15s, color .15s;
}
.bw-cal-cell em {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  font-style: normal;
  display: block;
}
.bw-cal-cell--empty { pointer-events: none; }
.bw-cal-cell--off   { opacity: .35; cursor: not-allowed; }
.bw-cal-cell--today { font-weight: 700; color: var(--color-primary); background: #eff4ff; }
.bw-cal-cell--on    { cursor: pointer; color: var(--color-primary); font-weight: 700; background: #eff6ff; }
.bw-cal-cell--on:hover { background: var(--color-primary); color: #fff; }
.bw-cal-cell--on:hover em { background: rgba(255,255,255,.7); }
.bw-cal-cell--sel   { background: var(--color-primary) !important; color: #fff !important; font-weight: 700; }
.bw-cal-cell--sel em { background: rgba(255,255,255,.6); }

/* ── Timezone row ────────────────────────────────────── */
.bw-tz-row {
  border-top: 1px solid #e2e8f0;
  padding-top: var(--space-5);
}
.bw-tz-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.bw-tz-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.bw-tz-selector svg { flex: none; color: var(--color-primary); }
.bw-tz-selector select {
  border: none;
  background: none;
  font-size: var(--fs-sm);
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  flex: 1;
  min-width: 0;
}
.bw-tz-selector select:focus { outline: none; }

/* ── Slots panel ─────────────────────────────────────── */
.bw-slots-panel {
  border-left: none;
}

.bw-slots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid #e2e8f0;
}
.bw-selected-date-label {
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
}
.bw-back-inline {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  transition: color .15s;
}
.bw-back-inline:hover { color: var(--color-text); }

.bw-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.bw-slot {
  width: 100%;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: var(--space-4) var(--space-4);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, color .15s;
  min-height: 58px;
}
.bw-slot:hover  { border-color: var(--color-primary); color: var(--color-primary); }
.bw-slot--sel   { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.bw-no-slots { font-size: var(--fs-sm); color: var(--color-text-muted); padding: var(--space-4) 0; text-align: center; }

/* ── Form panel ──────────────────────────────────────── */
.bw-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.bw-panel-header .bw-panel-title { margin: 0; }
.bw-back {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.bw-back:hover { border-color: var(--color-primary); color: var(--color-primary); }

.bw-form { display: flex; flex-direction: column; gap: var(--space-4); }
.bw-field { display: flex; flex-direction: column; gap: var(--space-2); }
.bw-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); }
.bw-field label span { color: var(--color-primary); }
.bw-field input,
.bw-field select {
  height: 52px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.bw-field input:focus,
.bw-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,80,255,.10);
}
.bw-err { font-size: 12px; color: #cc2200; min-height: 14px; }
.bw-err--form { text-align: center; }
.bw-form-note { font-size: 12px; color: var(--color-text-muted); text-align: center; margin: var(--space-2) 0 0; }
.bw-optional { font-size: 12px; font-weight: 400; color: var(--color-text-muted); }
.bw-field-note { font-size: 12px; color: var(--color-text-muted); margin: var(--space-1) 0 0; }
.bw-field textarea { width: 100%; resize: vertical; min-height: 60px; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: var(--fs-base); font-family: inherit; color: var(--color-text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.bw-field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,80,255,.10); outline: none; }

/* ── Phone group ─────────────────────────────────────── */
.bw-phone-group {
  display: flex;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.bw-phone-group:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,80,255,.10);
}
.bw-phone-code {
  border: none !important;
  border-right: 1.5px solid #e2e8f0 !important;
  border-radius: 0 !important;
  outline: none;
  background: #f8fafc !important;
  padding: 0 10px !important;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0 !important;
  width: 100px !important;
  height: 52px !important;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}
.bw-phone-group input[type="tel"] {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1 1 auto !important;
  width: 0 !important;
  min-width: 0 !important;
  height: 52px;
  padding: 0 var(--space-4) !important;
}
.bw-phone-group input[type="tel"]:focus { box-shadow: none !important; border: none !important; }
.bw-meta-tz { border-top: 1px solid #e2e8f0; margin-top: var(--space-2); padding-top: var(--space-3); }

/* ── Loading spinner ─────────────────────────────────── */
.bw-loading {
  display: flex;
  justify-content: center;
  padding: var(--space-7) 0;
  color: var(--color-text-muted);
}
@keyframes bw-spin { to { transform: rotate(360deg); } }
.bw-spin { animation: bw-spin .75s linear infinite; }

/* ── Success ─────────────────────────────────────────── */
.bw-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-10) var(--space-6) !important;
}
.bw-success-check { color: #1a9e47; margin-bottom: var(--space-4); }
.bw-success h2 { font-size: var(--fs-xl); font-weight: 800; color: var(--color-text); margin: 0 0 var(--space-3); }
.bw-success-date { font-size: var(--fs-base); font-weight: 600; color: var(--color-primary); margin: 0 0 var(--space-3); }
.bw-success p { font-size: var(--fs-sm); color: var(--color-text-muted); margin: 0 0 var(--space-5); }
.bw-ics-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  background: none;
  border-radius: 10px;
  padding: var(--space-3) var(--space-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.bw-ics-btn:hover { background: var(--color-primary); color: #fff; }

/* Short day name hidden on desktop, shown on mobile */
.bw-dow-short { display: none; }

/* ── Booking widget — mobile ─────────────────────────── */
@media (max-width: 767px) {
  .bw-page { padding: 0; align-items: flex-start; }
  .bw { border-radius: 0; border: none; box-shadow: none; min-height: 100dvh; }
  .bw-inner,
  .bw-inner--form { grid-template-columns: 1fr; grid-template-rows: auto; }

  /* Panels fill full width; JS updates padding-bottom dynamically */
  [data-panel] { padding: var(--space-5) var(--space-4); padding-bottom: 110px; }
  [data-panel="3"] { overflow-y: visible; }

  /* ── Sticky host bar ─────────────────────────────── */
  .bw-host {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    border-right: none;
    border-top: 1px solid #e2e8f0;
    border-radius: 20px 20px 0 0;
    padding: 0 var(--space-5) var(--space-4);
    box-shadow: 0 -6px 32px rgba(0,0,0,.12);
    background: #fff;
    overflow-y: visible;
  }
  .bw-host::before {
    content: '';
    display: block;
    width: 36px; height: 4px;
    background: #d1d5db;
    border-radius: 100px;
    margin: 8px auto var(--space-3);
  }
  .bw-host-img,
  .bw-host-logo,
  .bw-host-divider,
  .bw-host-footer,
  .bw-meta-loc,
  .bw-meta-desc { display: none !important; }
  .bw-host-meta { padding-right: 96px; }
  .bw-meeting-name { font-size: 15px; margin-bottom: var(--space-1); }
  .bw-meta-list { flex-direction: row; flex-wrap: wrap; gap: 2px var(--space-4); margin-bottom: 0; }
  .bw-meta-list li { font-size: 12px; }
  .bw-meta-tz { border-top: none !important; margin-top: 0 !important; padding-top: 0 !important; }

  /* ── Date card: pinned inside bar, compact ── */
  .bw-date-card {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    right: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    width: 76px;
    height: 72px;
    margin: 0;
    box-shadow: 0 2px 12px rgba(0,80,255,.22);
    border-radius: 10px;
  }
  .bw-dow-full  { display: none; }
  .bw-dow-short { display: block; }
  .bw-date-card-dow { padding: 2px 4px; font-size: 8px; letter-spacing: .08em; flex-shrink: 0; line-height: 1.4; }
  .bw-date-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px 3px;
    background: #fff;
    gap: 1px;
  }
  .bw-date-card-my { display: none; }
  .bw-date-card-d  { font-size: 20px; margin: 0; line-height: 1; letter-spacing: -0.02em; }
  .bw-date-card-t  { font-size: 9px; font-weight: 700; min-height: 0; line-height: 1.2; }

  /* ── Calendar ────────────────────────────────────── */
  .bw-panel-title { font-size: var(--fs-base); margin-bottom: var(--space-4); }
  .bw-cal-header  { margin-bottom: var(--space-4); }
  .bw-cal-weekdays span { font-size: 10px; }
  .bw-cal-cell    { min-height: 44px; font-size: 15px; border-radius: 8px; }
  .bw-cal-cell em { width: 5px; height: 5px; }
  .bw-tz-row      { margin-top: var(--space-4); }

  /* ── Slots ───────────────────────────────────────── */
  .bw-slot { min-height: 54px; font-size: var(--fs-base); border-radius: 12px; }
  .bw-slots-header { padding-bottom: var(--space-3); margin-bottom: var(--space-3); }

  /* ── Form ────────────────────────────────────────── */
  .bw-panel-header { margin-bottom: var(--space-3); }
  .bw-field input,
  .bw-field select,
  .bw-field textarea { font-size: 16px; }
  .bw-phone-code { font-size: 14px !important; }
  .bw-submit     { min-height: 54px; font-size: var(--fs-base); }

  /* ── Success ─────────────────────────────────────── */
  .bw-success { padding: var(--space-8) var(--space-5) !important; }
  .bw-success h2 { font-size: var(--fs-lg); }

  /* ── Top sticky variant ──────────────────────────── */
  .bw-host[data-sticky-pos="top"] {
    top: 0; bottom: auto;
    border-radius: 0 0 20px 20px;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 6px 32px rgba(0,0,0,.12);
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
  .bw-host[data-sticky-pos="top"]::before { display: none; }
}

/* ── Cancel page ─────────────────────────────────────── */
.cancel-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: var(--space-8) var(--space-7);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.cancel-card svg { color: var(--color-primary); margin-bottom: var(--space-4); }
.cancel-card--error svg, .cancel-card--done svg { color: #1a9e47; }
.cancel-card h2 { font-size: var(--fs-xl); font-weight: 800; color: var(--color-text); margin: 0 0 var(--space-3); }
.cancel-card p { font-size: var(--fs-base); color: var(--color-text-muted); margin: 0 0 var(--space-5); }
.cancel-date { font-size: var(--fs-base); font-weight: 700; color: var(--color-text) !important; }
.cancel-policy { font-size: var(--fs-sm) !important; }
.cancel-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.btn-danger {
  background: #cc2200;
  color: #fff;
  border-color: #cc2200;
}
.btn-danger:hover { background: #a81b00; border-color: #a81b00; }

