/* ============================================================
   OpsFreedom — Brand System
   "From operational chaos to scalable control."
   Navy authority + teal energy. Inter only.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ---- Brand palette (official kit) ---- */
  --navy:        #172841;
  --navy-deep:   #0F1E33;
  --teal:        #14B8A6;
  --teal-bright: #5EEAD4;
  --teal-deep:   #0F766E;
  --teal-hover:  #2DD4BF;
  --marine:      #0F4C5C;
  --mint:        #A7F3D0;
  --paper:       #FAFBFC;

  /* ---- Signature gradient (never recolour) ---- */
  --grad: linear-gradient(135deg, #172841 0%, #0F4C5C 100%);
  --grad-glow: radial-gradient(900px 500px at 78% -10%, rgba(94,234,212,0.16), transparent 60%);

  /* ---- Ink & surfaces ---- */
  --ink:        #172841;
  --ink-soft:   #41506a;
  --ink-faint:  #6c7a92;
  --line:       #e6eaf0;
  --line-soft:  #eef1f6;
  --surface:    #ffffff;
  --surface-2:  #f4f6fa;

  /* on-dark */
  --on-dark:        #eaf1f7;
  --on-dark-soft:   #9fb3c9;
  --on-dark-faint:  #6f859e;
  --line-dark:      rgba(255,255,255,0.10);

  /* ---- Type ---- */
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SFMono-Regular', ui-monospace, 'JetBrains Mono', Menlo, monospace;

  /* ---- Radii / shadow ---- */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15,30,51,0.06), 0 2px 8px rgba(15,30,51,0.05);
  --shadow:    0 8px 24px rgba(15,30,51,0.08), 0 2px 6px rgba(15,30,51,0.05);
  --shadow-lg: 0 24px 60px rgba(15,30,51,0.16), 0 8px 24px rgba(15,30,51,0.10);
  --shadow-teal: 0 14px 34px rgba(15,118,110,0.26);

  /* ---- Layout ---- */
  --maxw: 1200px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.02em; }
p  { margin: 0 0 1rem; color: var(--ink-soft); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow::before {
  content: ""; width: 18px; height: 1.5px; background: var(--teal-deep); display: inline-block;
}
.eyebrow.on-dark { color: var(--teal-bright); }
.eyebrow.on-dark::before { background: var(--teal-bright); }
.eyebrow.no-rule::before { display: none; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); line-height: 1.55; }
.measure { max-width: 64ch; }
.kicker-num { font-variant-numeric: tabular-nums; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 840px; }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.dark { background: var(--navy); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: var(--on-dark-soft); }
.dark strong { color: #fff; }
.gradient { background: var(--navy); background-image: var(--grad-glow), var(--grad); color: var(--on-dark); }
.gradient h1, .gradient h2, .gradient h3 { color: #fff; }
.gradient p { color: var(--on-dark-soft); }

.grid { display: grid; gap: 24px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-24{gap:24px}
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 14px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-weight: 600; font-size: .95rem; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s, box-shadow .18s, border-color .18s, color .18s;
  white-space: nowrap; line-height: 1; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }

/* primary = deep teal solid on light (AA-safe) */
.btn-primary { background: var(--teal-deep); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { background: #0c6259; transform: translateY(-1px); box-shadow: 0 18px 40px rgba(15,118,110,0.32); }

/* primary on navy = brighter teal with navy ink for contrast */
.btn-on-navy { background: var(--teal-bright); color: var(--navy-deep); box-shadow: 0 12px 30px rgba(94,234,212,0.22); }
.btn-on-navy:hover { background: var(--teal-hover); transform: translateY(-1px); }

/* Buttons are <a>; reassert their text colors above container link rules (.footer a, .drawer a, etc.) */
a.btn-primary, .btn.btn-primary { color: #fff; }
a.btn-on-navy, .btn.btn-on-navy { color: var(--navy-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--surface-2); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.22); }
.btn-ghost.on-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }

.btn-wa { background: #25D366; color: #06351b; }
.btn-wa:hover { background: #1fbb59; transform: translateY(-1px); }
.btn-wa.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-wa.outline:hover { border-color: #25D366; color: #128C3E; background: rgba(37,211,102,0.06); }
.btn-wa.outline.on-dark { color: #fff; border-color: rgba(94,234,212,0.55); }
.btn-wa.outline.on-dark:hover { border-color: #25D366; color: #fff; background: rgba(37,211,102,0.14); }

.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: none; color: var(--teal-deep); font-weight: 600; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .4em; }
.btn-link.on-dark { color: var(--teal-bright); }
.btn-link:hover .arr { transform: translateX(3px); }
.btn-link svg, .btn-link .arr { width: 18px; height: 18px; flex: none; }
.arr { transition: transform .2s var(--ease); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dbe2ec; }
.card.dark { background: rgba(255,255,255,0.035); border-color: var(--line-dark); }
.card-pad-sm { padding: 22px; }

.icon-tile {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20,184,166,0.10); color: var(--teal-deep); flex: none;
}
.icon-tile.on-dark { background: rgba(94,234,212,0.12); color: var(--teal-bright); }
.icon-tile svg { width: 22px; height: 22px; }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .78rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 6px 13px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line); white-space: nowrap;
}
.pill.teal { background: rgba(20,184,166,0.10); color: var(--teal-deep); border-color: rgba(20,184,166,0.2); }
.pill.on-dark { background: rgba(94,234,212,0.10); color: var(--teal-bright); border-color: rgba(94,234,212,0.18); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* stat */
.stat .num { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
.stat .lbl { font-size: .82rem; color: var(--ink-faint); margin-top: 7px; }
.dark .stat .num, .gradient .stat .num { color: #fff; }
.dark .stat .lbl, .gradient .stat .lbl { color: var(--on-dark-soft); }
.stat .num em { font-style: normal; color: var(--teal-deep); }
.dark .stat .num em, .gradient .stat .num em { color: var(--teal-bright); }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.field .hint { font-size: .76rem; color: var(--ink-faint); font-weight: 400; }
.input, .select, textarea.input {
  width: 100%; padding: 13px 15px; font-family: inherit; font-size: .96rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.input::placeholder { color: #aab4c4; }
.input:focus, .select:focus, textarea.input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(20,184,166,0.13); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.field-dark .input, .field-dark .select { background: rgba(255,255,255,0.05); border-color: var(--line-dark); color: #fff; }
.field-dark label { color: #fff; }
.field-dark .input::placeholder { color: var(--on-dark-faint); }

.choice-grid { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color .15s, background .15s; font-size: .94rem; font-weight: 500;
}
.choice:hover { border-color: #c7d0dd; }
.choice input { accent-color: var(--teal-deep); width: 18px; height: 18px; flex: none; }
.choice.selected { border-color: var(--teal-deep); background: rgba(20,184,166,0.06); }
.choice .ch-ico { width: 36px; height: 36px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--teal-deep); flex: none; }
.choice.selected .ch-ico { background: rgba(20,184,166,0.14); }

/* ============================================================
   PLACEHOLDER (imagery slots)
   ============================================================ */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background-color: #eef2f7;
  background-image: repeating-linear-gradient(135deg, rgba(23,40,65,0.045) 0 12px, transparent 12px 24px);
  border: 1px dashed #c2cddb; display: grid; place-items: center; min-height: 200px;
  color: var(--ink-faint);
}
.ph.dark { background-color: rgba(255,255,255,0.03); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 12px, transparent 12px 24px); border-color: rgba(255,255,255,0.14); color: var(--on-dark-faint); }
.ph .ph-label { font-family: var(--mono); font-size: .72rem; letter-spacing: 0.02em; text-align: center; padding: 8px 12px; }
.ph .ph-label b { display: block; color: var(--ink-soft); font-weight: 600; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.12em; font-size: .66rem; }
.ph.dark .ph-label b { color: var(--on-dark-soft); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(250,251,252,0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft); transition: box-shadow .2s, background .2s;
}
.nav.scrolled { background: rgba(250,251,252,0.94); box-shadow: 0 4px 20px rgba(15,30,51,0.10); }
.nav.dark { background: rgba(15,30,51,0.72); border-bottom-color: rgba(255,255,255,0.07); }
.nav.dark.scrolled { background: rgba(13,22,38,0.95); border-bottom-color: rgba(94,234,212,0.16); box-shadow: 0 6px 26px rgba(0,0,0,0.30); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; font-size: 1.15rem; color: var(--navy); flex: none; min-width: 0; }
.logo-img { height: 30px; width: auto; display: block; flex: none; object-fit: contain; }
.footer .logo-img { height: 52px; }
.drawer-head .logo-img { height: 32px; }
.dark .logo, .nav.dark .logo { color: #fff; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.logo-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: rgba(23,40,65,0.04); }
.nav-links a[aria-current] { color: var(--ink); background: rgba(20,184,166,0.10); }
.nav.dark .nav-links a[aria-current] { color: #fff; background: rgba(94,234,212,0.14); }
.nav.dark .nav-links a { color: var(--on-dark-soft); }
.nav.dark .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.nav.dark .nav-toggle { color: #fff; }

/* dropdown (Services) */
.nav-item { position: relative; display: inline-flex; }
.nav-parent { display: inline-flex; align-items: center; gap: 4px; }
.nav-parent .caret { width: 15px; height: 15px; transition: transform .18s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.subnav { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px); min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s, transform .16s; z-index: 60; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px); }
.subnav::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.subnav a { display: block; padding: 10px 14px; border-radius: 9px; font-size: .92rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
/* dropdown is a light card in every nav theme — force dark, readable link colors */
.nav .nav-links .subnav a { color: var(--ink-soft); }
.nav .nav-links .subnav a:hover { background: var(--surface-2); color: var(--teal-deep); }
.nav .nav-links .subnav a[aria-current="page"] { color: var(--navy); font-weight: 700; background: rgba(20,184,166,.12); }
.nav-parent.active { color: var(--ink); }
.nav.dark .nav-parent.active { color: #fff; }

/* mobile drawer group */
.drawer-group { display: flex; flex-direction: column; }
.drawer-group-label { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 0 4px; }
.drawer-sub { padding-left: 14px !important; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15,30,51,0.4); backdrop-filter: blur(2px); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--paper); padding: 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-lg); animation: slideIn .3s var(--ease); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-panel a { padding: 14px 12px; font-weight: 600; color: var(--ink); border-radius: 10px; font-size: 1.05rem; }
.drawer-panel a:hover { background: var(--surface-2); }
.drawer-panel .btn { margin-top: 8px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: var(--on-dark-soft); padding: 64px 0 30px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer a { color: var(--on-dark-soft); font-size: .92rem; transition: color .15s; }
.footer a:hover { color: var(--teal-bright); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .82rem; color: var(--on-dark-faint); flex-wrap: wrap; }
.footer-bottom a { font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* brand symbol watermark (background artwork) */
.brand-mark { position: absolute; pointer-events: none; z-index: 0; opacity: .07;
  background: url("brand/symbol-white.png") center/contain no-repeat; }
.brand-mark.color { background-image: url("brand/symbol.png"); }
@media (prefers-reduced-motion: no-preference){
  .brand-mark.drift { animation: markDrift 26s ease-in-out infinite; }
}
@keyframes markDrift { 0%,100% { transform: translateY(-2%) rotate(-2deg); } 50% { transform: translateY(2%) rotate(2deg); } }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg::before { content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(94,234,212,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,234,212,0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(125% 105% at 72% -5%, #000 28%, transparent 76%);
  mask-image: radial-gradient(125% 105% at 72% -5%, #000 28%, transparent 76%); }
.hero-bg::after { content: ""; position: absolute; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px;
  right: -7vw; top: -16vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,0.16), rgba(94,234,212,0) 62%);
  animation: heroGlow 16s ease-in-out infinite; }
@keyframes heroGlow { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.1); opacity: 1; } }
@media (prefers-reduced-motion: reduce){ .hero-bg::after { animation: none; } }

/* social icon row */
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer .soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark-soft);
  transition: color .15s, border-color .15s, background .15s; }
.footer .soc svg { width: 17px; height: 17px; }
.footer .soc:hover { color: var(--teal-bright); border-color: var(--teal-bright); background: rgba(94,234,212,0.08); }
.drawer-social { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-social .soc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-soft); transition: color .15s, border-color .15s, background .15s; }
.drawer-social .soc svg { width: 18px; height: 18px; }
.drawer-social .soc:hover { color: var(--teal-deep); border-color: var(--teal-deep); background: var(--surface-2); }

/* ============================================================
   FLOATING CHROME (WhatsApp, chat, exit-intent, cookie)
   ============================================================ */
.float-stack { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); cursor: pointer; border: none; transition: transform .18s var(--ease);
}
.fab:hover { transform: scale(1.06); }
.fab-wa { background: #25D366; color: #fff; }
.fab-chat { background: var(--grad); color: var(--teal-bright); }
.fab svg { width: 27px; height: 27px; }

.chat-bubble {
  position: fixed; right: 84px; bottom: 26px; z-index: 149; max-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-lg); padding: 16px 18px; animation: bubbleIn .4s var(--ease);
  transform-origin: bottom right;
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.chat-bubble .ttl { font-size: .76rem; font-weight: 600; color: var(--teal-deep); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.chat-bubble .ttl .av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.chat-bubble p { font-size: .92rem; color: var(--ink); margin: 0 0 12px; line-height: 1.4; }
.chat-bubble .x { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--ink-faint); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.chat-bubble .acts { display: flex; gap: 8px; }

/* cookie */
.cookie {
  position: fixed; left: 18px; bottom: 18px; z-index: 160; max-width: 420px;
  background: var(--navy); color: var(--on-dark); border: 1px solid var(--line-dark);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px 22px; animation: bubbleIn .4s var(--ease);
}
.cookie p { font-size: .86rem; color: var(--on-dark-soft); margin-bottom: 14px; }
.cookie p a { color: var(--teal-bright); text-decoration: underline; }
.cookie .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { font-size: .84rem; padding: 10px 18px; }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(15,30,51,0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border-radius: var(--r-xl); max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .35s var(--ease); position: relative;
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .x { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.4rem; color: var(--ink-faint); cursor: pointer; z-index: 2; line-height: 1; }
.modal .x:hover { color: var(--ink); }

/* ============================================================
   PROGRESS / MISC
   ============================================================ */
.progress-track { height: 5px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); border-radius: 999px; transition: width .5s var(--ease); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.tag-dot { display:inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

.reveal { opacity: 1; transform: translateY(16px); transition: transform .65s var(--ease); will-change: transform; }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 2px; border-radius: 4px; }

/* utility */
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }
.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-48{margin-top:48px}
.text-teal { color: var(--teal-deep); }
.dark .text-teal, .gradient .text-teal { color: var(--teal-bright); }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .float-stack { right: 14px; bottom: 14px; }
  .chat-bubble { right: 78px; bottom: 22px; max-width: 240px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ============================================================
   CALCULATOR / LEAD-MAGNET ENGINE (shared by all 3 tools)
   ============================================================ */
.calc-shell { max-width: 880px; margin: 0 auto; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.calc-head { padding: 22px 28px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.calc-body { padding: clamp(26px, 4vw, 44px); }
.step-meta { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.opt-grid { display: grid; gap: 12px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s, background .15s, transform .12s; font-weight: 500; text-align: left; width: 100%; }
.opt:hover { border-color: #c2cddb; transform: translateY(-1px); }
.opt.sel { border-color: var(--teal-deep); background: rgba(20,184,166,0.06); box-shadow: 0 0 0 3px rgba(20,184,166,0.10); }
.opt .num { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink-faint); flex: none; }
.opt.sel .num { background: var(--teal-deep); color: #fff; }
.opt .sub { font-size: .82rem; color: var(--ink-faint); font-weight: 400; }
.opt-2 { grid-template-columns: 1fr 1fr; }
.slider-val { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-card input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: var(--line); outline: none; }
.calc-card input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-deep); cursor: pointer; box-shadow: 0 2px 8px rgba(15,118,110,.4); border: 3px solid #fff; }
.calc-card input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-deep); cursor: pointer; border: 3px solid #fff; }
.calc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.donut-wrap { position: relative; width: 200px; height: 200px; flex: none; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.legend-row:last-child { border-bottom: none; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.teaser-blur { filter: blur(7px); user-select: none; pointer-events: none; }
.gate-overlay { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.96) 42%); }
.gate-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 26px; max-width: 430px; width: 100%; text-align: center; }
/* score gauge (Freedom Score) */
.gauge-wrap { position: relative; width: 240px; height: 240px; flex: none; }
.gauge-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.score-num { font-size: 3.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
/* horizontal compare bar (AI savings) */
.barcmp { height: 46px; border-radius: 10px; background: var(--surface-2); overflow: hidden; position: relative; display: flex; }
.barcmp .seg { display: flex; align-items: center; padding: 0 14px; font-size: .82rem; font-weight: 700; color: #fff; white-space: nowrap; }
@media (max-width: 560px){ .opt-2 { grid-template-columns: 1fr; } .donut-wrap{width:170px;height:170px} .gauge-wrap{width:200px;height:200px} }

/* "AI at work" video panel (Why-AI + AI Agent Layer) */
.ai-video-panel { position:relative; border-radius:var(--r-xl); overflow:hidden; min-width:0;
  border:1px solid rgba(94,234,212,0.22); box-shadow:0 26px 60px rgba(0,0,0,0.42);
  background:#0b1626; aspect-ratio:16/10; }
.ai-video-panel video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ai-video-panel::after { content:""; position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.04); border-radius:inherit; }
.ai-video-tag { position:absolute; top:14px; left:14px; z-index:2; display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px; border-radius:99px; background:rgba(15,30,51,0.66); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  border:1px solid rgba(94,234,212,0.28); color:#fff; font-size:.74rem; font-weight:600; letter-spacing:.04em; }
.ai-video-tag .live-dot { width:7px; height:7px; border-radius:50%; background:var(--teal-bright); box-shadow:0 0 0 0 rgba(94,234,212,0.6); animation:livePulse 2s ease-out infinite; }
@keyframes livePulse { 0%{box-shadow:0 0 0 0 rgba(94,234,212,0.5)} 70%{box-shadow:0 0 0 7px rgba(94,234,212,0)} 100%{box-shadow:0 0 0 0 rgba(94,234,212,0)} }
@media (prefers-reduced-motion: reduce){ .ai-video-tag .live-dot { animation:none; } }
@media (max-width:860px){ .ai-video-panel { aspect-ratio:16/9; } }

/* ============================================================
   THE JUGGLE — homepage game (mobile-first, on-brand)
   ============================================================ */
#jg-root { max-width: 760px; margin: 0 auto; }
.jg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 30px); }
.jg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.jg-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }

/* intro (the lure) — minimal, centred; ID-scoped so the hero's .gradient heading color can't hijack it */
.jg-intro { text-align: center; }
.jg-intro .jg-eyebrow { display: block; }
#jg-root .jg-hook { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.08; margin-top: 14px; color: var(--ink); font-weight: 800; text-wrap: balance; }
#jg-root .jg-hook em { font-style: normal; color: var(--teal-deep); }
#jg-root .jg-title { color: var(--ink); }
#jg-root .jg-title em { color: var(--teal-deep); }
.jg-intro .jg-chips { justify-content: center; margin: clamp(22px,4vw,32px) 0 22px; }
.jg-intro .jg-count { display: block; margin-top: 12px; text-align: center; }
.jg-title { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.02em; margin-top: 6px; line-height: 1.15; }
.jg-title em { font-style: italic; color: var(--teal-deep); }
.jg-badge { flex: none; font-size: .72rem; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: rgba(20,184,166,.1); color: var(--teal-deep); white-space: nowrap; }
.jg-badge.bad { background: rgba(192,73,46,.12); color: #C0492E; }
.jg-badge.mid { background: rgba(201,138,27,.14); color: #A5701A; }
.jg-sub { margin-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.jg-sub strong { color: var(--ink); }
.jg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.jg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.jg-chip .jg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); opacity: .35; transition: opacity .15s, transform .15s; }
.jg-chip:hover { border-color: #c2cddb; }
.jg-chip.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent); }
.jg-chip.on .jg-dot { opacity: 1; transform: scale(1.15); }
.jg-setup-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.jg-count { font-size: .84rem; color: var(--ink-faint); font-weight: 600; }

/* play */
.jg-play { padding: 16px; }
.jg-hud { display: flex; align-items: center; gap: 14px; padding: 4px 6px 12px; }
.jg-ft { flex: 1; }
.jg-ft-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-faint); }
.jg-ft-label b { font-size: 1rem; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.jg-ft-track { height: 10px; border-radius: 99px; background: var(--surface-2); margin-top: 5px; overflow: hidden; }
.jg-ft-fill { height: 100%; width: 70%; border-radius: 99px; background: linear-gradient(90deg,var(--teal-deep),var(--teal)); transition: width .12s linear, background .3s; }
.jg-timer { flex: none; min-width: 52px; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--navy); background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.jg-stage { position: relative; height: min(52vh, 420px); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #f2f7f9, #e5edf2); border: 1px solid var(--line); touch-action: none; cursor: pointer; }
.jg-stage.jg-flash { animation: jgFlash .18s; }
@keyframes jgFlash { 0% { box-shadow: inset 0 0 0 3px rgba(192,73,46,.5); } 100% { box-shadow: inset 0 0 0 3px rgba(192,73,46,0); } }
.jg-stage canvas { width: 100%; height: 100%; display: block; }
.jg-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: .8rem; font-weight: 600; color: var(--ink-faint); background: rgba(255,255,255,.8); padding: 5px 12px; border-radius: 99px; pointer-events: none; transition: opacity .3s; }
.jg-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 5px; padding: 20px 20px; z-index: 3; transition: opacity .35s;
  background: linear-gradient(180deg, rgba(15,30,51,.85) 0%, rgba(15,30,51,.5) 34%, rgba(15,30,51,.08) 60%, rgba(15,30,51,0) 74%); color: #fff; }
.jg-overlay.hide { opacity: 0; pointer-events: none; }
.jg-ov-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.jg-ov-sub { font-size: .84rem; color: rgba(255,255,255,.85); line-height: 1.4; max-width: 32ch; }
.jg-ov-count { margin-top: 4px; font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--teal-bright); font-variant-numeric: tabular-nums; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.jg-taprow { display: flex; align-items: center; justify-content: space-between; padding: 12px 6px 2px; font-size: .84rem; font-weight: 600; color: var(--ink-faint); }
.jg-quit { background: none; border: none; color: var(--ink-faint); font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* result */
.jg-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 20px; }

/* lean result: one dominant number */
.jg-result { text-align: center; }
.jg-result .jg-title { text-align: center; }
.jg-bignum { margin-top: 20px; }
.jg-bignum b { display: block; font-size: clamp(3.4rem, 12vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.jg-bignum span { display: block; margin-top: 8px; font-size: .95rem; color: var(--ink-soft); max-width: 22ch; margin-inline: auto; }
.jg-bignum em { font-style: normal; color: var(--ink); font-weight: 700; }
.jg-ministat { display: flex; justify-content: center; gap: 26px; margin-top: 18px; font-size: .86rem; color: var(--ink-faint); }
.jg-ministat b { color: var(--ink); font-weight: 700; }
.jg-stat { background: var(--surface-2); border-radius: var(--r); padding: 16px 12px; text-align: center; }
.jg-stat b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.jg-stat span { display: block; font-size: .74rem; color: var(--ink-faint); margin-top: 3px; }
.jg-insight { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--teal-deep); background: var(--surface-2); border-radius: 0 var(--r) var(--r) 0; font-size: .96rem; color: var(--ink); }
.jg-gate { margin-top: 20px; background: var(--navy); background-image: var(--grad); border-radius: var(--r-lg); padding: clamp(20px,3vw,28px); color: var(--on-dark); }
.jg-gate.done { background: var(--navy); background-image: var(--grad-glow), var(--grad); }
.jg-gate-head { font-size: 1.1rem; font-weight: 700; color: #fff; }
.jg-gate-sub { font-size: .9rem; color: var(--on-dark-soft); margin-top: 6px; }
.jg-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.jg-form .input:nth-child(1), .jg-form .input:nth-child(4) { grid-column: 1 / -1; }
.jg-fine { font-size: .68rem; color: var(--on-dark-faint); margin-top: 10px; text-align: center; }
.jg-replay { display: block; margin: 16px auto 0; background: none; border: none; color: var(--ink-faint); font-weight: 600; font-size: .86rem; cursor: pointer; }
.jg-reveal-title { color: #fff; font-size: 1.3rem; letter-spacing: -.02em; margin-top: 8px; }
.jg-reveal-sub { color: var(--on-dark-soft); font-size: .95rem; margin-top: 8px; }
.jg-reveal-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
@media (max-width: 480px){ .jg-form { grid-template-columns: 1fr; } .jg-form .input { grid-column: 1 / -1; } .jg-stat b { font-size: 1.25rem; } }

/* band scale (Freedom Score — gives the number meaning) */
.band-scale { position: relative; margin-top: 34px; }
.band-scale .track { position: relative; height: 14px; border-radius: 99px; display: flex; overflow: hidden; }
.band-scale .track i { display: block; height: 100%; }
.band-scale .pin { position: absolute; top: -30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.band-scale .pin b { font-size: .9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; background: var(--ink); color: #fff; padding: 4px 8px; border-radius: 7px; }
.band-scale .pin .tip { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid var(--ink); margin-top: 1px; }
.band-scale .labels { display: flex; margin-top: 12px; }
.band-scale .labels span { font-size: .72rem; color: var(--ink-faint); text-align: center; }
.band-scale .labels span strong { display: block; color: var(--ink-soft); font-size: .76rem; }

/* ============================================================
   GLOBAL RESPONSIVE GRID SAFETY NET
   Many grids set columns via an inline style attribute, which
   overrides class-based rules. These !important media queries
   collapse those inline multi-column grids on tablet & mobile.
   (7-col calendars and auto-fill grids are intentionally excluded.)
   ============================================================ */
@media (min-width: 761px) and (max-width: 1024px) {
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"]:not(.proof-strip),
  [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 760px) {
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"]:not(.proof-strip),
  [style*="grid-template-columns:repeat(5"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:1fr 1.1fr"],
  [style*="grid-template-columns:1.1fr"],
  [style*="grid-template-columns:1.15fr"],
  [style*="grid-template-columns:1.2fr"],
  [style*="grid-template-columns:1.3fr"],
  [style*="grid-template-columns:1.4fr"] {
    grid-template-columns: 1fr !important;
  }
  /* long CTA labels must be able to wrap so they don't blow out grid tracks */
  .btn { white-space: normal; }
}

/* nav click-to-call (re-added after 2.0 content merge) */
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; padding: 8px 10px; border-radius: 8px; }
.nav-phone svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; }
.nav-phone:hover { background: rgba(23,40,65,0.04); }
.nav.dark .nav-phone { color: #fff; }
.nav.dark .nav-phone svg { color: var(--teal-bright); }
@media (max-width: 600px){ .nav-cta .btn-primary { display: none; } }
@media (max-width: 360px){ .nav-phone span { display: none; } }

/* custom blue chat bubble (opens Tawk; Tawk's own launcher hidden) — same size as WhatsApp FAB */
.fab-chat { background: #1D9BF6; color: #fff; border: none; cursor: pointer; }
.fab-chat:hover { background: #1687e0; }
.fab-chat svg { color: #fff; }
