/* Trustline Marketing Website - v4
   Calm, conversion-focused, Tesla-inspired layout with subtle micro-interactions.
   Palette locked:
   Navy #0F172A, Light Gray #F5F7FA, Teal #2F7D6D
*/

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

:root{
  --navy:#0F172A;
  --bg:#F5F7FA;
  --teal:#2F7D6D;

  --white:#FFFFFF;
  --text:#0F172A;
  --text2:#475569;
  --muted:#94A3B8;

  --border:#E2E8F0;
  --border2:#CBD5E1;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.07);

  --radius: 14px;
  --radius-sm: 10px;

  --container: 1120px;
  --pad: 24px;

  --h1: clamp(34px, 4.2vw, 54px);
  --h2: clamp(24px, 2.6vw, 34px);
  --h3: 20px;
  --body: 16px;
  --body-lg: 18px;

  --section: clamp(56px, 7vw, 92px);
}

/* ---------------------------------------------
   Motion + premium micro-interactions
   (kept subtle for conservative audience)
---------------------------------------------- */

@media (prefers-reduced-motion: reduce){
  html:focus-within{ scroll-behavior:auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ambient spotlight (cursor-follow) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  opacity:.65;
  background:
    radial-gradient(520px 420px at 20% 15%, rgba(79, 209, 197, .10), rgba(79, 209, 197, 0) 60%),
    radial-gradient(620px 520px at 78% 24%, rgba(59, 130, 246, .08), rgba(59, 130, 246, 0) 62%),
    radial-gradient(520px 420px at 18% 92%, rgba(16, 185, 129, .06), rgba(16, 185, 129, 0) 60%);
}

/* Keep content above ambient layer */
.page, .header, .drawer, .footer{
  position:relative;
  z-index:1;
}

/* Soft "expensive" hover for cards */
.fx-card{
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  will-change: transform;
}
.fx-card:hover{
  transform: translateY(-3px);
}

/* Magnetic button (very small) */
.btn.fx-magnetic{
  position:relative;
  transform: translate3d(0,0,0);
  will-change: transform;
}

/* Subtle underline sweep for quiet links */
.fx-link{
  position:relative;
  text-decoration:none;
}
.fx-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:1px;
  background: currentColor;
  opacity:.35;
  transform: scaleX(.18);
  transform-origin:left;
  transition: transform .25s ease, opacity .25s ease;
}
.fx-link:hover::after{
  transform: scaleX(1);
  opacity:.55;
}

/* Marquee / ticker polish */
.ticker{
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track{
  will-change: transform;
}

/* Section divider line reveal */
.fx-divider{
  height:1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.18), transparent);
  opacity:.9;
  transform: scaleX(.5);
  transform-origin:center;
}
.reveal.is-visible .fx-divider,
.fx-divider.reveal.is-visible{
  transform: scaleX(1);
  transition: transform .55s ease;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%; height:auto; display:block}
a{color:var(--teal); text-decoration:none}
a:hover{text-decoration:underline; text-underline-offset:3px}
strong{color:var(--text)}
.small{font-size:14px; color:var(--muted)}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text2);
}
.kicker:before{
  content:"";
  width:26px; height:2px;
  background:var(--teal);
  border-radius:2px;
  opacity:.85;
}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--pad);
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.82);
  backdrop-filter:saturate(150%) blur(12px);
  border-bottom:1px solid rgba(226,232,240,0.85);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:74px;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mark{
  display:flex;
  align-items:center;
  text-decoration:none;
  padding:6px 4px;
  border-radius:12px;
}
.brand-name{
  font-weight:650;
  font-size:16px;
  color:var(--navy);
  letter-spacing:.01em;
}
.brand-tag{
  font-size:13px;
  color:var(--text2);
  margin-top:2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{
  font-size:15px;
  color:var(--text2);
  text-decoration:none;
  padding:10px 6px;
  border-radius:10px;
}
.nav a:hover{
  color:var(--navy);
  background:rgba(15,23,42,0.04);
  text-decoration:none;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:500;
  font-size:15px;
  padding:12px 18px;
  border-radius:12px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space:nowrap;
}
.btn:active{transform:translateY(1px)}
.btn-primary{
  background:var(--teal);
  color:var(--white);
  box-shadow:0 10px 26px rgba(47,125,109,0.22);
}
.btn-primary:hover{
  background:#256B5C;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(47,125,109,0.24);
}
.btn-secondary{
  background:transparent;
  border-color:rgba(15,23,42,0.22);
  color:var(--navy);
}
.btn-secondary:hover{
  background:rgba(15,23,42,0.04);
  border-color:rgba(15,23,42,0.30);
  text-decoration:none;
}
/* Alias used in some pages */
.btn-secondary-white{ background:transparent; border-color:rgba(15,23,42,0.22); color:var(--navy); }
.btn-secondary-white:hover{ background:rgba(15,23,42,0.04); border-color:rgba(15,23,42,0.30); text-decoration:none; }

.btn-ghost{
  background:transparent;
  border-color:rgba(226,232,240,0.95);
  color:var(--text2);
}
.btn-ghost:hover{
  background:rgba(15,23,42,0.04);
  color:var(--navy);
  text-decoration:none;
}

.mobile-toggle{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,0.95);
  background:rgba(255,255,255,0.9);
  cursor:pointer;
}
.mobile-toggle svg{width:22px; height:22px; color:var(--navy)}

.drawer{
  position:fixed;
  inset:0;
  display:none;
  z-index:60;
}
.drawer.is-open{display:block}
.drawer-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.45);
}
.drawer-panel{
  position:absolute;
  top:0; right:0;
  height:100%;
  width:min(360px, 92vw);
  background:var(--white);
  border-left:1px solid var(--border);
  padding:18px 18px 26px;
  box-shadow:var(--shadow);
  transform:translateX(0);
}
.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0 10px;
  border-bottom:1px solid var(--border);
  margin-bottom:10px;
}
.drawer-links a{
  display:block;
  padding:14px 10px;
  border-radius:12px;
  color:var(--navy);
  text-decoration:none;
}
.drawer-links a:hover{background:rgba(15,23,42,0.04)}
.drawer-actions{display:grid; gap:10px; padding-top:10px}

main{background:transparent}

section{
  padding:var(--section) 0;
}
.bg-soft{background:var(--bg)}
.bg-white{background:var(--white)}

.hero{
  background:var(--white);
  position:relative;
  overflow:hidden;
  padding:calc(var(--section) + 30px) 0 var(--section);
}
.hero:before{
  content:"";
  position:absolute;
  inset:-20% -10% auto -10%;
  height:420px;
  background:
    radial-gradient(closest-side at 18% 40%, rgba(47,125,109,0.14), transparent 70%),
    radial-gradient(closest-side at 65% 20%, rgba(15,23,42,0.08), transparent 68%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  max-width:820px;
  margin:0 auto;
  text-align:center;
}
.hero h1{
  font-size:var(--h1);
  line-height:1.15;
  font-weight:650;
  margin:16px 0 14px;
  letter-spacing:-0.02em;
  color:var(--navy);
}
.hero p{
  font-size:var(--body-lg);
  color:var(--text2);
  margin:0 auto;
  max-width:680px;
}
.hero-actions{
  margin-top:26px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.hero-note{
  margin-top:16px;
  font-size:14px;
  color:var(--muted);
}

/* Split hero (higher impact above-the-fold) */
.hero--split{
  min-height:100svh;
  padding:clamp(92px, 12vh, 140px) 0 clamp(56px, 9vh, 110px);
}
@supports not (height: 100svh){
  .hero--split{min-height:100vh;}

.hero--split{
  display:flex;
  align-items:stretch;
}
.hero--split .container{
  display:flex;
  flex-direction:column;
  flex:1;
}
.hero--split .hero-layout{
  display:flex;
  flex-direction:column;
  flex:1;
  justify-content:space-between;
  gap:26px;
}
.hero--split .hero-grid{
  flex:1;
}
.hero--split .hero-anchor{
  margin-top:0;
}


}
.hero--split .hero-grid{
  position:relative;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:48px;
  align-items:center;
}
.hero--split .hero-copy{max-width:560px}
.hero--split .hero-copy .kicker{margin-bottom:10px}
.hero--split h1{margin:10px 0 14px}
.hero--split .hero-actions{justify-content:flex-start}
.hero--split .hero-actions .btn{min-width:190px}
.hero--split .hero-chips{
  margin:22px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
  color:var(--text2);
  font-size:15px;
}
.hero--split .hero-chips li{
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.hero--split .hero-chips li:before{
  content:"";
  width:18px;
  height:18px;
  border-radius:999px;
  margin-top:2px;
  background:rgba(47,125,109,0.18);
  border:1px solid rgba(47,125,109,0.35);
  box-shadow:0 0 0 3px rgba(47,125,109,0.08);
}
.hero--split .hero-media{
  justify-self:end;
  width:min(520px, 100%);
}
.hero--split .hero-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
  box-shadow:0 18px 50px rgba(15,23,42,0.18);
  border:1px solid rgba(15,23,42,0.10);
}

@media (max-width: 980px){
  .hero--split .hero-grid{grid-template-columns:1fr; gap:28px}
  .hero--split .hero-copy{max-width:720px}
  .hero--split .hero-actions{justify-content:center}
  .hero--split .hero-media{justify-self:center; width:min(680px, 100%)}
  .hero--split{text-align:center}
  .hero--split .hero-chips{max-width:520px; margin-left:auto; margin-right:auto; text-align:left}
}

.section-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 34px;
}
.section-head h2{
  font-size:var(--h2);
  font-weight:650;
  margin:0 0 12px;
  color:var(--navy);
  letter-spacing:-0.01em;
}
.section-head p{
  margin:0 auto;
  color:var(--text2);
  font-size:16px;
  max-width:680px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 980px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

.grid-2x2{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}
.card{
  background:var(--white);
  border:1px solid rgba(226,232,240,0.95);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:0 1px 0 rgba(15,23,42,0.02);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--text);
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-sm);
  border-color:rgba(203,213,225,0.95);
}
.card h3{
  margin:0 0 10px;
  font-size:18px;
  font-weight:650;
  color:var(--navy);
}
.card p{margin:0; color:var(--text2); font-size:16px}

.steps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  align-items:stretch;
}
.step{
  background:var(--white);
  border:1px solid rgba(226,232,240,0.95);
  border-radius:var(--radius);
  padding:26px;
  position:relative;
}
.step .num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px; height:40px;
  border-radius:12px;
  background:rgba(47,125,109,0.10);
  border:1px solid rgba(47,125,109,0.20);
  color:var(--teal);
  font-weight:650;
  font-size:13px;
  letter-spacing:.08em;
}
.step h3{margin:14px 0 10px; font-size:20px; font-weight:650; color:var(--navy)}
.step p{margin:0; color:var(--text2)}

.narrow{
  max-width:720px;
  margin:0 auto;
  text-align:center;
}
.narrow p{
  font-size:17px;
  color:var(--text2);
  line-height:1.75;
}

.band{
  background:var(--navy);
  color:var(--white);
}
.band .section-head h2{color:var(--white)}
.band .section-head p{color:rgba(148,163,184,0.95)}
.band .btn-secondary{
  border-color:rgba(255,255,255,0.85);
  color:rgba(255,255,255,0.95);
}
.band .btn-secondary:hover{background:rgba(255,255,255,0.10)}

.form{
  max-width:760px;
  margin:0 auto;
  background:var(--white);
  border:1px solid rgba(226,232,240,0.95);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow-sm);
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
.field{display:flex; flex-direction:column; gap:6px}
label{
  font-size:13px;
  color:var(--text2);
  font-weight:500;
}
input, select, textarea{
  font: 400 16px/1.4 Inter, Arial, Helvetica, sans-serif;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,0.95);
  outline:none;
  background:var(--white);
  color:var(--navy);
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea{min-height:120px; resize:vertical}
input:focus, select:focus, textarea:focus{
  border-color:rgba(47,125,109,0.8);
  box-shadow:0 0 0 4px rgba(47,125,109,0.12);
}
.form-actions{margin-top:14px; display:flex; gap:12px; flex-wrap:wrap}

.footer{
  background:var(--navy);
  color:rgba(226,232,240,0.92);
  padding:38px 0 18px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:26px;
  align-items:start;
}
\.footer .mark img{height:56px; width:auto; display:block; opacity:0.98}
.footer-brand .mark{margin-bottom:10px}

.footer .brand-name{color:var(--white)}
.footer a{color:rgba(226,232,240,0.92); text-decoration:none}
.footer a:hover{color:var(--white); text-decoration:underline; text-underline-offset:3px}
.footer h4{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(148,163,184,0.9);
}
.footer p{margin:10px 0 0; color:rgba(148,163,184,0.92)}
.footer-bottom{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid rgba(30,41,59,0.9);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  font-size:13px;
  color:rgba(100,116,139,0.95);
}
.footer-bottom a{color:rgba(100,116,139,0.95)}
.footer-bottom a:hover{color:rgba(148,163,184,0.95)}

.page-hero{
  background:var(--white);
  padding:calc(var(--section) + 14px) 0 40px;
  border-bottom:1px solid rgba(226,232,240,0.9);
}
.page-hero h1{
  margin:0;
  font-size:clamp(28px, 3.4vw, 44px);
  line-height:1.18;
  font-weight:650;
  color:var(--navy);
  letter-spacing:-0.02em;
}
.page-hero p{margin:12px 0 0; color:var(--text2); max-width:720px}

.hr{
  height:1px;
  background:rgba(226,232,240,0.95);
  margin:26px 0;
  border:0;
}

/* Reveal: progressive enhancement (content stays visible if JS fails) */
.reveal{ opacity:1; transform:none; }
html.js .reveal{ opacity:0; transform:translateY(12px); transition:opacity .55s ease, transform .55s ease; }
html.js .reveal.is-visible{ opacity:1; transform:none; }
.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:12px;
  top:12px;
  width:auto;
  height:auto;
  padding:10px 12px;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  z-index:100;
}

@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr}
  .grid-2x2{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .brand{min-width:auto}
  .nav{display:none}
  .mobile-toggle{display:inline-flex; align-items:center; justify-content:center}
  .form-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}







/* =========================================================
   Header and navigation (single source of truth)
   Markup: .header > .container > .navbar > (.brand, .navlinks, .navcta)
========================================================= */

/* Header chrome */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,0.82);
  backdrop-filter:saturate(150%) blur(12px);
  border-bottom:1px solid rgba(226,232,240,0.85);
}

/* Layout */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;
  padding:10px 0;
  gap:16px;
}

/* Brand */
.brand{display:flex; align-items:center; flex-shrink:0}
.brand-mark{display:flex; align-items:center; text-decoration:none; padding:0; border:0; background:none}
\.brand-logo{
  height: clamp(52px, 4.2vw, 64px);
  width:auto;
  display:block;
  max-width:none;
}

/* Nav */
.navlinks{display:flex; align-items:center; gap:18px}
.navlinks a{
  font-size:15px;
  color:var(--text2);
  text-decoration:none;
  padding:10px 8px;
  border-radius:12px;
}
.navlinks a:hover{
  color:var(--navy);
  background:rgba(15,23,42,0.04);
  text-decoration:none;
}

/* Center cluster */
.navlinks--pill{
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .navlinks--pill{
  background:rgba(255,255,255,0.04);
  border-color:rgba(230,237,246,0.12);
}
.navlinks--pill a{ padding:8px 10px; border-radius:999px; }
.navlinks--pill a:hover{ background:rgba(47,125,109,0.10); }

/* Header actions */
.navcta{display:flex; align-items:center; gap:12px}

/* Mobile menu button */
.menu-btn{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid rgba(226,232,240,0.95);
  background:rgba(255,255,255,0.9);
  cursor:pointer;
}
.menu-icon{display:inline-flex; flex-direction:column; gap:5px}
.menu-icon span{display:block; width:20px; height:2px; background:var(--navy); border-radius:2px; opacity:.9}

@media (max-width: 980px){
  .navlinks{display:none}
  .menu-btn{display:inline-flex; align-items:center; justify-content:center}
}
@media (max-width: 520px){
  .navbar{min-height:66px; padding:8px 0}
  .brand-logo{height:46px}
}


/* Theme: light (default) and dark
   - Toggle uses: <html data-theme="dark"> ...
   - Auto respects system preference on first load (JS sets it).
*/
:root{
  --bg-app: var(--white);
  --surface: var(--white);
  --surface-2: var(--bg);
  --text-1: var(--navy);
  --text-2: var(--text);
  --text-3: var(--muted);
  --ring: rgba(47,125,109,.18);
}

/* Soften pure-white in light mode to reduce glare */
body{
  background: #FBFCFE;
}

/* Dark theme variables */
html[data-theme="dark"]{
  color-scheme: dark;
}
html[data-theme="dark"] body{
  background: #0B1222;
}
html[data-theme="dark"] :root{ }

html[data-theme="dark"]{
  --white:#0B1222;
  --bg:#0E162B;
  --navy:#E6EDF6;
  --ink:#E6EDF6;
  --text:#C7D2E3;
  --muted:#9FB0C8;
  --muted2:#B6C3D8;

  --border:rgba(230,237,246,.10);
  --border2:rgba(230,237,246,.16);
  --shadow:0 14px 34px rgba(0,0,0,.35);
}

/* Dark theme component adjustments */
html[data-theme="dark"] .header{
  background: rgba(11,18,34,.74);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .navlinks a:hover{
  background: rgba(230,237,246,.06);
}
html[data-theme="dark"] .menu-btn{
  background: rgba(230,237,246,.04);
}
html[data-theme="dark"] .menu-icon span{
  background: rgba(230,237,246,.72);
}

html[data-theme="dark"] .hero{
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(47,125,109,.18), transparent 60%),
    linear-gradient(180deg, rgba(14,22,43,1), rgba(11,18,34,1));
}
html[data-theme="dark"] .bg-soft{
  background: rgba(14,22,43,1);
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .quote,
html[data-theme="dark"] .form{
  background: rgba(255,255,255,.03);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background: rgba(255,255,255,.04);
  color: var(--navy);
}

html[data-theme="dark"] a{ color: #54B7A4; }
html[data-theme="dark"] .btn-secondary{
  color: rgba(245,247,250,0.92);
  border-color: rgba(230,237,246,0.18);
}
html[data-theme="dark"] .btn-secondary:hover{
  border-color: rgba(230,237,246,.30);
}
html[data-theme="dark"] .band{
  background: #071020;
}
html[data-theme="dark"] .footer{
  background: #071020;
}

/* Theme toggle button */
.theme-btn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:12px;
  background: var(--white);
  cursor:pointer;
}
.theme-btn:hover{
  background: rgba(15,23,42,.04);
}
html[data-theme="dark"] .theme-btn{
  background: rgba(230,237,246,.04);
}


/* ===== Premium overhaul additions ===== */

/* Slightly tighter, more intentional rhythm */
section{ padding: clamp(56px, 7vw, 92px) 0; }
.section-head .subhead{ margin-top: 12px; color: var(--text2); }
.max-720{ max-width: 720px; margin-left:auto; margin-right:auto; }
.max-680{ max-width: 680px; margin-left:auto; margin-right:auto; }


/* Buttons: fix readability */
.btn-primary{
  background: var(--teal);
  color: #F5F7FA !important;
}
.btn-primary:hover{ filter: brightness(1.02); }
.btn:focus{ outline: none; }
.btn:focus-visible{
  box-shadow: 0 0 0 3px rgba(47,125,109,0.35);
}


/* Band section: ensure readable */
.band, .band *{ color: rgba(245,247,250,0.95) !important; }
.band .lead{ color: rgba(245,247,250,0.80) !important; }

/* Problems */
.problem-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 980px){ .problem-grid{ grid-template-columns: 1fr; } }
.problem-card{
  position:relative;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35));
  padding: 20px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.06);
  transform: translateY(0);
  transition: transform .25s ease, box-shadow .25s ease;
}
html[data-theme="dark"] .problem-card{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 44px rgba(0,0,0,0.35);
}
.problem-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(15,23,42,0.10);
}
.problem-icon{
  width: 44px; height: 44px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  color: var(--teal);
  background: rgba(47,125,109,0.10);
  border: 1px solid rgba(47,125,109,0.16);
  margin-bottom: 14px;
}
.problem-icon svg{ width: 24px; height: 24px; }

/* Work carousel */
.work-carousel{
  margin-top: 26px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 20px 60px rgba(15,23,42,0.08);
  overflow: hidden;
}
html[data-theme="dark"] .work-carousel{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}
.work-track{ display:flex; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.work-slide{
  min-width: 100%;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: clamp(18px, 2.5vw, 28px);
  align-items:center;
}
@media (max-width: 980px){ .work-slide{ grid-template-columns:1fr; } }
.work-media{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: linear-gradient(180deg, rgba(15,23,42,0.04), rgba(15,23,42,0));
  padding: 16px;
}
html[data-theme="dark"] .work-media{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}
.work-media svg{ width:100%; height:auto; color: var(--navy); }
html[data-theme="dark"] .work-media svg{ color: rgba(245,247,250,0.92); }
.work-copy h3{ margin-top: 6px; }
ul.tight{ margin: 14px 0 0; padding-left: 18px; }
ul.tight li{ margin: 6px 0; color: var(--text2); }

.work-controls{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(15,23,42,0.10);
}
html[data-theme="dark"] .work-controls{ border-top-color: rgba(230,237,246,0.10); }
.work-btn{
  background: transparent;
  border: 1px solid rgba(15,23,42,0.18);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor:pointer;
}
html[data-theme="dark"] .work-btn{
  border-color: rgba(230,237,246,0.16);
  color: rgba(245,247,250,0.90);
}
.work-dots{ display:flex; gap: 10px; }
.dot{
  width: 9px; height: 9px;
  border-radius: 99px;
  border: 1px solid rgba(15,23,42,0.25);
  background: transparent;
  cursor:pointer;
}
html[data-theme="dark"] .dot{ border-color: rgba(230,237,246,0.25); }
.dot.is-active{ background: var(--teal); border-color: var(--teal); }

/* AI split */
.ai-split{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(18px, 3vw, 44px);
  align-items:start;
}
@media (max-width: 980px){ .ai-split{ grid-template-columns:1fr; } }
.section-head.left{ text-align:left; margin-bottom: 18px; }
.ai-point{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.45);
  padding: 16px;
}
html[data-theme="dark"] .ai-point{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}
.ai-point p{ margin: 8px 0 0; color: var(--text2); }
.ai-panel{
  border-radius: 18px;
  border: 1px solid rgba(47,125,109,0.22);
  background: linear-gradient(180deg, rgba(47,125,109,0.10), rgba(15,23,42,0.02));
  padding: 20px;
}
html[data-theme="dark"] .ai-panel{
  border-color: rgba(47,125,109,0.28);
  background: rgba(255,255,255,0.03);
}
.ai-badges{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 14px; }
.badge{
  border: 1px solid rgba(47,125,109,0.25);
  background: rgba(47,125,109,0.10);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}

/* About card (removes annoying highlight look) */
.about-card{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(18px, 3vw, 44px);
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 22px 70px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .about-card{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 24px 78px rgba(0,0,0,0.42);
}
@media (max-width: 980px){ .about-card{ grid-template-columns:1fr; } }
.about-copy p{ color: var(--text2); margin-top: 12px; }
.about-actions{ margin-top: 18px; }

/* Page hero */
.page-hero .kicker{ letter-spacing:.12em; }
.page-hero{ padding-top: clamp(70px, 9vw, 120px); }

/* Resources + accordion */
.resource-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
@media (max-width: 980px){ .resource-grid{ grid-template-columns:1fr; } }
.resource-card{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  padding: 20px;
  box-shadow: 0 18px 54px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .resource-card{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}
.link{ color: var(--teal); text-decoration:none; font-weight:600; }
.link:hover{ text-decoration:underline; }

.accordion{ max-width: 860px; margin: 0 auto; }

/* Questions page wrapper */
.faq-card{
  max-width: 920px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
}
.faq-card .accordion{
  max-width: none;
}

.acc-item{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  overflow:hidden;
  margin-bottom: 14px;
}
html[data-theme="dark"] .acc-item{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}
.acc-btn{
  width:100%;
  text-align:left;
  padding: 16px 18px;
  background: transparent;
  border:0;
  cursor:pointer;
  font-weight: 600;
  color: var(--text);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.acc-btn:after{
  content:"+";
  opacity:.7;
}
.acc-item.is-open .acc-btn:after{ content:"–"; opacity:.9; }
.acc-panel{
  max-height: 0;
  overflow:hidden;
  transition: max-height .35s cubic-bezier(.2,.8,.2,1);
}
.acc-panel p{
  padding: 0 18px 16px;
  margin: 0;
  color: var(--text2);
}

/* Smooth reveal */
/* Reveal: progressive enhancement (content stays visible if JS fails) */
.reveal{ opacity:1; transform:none; }
html.js .reveal{ opacity:0; transform:translateY(12px); transition:opacity .55s ease, transform .55s ease; }
html.js .reveal.is-visible{ opacity:1; transform:none; }
[data-stagger] > *{ opacity:0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
[data-stagger].is-visible > *{ opacity:1; transform: translateY(0); }




/* ==============================
   Homepage: Challenge ticker
============================== */
.challenge-ticker{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.70);
}
html[data-theme="dark"] .challenge-ticker{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}

.challenge-ticker:before,
.challenge-ticker:after{
  content:"";
  position:absolute;
  top:0; bottom:0;
  width: 90px;
  pointer-events:none;
  z-index: 2;
}
.challenge-ticker:before{ left:0; background: linear-gradient(90deg, rgba(245,247,250,1), rgba(245,247,250,0)); }
.challenge-ticker:after{ right:0; background: linear-gradient(270deg, rgba(245,247,250,1), rgba(245,247,250,0)); }
html[data-theme="dark"] .challenge-ticker:before{ background: linear-gradient(90deg, rgba(15,23,42,1), rgba(15,23,42,0)); }
html[data-theme="dark"] .challenge-ticker:after{ background: linear-gradient(270deg, rgba(15,23,42,1), rgba(15,23,42,0)); }

.ticker-track{
  display:flex;
  gap: 14px;
  padding: 14px;
  width: max-content;
  will-change: transform;
  animation: tickerScroll 48s linear infinite;
}
.challenge-ticker:hover .ticker-track{ animation-play-state: paused; }

@keyframes tickerScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

.ticker-item{
  min-width: 320px;
  max-width: 340px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.75);
}
html[data-theme="dark"] .ticker-item{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.04);
}

.ticker-head{
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ticker-sub{
  margin-top: 6px;
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.35;
}

.ticker-item.is-top{
  border-color: rgba(47,125,109,0.35);
  background: rgba(47,125,109,0.06);
  position: relative;
  padding-right: 120px;
}

.ticker-item.is-top:after{
  content: "Most common";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0F172A;
  background: rgba(47,125,109,0.18);
}
html[data-theme="dark"] .ticker-item.is-top:after{
  color: rgba(245,247,250,0.92);
  background: rgba(47,125,109,0.22);
}

@media (prefers-reduced-motion: reduce){
  .ticker-track{ animation: none; }
}

/* ==============================
   Logo sizing normalization
   (logo PNG was cropped, so we size by height)
============================== */
.header .brand-mark img{
  height: 44px !important;
  width: auto !important;
  max-width: 220px !important;
}

.footer .mark img,
footer .mark img{
  height: 34px !important;
  width: auto !important;
  max-width: 200px !important;
  display:block;
}

@media (max-width: 520px){
  .header .brand-mark img{ height: 38px !important; }
}


/* Text link (used to avoid competing CTAs) */
.text-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  color:var(--navy);
  text-decoration:none;
  border-bottom:1px solid rgba(15,23,42,0.28);
  padding-bottom:2px;
}
.text-link:hover{border-bottom-color:rgba(15,23,42,0.55)}
.text-link--inverse{color:var(--white); border-bottom-color:rgba(245,247,250,0.35)}
.text-link--inverse:hover{border-bottom-color:rgba(245,247,250,0.6)}

/* Hero refinements */
/* Hero layout fills the full first screen with useful structure */
.hero--split .hero-grid{
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 4vw, 64px);
}

.hero--split .lead{max-width: 560px;}

.hero--split .hero-system{
  margin:18px 0 8px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
.hero--split .sys-item{
  position:relative;
  background:rgba(15,23,42,0.03);
  border:1px solid rgba(15,23,42,0.08);
  border-radius:14px;
  padding:12px 12px;
}
.hero--split .sys-title{
  font-weight:650;
  color:var(--navy);
  font-size:13px;
  letter-spacing:-0.01em;
}
.hero--split .sys-sub{
  margin-top:4px;
  color:var(--text2);
  font-size:12.5px;
  line-height:1.3;
}
.hero--split .sys-item:not(:last-child):after{
  content:"";
  position:absolute;
  top:50%;
  right:-10px;
  width:20px;
  height:2px;
  background:linear-gradient(90deg, rgba(47,125,109,0.55), rgba(47,125,109,0.10));
  transform:translateY(-50%);
  pointer-events:none;
  opacity:.9;
}

.hero--split .hero-media{
  width:min(640px, 100%);
  display:flex;
  flex-direction:column;
  gap:14px;
}

.hero--split .hero-media-card{
  position:relative;
  border-radius:22px;
  padding:14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:0 22px 60px rgba(15,23,42,0.22);
}
.hero--split .hero-media-card img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
}

.hero--split .hero-badges-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.hero--split .badge{
  font-size:12px;
  font-weight:650;
  color:rgba(245,247,250,0.92);
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.14);
  padding:7px 10px;
  border-radius:999px;
  letter-spacing:0.01em;
}

.hero--split .hero-proof{
  display:grid;
  gap:10px;
}
.hero--split .proof-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  background:rgba(245,247,250,0.90);
  border:1px solid rgba(15,23,42,0.10);
  border-radius:16px;
  padding:16px 16px;
  box-shadow:0 12px 30px rgba(15,23,42,0.12);
}

.hero--split .proof-mark{
  width:10px;
  height:10px;
  margin-top:5px;
  border-radius:999px;
  background:rgba(47,125,109,0.22);
  border:1px solid rgba(47,125,109,0.45);
  box-shadow:0 0 0 4px rgba(47,125,109,0.10);
  flex:0 0 auto;
}
.hero--split .proof-text{min-width:0}
.hero--split .proof-title{
  font-weight:700;
  color:rgba(15,23,42,0.95);
  font-size:14px;
  letter-spacing:-0.01em;
}
.hero--split .proof-sub{
  margin-top:6px;
  color:rgba(15,23,42,0.72);
  font-size:13px;
  line-height:1.45;
}

.hero--split .hero-anchor{
  margin-top:26px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,0.08);
  background:linear-gradient(180deg, rgba(245,247,250,0.55), rgba(245,247,250,0.35));
}
.hero--split .anchor-item{
  font-size:13px;
  color:var(--text2);
  text-align:center;
  flex:1;
}
.hero--split .anchor-item:not(:last-child){
  border-right:1px solid rgba(15,23,42,0.08);
  padding-right:10px;
}
.hero--split .anchor-item:not(:first-child){
  padding-left:10px;
}

@media (max-width: 980px){
  .hero--split .hero-system{grid-template-columns:1fr;}
  .hero--split .sys-item:not(:last-child):after{display:none;}
  .hero--split .hero-media{justify-self:center;}
  .hero--split .hero-anchor{
    flex-direction:column;
    align-items:stretch;
    text-align:left;
  }
  .hero--split .anchor-item{
    text-align:left;
    border-right:0 !important;
    padding:0 !important;
  }
}
.hero--split .hero-copy{max-width: 560px;}
.hero--split .hero-actions{display:flex; align-items:center; gap:18px; flex-wrap:wrap;}
.hero--split .btn{min-width: 220px;}
.hero--split .hero-chips{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
}
.hero--split .hero-chips li{
  background:rgba(15,23,42,0.04);
  border:1px solid rgba(15,23,42,0.08);
  border-radius:14px;
  padding:14px 14px;
  font-size:14px;
  line-height:1.35;
}
@media (max-width: 860px){
  .hero--split{padding:clamp(88px, 10vh, 120px) 0 72px;}
  .hero--split .hero-grid{grid-template-columns:1fr; gap:28px;}
  .hero--split .hero-chips{grid-template-columns:1fr;}
  .hero--split .btn{min-width: 0; width:100%;}
  .hero--split .hero-actions{gap:12px;}
}

.drawer-cta{display:flex; flex-direction:column; gap:12px;}
.drawer-cta .text-link{justify-content:center; width:100%;}


/* ==============================
   Services page polish
============================== */
/* Services hero (unique layout) */
.svc-hero{
  padding: 44px 0 28px;
  position: relative;
}
.svc-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(46,123,109,0.18), transparent 55%),
    radial-gradient(780px 520px at 82% 12%, rgba(14,35,74,0.24), transparent 60%),
    linear-gradient(180deg, rgba(15,23,42,0.10), rgba(15,23,42,0.00));
  pointer-events:none;
}
.svc-hero .container{ position:relative; }

.svc-hero__top{
  max-width: 760px;
}
.svc-hero__top h1{
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}
.svc-hero__top .lead{
  max-width: 70ch;
}
.svc-hero__cta{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 16px;
}
.svc-hero__cta .hero-link{
  color: var(--text2);
  text-decoration:none;
  font-weight: 600;
}
.svc-hero__cta .hero-link:hover{ color: var(--text1); }

.svc-hero__grid{
  display:grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: start;
  margin-top: 22px;
}

.svc-hero__rail{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.rail-card{
  padding: 14px 14px 13px;
}
.rail-title{
  font-weight: 750;
  letter-spacing: -0.01em;
}
.rail-sub{
  color: var(--text2);
  margin-top: 4px;
  line-height: 1.45;
}
.rail-note{
  margin-top: 6px;
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.5;
  padding-left: 2px;
}

.svc-hero__media .media-stack{
  position: relative;
  min-height: 320px;
}
.svc-hero__media figure{ margin: 0; }

.media-main{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 22px 70px rgba(15,23,42,0.18);
}
.media-main img{
  width:100%;
  height: 320px;
  object-fit: cover;
  display:block;
}
.media-side{
  position:absolute;
  width: 52%;
  max-width: 280px;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.12);
  box-shadow: 0 18px 54px rgba(15,23,42,0.16);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}
.media-side img{
  width:100%;
  height: 150px;
  object-fit: cover;
  display:block;
}
.media-side--a{ right: -6px; top: 18px; }
.media-side--b{ right: 16px; bottom: -10px; width: 48%; }

.svc-hero__bar{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.svc-hero__bar .bar-item{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  color: var(--text2);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.01em;
}

@media (max-width: 980px){
  .svc-hero__grid{ grid-template-columns: 1fr; }
  .svc-hero__media .media-stack{ min-height: 0; }
  .media-main img{ height: 280px; }
  .media-side{ position: relative; width: 100%; max-width: none; right:auto; top:auto; bottom:auto; margin-top: 12px; }
  .media-side img{ height: 170px; }
}

html[data-theme="dark"] .svc-hero::before{
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(46,123,109,0.18), transparent 55%),
    radial-gradient(780px 520px at 82% 12%, rgba(14,35,74,0.32), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.00));
}
html[data-theme="dark"] .media-main,
html[data-theme="dark"] .media-side{
  border-color: rgba(230,237,246,0.10);
  box-shadow: 0 22px 70px rgba(0,0,0,0.44);
}
html[data-theme="dark"] .svc-hero__bar .bar-item{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}

/* Services section media cards */
.svc-media__card{
  overflow:hidden;
  border-radius: 20px;
}
.svc-media__card img{
  width:100%;
  height: 240px;
  object-fit: cover;
  display:block;
}
.svc-media__cap{
  padding: 10px 12px 12px;
  color: var(--text2);
  font-size: 13px;
}

.hero--services .hero-media{ gap: 18px; }
.hero--services .svc-media img{ object-position: 55% 35%; }

.svc-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 18px 54px rgba(15,23,42,0.08);
  justify-content:center;
  position: sticky;
  top: calc(var(--header-h, 72px) + 14px);
  z-index: 2;
  backdrop-filter: blur(10px);
}
html[data-theme="dark"] .svc-nav{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}

.svc-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.70);
  color: var(--text);
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
html[data-theme="dark"] .svc-pill{
  border-color: rgba(230,237,246,0.12);
  background: rgba(255,255,255,0.05);
}
.svc-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15,23,42,0.10);
}

.svc-sections{ margin-top: 26px; }
.svc-block{ padding-top: 26px; }
.svc-block + .svc-block{ margin-top: 26px; border-top: 1px solid rgba(15,23,42,0.08); padding-top: 44px; }
html[data-theme="dark"] .svc-block + .svc-block{ border-top-color: rgba(230,237,246,0.08); }

.svc-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items:start;
}
.svc-grid--flip{ grid-template-columns: 0.95fr 1.05fr; }
.svc-grid--flip .svc-copy{ order: 2; }
.svc-grid--flip .svc-media{ order: 1; }

.svc-copy h3{ margin: 10px 0 10px; }
.svc-copy .small{ color: var(--text2); }

.svc-media{
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 18px 54px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .svc-media{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}


/* Services: media images (use <img> to avoid background parsing/caching issues) */
.svc-img-media{
  width: 100%;
  height: 220px;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  object-fit: cover;
  background: rgba(255,255,255,0.45);
}
html[data-theme="dark"] .svc-img-media{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}

/* Services: paired detail cards */
.svc-duo{
  align-items: stretch;
}
.svc-duo .card{
  height: 100%;
  position: relative;
  padding-top: 20px;
}
.svc-duo .card .kicker{
  letter-spacing: .12em;
}
.svc-duo .card:before{
  content:"";
  position:absolute;
  left:18px;
  top:14px;
  width: 34px;
  height: 2px;
  background: rgba(47,125,109,0.55);
  border-radius: 99px;
}
html[data-theme="dark"] .svc-duo .card:before{
  background: rgba(47,125,109,0.65);
}

.svc-img{
  height: 220px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background:
    radial-gradient(800px 260px at 20% 10%, rgba(47,125,109,0.22), transparent 55%),
    radial-gradient(760px 260px at 80% 40%, rgba(15,23,42,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.60), rgba(255,255,255,0.35));
  overflow:hidden;
  position:relative;
}
/* Services: duo cards should only show the kicker rule (avoid double teal lines) */
.svc-duo .card:before{content:none;}

html[data-theme="dark"] .svc-img{
  border-color: rgba(230,237,246,0.10);
  background:
    radial-gradient(800px 260px at 20% 10%, rgba(47,125,109,0.16), transparent 55%),
    radial-gradient(760px 260px at 80% 40%, rgba(230,237,246,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.svc-img:after{
  content:"";
  position:absolute; inset:0;
  background-size: cover;
  background-position: 55% 30%;
  opacity: .92;
  filter: saturate(.95) contrast(1.05);
  transform: scale(1.02);
}
.svc-img--maps:after{ background-image: url("../img/services-tax-u1.jpg"); background-position: 50% 30%; }
.svc-img--site:after{ background-image: url("../img/services-hero-u1.jpg"); background-position: 55% 38%; }
.svc-img--ads:after{ background-image: url("../img/services-city.png"); background-position: 50% 40%; opacity: .80; }
.svc-img--report:after{ background-image: url("../img/services-content-u1.jpg"); background-position: 60% 40%; }



.svc-mini{ margin-top: 14px; display:grid; grid-template-columns:1fr 1fr; gap: 12px; }
.mini-card{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 14px 44px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .mini-card{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 18px 62px rgba(0,0,0,0.38);
}
.mini-title{ font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.mini-sub{ margin-top: 6px; color: var(--text2); font-size: 14px; line-height: 1.35; }

.svc-timeline{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.55);
  box-shadow: 0 18px 54px rgba(15,23,42,0.08);
}
html[data-theme="dark"] .svc-timeline{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
}
.tl-step{
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(255,255,255,0.65);
  padding: 14px;
}
html[data-theme="dark"] .tl-step{
  border-color: rgba(230,237,246,0.10);
  background: rgba(255,255,255,0.03);
}
.tl-title{ font-weight: 800; }
.tl-sub{ margin-top: 6px; color: var(--text2); font-size: 14px; line-height: 1.35; }

@media (max-width: 920px){
  .svc-grid, .svc-grid--flip{ grid-template-columns: 1fr; }
  .svc-grid--flip .svc-copy{ order: 1; }
  .svc-grid--flip .svc-media{ order: 2; }
  .svc-nav{ position: static; }
  .svc-timeline{ grid-template-columns: 1fr; }
}



/* Services page: keep premium styling after Tracking + Reporting */
.svc-block--alt{
  position: relative;
  background: linear-gradient(180deg, rgba(15,23,42,0.04), transparent 65%);
  border-top: 1px solid rgba(15,23,42,0.06);
}
.svc-block--alt2{
  position: relative;
  background: linear-gradient(180deg, rgba(47,125,109,0.06), transparent 70%);
  border-top: 1px solid rgba(15,23,42,0.06);
}

.svc-cadence-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}
.svc-cadence-copy{ min-width: 0; }
.svc-bullets{
  display: grid;
  gap: 12px;
}
.bullet{
  padding: 14px 14px;
}
.bullet-title{
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.bullet-sub{ color: var(--muted); font-size: 0.98rem; }

.svc-cadence-media{
  padding: 14px;
}
.svc-media-caption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.grid-3 .card{ height: 100%; }

.svc-img--cadence{
  height: 220px;
  border-radius: 14px;
  background-image:
    linear-gradient(135deg, rgba(15,23,42,0.10), rgba(47,125,109,0.08)),
    url('./../img/services-content-u1-u12.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

.svc-img--guard{
  height: 220px;
  border-radius: 14px;
  background-image:
    linear-gradient(135deg, rgba(15,23,42,0.10), rgba(47,125,109,0.08)),
    url('./../img/services-tax-u1-u11.jpg');
  background-position: center, center;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}


@media (max-width: 980px){
  .svc-cadence-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .svc-img--cadence, .svc-img--guard{ height: 200px; }
}


/* Utility spacing */
.mt-12{ margin-top:12px; }
.mt-24{ margin-top:24px; }

/* Services visuals */
.svc-guard-visual .svc-img{ height: 220px; border-radius: 14px; }


/* Services: Guardrails visual card formatting */
.svc-guard-visual .svc-media-frame{
  margin-top:14px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.18);
  background: rgba(15,23,42,0.22);
}
.svc-guard-visual .svc-img-media{
  display:block;
  width:100%;
  height:180px;
  object-fit:cover;
}
.svc-guard-visual ul{
  margin-top:14px;
}



/* =========================
   Page heroes (non-home)
   ========================= */
.page-hero{
  padding: calc(var(--section) + 10px) 0 var(--section);
}
.page-hero__grid{
  display:grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(22px, 4vw, 44px);
  align-items:center;
}
.page-hero__copy .kicker{ margin-bottom: 10px; }
.page-hero__copy h1{ max-width: 18ch; }
.page-hero__copy .lead{ max-width: 56ch; }
.page-hero__actions{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-top: 22px;
}
.page-hero__actions .link{
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.page-hero__rail{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 18px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(236,244,255,0.92);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.chip:before{
  content:"";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(47,125,109,0.92);
  box-shadow: 0 0 0 3px rgba(47,125,109,0.18);
}
.page-hero__media{
  position:relative;
}
.media-frame{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,16,30,0.48);
  box-shadow: 0 30px 60px rgba(0,0,0,0.28);
  overflow:hidden;
}
.media-frame img{
  display:block;
  width:100%;
  height:auto;
}
.media-caption{
  margin-top: 12px;
  color: rgba(198,211,236,0.78);
  font-size: 13px;
}

/* Legal / docs pages */
.page-doc{
  padding-top: 26px;
}
.doc-layout{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items:start;
}
.doc-toc{
  position: sticky;
  top: 92px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  padding: 16px;
}
.doc-toc h3{
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(198,211,236,0.82);
  margin: 0 0 10px;
}
.doc-toc a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration:none;
  color: rgba(236,244,255,0.90);
}
.doc-toc a:hover{
  background: rgba(255,255,255,0.05);
}
@media (max-width: 960px){
  .page-hero__grid{ grid-template-columns: 1fr; }
  .doc-layout{ grid-template-columns: 1fr; }
  .doc-toc{ position:relative; top:auto; }
}

/* Resources filter pills */
.filter-pills{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}
.filter-pill{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: rgba(236,244,255,0.90);
  text-decoration:none;
  font-size: 13px;
}
.filter-pill.is-active{
  border-color: rgba(47,125,109,0.55);
  background: rgba(47,125,109,0.10);
}

/* Search input */
.searchbar{
  margin-top: 18px;
  display:flex;
  gap: 10px;
}
.searchbar input{
  width: min(560px, 100%);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(10,16,30,0.42);
  color: rgba(236,244,255,0.95);
  outline:none;
}
.searchbar input::placeholder{ color: rgba(198,211,236,0.65); }


/* Process steps (details timeline) */
.steps{ display:grid; gap:12px; margin-top:18px; }
.step{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(148,163,184,0.22);
  border-radius:16px;
  padding:14px 16px;
}
.step summary{
  list-style:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  outline:none;
}
.step summary::-webkit-details-marker{ display:none; }
.step-time{
  font-size:12px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:rgba(148,163,184,0.95);
  white-space:nowrap;
}
.step-title{
  font-size:16px;
  font-weight:650;
  color:rgba(226,232,240,0.98);
  flex:1;
}
.step[open]{ background:rgba(255,255,255,0.045); }
.step-body{ padding-top:10px; }
.step-body ul{ margin:0; padding-left:18px; color:rgba(226,232,240,0.9); }
.step-body li{ margin:6px 0; }
.resource-note{
  margin-top:10px;
  font-size:13px;
  color:rgba(148,163,184,0.95);
}



/* Process flow (Process page) */
.process-flow{ margin-top: 26px; }
.flow-track{
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  align-items: stretch;
}
.flow-step{
  text-align: left;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.flow-step:hover{ transform: translateY(-2px); border-color: rgba(47,125,109,0.45); }
.flow-step.is-active{
  background: rgba(47,125,109,0.10);
  border-color: rgba(47,125,109,0.65);
}
.flow-chip{
  display: inline-block;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.flow-title{
  display:block;
  font-weight: 650;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}
.flow-note{
  display:block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
.flow-line{
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -10px;
  height: 2px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.flow-line::after{
  content:"";
  display:block;
  height: 100%;
  width: 100%;
  background: rgba(47,125,109,0.75);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s ease;
}
.process-flow.is-visible .flow-line::after{ transform: scaleX(1); }

.flow-panels{
  margin-top: 22px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  padding: 18px 18px 8px;
}
.flow-panel{ display:none; }
.flow-panel.is-active{ display:block; }

@media (max-width: 980px){
  .flow-track{ grid-template-columns: 1fr; }
  .flow-line{ display:none; }
}


.form-status{margin-top:10px; font-size:14px; line-height:1.4}
.form-status.is-ok{color:var(--teal)}
.form-status.is-err{color:var(--red)}


/* --------- premium hero ambient (subtle + stable) --------- */
.page-hero,
.hero{
  position: relative;
  overflow: clip;
}
.page-hero::before,
.hero::before{
  content:"";
  position:absolute;
  inset:-40px;
  pointer-events:none;
  background:
    radial-gradient(520px 420px at 18% 30%, rgba(47,125,109,.14), rgba(47,125,109,0) 60%),
    radial-gradient(520px 420px at 78% 70%, rgba(15,23,42,.10), rgba(15,23,42,0) 60%);
  filter: blur(2px);
  opacity: .9;
  transform: translate3d(0,0,0);
}
.page-hero::after,
.hero::after{
  content:"";
  position:absolute;
  inset:-60px;
  pointer-events:none;
  background:
    radial-gradient(520px 420px at 30% 75%, rgba(47,125,109,.10), rgba(47,125,109,0) 60%);
  opacity:.75;
  transform: translate3d(0,0,0);
  animation: heroAmbient 10s ease-in-out infinite alternate;
}
@keyframes heroAmbient{
  from{ transform: translate3d(-10px, -6px, 0); opacity: .66; }
  to{ transform: translate3d(10px, 8px, 0); opacity: .88; }
}
@media (prefers-reduced-motion: reduce){
  .page-hero::after,
  .hero::after{ animation: none; }
}


/* --------- readability guardrails ---------
   Prevent accidental white text on light backgrounds.
*/
.surface-light{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  color: var(--text);
}
.surface-light h1,
.surface-light h2,
.surface-light h3,
.surface-light strong{
  color: var(--navy);
}
:root.dark .surface-light{
  background: rgba(2,6,23,.35);
  border-color: rgba(255,255,255,.10);
  color: var(--white);
}
:root.dark .surface-light h1,
:root.dark .surface-light h2,
:root.dark .surface-light h3,
:root.dark .surface-light strong{
  color: var(--white);
}


/* --------- premium hero layout (shared) --------- */
.audit-hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:center;
}
.audit-eyebrow{
  letter-spacing:.10em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--text2);
  margin:0 0 10px;
}
.audit-title{
  margin:0 0 12px;
  line-height:1.06;
}
.audit-lede{
  margin:0 0 18px;
  max-width: 60ch;
  color:var(--text);
  opacity:.92;
}
.audit-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 0 0 16px;
}
.audit-hero-media img{
  width:100%;
  height:auto;
  display:block;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
}
:root.dark .audit-hero-media img{
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

@media (max-width: 900px){
  .audit-hero-grid{ grid-template-columns: 1fr; }
}


/* Surfaces should always carry readable text */
.surface-1, .surface-2{
  color: var(--text);
}
.surface-1 h1, .surface-1 h2, .surface-1 h3,
.surface-2 h1, .surface-2 h2, .surface-2 h3,
.surface-1 strong, .surface-2 strong{
  color: var(--navy);
}
:root.dark .surface-1, :root.dark .surface-2{
  color: var(--white);
}
:root.dark .surface-1 h1, :root.dark .surface-1 h2, :root.dark .surface-1 h3,
:root.dark .surface-2 h1, :root.dark .surface-2 h2, :root.dark .surface-2 h3,
:root.dark .surface-1 strong, :root.dark .surface-2 strong{
  color: var(--white);
}
