/* =========================================
   THEME VARIABLES & CONFIGURATION
   ========================================= */
:root {
  /* --- CURRENT PERMANENT THEME: MARINE DEPTH --- */
  
  --rgb-bg: 23, 42, 71;          /* #172a47 (Requested Marine Blue) */
  --rgb-bg2: 18, 33, 56;         /* Slightly darker shade for gradients */
  
  /* CARDS: Darker than BG to create that "contrast inside" */
  --rgb-card: 13, 24, 41;        /* Deepest Blue */
  --rgb-card2: 23, 42, 71;       /* Gradients back to main color */
  
  /* Section override: Needs to be darker to anchor the page */
  --bg-dark-section: #0b1424;    /* Very dark contrast for footer/partnership */
  
  --rgb-stroke: 60, 90, 140;     /* Lighter Blue borders to define edges */
  
  /* Blobs: Adjusted to be visible on the mid-blue background */
  --blob-a: rgba(100, 200, 255, 0.20);
  --blob-b: rgba(50, 100, 255, 0.15); 
  --blob-c: rgba(100, 200, 255, 0.10);

  /* --- SHARED CONSTANTS --- */
  --rgb-accent: 14, 165, 233;    /* Sky 500 */
  --rgb-accent-2: 56, 189, 248;  
  
  --rgb-text: 255, 255, 255;
  --rgb-text-inv: 255, 255, 255;
  
  --bg: rgb(var(--rgb-bg));
  --bg2: rgb(var(--rgb-bg2));
  --card: rgb(var(--rgb-card));
  --card2: rgb(var(--rgb-card2));
  
  --gold: rgb(var(--rgb-accent)); 
  --gold2: rgb(var(--rgb-accent-2));
  
  --text: rgb(var(--rgb-text));
  --text-inverse: rgb(var(--rgb-text-inv));
  
  --muted: rgba(var(--rgb-text), .85);
  --muted2: rgba(var(--rgb-text), .65);

  --stroke: rgba(var(--rgb-stroke), .45); /* Increased opacity for visibility */
  --strokeGold: rgba(var(--rgb-accent), .55);

  --shadow: 0 18px 65px rgba(0,0,0,.55);
  --shadowSoft: 0 10px 35px rgba(0,0,0,.45);

  --r: 16px;
  --r2: 22px;

  --max: 1120px;
  --navH: 76px;

  --fontH: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --fontB: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;

  --min: 16px;
}

/* =========================================
   BASE STYLES
   ========================================= */

*{box-sizing:border-box;margin:0;padding:0}

/* GLOBAL SCROLL FIX: prevent horizontal scroll overflow on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

html{scroll-behavior:smooth;scroll-padding-top:var(--navH)}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fontB);
  font-size: var(--min);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  
  /* FIX: Push content down so it doesn't hide behind fixed header */
  padding-top: var(--navH); 
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}

/* Background blobs (soft glow) */
.bg-blob{
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 999px;
  filter: blur(120px);
  opacity: .45;
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}
.bg-blob--a{left:-220px;top:-240px;background: radial-gradient(circle, var(--blob-a), transparent 60%)}
.bg-blob--b{right:-260px;top:140px;background: radial-gradient(circle, var(--blob-b), transparent 62%)}
.bg-blob--c{left:10%;bottom:-320px;background: radial-gradient(circle, var(--blob-c), transparent 62%)}

/* Header */
.header{
  position: fixed; /* Changed from sticky to fixed to guarantee it stays top */
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  /* Updated to match the Alternate Dark Section color (#0b1424) but with slight transparency */
  background: rgba(11, 20, 36, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(var(--rgb-stroke),.4);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header__inner{
  height: var(--navH);
  display:flex;
  align-items: center; /* Enforce vertical center */
  justify-content:space-between;
  gap: 16px;
}

/* Brand Container: Clean Flex Row */
.brand{
  font-family: var(--fontH);
  font-weight: 700;
  letter-spacing: .02em;
  display:flex;
  align-items: center; /* Centers Icon and Text block vertically */
  gap: 10px;           /* Space between Raccoon Icon and Text */
  line-height: 1;      /* Removes loose vertical space */
  text-decoration: none;
  font-size: 22px;
}

.brand__icon {
    width: auto;
    height: 32px; /* Fixed height for stability */
    display: block;
    transform: none;
}

.brand__text {
    display: flex;
    gap: 5px;
    align-items: baseline;
    position: relative;
    top: 0;
    /* Micro-fix: Fonts often sit 1px low visually. A tiny lift aligns it. */
    transform: translateY(-1px);
}

.brand__logo--accent{color: var(--gold)}

.nav{
  display:flex;
  gap: 8px; /* was 22px */
  align-items:center;
}

.nav__link{
  color: rgba(var(--rgb-text),.72);
  font-size: 16px;
  padding: 10px 8px; /* Balanced padding */
  position: relative;
  white-space: nowrap; /* Prevents line breaks */
  line-height: 1;      /* Matches brand line-height */
  display: inline-flex;
  align-items: center;
}

.nav__link:hover{color: rgba(var(--rgb-text),.94)}
.nav__link::after{
  content:"";
  position:absolute;
  left: 4px;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transition: width .18s ease;
}
.nav__link--active::after{width: 22px}

.header__right{display:flex;gap: 10px;align-items:center}

.burger{
  display: none;
  align-items: center;
  justify-content: center;
  height: 44px;            /* match visual height */
  width: 44px;
  padding: 0;              /* remove inherited padding */
  margin-left: 10px;
  border-radius: 10px;
  border: 1px solid rgba(var(--rgb-stroke),.3);
  background: rgba(var(--rgb-stroke),.1);

}
.burger span{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  display:block;
  margin: 0 auto;
  position: relative;
  line-height:1;
}
.burger span::before,.burger span::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;height:2px;background:var(--text);border-radius:999px;
}
.burger span::before{top:-6px}
.burger span::after{top:6px}

/* Mobile menu */
.mobile{
  display:none;
  border-bottom: 1px solid rgba(var(--rgb-stroke),.4);
  background: rgba(var(--rgb-bg),.95);
  position: fixed; /* Ensures mobile menu is fixed too */
  top: var(--navH);
  left: 0;
  right: 0;
  z-index: 39;
}
.mobile__inner{padding: 16px 22px; display:grid; gap: 10px}
.mobile__link{color: rgba(var(--rgb-text),.86); padding: 8px 0; font-size: 16px}
.mobile__cta{margin-top: 4px}
.mobile--open{display:block}

/* Typography */
.h1,.h2,.h3{
  font-family: var(--fontH);
  letter-spacing: .01em;
}
.h1{
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.05;
  font-weight: 700;
}
.h2{
  font-size: clamp(28px, 3.0vw, 38px);
  line-height: 1.12;
  font-weight: 700;
}
.h3{
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}
.hl{color: var(--gold)}
.lead{font-size: 18px; color: var(--text);margin-top:8px}
.p{font-size: 16px; padding-top:12px;color: var(--text)}
.muted{color: var(--muted2)}
.link{color: var(--gold); text-decoration: underline; text-underline-offset: 4px}

i.fa-solid{
  font-size: 1em;
  vertical-align: middle;
}
p.centered{text-align:center;}

/* Icon colors */
.card__icon i, 
.flow__circle i { color: var(--gold); }

/* Buttons */
.btn{
  font-size: 16px;
  border-radius: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(var(--rgb-stroke),.3);
  background: rgba(var(--rgb-stroke),.1);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  color: var(--text);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--shadowSoft)}
.btn--primary{
  background: var(--gold);
  border-color: rgba(var(--rgb-bg),.08);
  color: var(--text-inverse); /* Handles white/black text logic */
  font-weight: 700;
}
.btn--primary:hover{background: var(--gold2)}
.btn--ghost{color: rgba(var(--rgb-text),.90)}
.btn--wide{width:100%}

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(var(--rgb-card),.95), rgba(var(--rgb-card2),.95));
  box-shadow: var(--shadowSoft);
  border-radius: var(--r2);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.card--gold{
  border: 2px solid rgba(var(--rgb-accent),.5); /* Stronger border for blue theme */
  box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset, var(--shadowSoft);
}

/* Sections */
/* Added a very subtle divider per request */
.section{
    padding: 36px 0; 
    position: relative; 
    z-index: 1;
}
.section--tight{padding-top: 60px;}
.section__head{max-width: 760px; margin-bottom: 24px;}
.section__head--center{margin-left:auto;margin-right:auto;text-align:center}

/* Hero */
.hero{padding: 36px 0 36px; position: relative; z-index: 1;}
.hero__grid{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: 26px;
  align-items: start;
}
.kicker{
  font-size: 16px;
  color: rgba(var(--rgb-text),.9);
  margin-bottom: 10px;
  font-weight:900;
}

.checks{
  margin: 16px 0 18px;
  display:grid;
  gap: 10px;
  list-style: none;
  color: rgba(var(--rgb-text),.82);
  font-size: 16px;
}
.checks li{
  position: relative;
  padding-left: 22px;
}
.checks li::before{
  content:"✓";
  color: var(--gold);
  position:absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.hero__cta{display:flex; gap: 10px; flex-wrap: wrap; margin-top: 10px}
.hero__subnote{
  margin-top: 14px;
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted2);
  font-size: 16px;
}
.dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(var(--rgb-accent),.35);
}

/* Right side frame placeholder */
.frame{
  border-radius: var(--r2);
  border: 1px solid rgba(var(--rgb-accent),.35);
  background: rgba(var(--rgb-bg2),.6);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.frame__top{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(var(--rgb-stroke),.10);
  display:flex;
  gap: 10px;
  align-items:center;
}
.frame__pill{
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--rgb-stroke),.06);
  border: 1px solid rgba(var(--rgb-stroke),.10);
}
.frame__pill--muted{color: var(--muted2)}
.frame__body{padding: 16px}
.frame__placeholder{
  height: 160px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: rgba(var(--rgb-text),.55);
  background: rgba(var(--rgb-stroke),.04);
  border: 1px dashed rgba(var(--rgb-stroke),.18);
  font-size: 16px;
}

/* Metrics grid */
.metrics{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.metric{padding: 20px 14px}
.metric__label{font-size: 16px; font-weight:900; color: var(--muted)}
.metric__value{
  font-family: var(--fontH);
  font-size: 24px;
  font-weight: 700;
  margin-top: 6px;
}
.metric__hint{font-size: 16px; color: var(--muted); margin-top: 6px}

.mini-links{
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:flex-end;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}
.mini-links__link{color: var(--gold)}
.mini-links__link:hover{text-decoration: underline; text-underline-offset: 4px}

/* Grids */
/* ABOUT cards – tidy */
.cardHead{
  display:flex;
  align-items:center;
  gap: 12px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;                 /* a bit more breathing room */
  align-items: stretch;      /* equal height cards */
}

.grid-3 .card{
  padding: 20px 22px;        /* consistent padding */
  border-radius: var(--r2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;         /* keeps them visually even */
}

/* Replace the square icon box with a compact badge row */
.card__icon{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(var(--rgb-accent),.08);
  border: 1px solid rgba(var(--rgb-accent),.28);
  color: var(--gold);
  font-weight: 900;

  margin-bottom: 2px;        /* tighter than before */
}

/* Slightly tighter headings and better contrast */
.grid-3 .h3{
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}

.grid-3 .p{
  margin-top: 2px;
  color: var(--muted);
}

/* Optional: subtle inner highlight for premium feel */
.grid-3 .card.card--gold{
  background:
    radial-gradient(140% 120% at 10% 0%, rgba(var(--rgb-accent),.08), transparent 55%),
    linear-gradient(180deg, rgba(var(--rgb-card),.88), rgba(var(--rgb-card2),.88));
}

/* ABOUT: add a right-side media slot without changing structure */
#about .section__head{
  display: grid;
  grid-template-columns: 2fr 1fr;   /* ← THIS is the key change */
  column-gap: 32px;
  align-items: start;
  max-width:none;
  width:auto;
  line-height:1.65;
}

/* Keep heading and paragraph in the left column */
#about .section__head .h2,
#about .section__head .p{
  grid-column: 1;
}

/* Media goes in the right column */
#about .aboutMedia{
  grid-column: 2;
  grid-row: 1 / span 2;              /* sit alongside both h2 + p */
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

/* Image styling */
#about .aboutMedia img{
  max-width: 100%;
  max-height: 360px;     /* optional, tweak if needed */
  object-fit: contain;
}


/* MOBILE: Revert to simple text only (Graphic Hidden) */
@media (max-width: 980px) {
  #about .section__head {
    display: block; /* Standard block layout */
  }

  /* Reset widths */
  #about .section__head .h2,
  #about .section__head .p {
    width: auto;
    grid-column: auto;
  }

  /* Hide the graphic on mobile (Rollback state) */
  #about .aboutMedia {
    display: none; 
  }
}

/* MOBILE: Disable Grid, Enable Float */
@media (max-width: 980px) {
  #about .section__head {
    display: block; /* Disable grid */
  }

  /* Reset grid widths so text fills screen */
  #about .section__head .h2,
  #about .section__head .p {
    width: auto;
    grid-column: auto;
    grid-row: auto;
  }

  /* Float the image right so text wraps around it */
  #about .aboutMedia {
    display: block;
    float: right;
    width: 120px;            /* Constrained width */
    margin: 4px 0 10px 20px; /* Spacing: Top, Right, Bottom, Left */
    clear: right;
  }

  #about .aboutMedia img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}


/* Big cards */
.bigcards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bigcard{padding: 22px}
.bigcard__top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.bigcard__title{
  font-family: var(--fontH);
  font-size: 20px;
  font-weight: 700;
}
.bigcard__emoji{
  width: 44px;height:44px;
  border-radius: 14px;
  display:flex;align-items:center;justify-content:center;
  background: rgba(var(--rgb-accent),.10);
  border: 1px solid rgba(var(--rgb-accent),.30);
  font-size: 22px;
}
.bigcard__try{
  margin-top: 14px;
  color: var(--muted2);
  font-size: 16px;
}
.bigcard__tryLink{color: var(--gold); font-weight: 700}

.bigcard__emoji i{
  font-size: 20px;
  color: var(--gold);
  opacity: .95;
}

/* Flow (illustration) */
.flow{padding: 22px}
.flow__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.flow__step{min-width: 160px; flex: 1 1 160px; text-align:center}
.flow__circle{
  width: 94px;
  height: 94px;
  border-radius: 26px;
  margin: 0 auto 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 40px;
  background: rgba(var(--rgb-accent),.10);
  border: 1px solid rgba(var(--rgb-accent),.30);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.flow__label{
  font-size: 16px;
  color: rgba(var(--rgb-text),.86);
  font-weight: 700;
}
.flow__arrow{
  font-size: 34px;
  color: rgba(var(--rgb-text),.42);
  padding: 0 4px;
}
.flow__return{
  margin-top: 18px;
  text-align:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-accent),.30);
  background: rgba(var(--rgb-accent),.10);
  color: rgba(var(--rgb-text),.90);
  font-size: 16px;
  letter-spacing: .02em;
}

/* ===== Retargeting model (spiced up, deck-inspired) ===== */
.flowV2{
  padding: 22px 22px 18px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

/* subtle inner glow so it doesn’t feel flat */
.flowV2::before{
  content:"";
  position:absolute;
  inset:-80px -60px auto auto;
  width: 360px;
  height: 240px;
  background: radial-gradient(circle at 40% 40%, rgba(var(--rgb-accent),.16), transparent 65%);
  filter: blur(20px);
  opacity: .65;
  pointer-events:none;
}

.flowV2__row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.flowV2__step{
  min-width: 170px;
  flex: 1 1 170px;
  text-align:center;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background: rgba(var(--rgb-stroke),.03);
  border: 1px solid rgba(var(--rgb-stroke),.10);
}


.flowV2__badge{
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(var(--rgb-accent),.10);
  border: 1px solid rgba(var(--rgb-accent),.30);
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
}

.flowV2__badge i{
  font-size: 48px;
  color: rgba(var(--rgb-text),.86);
}

/* Override tints for Blue Theme consistency */
/* 1. Visitor: Gold (Opportunity/Money) */
.flowV2__badge--1 { 
    background: rgba(255, 200, 0, 0.12); 
    border-color: rgba(255, 200, 0, 0.4); 
}
.flowV2__badge--1 i { color: rgb(255, 200, 0, 0.75); }

/* 2. Enters: Blue (Neutral Action) - Kept existing for flow harmony */
.flowV2__badge--2 {
    background: rgba(58,160,255,.12); 
    border-color: rgba(58,160,255,.30);
}

/* 3. Leaves: Muted Coral (Alert/Loss) - Professional warning color */
.flowV2__badge--3 { 
    background: rgba(248, 113, 113, 0.12); 
    border-color: rgba(248, 113, 113, 0.4); 
}
.flowV2__badge--3 i { color: rgb(248, 113, 113, 0.75); }

/* 4. Impact: Teal (Solution) - Kept existing */
.flowV2__badge--4 {
    background: rgba(0,255,200,.15); 
    border-color: rgba(0,255,200,.45);
}

.flowV2__label{
  font-size: 16px;
  font-weight: 700;
  color: rgba(var(--rgb-text),.90);
}

.flowV2__chev{
  color: rgba(var(--rgb-text),.35);
  font-size: 20px;
  padding: 0 6px;
}

/* dashed arc like the slide */
.flowV2__arc{
  width: 100%;
  height: 120px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.flowV2__arc path{
  fill: none;
  stroke: rgba(var(--rgb-stroke),.28);
  stroke-width: 3;
  stroke-dasharray: 10 10;
}
.flowV2__arcArrow{
  stroke-dasharray: none !important;
  stroke: rgba(var(--rgb-stroke),.28);
  stroke-width: 3;
}

/* teal return banner (deck-inspired) */
.flowV2__return{
  margin-top: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(rgb(47 204 113 / 60%), rgb(47 204 113 / 50%));
  color: rgba(255,255,255,.92); /* Text inside colored box should stay white */
  font-size: 18px;
  font-weight:900;
  letter-spacing: .02em;
  position: relative;
  z-index: 1;
}

.flowV2__returnIcon{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,255,200,.14);
  border: 1px solid rgba(0,255,200,.22);
}

.flowV2__returnIcon i{
  font-size: 30px;
  color: currentColor;
}

@media (max-width: 720px){
  .flowV2__chev{display:none;}
  .flowV2__arc{display:none;}
  .flowV2__step{min-width: 150px;}
}
@media (max-width: 720px){

  .flowV2__return{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
  }

  .flowV2__returnIcon{
    flex: 0 0 44px;      /* prevents squeezing */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .flowV2__returnIcon i{
    font-size: 18px;
    line-height: 1;
  }
  .flowV2__step{
    flex: 1 1 140px;
  }
}
/* Desktop connector between cards */
.flowV2__connector{
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(var(--rgb-text),.30);
  font-size: 18px;
  padding: 0 6px;
}

/* Timeline wrapper (used for mobile line) */
.flowV2__timeline{
  position: relative;
  z-index: 1;
}

/* ===== Mobile: turn it into a connected vertical story ===== */
@media (max-width: 720px){

  /* Stack the flow vertically */
  .flowV2__row{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Step cards spacing */
  .flowV2__step{
    margin-bottom: 10px;
  }

  /* Turn connectors into centered DOWN arrows */
  .flowV2__connector{
    width: 100%;
    height: 24px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    box-shadow: none;
    padding-bottom:10px;
  }

  /* Rotate arrow and center it */
  .flowV2__connector i{
    transform: rotate(90deg);
    font-size: 18px;
    color: rgba(var(--rgb-text),.45);
  }

  /* Remove any desktop positioning */
  .flowV2__connector{
    position: static;
  }
}

/* Cases */
.summary{
  padding: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}
.summary__item{padding: 10px; border-radius: 14px; background: rgba(var(--rgb-stroke),.03); border: 1px solid rgba(var(--rgb-stroke),.08)}
.summary__k{font-size: 16px; color: var(--muted2)}
.summary__v{font-size: 18px; font-weight: 700; margin-top: 6px}

.cases{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.case{padding: 18px}
.case__head{display:flex; justify-content:space-between; gap: 10px; align-items:flex-start}
.case__title{font-family: var(--fontH); font-size: 20px; font-weight: 700}
.case__meta{font-size: 16px; color: var(--muted2); margin-top: 4px}
.tag{
  font-size: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(var(--rgb-accent),.35);
  background: rgba(var(--rgb-accent),.12);
  color: rgba(var(--rgb-text),.92);
}
.case__grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
/* ===== Case studies (visual cards v2) ===== */
.legend{
  display:flex;
  gap: 14px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  color: var(--muted2);
  font-size: 16px;
}
.legend__item{display:flex;align-items:center;gap:8px}

.dot--eu{background:#3aa0ff}
.dot--na{background:#d64bd6}
.dot--as{background:#2ecc71}
.dot--af{background:#f5a623}

/* 2x2 grid with better spacing */
.casesV2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.caseV2{
  padding: 18px 18px 16px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(var(--rgb-stroke),.06), transparent 55%),
    linear-gradient(180deg, rgba(var(--rgb-bg),.78), rgba(var(--rgb-bg2),.90));
}

.caseV2__icon{
  font-size: 18px;
  opacity: .55;
  transform: translateY(1px);
}

/* Optional: region-tinted icons */
.caseV2--eu .caseV2__icon{ color:#3aa0ff; }
.caseV2--na .caseV2__icon{ color:#ff4bd6; }
.caseV2--as .caseV2__icon{ color:#2ecc71; }
.caseV2--af .caseV2__icon{ color:#f5a623; }

.caseV2__topbar{
  position:absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  height: 4px;
  border-radius: 999px;
  opacity: .95;
}
.caseV2--eu .caseV2__topbar{background: linear-gradient(90deg, #3aa0ff, #00d4ff)}
.caseV2--na .caseV2__topbar{background: linear-gradient(90deg, #ff4bd6, #7b61ff)}
.caseV2--as .caseV2__topbar{background: linear-gradient(90deg, #2ecc71, #00d4ff)}
.caseV2--af .caseV2__topbar{background: linear-gradient(90deg, #f5a623, #fac800)}

.caseV2__head{
  padding-top: 10px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.caseV2__titleRow{display:flex;align-items:center;gap:10px}
.caseV2__title{
  font-family: var(--fontH);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.caseV2__globe{
  opacity: .55;
  font-size: 18px;
  transform: translateY(1px);
}

.caseV2__badge{
  margin-top: 8px;
  display:inline-flex;
  align-items:center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid rgba(var(--rgb-stroke),.10);
  background: rgba(var(--rgb-stroke),.04);
  color: rgba(var(--rgb-text),.72);
}
.caseV2__badge--mature{color: rgba(46, 204, 113, .95); border-color: rgba(46,204,113,.25); background: rgba(46,204,113,.08)}
.caseV2__badge--launch,.caseV2__badge--early{color: rgba(255, 75, 214, .95); border-color: rgba(255,75,214,.22); background: rgba(255,75,214,.08)}
.caseV2__badge--growth{color: rgba(255, 136, 0, .95); border-color: rgba(255,136,0,.25); background: rgba(255,136,0,.08)}

.caseV2__metricLabel{
  margin-top: 10px;
  font-size: 16px;
  color: rgba(var(--rgb-text),.46);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.caseV2__big{
  margin-top: 6px;
  font-family: var(--fontH);
  font-size: 46px;
  line-height: 1.0;
  font-weight: 700;
}

.caseV2__divider{
  height: 1px;
  background: rgba(var(--rgb-stroke),.08);
  margin: 16px 0 14px;
}

.caseV2__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
/* Two primary metrics side-by-side */
.caseV2__hero2{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.heroStat__k{
  font-size: 16px;
  color: rgba(var(--rgb-text),.46);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.heroStat__v{
  margin-top: 8px;
  font-family: var(--fontH);
  font-size: 44px;          /* same “hero” weight */
  line-height: 1.0;
  font-weight: 700;
  color: rgba(var(--rgb-text),.92);
}

/* The single stat row */
.caseV2__solo{
  display:block;
}

.mini--solo .mini__v{
  font-size: 24px;          /* calmer than hero stats */
}

/* On small screens, stack hero stats */
@media (max-width: 520px){
  .caseV2__hero2{
    grid-template-columns: 1fr;
  }
  .heroStat__v{
    font-size: 40px;
  }
}
/* ===== Licenses / certificates ===== */
.certs{
  padding: 20px;
  border-radius: 22px;
  text-align: center;
}

.certs__kicker{
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--rgb-text),.46);
  margin-bottom: 18px;
}

.certs__grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-items: center;
}

.cert{
  width: 100%;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(var(--rgb-stroke),.10);
  background: rgba(var(--rgb-stroke),.03);
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cert__icon{
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(var(--rgb-accent),.28);
  background: rgba(var(--rgb-accent),.08);
}

.cert__icon i{
  font-size: 36px;
  opacity: .9;
}
.cert__icon .fa-google {color:#ffb400}
.cert__icon .fa-globe {color:#7294eb}
.cert__icon .fa-cloud {color:#f63}
.cert__icon .fa-lock {color:#00c600}

.cert__name{
  font-family: var(--fontH);
  font-size: 18px;
  font-weight: 700;
  color: rgba(var(--rgb-text),.90);
}

.cert__sub{
  font-size: 16px;
  color: rgba(var(--rgb-text),.52);
}

.certs__note{
  margin-top: 16px;
  font-size: 16px;
  color: rgba(var(--rgb-text),.52);
}

@media (max-width: 980px){
  .certs__grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
  /* Mobile: Specific cert padding */
  .cert { padding: 8px 8px; }
}
@media (max-width: 520px){
  .certs__grid{grid-template-columns: 1fr;}
}

.mini__k{
  font-size: 16px;
  color: rgba(var(--rgb-text),.52);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.mini__v{
  margin-top: 6px;
  font-family: var(--fontH);
  font-size: 22px;
  font-weight: 700;
  color: rgba(var(--rgb-text),.92);
}

.caseV2__progress{
  margin-top: 14px;
}
.caseV2__progressRow{
  display:flex;
  align-items:baseline;
  justify-content: space-between;
  gap: 10px;
  color: rgba(var(--rgb-text),.62);
  font-size: 16px;
}
.caseV2__progressValue{
  font-family: var(--fontH);
  color: rgba(var(--rgb-text),.92);
  font-size: 18px;
  font-weight: 700;
}

.bar{
  margin-top: 10px;
  height: 8px;
  background: rgba(var(--rgb-stroke),.10);
  border-radius: 999px;
  overflow:hidden;
}
.bar__fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
}

.caseV2--eu .bar__fill{background: linear-gradient(90deg, #3aa0ff, #00d4ff)}
.caseV2--na .bar__fill{background: linear-gradient(90deg, #ff4bd6, #7b61ff)}
.caseV2--as .bar__fill{background: linear-gradient(90deg, #2ecc71, #00d4ff)}
.caseV2--af .bar__fill{background: linear-gradient(90deg, #f5a623, #fac800)}

@media (max-width: 980px){
  .legend{justify-content:flex-start}
  .casesV2{grid-template-columns: 1fr}
}


.kv{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-stroke),.10);
  background: rgba(var(--rgb-stroke),.03);
}
.kv__k{font-size: 16px; color: var(--muted2)}
.kv__v{font-family: var(--fontH); font-size: 22px; font-weight: 700; margin-top: 6px}

.note{
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted2);
}

/* Table (block table) */
.table{padding: 18px}
.table__head{
  display:grid;
  grid-template-columns: 0.85fr 1.1fr 1.1fr;
  gap: 10px;
  padding: 18px 16px 20px;
  align-items:center;
  
}
.table__colTitle{
  text-align:center;
  font-family: var(--fontH);
  font-size: 18px;
  font-weight: 700;
}
.table__colTitle--new{color: rgba(var(--rgb-text),.92)}
.table__colTitle--old{color: rgba(var(--rgb-text),.86)}

/* Column-level backgrounds for comparison table */
.table{
  position: relative;
  overflow: hidden;
}

/* New tech column background */
.table::before{
  content:"";
  position:absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events:none;
  z-index: 0;
  background:
    linear-gradient(
      to right,
      transparent 0%,
      transparent 28%,
      rgba(46, 204, 113, 0.08) 28%,
      rgba(46, 204, 113, 0.08) 64%,
      rgba(245, 166, 35, 0.10) 64%,
      rgba(245, 166, 35, 0.10) 100%
    );
}
.table > *{
  position: relative;
  z-index: 1;
}

.techCol{
  display: inline-flex;
  align-items: center;                 /* key fix */
  gap: 10px;
  line-height: 1;                      /* prevents baseline drift */
  font-size: 18px;
  font-weight: 600;
}
.techCol i{
  font-size: 18px;                     /* same visual size as text */
  line-height: 1;
  position: relative;
  top: -1px;                           /* tiny optical correction */
}

.techCol--new i{
  color:#2ecc71;
}

.techCol--old i{
  color:#f5a623;
}

.trow{
  display:grid;
  grid-template-columns: 0.85fr 1.1fr 1.1fr;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(var(--rgb-stroke),.10);
}
.trow__k{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  font-size:16px;
  opacity:.85;
  justify-content: flex-start;
  padding-right: 6px;
  color: var(--muted)
}
.trow__k i{
  font-size:16px;
  opacity:.85;
  min-width:16px;
}
.trow__v{
  font-size: 16px;
  text-align:center;
  padding: 4px; /* was 10px*/
}
.table__head .techCol--new{
  color: rgba(46,204,113,.95);
}

.table__head .techCol--old{
  color: rgba(245,166,35,.95);
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 16px;
  font-weight: 700;
  margin-right: 8px;
}
.pill--good{
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.30);
  color: rgba(var(--rgb-text),.92);
}
.pill--bad{
  background: rgba(250,200,0,.12);
  border: 1px solid rgba(250,200,0,.35);
  color: rgba(var(--rgb-text),.92);
}

/* Tech table: make mobile readable */
@media (max-width: 780px){

  /* Reduce padding a bit */
  .table{ padding: 14px; }

  .table::before{
    display:none;
  }
  
  /* Hide the wide header row on mobile */
  .table__head{ display:none; }

  /* Each row becomes its own “comparison card” */
  .trow{
    grid-template-columns: 1fr;   /* stack */
    gap: 10px;
    padding: 14px 10px;
  }

  /* Row title */
  .trow__k{
    justify-content: flex-start;
    text-align: left;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(var(--rgb-stroke),.08);
  }

  /* Value blocks become full-width cards */
  .trow__v{
    text-align: left;
    padding: 12px 12px;
  }

  /* Add labels above each value block */
  .trow__v--new::before,
  .trow__v--old::before{
    display:block;
    font-size: 14px;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: .75;
  }

  .trow__v--new::before{
    content: "Our retargeting tech";
    color: rgba(46,204,113,.95);
  }

  .trow__v--old::before{
    content: "Legacy retargeting tech";
    color: rgba(245,166,35,.95);
  }

  /* Slight tinting per column */
  .trow__v--new{
    border: 1px solid rgba(46,204,113,.22);
    background: rgba(46,204,113,.06);
  }

  .trow__v--old{
    border: 1px solid rgba(245,166,35,.22);
    background: rgba(245,166,35,.06);
  }
}

/* References */
/* ===== References carousel ===== */
#references{
  --refs-bg: var(--bg);
}

.refs{
  position: relative;
  margin-top: 10px;
}
.refs__viewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 0 2px;
}

.refs__track{
  display: flex;
  gap: 16px;
  padding: 6px 6px 10px;
}

/* Card sizing: ~2.5 visible on desktop */
.refCard{
  scroll-snap-align: start;
  flex: 0 0 42%;
  padding: 18px 18px 16px 60px;
  position: relative;
  min-height: 180px;
}

/* Quotation mark */
.refCard__quote{
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 54px;
  line-height: 1;
  color: rgba(var(--rgb-accent), 0.28);
  pointer-events: none;
}

/* Quote text */
.refCard__text{
  margin: 18px 0 14px;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: rgba(var(--rgb-text),.78);
}

/* Name + title */
.refCard__who{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--rgb-stroke),.08);
}
.refCard__name{
  font-weight: 700;
  font-size: 16px;
  color: rgba(var(--rgb-text),.92);
}
.refCard__title{
  margin-top: 2px;
  font-size: 14px;
  color: rgba(var(--rgb-text),.55);
}

/* Nav arrows */
.refs__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-accent),.22);
  background: rgba(var(--rgb-bg2),.72);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(var(--rgb-text),.85);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  cursor: pointer;
  z-index: 2;
}

.refs__nav:hover{
  background: rgba(var(--rgb-bg2),.86);
}

.refs__nav--left{ left: -10px; }
.refs__nav--right{ right: -10px; }

.refs__nav i{
  font-size: 18px;
  line-height: 1;
}
/* --- References: show scrollbar + nicer track --- */
.refs__viewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  /* show scrollbar (Firefox) */
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--rgb-stroke),.25) rgba(var(--rgb-stroke),.06);

  /* create safe areas so arrows never overlap content */
  padding: 8px 56px 14px 56px; /* left/right space for arrows */
}

/* show scrollbar (WebKit) */
.refs__viewport::-webkit-scrollbar{
  height: 10px;
}
.refs__viewport::-webkit-scrollbar-track{
  background: rgba(var(--rgb-stroke),.06);
  border-radius: 999px;
}
.refs__viewport::-webkit-scrollbar-thumb{
  background: rgba(var(--rgb-stroke),.22);
  border-radius: 999px;
}
.refs__viewport::-webkit-scrollbar-thumb:hover{
  background: rgba(var(--rgb-stroke),.30);
}

/* Track spacing (keep) */
.refs__track{
  display: flex;
  gap: 16px;
  padding: 6px 6px 10px;
}

/* --- Put arrows inside the safe padding --- */
.refs__nav--left{ left: 10px; }
.refs__nav--right{ right: 10px; }

/* --- Fade overlays (right + left) --- */
.refs{
  position: relative;
}

/* fades should NOT block clicks on arrows */
.refs::before,
.refs::after{
  content:"";
  position:absolute;
  top: 6px;
  bottom: 18px;
  width: 72px;
  border-radius: 18px;
  pointer-events: none;
  z-index: 1; /* below arrows which are z-index:2 */
}

/* left fade */
.refs::before{
  left: 0;
  background: linear-gradient(90deg,
    var(--bg) 0%,
    rgba(var(--rgb-bg),.65) 55%,
    rgba(var(--rgb-bg),0) 100%
  );
}

/* right fade */
.refs::after{
  right: 0;
  background: linear-gradient(270deg,
    var(--bg) 0%,
    rgba(var(--rgb-bg),.70) 55%,
    rgba(var(--rgb-bg),0) 100%
  );
}
/* default: both fades visible */
.refs::before,
.refs::after{
  opacity: 1;
  transition: opacity .15s ease;
}

/* hide fades based on scroll position */
/* #references .refs.is-at-start::before{ opacity: 0; }*/
#references .refs.is-at-end::after{ opacity: 0; }
/* Make sure arrows are above fades */
.refs__nav{
  z-index: 2;
}
.refs__viewport.is-dragging{
  cursor: grabbing;
}
.refs__viewport{
  cursor: grab;
}
/* Hide right arrow when at end */
#references .refs.is-at-end .refs__nav--right{
  opacity: 0;
  pointer-events: none;
}

/* (Optional symmetry) hide left arrow at start */
#references .refs.is-at-start .refs__nav--left{
  opacity: 0;
  pointer-events: none;
}

/* Smooth transition */
.refs__nav{
  transition: opacity .15s ease;
}
/* Desktop: keep snap (nice for arrows) */
.refs__viewport{
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Mobile: free scrolling (no snapping / “clicking” into place) */
@media (max-width: 900px){
  #references .refs__viewport{
    scroll-snap-type: none;
  }
  #references .refCard{
    scroll-snap-align: none;
  }
}
@media (max-width: 900px){
  .refCard{ flex-basis: 110%; }  /* big cards, easy to swipe */
  .refs__nav{
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    opacity: .95;
  }
  .refs__nav--left{ left: 6px; }
  .refs__nav--right{ right: 6px; }

  /* add side padding so arrows don’t cover text */
  .refs__viewport{
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* Contact */
.contact{
  display:grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items:start;
}
.people{display:grid; gap: 12px}
.person{display:flex; gap: 12px; align-items:center; padding: 14px}
.avatar{
  width: 40px;              /* adjust if needed */
  height: 40px;
  border-radius: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.person__name{font-family: var(--fontH); font-size: 18px; font-weight: 700}
.person__handle{font-size: 16px; color: var(--muted2)}
.person__contacts{
  display: flex;
  gap: 14px;           /* horizontal spacing only */
  margin-top: 6px;    /* reduced vertical spacing */
}

.person__contacts a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  padding: 0;         /* remove extra click padding */
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.person__contacts a:hover{
  opacity: 0.85;
  transform: translateY(-1px);
}

.person__contacts i{
  font-size: 24px;    /* bigger icons */
}

/* FORM SPACING FIX: Use parent gap for consistent spacing everywhere */
.form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px; /* Controls vertical space between Rows and standalone Fields */
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px; /* Controls space between fields (horizontal on desk, vertical on mob) */
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0; /* Remove old margin to let .form/.row gap handle it */
}

label{font-size: 16px; color: var(--muted2); font-weight: 700;padding: 0px 2px;}
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--rgb-stroke),.14);
  background: rgba(var(--rgb-stroke),.04);
  color: rgba(var(--rgb-text),.92);
  font-size: 16px;
}
textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder{color: rgba(var(--rgb-text),.45)}
input:focus, textarea:focus{
  outline: none;
  border-color: rgba(var(--rgb-accent),.45);
  box-shadow: 0 0 0 4px rgba(var(--rgb-accent),.10);
}
.form__foot{margin-top: 10px; font-size: 16px; color: var(--muted2)}

/* Footer */
.footer{
  padding: 20px 0 36px;
  border-top: 1px solid rgba(var(--rgb-stroke),.08);
  background: rgba(var(--rgb-bg2),.55);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--muted2);
}

/* Responsive */
/* Replaces previous media queries scattered in the file */
@media (max-width: 1160px){
  /* Adjust container padding slightly earlier */
  .container {
    padding: 0 16px;
  }
  
  /* Shrink nav items slightly before mobile break */
  .nav__link {
    font-size: 15px;
    padding: 8px 6px; 
  }

  /* Hide main nav and header buttons */
  .nav{display:none}
  .header__right .header-btn{display:none}
  
  /* Show burger */
  .burger{display:inline-flex}
}

@media (max-width: 560px){
  .summary{grid-template-columns: 1fr}
  .form__row{grid-template-columns: 1fr}
  .flow__arrow{display:none}
  .flow__step{min-width: 140px}
}


/* =========================================
   RESPONSIVE & MOBILE REORDERING
   ========================================= */

@media (max-width: 980px){
  /* 1. Standard Layout Adjustments */
  .hero__grid{grid-template-columns: 1fr}
  /* Mobile Hero Padding reduced (from 48px to 24px) */
  .hero { padding-top: 24px; }
  
  .mini-links{justify-content:flex-start}
  .grid-3, .bigcards{grid-template-columns: 1fr}
  .cases{grid-template-columns: 1fr}
  .summary{grid-template-columns: 1fr 1fr}
  
  /* 2. CONTACT SECTION: Reorder to Form First, People Second */
  .contact {
    grid-template-columns: 1fr; /* Stack vertically (full width) */
  }
  
  /* 3. Hide certs grid slightly earlier if needed */
  .certs__grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
  
  /* About graphic for mobile: show smaller version */
  #about .aboutMedia {
    display: flex; 
    justify-content: center;
    margin-top: 20px;
  }
  #about .aboutMedia img {
    height: 140px; /* Constrain height */
    width: auto;
    object-fit: contain;
  }
}

/* MOBILE: Switch to Float Layout */
@media (max-width: 980px) {
  #about .section__head {
    display: block; /* Disable grid so float works */
  }

  #about .aboutMedia {
    display: block;
    float: right;          /* Pushes image to the right */
    width: 90px;          /* Small size */
    margin: 15px 0 0 5px; /* Spacing: Top Right Bottom Left */
    clear:right;
  }

  #about .aboutMedia img {
    height: auto;
    width: 100%;
    max-height: none;
  }
}
/* =========================================
   MOBILE ABOUT GRAPHIC (FLOAT FIX)
   ========================================= */

/* Default: Hide the mobile specific container */
.aboutMedia--mobile {
  display: none;
}

/* Mobile: Toggle layouts */
@media (max-width: 980px) {
  
  /* 1. Disable Desktop Grid */
  #about .section__head {
    display: block; /* Standard block flow so float works */
  }

  /* 2. Hide the Desktop Image (the one at the bottom) */
  #about .aboutMedia {
    display: none;
  }

  /* 3. Show and Style the Mobile Image */
  .aboutMedia--mobile {
    display: block;
    float: right;            /* Floats to the right of the paragraph */
    width: 30%;            /* Constrained width (adjust as needed) */
    margin: 15px 0 0 5px; /* Margins: Top, Right, Bottom, Left */
    clear: right;
  }

  .aboutMedia--mobile img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ===== Cookie consent ===== */
.cookie{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 50;
  padding: 0 16px;
  display: none;
}
.cookie.is-open{ display: block; }

.cookie__inner{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.cookie__title{
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(var(--rgb-text),.95);
  margin-bottom: 2px;
}

.cookie__copy{
  font-size: 16px;
  line-height: 1.45;
  color: rgba(var(--rgb-text),.70);
  max-width: 60ch;
}

.cookie__actions{
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 720px){
  .cookie{ bottom: 10px; }
  .cookie__inner{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cookie__copy{ max-width: 100%; }
  .cookie__actions{ justify-content: flex-end; width: 100%; }
}

/* =========================================
   SPECIAL SECTION OVERRIDES
   For sections that need a distinct background (Partnership, etc.)
   ========================================= */

/* The variable --bg-dark-section determines the color here. 
   It is defined in :root. */
#partnership, 
#how, 
footer,
#contact {
    background-color: var(--bg-dark-section) !important;
    color: #ffffff !important;            
    padding-left: 20px;
    padding-right: 20px;
    margin-left: -20px; 
    margin-right: -20px;
    transition: background-color 0.3s ease;
}

/* Mobile Fix: Ensure padding cancels out negative margins so text doesn't overflow */
@media (max-width: 980px) {
    #partnership, #how, .footer, #contact {
        padding-left: 30px; 
        padding-right: 30px;
    }
}

/* Force text white in these dark sections */
#partnership *, 
#how *,
footer *,
#contact * {
    --text: #ffffff;
    --muted: rgba(255,255,255,0.85);
    --muted2: rgba(255,255,255,0.65);
    --rgb-stroke: 255, 255, 255;
    border-color: rgba(255,255,255,0.15);
}

/* Fix card backgrounds inside the dark sections */
#partnership .card,
#contact .card {
    background: linear-gradient(180deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
}

/* Ensure inputs in contact form are visible in Dark Section */
#contact input, 
#contact textarea {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

/* =========================================
   DASHBOARD UI MOCKUP (AI VOICE PAGE)
   ========================================= */
.dash-ui {
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a; /* Deep tech background */
    border: 1px solid rgba(var(--rgb-stroke), .4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
}

.dash-ui__header {
    background: #1e293b;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dash-ui__dots {
    display: flex;
    gap: 6px;
    margin-right: 20px;
}

.dash-ui__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
}
.dash-ui__dots span:nth-child(1) { background: #ef4444; }
.dash-ui__dots span:nth-child(2) { background: #eab308; }
.dash-ui__dots span:nth-child(3) { background: #22c55e; }

.dash-ui__title {
    font-family: var(--fontB);
    font-size: 14px;
    color: #94a3b8;
    font-weight: 600;
}

.dash-ui__body {
    display: flex;
    min-height: 350px;
}

.dash-ui__sidebar {
    width: 200px;
    background: #0b1120;
    padding: 20px 10px;
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-ui__nav {
    padding: 10px 14px;
    border-radius: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-ui__nav.active {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
}

.dash-ui__content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dash-ui__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.dash-ui__stat-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dash-ui__stat-val {
    font-size: 32px;
    font-family: var(--fontH);
    font-weight: 700;
    color: #f8fafc;
}

.dash-ui__stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-top: 8px;
}

.dash-ui__ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--fontH);
    font-size: 18px;
}

.dash-ui__ring--green {
    border: 4px solid rgba(46, 204, 113, 0.2);
    border-top-color: #2ecc71;
    color: #2ecc71;
}

.dash-ui__ring--purple {
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    color: #8b5cf6;
}

.dash-ui__panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dash-ui__panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
}

.dash-ui__panel h4 {
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 8px;
}

.dash-ui__panel p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile adjustments for Dashboard UI */
@media (max-width: 768px) {
    .dash-ui__body { flex-direction: column; }
    .dash-ui__sidebar { 
        width: 100%; 
        flex-direction: row; 
        border-right: none; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        overflow-x: auto;
    }
    .dash-ui__stats, .dash-ui__panels { grid-template-columns: 1fr; }
    .dash-ui__content { padding: 20px; }
}