:root{
  --brand:#11219C;
  --brand-dark:#0C1878;
  --brand-soft:#ECEEFA;
  --brand-line:#CDD2F1;
  --navy:#11219C;
  --navy-2:#0C1878;
  --navy-3:#2A3AB0;
  --white:#FFFFFF;
  --bg:#F6F7FC;
  --bg-2:#ECEEFA;
  --line:#E3E6F3;
  --text:#0B1455;
  --muted:#5B6285;
  --muted-2:#8B91AE;
  --on-navy:#D3D8F5;
  --purple:#11219C;
  --r-xs:8px; --r-sm:12px; --r-md:16px; --r-lg:22px; --r-xl:28px; --r-pill:999px;
  --shadow:0 1px 2px rgba(17,33,156,.05),0 8px 24px -12px rgba(17,33,156,.2);
  --font:"Manrope",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
html{scroll-padding-top:env(safe-area-inset-top,0px);scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
*,*::before,*::after{box-sizing:inherit}
html,body{height:100%}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--white);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
img,svg{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:var(--r-xs)}
body.chat-page{overflow:hidden}
.chat-app{display:flex;flex-direction:column;height:100%}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;border-radius:var(--r-pill);font-weight:700;font-size:.95rem;line-height:1;transition:background .15s,transform .15s,box-shadow .15s;white-space:nowrap}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--brand);color:var(--white)}
.btn-primary:hover{background:var(--brand-dark)}
.btn-ghost{background:transparent;color:var(--navy);border:1.5px solid var(--line)}
.btn-ghost:hover{background:var(--bg)}
.btn-navy{background:var(--navy);color:var(--white)}
.btn-navy:hover{background:var(--navy-2)}
.btn-lg{padding:1rem 1.5rem;font-size:1.05rem}
.btn svg{width:18px;height:18px}

/* Logo mark */
.logo{display:inline-flex;align-items:center;gap:.65rem;font-weight:800;letter-spacing:-.01em}
.logo-mark{height:36px;flex:none;display:flex;align-items:center}
.logo-mark img{height:100%;width:auto;object-fit:contain}
.logo-text{font-size:1.05rem;color:var(--navy)}
.logo-text small{display:block;font-size:.7rem;font-weight:600;color:var(--muted);letter-spacing:.02em;margin-top:-2px}

/* ============================================================
   LANDING
   ============================================================ */
.wrap{max-width:1180px;margin:0 auto;padding:0}
@media (max-width:1179px){.wrap{padding:0 1.25rem}}

.nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:40;background:rgba(255,255,255,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:72px;gap:1rem}
.nav-links{display:flex;gap:1.75rem;font-weight:600;font-size:.93rem;color:var(--muted)}
.nav-links a:hover{color:var(--navy)}
.nav-actions{display:flex;gap:.6rem;align-items:center}
@media (max-width:860px){.nav-links{display:none}}

/* Hero */
.hero{padding:clamp(3rem,7vw,6rem) 0 clamp(2.5rem,5vw,4rem)}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
@media (max-width:920px){.hero .wrap{grid-template-columns:1fr}}
.pill{display:inline-flex;align-items:center;gap:.5rem;padding:.4rem .9rem .4rem .7rem;border-radius:var(--r-pill);background:var(--bg);border:1px solid var(--line);font-size:.82rem;font-weight:600;color:var(--muted)}
.pill i{width:8px;height:8px;border-radius:50%;background:var(--purple);flex:none}
.pill a{display:inline-flex;align-items:center}
.pill img{height:18px;width:auto}
.hero-brought{gap:.5rem}
.pill .brought-colibryx{height:16px}
.pill .brought-cpa{height:20px}
h1{font-size:clamp(2.2rem,4.6vw,3.6rem);line-height:1.08;letter-spacing:-.025em;font-weight:800;margin:1.25rem 0 1.25rem;color:var(--navy)}
.lead{font-size:1.15rem;color:var(--muted);max-width:34rem;margin:0 0 2rem}
.hero-ctas{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}
.hero-note{margin-top:1.25rem;font-size:.85rem;color:var(--muted-2)}
.hero-note b{color:var(--muted);font-weight:600}

/* Hero chat preview */
.preview{background:var(--white);border:1px solid var(--line);border-radius:var(--r-xl);box-shadow:var(--shadow);overflow:hidden;display:grid;grid-template-columns:150px 1fr;min-height:400px}
.preview-side{background:var(--navy);padding:.9rem .75rem;display:flex;flex-direction:column;gap:.4rem}
.preview-side .ps-new{background:rgba(255,255,255,.1);color:var(--white);border-radius:var(--r-sm);padding:.5rem .6rem;font-size:.72rem;font-weight:700;display:flex;gap:.4rem;align-items:center}
.preview-side .ps-h{font-size:.6rem;color:var(--on-navy);opacity:.6;margin:.6rem .4rem .1rem;font-weight:700}
.preview-side .ps-item{height:22px;border-radius:6px;background:rgba(255,255,255,.08)}
.preview-side .ps-item.on{background:rgba(255,255,255,.16)}
.preview-main{padding:1rem 1.1rem;display:flex;flex-direction:column;gap:.8rem;font-size:.83rem;background:var(--white)}
.pm-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.72rem;font-weight:700;padding-bottom:.6rem;border-bottom:1px solid var(--line)}
.pm-head span{display:flex;align-items:center;gap:.35rem}
.pm-head .dot{width:7px;height:7px;border-radius:50%;background:#2CB67D}
.pm-reply{position:relative}
.pm-reply #pv2{position:absolute;top:0;left:0;right:0}
.pm-msg{display:flex;gap:.55rem;align-items:flex-start;opacity:0}
.pm-msg.user{justify-content:flex-end;transform:translateY(14px) scale(.92);transform-origin:right bottom}
.pm-msg.bot{transform:translateY(10px);transform-origin:left top}
.pm-msg.show{opacity:1;transform:none;transition:opacity .45s cubic-bezier(.22,.9,.25,1),transform .45s cubic-bezier(.22,.9,.25,1)}
.pm-msg.out{opacity:0;transform:translateY(-8px);transition:opacity .55s ease-out,transform .55s ease-out}
.pm-bubble{padding:.6rem .8rem;border-radius:var(--r-md);line-height:1.45;max-width:88%}
.pm-msg.user .pm-bubble{background:var(--bg-2);border-bottom-right-radius:6px;color:var(--navy);font-weight:600}
.pm-msg.bot .pm-bubble{background:transparent;padding-left:0}
.pm-av{width:24px;height:24px;border-radius:6px;background:var(--brand);color:var(--white);display:grid;place-items:center;font-size:.55rem;font-weight:800;flex:none;margin-top:.35rem}
.pm-src{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.5rem}
.src-chip{font-size:.66rem;font-weight:700;padding:.22rem .5rem;border-radius:var(--r-pill);background:var(--brand-soft);color:var(--brand);border:1px solid var(--brand-line)}
.pm-composer{margin-top:auto;border:1.5px solid var(--line);border-radius:var(--r-pill);padding:.5rem .55rem .5rem .9rem;display:flex;align-items:center;justify-content:space-between;color:var(--muted-2);font-size:.78rem}
.pm-composer b{width:26px;height:26px;border-radius:50%;background:var(--navy);display:grid;place-items:center}
.pm-composer b svg{width:13px;height:13px;stroke:var(--white)}
.typing{display:inline-flex;gap:3px;padding:.3rem 0}
.typing i{width:6px;height:6px;border-radius:50%;background:var(--muted-2);animation:blink 1.2s infinite}
.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (max-width:560px){.preview{grid-template-columns:1fr}.preview-side{display:none}}

/* Sections */
section.block{padding:clamp(3rem,6vw,5.5rem) 0}
section.alt{background:var(--bg)}
#how-it-works{padding-bottom:.75rem}
.fonti{padding-top:0}
.sec-head{max-width:38rem;margin-bottom:2.5rem}
h2{font-size:clamp(1.7rem,3.2vw,2.4rem);line-height:1.15;letter-spacing:-.02em;font-weight:800;margin:0 0 .75rem;color:var(--navy)}
.sec-head p{color:var(--muted);font-size:1.05rem;margin:0}

/* Use cases */
.cases{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
@media (max-width:860px){.cases{grid-template-columns:1fr}}
.case{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);padding:1.6rem;display:flex;flex-direction:column;gap:.75rem;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.case-ico{width:44px;height:44px;border-radius:var(--r-sm);background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}
.case-ico svg{width:22px;height:22px}
.case h3{margin:.25rem 0 0;font-size:1.15rem;font-weight:800;color:var(--navy)}
.case p{margin:0;color:var(--muted);font-size:.95rem}
.case q{display:block;margin-top:auto;padding:.7rem .85rem;background:var(--bg);border-radius:var(--r-sm);font-size:.85rem;color:var(--navy);font-weight:600;quotes:"“" "”"}
.case q::before{content:open-quote;color:var(--brand)}.case q::after{content:close-quote;color:var(--brand)}
.case-cta{display:inline-flex;align-items:center;gap:.4rem;align-self:flex-start;margin-top:.15rem;padding:.55rem .95rem;border-radius:var(--r-pill);background:var(--brand);color:var(--white);font-size:.82rem;font-weight:800}
.case-cta:hover{background:var(--brand-dark);color:var(--white)}
.case-cta svg{width:15px;height:15px}
.case:hover,.step:hover,.aud-card:hover{transform:translateY(-4px);box-shadow:0 10px 28px -10px rgba(11,20,85,.2),0 4px 10px rgba(11,20,85,.06)}

/* Sources — list, not cards */
.sources{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:start}
@media (max-width:860px){.sources{grid-template-columns:1fr}}
.src-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.src-list li{display:grid;grid-template-columns:44px 1fr auto;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--line)}
.flag{width:44px;height:32px;border-radius:6px;display:grid;place-items:center;font-size:1.3rem;background:var(--bg);border:1px solid var(--line)}
.src-list b{display:block;font-weight:800;color:var(--navy)}
.src-list span{display:block;font-size:.88rem;color:var(--muted)}
.src-list em{font-style:normal;font-size:.78rem;font-weight:700;color:var(--muted-2);white-space:nowrap}
.src-list li:first-child .flag{background:var(--navy);color:var(--white);font-size:.7rem;font-weight:800;letter-spacing:.05em}
.sources aside{background:var(--navy);color:var(--on-navy);border-radius:var(--r-lg);padding:1.75rem;position:sticky;top:96px}
.sources aside h3{color:var(--white);margin:0 0 .5rem;font-size:1.2rem}
.sources aside p{margin:0 0 1rem;font-size:.95rem}
.sources aside p:last-child{margin:0}
.sources aside strong{color:var(--white)}

/* Audience */
.aud{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}
@media (max-width:760px){.aud{grid-template-columns:1fr}}
.aud-card{border-radius:var(--r-lg);padding:2rem;border:1px solid var(--line);background:var(--white);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.aud-card h3{margin:0 0 .5rem;font-size:1.3rem;font-weight:800;color:var(--navy)}
.aud-card p{margin:0 0 1rem;color:var(--muted)}
.aud-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.5rem}
.aud-card li{display:flex;gap:.6rem;align-items:flex-start;font-size:.95rem}
.aud-card li svg{width:18px;height:18px;flex:none;color:var(--brand);margin-top:3px}

/* Steps — real sequence, numbering justified */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;counter-reset:step}
@media (max-width:860px){.steps{grid-template-columns:1fr}}
.step{position:relative;padding:1.5rem 1.5rem 1.5rem 4.25rem;border-radius:var(--r-lg);background:var(--white);border:1px solid var(--line);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.step::before{counter-increment:step;content:counter(step);position:absolute;left:1.35rem;top:1.4rem;width:34px;height:34px;border-radius:50%;background:var(--navy);color:var(--white);display:grid;place-items:center;font-weight:800;font-size:.95rem}
.step h3{margin:0 0 .35rem;font-size:1.1rem;font-weight:800;color:var(--navy)}
.step p{margin:0;color:var(--muted);font-size:.95rem}

/* FAQ */
.faq{max-width:46rem}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:1.1rem 0;font-weight:700;color:var(--navy);display:flex;justify-content:space-between;align-items:center;gap:1rem}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:1.4rem;color:var(--brand);transition:transform .2s;flex:none}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{margin:0 0 1.2rem;color:var(--muted)}

/* Final CTA */
.final{background:var(--navy);color:var(--white);border-radius:var(--r-xl);padding:clamp(2.5rem,6vw,4.5rem);text-align:center}
.final h2{color:var(--white);margin-bottom:.75rem}
.final p{color:var(--on-navy);max-width:34rem;margin:0 auto 1rem;font-size:1.05rem}
.final p:last-of-type{margin-bottom:0}
.final strong{color:var(--white)}
.final .hero-ctas{margin-top:2rem}
.final .btn-primary{background:var(--white);color:var(--brand)}
.final .btn-primary:hover{background:var(--brand-soft)}
.final .btn-ghost{color:var(--white);border-color:rgba(255,255,255,.35)}
.final .btn-ghost:hover{background:rgba(255,255,255,.08)}

footer{padding:2.5rem 0 3rem;font-size:.85rem;color:var(--muted);border-top:1px solid var(--line)}
footer .wrap{display:grid;grid-template-columns:1fr auto 1fr;gap:1.5rem;align-items:center}
.foot-brand{display:flex;flex-direction:column;gap:.65rem}
.foot-brand .logo-text small{display:none}
footer nav{display:flex;gap:1.25rem;flex-wrap:wrap;justify-content:flex-end;justify-self:end}
footer nav a:hover{color:var(--navy)}
@media (max-width:860px){
  footer .wrap{grid-template-columns:1fr;justify-items:start}
  footer nav{justify-content:flex-start;justify-self:start}
}
.brought{display:inline-flex;align-items:center;gap:.5rem;margin:0;font-size:.82rem;font-weight:600;color:var(--muted);white-space:nowrap}
.brought a{display:inline-flex;align-items:center}
.brought img{width:auto}
.brought-colibryx{height:16px}
.brought-cpa{height:20px}
.brought-x{color:var(--muted-2);font-weight:700}

/* Floating "Brought to you by" badge */
.brought-float{position:fixed;left:50%;bottom:calc(1.25rem + env(safe-area-inset-bottom,0px));z-index:50;padding:.6rem 1.1rem;border-radius:var(--r-pill);background:rgba(255,255,255,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--line);box-shadow:var(--shadow);opacity:0;visibility:hidden;transform:translate(-50%,16px);transition:opacity .35s ease,transform .35s ease,visibility 0s linear .35s}
.brought-float.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .35s ease,transform .35s ease,visibility 0s}
@media (max-width:420px){.brought-float{font-size:.75rem;padding:.5rem .9rem;gap:.4rem}}

/* Viewport reveal */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .65s ease,transform .65s ease,box-shadow .22s ease;transition-delay:var(--delay,0ms)}
.reveal.is-in{opacity:1;transform:none}
.reveal.is-in.case:hover,.reveal.is-in.step:hover,.reveal.is-in.aud-card:hover{transform:translateY(-4px);transition-delay:0ms}

/* ============================================================
   CHAT
   ============================================================ */
.chat-app{background:var(--white);overflow:hidden}
.chat-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:1rem;height:52px;padding:0 1.25rem;background:var(--white);border-bottom:1px solid var(--line)}
.chat-bar .logo-mark{height:30px}
.chat-back{display:inline-flex;align-items:center;gap:.4rem;font-weight:600;font-size:.93rem;color:var(--muted);white-space:nowrap}
.chat-back:hover{color:var(--navy)}
.chat-back svg{width:16px;height:16px;flex:none}
/* The chat widget fills the rest of the page */
#chatbot-container{flex:1;min-height:0}
