:root{
  /* Brand anchors (tune if needed) */
  --ipblue: #0B4A8B;      /* IPCube deep blue */
  --ipblue2:#0E5BB0;      /* brighter blue for accents */
  --ink:   #0B1020;
  --muted: #5D6A82;
  --line:  rgba(12, 35, 72, .10);
  --card:  rgba(255,255,255,.78);
  --white: #ffffff;

  /* Soft Google-ish accents (kept subtle) */
  --mint:  #39D0C7;
  --sun:   #FFD66E;
  --coral: #FF7A90;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --shadow-sm: 0 8px 18px rgba(5, 15, 35, .08);
  --shadow-md: 0 18px 40px rgba(5, 15, 35, .12);

  --maxw: 1140px;
}

*{box-sizing:border-box}

/* Hard stop on horizontal scroll (mobile + desktop) */
html,body{
  height:100%;
  width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% 5%, rgba(14,91,176,.14), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(57,208,199,.10), transparent 55%),
    radial-gradient(900px 500px at 70% 70%, rgba(255,214,110,.10), transparent 60%),
    #fbfcff;
  overflow-x:hidden;
}

/* Prevent media from causing horizontal overflow */
img, svg { max-width:100%; height:auto; }

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 22px;}

/* Soft background blobs */
.blob{
  position: fixed;
  inset: auto;
  filter: blur(0px);
  opacity: .9;
  pointer-events: none;

  /* Force behind EVERYTHING */
  z-index: -1;
}

.blob.one{
  width:520px; height:520px;
  left:-180px; top:70px;
  background: radial-gradient(circle at 30% 30%, rgba(14,91,176,.24), rgba(14,91,176,.06) 55%, transparent 70%);
  border-radius: 48% 52% 58% 42% / 45% 42% 58% 55%;
}
.blob.two{
  width:560px; height:560px;
  right:-220px; top:210px;
  background: radial-gradient(circle at 30% 30%, rgba(57,208,199,.22), rgba(57,208,199,.06) 55%, transparent 72%);
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
}
.blob.three{
  width:620px; height:360px;
  left:12%; bottom:-120px;
  background: radial-gradient(circle at 30% 30%, rgba(255,214,110,.22), rgba(255,214,110,.06) 58%, transparent 75%);
  border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
}

/* Header */
header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(251,252,255,.72);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img{
  height:34px; width:auto; display:block;
}

nav ul{
  display:flex; gap:18px;
  list-style:none; padding:0; margin:0;
  align-items:center;
}
nav a{
  font-size:14px;
  color:rgba(11,16,32,.82);
  padding:10px 10px;
  border-radius: 999px;
}
nav a:hover{background: rgba(14,91,176,.07)}
.nav-cta{
  display:flex; align-items:center; gap:10px;
  flex: 0 0 auto;
}

/* Burger button (hidden on desktop) */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(11,16,32,.12);
  background: rgba(255,255,255,.78);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  padding:0;
  flex: 0 0 auto;
}
.burger:hover{background: rgba(14,91,176,.06)}
.burger svg{width:20px;height:20px}

/* Mobile menu panel */
.mobile-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  border-bottom:1px solid var(--line);
  background: rgba(251,252,255,.92);
  backdrop-filter: blur(10px);
  z-index:60;
}
.mobile-menu .inner{
  padding: 10px 22px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.mobile-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.70);
  font-size:14px;
}
.mobile-menu a:hover{background: rgba(14,91,176,.06)}
.mobile-menu .divider{
  height:1px;
  background: rgba(11,16,32,.08);
  margin: 4px 0;
}
.mobile-menu.open{display:block;}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius: 999px;
  border:1px solid transparent;
  font-weight: 650;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:active{transform: translateY(1px)}
.btn.primary{
  color:white;
  background: linear-gradient(135deg, var(--ipblue) 0%, var(--ipblue2) 60%, rgba(57,208,199,.85) 115%);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover{box-shadow: var(--shadow-md)}
.btn.secondary{
  color: var(--ipblue);
  background: rgba(255,255,255,.85);
  border-color: rgba(14,91,176,.22);
}
.btn.secondary:hover{background: rgba(14,91,176,.06)}
.btn.ghost{
  color: rgba(11,16,32,.75);
  background: transparent;
  border-color: rgba(11,16,32,.12);
}
.btn.ghost:hover{background: rgba(11,16,32,.04)}

/* Hero */
.hero{
  position:relative;
  z-index: 1;          /* ensure hero sits above background blobs */
  padding: 54px 0 26px;
  overflow-x: clip;    /* safety */
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero-grid > div{min-width:0}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(14,91,176,.18);
  background: rgba(255,255,255,.72);
  font-size:13px;
  color: rgba(11,16,32,.78);
  width: fit-content;
  margin-bottom: 14px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--mint), var(--ipblue2));
  box-shadow: 0 0 0 4px rgba(57,208,199,.12);
}
h1{
  margin: 0 0 12px;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  word-wrap: break-word;
}
.sub{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(11,16,32,.75);
  max-width: 56ch;
}
.hero-actions{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom: 16px;
}

.trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color: rgba(11,16,32,.72);
  font-size:13px;
}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.72);
  border-radius: 999px;
}
.check{
  width:16px; height:16px; border-radius:6px;
  background: rgba(57,208,199,.18);
  display:inline-grid; place-items:center;
  border:1px solid rgba(57,208,199,.35);
  color: rgba(11,16,32,.85);
  font-weight:900;
  font-size:12px;
  line-height:1;
}

/* Hero Illustration card */
.hero-illus{
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  border: 1px solid rgba(14,91,176,.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  position:relative;
  min-height: 420px;
  max-width:100%;
}
.hero-illus .shine{
  position:absolute; inset:-60px -60px auto auto;
  width:260px; height:260px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(255,255,255,.1) 55%, transparent 70%);
  transform: rotate(10deg);
  pointer-events:none;
}
.hero-illus .frame{
  position:absolute;
  inset: 18px 18px 18px 18px;
  border-radius: calc(var(--radius-xl) - 10px);
  border:1px dashed rgba(14,91,176,.22);
  pointer-events:none;
}
.illus-inner{
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding: 18px;
  gap: 12px;
  min-width:0;
}
.illus-top{
  position:absolute;
  inset: 18px 18px auto 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  min-width:0;
}
.tag{
  font-size:12px;
  color: rgba(11,16,32,.7);
  background: rgba(14,91,176,.06);
  border: 1px solid rgba(14,91,176,.14);
  padding: 8px 10px;
  border-radius:999px;
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.tag strong{color: rgba(11,16,32,.82)}
.mini-bars{
  display:flex; gap:6px; align-items:flex-end;
  opacity:.9;
}
.mini-bars i{
  width:8px; border-radius:8px;
  display:block;
  background: linear-gradient(180deg, rgba(14,91,176,.85), rgba(57,208,199,.55));
}
.mini-bars i:nth-child(1){height:16px; opacity:.55}
.mini-bars i:nth-child(2){height:26px; opacity:.75}
.mini-bars i:nth-child(3){height:20px; opacity:.65}
.mini-bars i:nth-child(4){height:34px; opacity:.85}

.mascot-hero{
  width:100%;
  height:auto;
  display:block;
  max-height: 330px;
  object-fit:contain;
  margin-top: 60px;
  pointer-events:none; /* IMPORTANT: Hero mascot not clickable */
  user-select:none;
  filter: drop-shadow(0 18px 30px rgba(5, 15, 35, .12));
}
.illus-caption{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top:auto;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(11,16,32,.10);
  border-radius: var(--radius-lg);
  padding: 12px 12px;
}
.illus-caption b{font-size:13px}
.illus-caption span{font-size:13px; color: rgba(11,16,32,.70); line-height:1.45}

/* Sections */
section{padding: 38px 0;}
/* IMPORTANT: if free-invoice is a <section class="free-invoice">, don't let it inherit the big section padding */
section.free-invoice{ padding: 18px 0 !important; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2{
  margin:0;
  font-size: 26px;
  letter-spacing: -0.01em;
}
.section-head p{
  margin:0;
  color: rgba(11,16,32,.70);
  max-width: 64ch;
  line-height: 1.55;
  font-size: 14.5px;
}

/* Cards grid */
.grid{
  display:grid;
  gap: 14px;
}
.grid.cols-3{grid-template-columns: repeat(3, 1fr);}
.grid.cols-4{grid-template-columns: repeat(4, 1fr);}
.card{
  background: var(--card);
  border: 1px solid rgba(11,16,32,.10);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  position:relative;
  overflow:hidden;
  min-height: 160px;
  min-width:0;
}
.card:hover{box-shadow: var(--shadow-md)}
.icon{
  width:46px; height:46px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,91,176,.20), rgba(57,208,199,.12));
  border:1px solid rgba(14,91,176,.16);
  display:grid;
  place-items:center;
  margin-bottom: 10px;
  position:relative;
}
.icon svg{width:22px; height:22px; opacity:.95}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color: rgba(11,16,32,.70); line-height:1.55; font-size: 13.5px}
.card .chipline{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.chip{
  font-size:12px;
  padding:7px 9px;
  border-radius:999px;
  background: rgba(255,255,255,.72);
  border:1px solid rgba(11,16,32,.10);
  color: rgba(11,16,32,.72);
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.step{
  background: rgba(255,255,255,.70);
  border:1px solid rgba(11,16,32,.10);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.step .num{
  width:34px; height:34px;
  border-radius: 999px;
  background: rgba(14,91,176,.10);
  border:1px solid rgba(14,91,176,.16);
  color: var(--ipblue);
  display:grid;
  place-items:center;
  font-weight: 800;
  margin-bottom: 10px;
}
.step h4{margin:0 0 6px; font-size:15px}
.step p{margin:0; font-size:13.5px; color: rgba(11,16,32,.70); line-height:1.55}

/* CTA band */
.cta{
  background: linear-gradient(135deg, rgba(11,74,139,.98) 0%, rgba(14,91,176,.92) 55%, rgba(57,208,199,.70) 120%);
  color:white;
  border-radius: calc(var(--radius-xl) + 4px);
  box-shadow: var(--shadow-md);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.14);
  position:relative;
  overflow:hidden;
}
.cta .inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items:center;
}
.cta h3{margin:0 0 6px; font-size: 22px; letter-spacing:-0.01em}
.cta p{margin:0; opacity:.92; line-height:1.55; font-size: 14px}
.cta .actions{display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap}
.cta .btn.secondary{
  background: rgba(255,255,255,.92);
  border-color: transparent;
}
.cta .btn.secondary:hover{background: rgba(255,255,255,1)}
.cta .btn.ghost{
  border-color: rgba(255,255,255,.32);
  color: rgba(255,255,255,.92);
}
.cta .btn.ghost:hover{background: rgba(255,255,255,.08)}

/* Free invoicing strip (secondary offer) */
.free-invoice{
  background: rgba(255,255,255,.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 14px;
  backdrop-filter: blur(6px);
}

.free-invoice-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.free-invoice-text{
  max-width: 720px;
}

.free-invoice-text h4{
  margin:0 0 6px;
  font-size:18px;
  letter-spacing:-0.01em;
  color: var(--ink);
}

.free-invoice-text p{
  margin:0;
  font-size:14px;
  color: rgba(11,16,32,.72);
  line-height:1.5;
}

.free-invoice-action{
  flex: 0 0 auto;
}

/* Footer */
footer{
  padding: 26px 0 80px;
  color: rgba(11,16,32,.70);
  font-size: 13px;
}
.foot{
  display:flex;
  gap: 14px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding-top: 18px;
}
.foot small{display:block; line-height:1.55}

/* Floating Daniel iframe (same pattern as production) */
.chat-float{
  position: fixed;
  right: 20px;
  bottom: 100px;          /* sits above the launcher */
  width: 380px;
  max-width: 92vw;
  height: 540px;
  max-height: 80vh;

  border: 0;
  border-radius: 18px;
  overflow: hidden;       /* makes corners actually round */
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  background: transparent;

  display: none;          /* hidden until opened */
  z-index: 9000;
}

.chat-float.open{
  display: block;
}

/* Floating chat launcher (Daniel) — always visible, no horizontal-scroll issues */
.chat-launcher{
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;

  /* must be above all layout + menus */
  z-index: 9999;

  width: 64px;
  height: 64px;
  border-radius: 999px;

  /* production-style white puck */
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(11,16,32,.14);
  box-shadow: 0 18px 45px rgba(5, 15, 35, .22);

  display:flex;
  align-items:center;
  justify-content:center;

  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  user-select:none;

  overflow:hidden; /* ensures perfectly round crop */
}

.chat-launcher:hover{transform: translateY(-1px); box-shadow: 0 22px 55px rgba(5, 15, 35, .26)}
.chat-launcher:active{transform: translateY(0px)}
.chat-launcher img{
  width: 100%;
  height: 100%;

  /* Crop into a perfect circle */
  border-radius: 999px;

  /* Fill the puck like production (prevents the “badge inside square” look) */
  object-fit: cover;

  /* Optional: keep a subtle crispness */
  filter: none;
}
.chat-pulse{
  position:absolute;
  inset:-6px;
  border-radius:999px;
  border: 2px solid rgba(57,208,199,.35);
  animation: pulse 2.2s ease-in-out infinite;
  pointer-events:none;
}
@keyframes pulse{
  0%{transform: scale(.96); opacity:.0}
  30%{opacity:.75}
  60%{transform: scale(1.10); opacity:0}
  100%{transform: scale(1.10); opacity:0}
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; gap:16px;}
  .hero-illus{min-height: 380px;}
  .grid.cols-3{grid-template-columns: 1fr;}
  .grid.cols-4{grid-template-columns: 1fr 1fr;}
  .steps{grid-template-columns: 1fr;}

  /* hide desktop nav */
  nav ul{display:none;}

  /* show burger */
  .burger{display:inline-flex;}

  .cta .inner{grid-template-columns: 1fr; text-align:left;}
  .cta .actions{justify-content:flex-start;}
}

@media (max-width: 560px){
  /* Layout tightening */
  .wrap{
    padding: 0 16px;
  }

  /* Grid collapse */
  .grid.cols-4{
    grid-template-columns: 1fr;
  }

  /* Chat launcher — ALWAYS visible on mobile */
  .chat-launcher{
    width: 60px;
    height: 60px;

    /* Match production behavior */
    right: 16px;
    bottom: 16px;

    z-index: 1200; /* keep it above everything */
  }

  .free-invoice-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .free-invoice-action{
    width:100%;
  }

  .free-invoice-action .btn{
    width:100%;
    justify-content:center;
  }

  .chat-launcher img{
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
  }

  /* Mobile menu spacing */
  .mobile-menu .inner{
    padding: 10px 16px 16px;
  }
}
/* Header social icons */
.nav-social{
  display:flex;
  align-items:center;
  gap:10px;
  margin-right:6px;
}

.nav-social a{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid rgba(11,16,32,.12);
  background: rgba(255,255,255,.85);
  transition: background .12s ease, transform .12s ease;
}

.nav-social a:hover{
  background: rgba(14,91,176,.08);
  transform: translateY(-1px);
}

.nav-social svg{
  width:16px;
  height:16px;
  fill: rgba(11,16,32,.75);
}

/* -------------------------------------------------
   Mobile-only logo strip above header
-------------------------------------------------- */

.mobile-logo-strip { display: none; }

@media (max-width: 820px){
  .mobile-logo-strip{
    display: block;
    background: rgba(255,255,255,.92);
    border-bottom: 1px solid rgba(11,16,32,.08);
    backdrop-filter: blur(8px);
  }

  /* Force true centering */
  .mobile-logo-strip .wrap{
    padding: 14px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-logo-strip .mobile-brand{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .mobile-logo-strip .mobile-brand img{
    max-height: 42px;
    width: auto;
    display: block;
    margin: 0 auto;
  }

  /* HARD hide original header logo */
  header .nav a.brand{
    display: none !important;
  }
}
