/* ==========================================================================
   Vistance Digital — main website
   Design system cloned from the Flexx Digital reference layout.
   Single shared stylesheet for all pages.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colours — Lilac & Coral palette (no black) */
  --ink:        #2E2752;   /* deep indigo, primary text + dark sections base */
  --ink-2:      #241B47;   /* darker violet for layered dark sections */
  --ink-3:      #332B5E;   /* card on dark */
  --primary:    #3A3360;   /* muted heading slate (indigo) */
  --muted:      #423C63;   /* body text — dark, high readability (not grey) */
  --muted-2:    #8F8AAB;   /* softer grey-violet for tiny labels */
  --accent:     #6D3CF5;   /* violet accent (more saturated) */
  --accent-2:   #7C3AED;   /* gradient start */
  --pink:       #FF5E97;   /* coral-pink, gradient end (more saturated) */
  --bg:         #FFFFFF;
  --bg-soft:    #F7F4FE;   /* light lilac section */
  --bg-soft-2:  #F1ECFC;
  --line:       #ECE7F8;   /* hairline borders */
  --white:      #FFFFFF;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--accent-2) 0%, var(--pink) 100%);
  --grad-text:  linear-gradient(135deg, #7C3AED 0%, #FF5E97 100%);
  --grad-dark:  linear-gradient(160deg, #2A2153 0%, #241B47 55%, #322861 100%);

  /* Shape & shadow */
  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --shadow-sm:  0 4px 18px rgba(46, 39, 82, .07);
  --shadow-md:  0 14px 40px rgba(46, 39, 82, .12);
  --shadow-glow:0 8px 30px rgba(123, 92, 250, .42);

  /* Layout */
  --maxw: 1180px;
  --gutter: 24px;
  --nav-h: 76px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select { font-family: inherit; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--grad-dark); color: #EDEAF7; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.bg-dark .lead { color: #B9B2D6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 61, 232, .10);
  padding: 7px 14px; border-radius: 999px;
}
.bg-dark .eyebrow { color: #C9B6FF; background: rgba(124, 58, 237, .18); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-head { margin-bottom: 56px; }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px;
  padding: 15px 28px; border-radius: 12px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(123,92,250,.55); }
.btn-grad { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-grad:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.0); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.bg-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.bg-dark .btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-weight: 600; font-size: 15.5px; color: var(--primary); transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 18px var(--gutter) 28px;
  display: none; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 6px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -150px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(124,58,237,.18), transparent 62%);
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; bottom: -180px; left: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(236,72,153,.14), transparent 62%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; line-height: 1.05; font-size: clamp(40px, 6.2vw, 66px); }
.hero p.lead { max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin: 30px 0 26px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.hero-trust strong { color: var(--ink); }

/* phone mockup — realistic iMessage style */
.phone {
  position: relative; width: 300px; margin: 0 auto;
  background: #111114; border-radius: 46px; padding: 11px;
  box-shadow: 0 34px 80px rgba(46,39,82,.34);
}
.phone-screen { background: #fff; border-radius: 38px; overflow: hidden; }
.phone-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #F7F7F9; border-bottom: 1px solid #E6E6EA; color: #111;
}
.phone-top .back { color: #0A84FF; font-size: 20px; line-height: 1; }
.phone-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-size: 14px; color:#fff; overflow:hidden; }
.phone-top .av img { width: 100%; height: 100%; object-fit: cover; }

/* Meet Ava section */
.ava-intro { display:grid; grid-template-columns: 1fr 1fr; gap:64px; align-items:center; }
.ava-points { display:grid; gap:10px; margin:18px 0 24px; }
.ava-points li { padding-left:28px; position:relative; color:var(--muted); }
.ava-points li::before { content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }

/* transparent cutout + floating bubbles (no white cards) */
.ava-stage { position:relative; max-width:440px; margin:0 auto; }
.ava-stage .ava-cut { width:100%; display:block; filter: drop-shadow(0 26px 36px rgba(46,39,82,.30)); position:relative; z-index:1; }

/* floating chat bubbles, directly (no surrounding card) */
.ava-float { position:absolute; z-index:3; display:flex; flex-direction:column; align-items:flex-start; gap:6px; width:206px; }
.ava-float .lab { font-size:10.5px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); text-shadow:0 1px 3px rgba(255,255,255,.9); margin-bottom:1px; }
.ava-float .b { width:fit-content; max-width:100%; padding:8px 12px; border-radius:14px; font-size:12.5px; line-height:1.32; box-shadow:0 10px 24px rgba(46,39,82,.18); }
.ava-float .b.them { background:#EDEDF2; color:#1c1c1e; border-bottom-left-radius:5px; }
.ava-float .b.me { background:#0A84FF; color:#fff; border-bottom-right-radius:5px; align-self:flex-end; }
.ava-sms { top:8px; left:-84px; }
.ava-dm  { bottom:74px; left:-80px; }

/* voice-call chip (slim pill, not a box) */
.ava-callchip { position:absolute; z-index:3; top:118px; right:-88px; display:flex; align-items:center; gap:10px; background:#fff; border-radius:999px; padding:8px 15px 8px 9px; box-shadow:0 14px 34px rgba(46,39,82,.22); }
.ava-callchip .dot { width:32px; height:32px; border-radius:50%; background:var(--grad-brand); flex:none; display:grid; place-items:center; color:#fff; font-size:15px; }
.ava-callchip b { font-size:12.5px; display:block; line-height:1.15; }
.ava-callchip .sub { font-size:11px; color:var(--muted); }
.ava-wave { display:flex; align-items:flex-end; gap:3px; height:20px; margin-top:4px; }
.ava-wave i { width:3px; border-radius:2px; display:block; }
.ava-callchip .dur { font-size:12px; color:var(--muted); font-weight:700; }

@media (max-width:860px){
  .ava-intro{ grid-template-columns:1fr; gap:44px; }
  .ava-stage{ max-width:440px; }
}
/* (mobile stacked layout defined later, after the animation rules, so it wins source order) */
.phone-top .nm { font-weight: 700; font-size: 15px; color:#111; flex: 1; }
.phone-top .nm span { display: block; font-weight: 500; font-size: 11.5px; color: #8a8a90; }
.phone-top .info { color: #0A84FF; font-size: 17px; }

/* generic bubbles (used by dark demo cards) */
.chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.bubble { max-width: 80%; padding: 11px 14px; border-radius: 18px; font-size: 13.5px; line-height: 1.45; }
.bubble.them { background: #322a5c; color: #e9e5f7; align-self: flex-start; border-bottom-left-radius: 5px; }
.bubble.me { background: var(--grad-brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-input { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:10px; }
.chat-input .f { flex:1; background:#2a2350; border-radius:999px; padding:9px 14px; color:#8e88b0; font-size:13px; }
.chat-input .s { width:32px; height:32px; border-radius:50%; background:var(--grad-brand); color:#fff; display:grid; place-items:center; }

/* iMessage overrides inside the phone */
.phone .chat { background: #fff; }
.phone .bubble.them { background: #E9E9EB; color: #111114; border-bottom-left-radius: 5px; }
.phone .bubble.me { background: #0A84FF; color: #fff; border-bottom-right-radius: 5px; }
.phone .chat-input .f { background: #F0F0F3; color: #9a9aa0; }
.phone .chat-input .s { background: #0A84FF; }

/* floating stat cards */
.float-card {
  position: absolute; background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; z-index: 3;
}
.float-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-soft-2); display: grid; place-items: center; font-size: 19px; }
.float-card .v { font-weight: 800; font-size: 18px; line-height: 1.1; }
.float-card .l { font-size: 12px; color: var(--muted); }
.float-card.tl { top: 24px; left: -18px; }
.float-card.br { bottom: 28px; right: -10px; }
.float-card.tr { top: 24px; right: -18px; }
.float-card.bl { bottom: 28px; left: -10px; }
.phone-wrap { position: relative; }

/* ---------- Logo / trust strip ---------- */
.trust-strip { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip p { text-align: center; color: var(--muted-2); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Stat band (gradient) ---------- */
.stat-band { background: var(--grad-brand); color: #fff; padding: 64px 0; }
.stat-band .label { text-align: center; font-weight: 700; letter-spacing:.1em; text-transform: uppercase; opacity: .9; margin-bottom: 36px; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-row .n { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; }
.stat-row .t { opacity: .92; font-weight: 600; }

/* compact stats — pill style (icon + gradient number + label, inline) */
.mini-stats { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.mini-stat {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 22px; box-shadow: var(--shadow-sm);
}
.mini-stat .ic { font-size: 20px; line-height: 1; }
.mini-stat .n {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mini-stat .t { color: var(--muted); font-size: 14px; font-weight: 600; }
.stats-label { text-align: center; color: var(--muted-2); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; }
.stats-caption { text-align: center; color: var(--muted-2); font-size: 13px; max-width: 680px;
  margin: 22px auto 0; line-height: 1.5; }

/* ---------- Cards / features ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ic-sq {
  width: 52px; height: 52px; border-radius: 13px; background: var(--grad-brand);
  display: grid; place-items: center; font-size: 24px; color: #fff; margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: 14.5px; }

.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.value-card .ic { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 19px; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 15px; }

/* numbered steps */
.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step .num {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--grad-brand);
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step h4 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15px; }
.bg-dark .step p { color: #B9B2D6; }

/* ---------- Testimonials ---------- */
.quote-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: #F5B301; letter-spacing: 2px; margin-bottom: 14px; }
.quote-card blockquote { font-size: 16.5px; line-height: 1.6; color: var(--ink); margin-bottom: 18px; }
.quote-card blockquote b { color: var(--accent); }
.who { display: flex; align-items: center; gap: 12px; }
.who .ava { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
.who .nm { font-weight: 700; font-size: 15px; }
.who .rl { color: var(--muted); font-size: 13.5px; }

/* ---------- Revenue calculator ---------- */
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.calc-panel { background: var(--ink-3); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); padding: 30px; min-width: 0; }
.calc-panel h3 { color: #fff; margin-bottom: 6px; }
.calc-panel .hint { color: #8e88a8; font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 20px; }
.field label { display: block; color: #cfc9e6; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.field label small { display: block; color: #7d7799; font-weight: 500; font-size: 12.5px; margin-top: 2px; }
.field input[type=number], .field .input-money {
  width: 100%; min-width: 0; background: #1C1640; border: 1px solid #3a3163; color: #fff;
  border-radius: var(--radius-sm); padding: 13px 14px; font-size: 16px; font-weight: 600;
}
.field input[type=number] { -webkit-appearance: none; -moz-appearance: textfield; appearance: none; }
.field .input-money input { min-width: 0; }
.field input[type=range] { width: 100%; min-width: 0; accent-color: var(--pink); }
.field .rng-val { float: right; color: #fff; font-weight: 700; }
.input-money { display: flex; align-items: center; gap: 6px; }
.input-money span { color: #8e88a8; }
.input-money input { background: transparent; border: none; color: #fff; font-size: 16px; font-weight: 600; width: 100%; }
.calc-reset { color: #8e88a8; font-size: 13.5px; background: none; }

/* result column = two stacked cards */
.calc-results { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* dark opportunity card */
.calc-opp { background: var(--ink-3); border:1px solid rgba(255,255,255,.07); border-radius: var(--radius-lg); padding: 26px 28px; }
.calc-opp .top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
.calc-opp .top h3 { color:#fff; }
.calc-opp .leak { display:inline-flex; align-items:center; gap:7px; font-weight:700; font-size:13px; color:#fff; background:var(--grad-brand); padding:6px 12px; border-radius:999px; white-space:nowrap; }
.calc-opp .rows { display:grid; }
.calc-opp .rows .r { display:flex; justify-content:space-between; align-items:center; font-size:15px; color:#cfc9e6; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.calc-opp .rows .r:last-child { border-bottom:none; }
.calc-opp .rows .r b { color:#fff; font-weight:800; font-size:18px; }

/* gradient result card */
.calc-result { background: var(--grad-brand); border-radius: var(--radius-lg); padding: 28px; color: #fff; display: flex; flex-direction: column; }
.calc-result .big-label { font-size: 14px; opacity: .92; font-weight:600; }
.calc-result .big-num { font-size: clamp(40px, 6.5vw, 60px); font-weight: 800; letter-spacing: -.03em; margin: 2px 0 20px; line-height:1; }
.calc-break { background: rgba(255,255,255,.15); border-radius: 14px; padding: 15px 18px; margin-bottom: 22px; display:grid; gap:9px; }
.calc-break .r { display:flex; justify-content:space-between; gap:14px; font-size:13.5px; }
.calc-break .r span:first-child { opacity:.9; }
.calc-break .r b { font-weight:800; }
.calc-result .btn { background:#fff; color:#15121f; font-weight:800; box-shadow:none; width:100%; white-space:normal; text-align:center; line-height:1.3; }
.calc-result .btn:hover { background:#f3f0ff; }

/* Google review card */
.greview { max-width: 660px; margin: 0 auto; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; box-shadow: var(--shadow-md); }
.greview .gr-head { display:flex; align-items:center; gap:14px; margin-bottom:14px; }
.greview .gr-av { width:50px; height:50px; border-radius:50%; background:var(--grad-brand); color:#fff; display:grid; place-items:center; font-weight:700; font-size:20px; }
.greview .gr-name { font-weight:700; font-size:16px; }
.greview .gr-sub { color:var(--muted-2); font-size:13px; }
.greview .gr-logo { margin-left:auto; display:flex; align-items:center; gap:7px; font-weight:700; color:var(--muted); font-size:13px; }
.greview .gr-logo .g { font-size:18px; font-weight:800;
  background:conic-gradient(from -45deg,#EA4335,#FBBC05,#34A853,#4285F4,#EA4335);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.greview .gr-stars { color:#FBBC04; letter-spacing:2px; font-size:18px; }
.greview .gr-when { color:var(--muted-2); font-size:13px; font-weight:500; margin-left:8px; }
.greview p { color: var(--ink); font-size:16.5px; line-height:1.65; margin-top:12px; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare th { font-weight: 800; }
.compare th.feature, .compare td.feature { text-align: left; color: var(--ink); font-weight: 600; }
.compare th.hl { background: var(--grad-brand); color: #fff; }
.compare td.hl { background: rgba(108,61,232,.06); font-weight: 700; }
.compare .yes { color: #16a34a; font-weight: 800; }
.compare .no { color: #cbb8d6; font-weight: 800; }

/* ---------- Timeline (about) ---------- */
.timeline { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.tl-item { display: flex; gap: 18px; background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tl-item .ic { font-size: 28px; }
.tl-item h4 { font-size: 18px; }
.tl-item .sub { color: var(--accent); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; }

/* pull quote */
.pullquote { border-left: 4px solid var(--accent); padding: 6px 0 6px 24px; margin: 30px 0; font-size: clamp(20px,3vw,26px); font-weight: 700; line-height: 1.4; }
.pullquote cite { display: block; font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 12px; font-style: normal; }

/* ---------- Case study cards ---------- */
.case-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-video { aspect-ratio: 16/9; background: var(--grad-dark); display: grid; place-items: center; color:#fff; position: relative; }
.case-video .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 22px; backdrop-filter: blur(4px); }
.case-video .soon { position: absolute; bottom: 12px; font-size: 12.5px; opacity: .8; }
.case-body { padding: 24px; }
.case-tag { display:inline-block; font-size:13px; font-weight:700; color:var(--accent); background:rgba(108,61,232,.10); padding:5px 11px; border-radius:999px; margin-bottom: 12px; }
.case-body h3 { font-size: 19px; margin-bottom: 18px; }
.case-metrics { display: flex; gap: 22px; }
.case-metrics .m .n { font-size: 24px; font-weight: 800; }
.case-metrics .m .t { font-size: 12.5px; color: var(--muted); }
.case-featured { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items:center; background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-md); }
.case-featured .case-video { height: 100%; min-height: 320px; aspect-ratio: auto; }
.case-featured .pad { padding: 40px; }

/* ---------- Service rows ---------- */
.svc-row { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items:center; padding: 70px 0; border-bottom:1px solid var(--line); }
.svc-row.flip .svc-text { order: 2; }
.svc-badge { display:inline-flex; align-items:center; gap:10px; font-weight:700; color:var(--accent); margin-bottom:14px; }
.svc-badge .ic { width:46px; height:46px; border-radius:12px; background:var(--grad-brand); color:#fff; display:grid; place-items:center; font-size:22px; }
.svc-badge small { color:var(--accent); font-weight:700; font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; }
.svc-text > p.lead { margin: 12px 0 24px; }
.svc-metrics { display:flex; gap:30px; margin: 26px 0; }
.svc-metrics .m .n { font-size:28px; font-weight:800; color:var(--accent); }
.svc-metrics .m .t { font-size:13px; color:var(--muted); }

/* dark demo / chat card */
.demo { background: var(--grad-dark); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 22px; color:#fff; box-shadow: var(--shadow-md); }
.demo-head { display:flex; align-items:center; gap:12px; padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid rgba(255,255,255,.08); }
.demo-head .ic { width:40px; height:40px; border-radius:11px; background:var(--grad-brand); display:grid; place-items:center; font-size:19px; }
.demo-head .t b { display:block; font-size:15px; }
.demo-head .t span { font-size:12.5px; color:#8e88a8; }
.demo .chat { min-height: auto; padding: 0; }
.demo .note { margin-top:14px; font-size:13px; color:#9be6b0; font-weight:600; }
.demo .pill-row { display:flex; gap:10px; margin-bottom:14px; }
.demo .pill-row .p { flex:1; text-align:center; background:rgba(255,255,255,.06); border-radius:12px; padding:12px 6px; }
.demo .pill-row .p .n { font-size:22px; font-weight:800; }
.demo .pill-row .p .l { font-size:11.5px; color:#8e88a8; }
.demo .meta { background:rgba(255,255,255,.06); border-radius:12px; padding:12px 14px; font-size:13px; margin-bottom:12px; }
.demo .meta b { display:block; margin-bottom:2px; }
.svc-pills { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:26px; }
.svc-pills span { background: var(--bg-soft-2); color:var(--primary); font-weight:600; font-size:14px; padding:9px 15px; border-radius:999px; }

/* ---------- Forms (contact / demo) ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-md); }
.form-card h3 { margin-bottom: 6px; }
.form-card .hint { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row label { display:block; font-weight:600; font-size:14.5px; margin-bottom:7px; }
.form-row input, .form-row select, .form-row textarea {
  width:100%; border:1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 14px; font-size: 16px; color: var(--ink); background:#fff; transition: border .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline:none; border-color: var(--accent); }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color: var(--muted); margin-bottom: 14px; }
.consent input { margin-top:3px; }
.form-note { display:flex; gap:8px; align-items:flex-start; font-size:13px; color:var(--muted); margin-top:16px; }

/* check list */
.checks { display:flex; gap:22px; flex-wrap:wrap; justify-content:center; margin-top:22px; color:var(--muted); font-weight:600; font-size:15px; }
.bg-dark .checks { color:#B9B2D6; }
.checks span::before { content:"✓"; color: #16a34a; font-weight:800; margin-right:7px; }

.feature-pills { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top: 22px; }
.feature-pills span { background: var(--bg-soft-2); color: var(--primary); font-weight:600; font-size:14.5px; padding: 9px 16px; border-radius: 999px; }
.bg-dark .feature-pills span { background: rgba(255,255,255,.08); color:#fff; }

/* ---------- Ava polish: glow, toast, live dot, animations ---------- */
.ava-stage::before {
  content:""; position:absolute; inset:-8% -10% 0 -10%; z-index:0; border-radius:50%;
  background: radial-gradient(58% 54% at 50% 44%, rgba(124,58,237,.30), rgba(255,94,151,.20) 46%, transparent 72%);
  filter: blur(12px);
}

/* "Booked ✓" toast (bottom-right) */
.ava-toast { position:absolute; z-index:4; right:-72px; bottom:20px; display:flex; align-items:center; gap:10px;
  background:#fff; border-radius:14px; padding:10px 15px; box-shadow:0 14px 34px rgba(46,39,82,.24); }
.ava-toast .tick { width:27px; height:27px; border-radius:50%; background:#16a34a; color:#fff; display:grid; place-items:center; font-size:14px; font-weight:800; flex:none; }
.ava-toast b { font-size:13px; display:block; line-height:1.15; }
.ava-toast span { font-size:11px; color:var(--muted); }

/* live pulsing dot on call chip */
.ava-callchip .live { width:7px; height:7px; border-radius:50%; background:#16a34a; display:inline-block; margin-left:5px; vertical-align:middle; }

/* typing indicator bubble */
.ava-float .b.typing { display:flex; gap:5px; align-items:center; padding:12px 14px; }
.ava-float .b.typing i { width:6px; height:6px; border-radius:50%; background:#9a9aa0; display:block; }

/* hub effect: tilt each scene toward Ava (centre) + dotted connector lines */
.ava-float, .ava-callchip, .ava-toast { transform: rotate(var(--rot, 0deg)); }
.ava-sms   { --rot:-5deg; }
.ava-call  { --rot: 5deg; }
.ava-dm    { --rot: 4deg; }
.ava-toast { --rot:-4deg; }
.ava-links { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; overflow:visible; }
.ava-links line { stroke:var(--accent); stroke-width:1.4; stroke-dasharray:1 6; stroke-linecap:round; opacity:.4; }
.ava-links circle { fill:var(--accent); opacity:.5; }

@media (prefers-reduced-motion: no-preference) {
  .ava-wave i { animation: avawave 1s ease-in-out infinite; transform-origin:bottom; }
  .ava-wave i:nth-child(2n){ animation-duration:.8s; } .ava-wave i:nth-child(3n){ animation-duration:1.25s; } .ava-wave i:nth-child(4n){ animation-duration:.9s; }
  @keyframes avawave { 0%,100%{ transform:scaleY(.5);} 50%{ transform:scaleY(1);} }
  .ava-callchip .live { animation: avapulse 1.6s infinite; }
  @keyframes avapulse { 0%{ box-shadow:0 0 0 0 rgba(22,163,74,.5);} 70%{ box-shadow:0 0 0 8px rgba(22,163,74,0);} 100%{ box-shadow:0 0 0 0 rgba(22,163,74,0);} }
  .ava-float .b.typing i { animation: avatype 1.2s infinite; }
  .ava-float .b.typing i:nth-child(2){ animation-delay:.2s; } .ava-float .b.typing i:nth-child(3){ animation-delay:.4s; }
  @keyframes avatype { 0%,60%,100%{ opacity:.3; transform:translateY(0);} 30%{ opacity:1; transform:translateY(-3px);} }

  /* float / fade in on scroll */
  .ava-float, .ava-callchip, .ava-toast { opacity:0; transform: translateY(16px) rotate(var(--rot,0deg)); transition: opacity .55s ease, transform .55s ease; }
  .ava-stage.in .ava-float, .ava-stage.in .ava-callchip, .ava-stage.in .ava-toast { opacity:1; transform: rotate(var(--rot,0deg)); }
  /* connector lines draw in */
  .ava-links line { stroke-dashoffset:60; transition: stroke-dashoffset 1.2s ease .3s; }
  .ava-stage.in .ava-links line { stroke-dashoffset:0; }
  .ava-stage.in .ava-sms { transition-delay:.10s; }
  .ava-stage.in .ava-call { transition-delay:.28s; }
  .ava-stage.in .ava-dm { transition-delay:.46s; }
  .ava-stage.in .ava-toast { transition-delay:.64s; }
}

/* ===== Ava section — mobile stacked layout (placed after animation rules to win source order) ===== */
@media (max-width:680px){
  .ava-intro{ grid-template-columns:1fr; gap:28px; }
  .ava-stage{ max-width:360px; margin:0 auto; display:flex; flex-direction:column; align-items:center; gap:14px; }
  .ava-stage::before{ left:50%; top:42%; transform:translate(-50%,-50%); width:230px; height:230px; inset:auto; border-radius:50%; }
  .ava-cut{ max-width:220px; order:2; }
  /* calm mobile view: keep only the SMS exchange (above) + the Booked result (below) */
  .ava-call, .ava-dm, .ava-links, .ava-float .b.typing { display:none !important; }
  .ava-float, .ava-toast{
    position:static !important; transform:none !important; opacity:1 !important; transition:none !important;
    left:auto; right:auto; top:auto; bottom:auto; width:100%; max-width:330px; margin:0 auto;
  }
  .ava-sms { order:1; align-items:flex-start; }
  .ava-toast { order:3; }
  .ava-float .b { max-width:84%; font-size:13px; }
}

/* ---------- Guarantee ---------- */
.guarantee { display:flex; gap:30px; align-items:center; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius-lg); padding:42px; box-shadow:var(--shadow-sm); }
.guarantee .g-badge { flex:none; width:88px; height:88px; border-radius:22px; background:var(--grad-brand); display:grid; place-items:center; font-size:42px; box-shadow:var(--shadow-glow); }
.guarantee h2 { font-size: clamp(26px,3vw,36px); }
.guarantee em { font-style:normal; color:var(--muted-2); }
@media (max-width:760px){ .guarantee{ flex-direction:column; text-align:center; padding:30px; } }

/* ---------- CTA band ---------- */
.cta-band { text-align:center; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 30px; max-width: 620px; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ---------- Calendar embed ---------- */
.cal-embed { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 14px; min-height: 640px; }
.cal-embed iframe { width:100%; min-height: 620px; border:0; border-radius: var(--radius); }
.cal-placeholder { min-height: 600px; display:grid; place-items:center; text-align:center; color:var(--muted); padding: 40px; }
.cal-placeholder .ic { font-size: 44px; margin-bottom: 14px; }

/* calendar page two-column layout — compact */
.cal-layout { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.cal-layout h2 { font-size: clamp(26px, 3vw, 38px); }
.cal-layout > div > .lead { font-size: 15.5px; margin: 12px 0 22px !important; }
.expect-list { display:grid; gap: 14px; margin: 0 0 22px; }
.expect-item { display:flex; gap:13px; align-items:flex-start; }
.expect-item .ic { flex:none; width:42px; height:42px; border-radius:11px; background:var(--bg-soft-2); display:grid; place-items:center; font-size:18px; }
.expect-item h4 { font-size:15.5px; margin-bottom:2px; }
.expect-item p { color:var(--muted); font-size:14px; line-height:1.45; }

.agenda-card { background: var(--grad-dark); border:1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 22px 24px; }
.agenda-card .eyebrow { color:#C9B6FF; background:rgba(124,58,237,.18); margin-bottom:12px; }
.agenda-item { display:flex; gap:13px; align-items:flex-start; padding:9px 0; }
.agenda-item .when { flex:none; min-width:62px; text-align:center; font-size:11.5px; font-weight:700; color:#C9B6FF; background:rgba(124,58,237,.16); border:1px solid rgba(124,58,237,.32); padding:4px 9px; border-radius:999px; }
.agenda-item h4 { color:#fff; font-size:15px; margin-bottom:2px; }
.agenda-item p { color:#B9B2D6; font-size:13.5px; line-height:1.4; }

.cal-wrap { background: var(--grad-dark); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 92px; }
.cal-wrap > h3 { color:#fff; margin-bottom:3px; font-size:22px; }
.cal-wrap > .sub { color:#B9B2D6; font-size:13.5px; margin-bottom:16px; }
.cal-wrap .cal-embed { min-height: 0; padding: 12px; }
.cal-wrap .cal-placeholder { min-height: 420px; }

/* compact section modifier */
.section.compact { padding: 56px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b6b0cf; padding: 64px 0 30px; }
.footer-grid { display:flex; justify-content:space-between; gap: 40px; flex-wrap: wrap; align-items:flex-start; }
.site-footer .brand { color:#fff; margin-bottom: 12px; }
.site-footer .tag { font-size: 14px; max-width: 320px; }
.footer-links { display:flex; gap: 26px; flex-wrap:wrap; }
.footer-links a { color:#b6b0cf; font-size:14.5px; }
.footer-links a:hover { color:#fff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top:1px solid rgba(255,255,255,.10); display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:13.5px; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 200;
  max-width: 1180px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 18px 22px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner p { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1; min-width: 260px; line-height: 1.5; }
.cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-banner .cb-actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 11px 24px; font-size: 14.5px; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-banner .cb-actions { justify-content: flex-end; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { margin-bottom: 10px; }
.legal .updated { color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 24px; margin: 34px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--primary); margin-bottom: 12px; }
.legal ul { padding-left: 22px; list-style: disc; }
.legal a { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 70px; }
  .calc-grid { grid-template-columns: 1fr; }
  .cal-layout { grid-template-columns: 1fr; }
  .cal-wrap { position: static; }
  .case-featured { grid-template-columns: 1fr; }
  .case-featured .case-video { min-height: 240px; }
  .grid-4, .mini-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; gap: 30px; }
  .compare-wrap { overflow-x: auto; }
  .float-card.tl, .float-card.bl { left: 0; }
  .float-card.br, .float-card.tr { right: 0; }
}
@media (max-width: 560px) {
  .calc-panel { padding: 22px 18px; }
  .calc-opp { padding: 22px 20px; }
  .calc-result { padding: 24px 20px; }
  .calc-break .r { font-size: 12px; gap: 8px; }
}
