:root{
  --ink:#000; --red:#e10600; --chalk:#f5f5f5; --mist:#dcdcdc; --muted:#555; --ok:#1f9d6b; --white:#fff;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box;margin:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--chalk);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.wrap{max-width:1080px;margin:0 auto;padding:0 24px}

/* nav */
header{border-bottom:1px solid var(--mist);background:var(--chalk);position:sticky;top:0;z-index:5}
nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-weight:800;font-size:1.15rem;letter-spacing:-.02em;text-decoration:none}
.logo b{color:var(--red)}
nav ul{display:flex;gap:24px;list-style:none;padding:0;align-items:center}
nav ul a{text-decoration:none;font-size:.95rem;color:var(--muted)}
nav ul a:hover,nav ul a[aria-current]{color:var(--ink)}
nav ul a.ext::after{content:" \2197";font-size:.8em}
.btn{display:inline-block;background:var(--red);color:var(--white);padding:12px 22px;border-radius:6px;font-weight:600;text-decoration:none;border:0;font:inherit;font-weight:600;cursor:pointer}
.btn:hover{background:#b30500}
nav ul a.btn{color:var(--white);padding:8px 16px;font-size:.9rem}

/* hero */
.hero{padding:72px 24px 64px;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
h1{font-size:clamp(2.2rem,5vw,3.6rem);line-height:1.05;letter-spacing:-.035em;font-weight:800;max-width:14ch}
.hero p.lead{margin:22px 0 30px;font-size:1.15rem;color:var(--muted);max-width:44ch}
.hero .btn+a{margin-left:20px;font-weight:600}

/* live dataLayer panel */
.panel{background:var(--ink);color:#ddd;border-radius:10px;font-family:var(--mono);font-size:.82rem;overflow:hidden;box-shadow:0 20px 40px -24px rgba(0,0,0,.5)}
.panel-bar{display:flex;justify-content:space-between;padding:10px 16px;background:#111;color:#999;font-size:.75rem}
.panel-bar i{font-style:normal;color:var(--ok)}
.panel ol{list-style:none;padding:8px 0;min-height:264px}
.panel li{padding:7px 16px;display:flex;gap:10px;animation:in .3s ease}
.panel li span{color:var(--ok)}
.panel li em{font-style:normal;color:#999;margin-left:auto}
@keyframes in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* sections */
section{padding:72px 0;border-top:1px solid var(--mist)}
h2{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:-.025em;line-height:1.15;margin-bottom:12px}
.sub{color:var(--muted);max-width:56ch;margin-bottom:40px}
.svc{display:grid;grid-template-columns:260px 1fr;gap:8px 40px;padding:22px 0;border-top:1px solid var(--mist)}
.svc:last-child{border-bottom:1px solid var(--mist)}
.svc h3{font-size:1.05rem}
.svc p{color:var(--muted);max-width:60ch}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;list-style:none;padding:0;counter-reset:s}
.steps li{counter-increment:s;padding-top:16px;border-top:3px solid var(--ink)}
.steps li::before{content:counter(s);font-weight:800;color:var(--red);display:block;margin-bottom:6px}
.steps h3{font-size:1rem;margin-bottom:4px}
.steps p{font-size:.92rem;color:var(--muted)}
.cta{background:var(--ink);color:var(--white);border:0}
.cta h2{max-width:22ch}
.cta p{color:#ccc;margin-bottom:26px}

/* contact */
.contact{padding:64px 0;max-width:600px}
form{display:grid;gap:18px;margin-top:28px}
label{display:grid;gap:6px;font-weight:600;font-size:.92rem}
input,textarea,select{font:inherit;padding:12px 14px;border:1px solid #bbb;border-radius:6px;background:var(--white);color:var(--ink)}
textarea{min-height:140px;resize:vertical}
.msg{padding:14px 16px;border-radius:6px;background:#e3f5ed;color:#125c40;display:none}
.msg.show{display:block}
.hp{position:absolute;left:-9999px}

footer{border-top:1px solid var(--mist);padding:32px 0;color:var(--muted);font-size:.9rem}
footer .wrap{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

@media(max-width:820px){
  .hero{grid-template-columns:1fr;padding-top:44px}
  .svc{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  nav ul{gap:14px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto}}

/* legal pages */
.legal{padding:56px 0 72px;max-width:760px}
.legal h1{font-size:2.2rem;max-width:none;margin-bottom:8px}
.legal .upd{color:var(--muted);margin-bottom:32px}
.legal h2{font-size:1.25rem;margin:32px 0 8px}
.legal p,.legal li{margin-bottom:10px;color:#222}
.legal ul{padding-left:22px}
.legal table{width:100%;border-collapse:collapse;font-size:.9rem;margin:12px 0}
.legal th,.legal td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--mist);vertical-align:top}
.tblwrap{overflow-x:auto}
mark{background:#ffe9e7;color:#8a0400;padding:0 3px;border-radius:2px}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}
footer .wrap{align-items:flex-start}

/* icons, service cards, steps */
.ic{width:52px;height:52px;border-radius:12px;background:var(--ink);color:var(--red);display:grid;place-items:center;flex:none}
.ic svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{background:#fff;border:1px solid var(--mist);border-radius:10px;padding:26px}
.card h3{font-size:1.05rem;margin:18px 0 6px}
.card p{color:var(--muted);font-size:.95rem}
.card.dark{background:var(--ink);border-color:var(--ink);display:flex;flex-direction:column;align-items:flex-start}
.card.dark h3{color:#fff}
.card.dark p{color:#ccc;margin-bottom:20px}
.card.dark .btn{margin-top:auto}
.steps2{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;list-style:none;padding:0}
.steps2 li{position:relative}
.steps2 .ic{border-radius:50%;width:60px;height:60px}
.steps2 li:not(:last-child)::after{content:"";position:absolute;top:29px;left:70px;right:-22px;height:2px;background:repeating-linear-gradient(90deg,var(--ink) 0 6px,transparent 6px 12px)}
.steps2 h3{margin:16px 0 4px;font-size:1.05rem}
.steps2 p{font-size:.92rem;color:var(--muted)}

/* about page */
.ab-hero{background:#000;color:#fff;padding:64px 0;border-bottom:4px solid var(--red)}
.ab-hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.ab-hero h1{max-width:14ch}
.ab-hero p{color:#ccc;margin-top:18px;max-width:46ch;font-size:1.1rem}
.ab-hero svg{width:100%;height:auto;display:block}
.two{display:grid;grid-template-columns:1fr 2fr;gap:48px}
.two p{margin-bottom:14px;max-width:62ch}
.trio{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.trio h3{margin:16px 0 6px;font-size:1.1rem}
.trio p{color:var(--muted)}
.chips{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0}
.chips li{border:1px solid #bbb;border-radius:999px;padding:7px 16px;font-size:.92rem;background:#fff}
.chips li::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--red);margin-right:9px}

@media(max-width:900px){
  .cards,.trio{grid-template-columns:1fr 1fr}
  .steps2{grid-template-columns:1fr 1fr}
  .steps2 li::after{display:none!important}
  .ab-hero .wrap,.two{grid-template-columns:1fr}
}
@media(max-width:560px){.cards,.trio,.steps2{grid-template-columns:1fr}}

/* consent banner: Accept, Reject and Manage are deliberately styled the same */
#tm-cb{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#000;color:#fff;padding:18px 24px;border-top:3px solid var(--red);box-shadow:0 -10px 30px rgba(0,0,0,.35);max-height:90vh;overflow:auto}
#tm-cb .in{max-width:1080px;margin:0 auto}
#tm-cb p{font-size:.92rem;color:#ddd;max-width:80ch;margin-bottom:0}
#tm-cb a{color:#fff}
#tm-cb .row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
#tm-cb button{font:inherit;font-weight:600;padding:10px 20px;border-radius:6px;cursor:pointer;border:2px solid #fff;background:#fff;color:#000;min-width:140px}
#tm-cb button:hover{background:#e6e6e6}
#tm-cb label{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:.92rem;color:#ddd;margin-top:12px}
#tm-cb input{width:18px;height:18px;margin-top:2px;accent-color:var(--red);flex:none}
#tm-cb .prefs{display:none}
#tm-cb.open .prefs{display:block}
#tm-cb.open .main{display:none}

/* phones: logo + Contact on row one, all links on row two (no burger menu) */
@media(max-width:640px){
  nav{height:auto;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:10px 0 4px}
  nav ul{display:contents}
  nav ul li{order:3;padding:8px 0}
  nav ul li:last-child{order:2;padding:0}
  nav::after{content:"";order:2;flex-basis:100%;height:0}
  .logo{order:1}
  nav ul a{font-size:.95rem}
}

/* UTM builder */
.tool-head{background:#000;color:#fff;padding:48px 0;border-bottom:4px solid var(--red)}
.tool-head h1{font-size:clamp(2rem,4.5vw,3rem);max-width:none}
.tool-head p{color:#ccc;margin-top:12px;font-size:1.1rem;max-width:58ch}
.tool{display:grid;grid-template-columns:1.2fr .8fr;gap:32px;padding-top:40px;padding-bottom:56px;align-items:start}
.steps-col{display:grid;gap:18px}
.step{background:#fff;border:1px solid var(--mist);border-left:5px solid var(--ink);border-radius:12px;padding:24px;display:grid;gap:16px;transition:border-color .2s}
.step.done{border-left-color:var(--ok)}
.step-h{display:flex;gap:14px;align-items:center}
.step-h h2{font-size:1.2rem;line-height:1.2;margin:0}
.step-h p{font-size:.92rem;color:var(--muted);margin:3px 0 0}
.num{width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.num::before{content:attr(data-n)}
.step.done .num{background:var(--ok)}
.step.done .num::before{content:"\2713"}
.fld{align-content:start}
.fld small{font-weight:400;color:var(--muted);font-size:.85rem}
.step input{padding:14px 16px;font-size:1.05rem;border:2px solid #cfcfcf;border-radius:8px;width:100%}
.step input:focus{outline:none;border-color:var(--red);box-shadow:0 0 0 3px rgba(225,6,0,.18)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.qs{font-size:.85rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.presets{display:flex;flex-wrap:wrap;gap:8px}
.presets button{font:inherit;font-weight:600;font-size:.95rem;padding:10px 16px;border:2px solid var(--ink);border-radius:999px;background:#fff;cursor:pointer}
.presets button:hover{background:var(--ink);color:#fff}
.more summary{cursor:pointer;font-weight:600;padding:2px 0}
.more[open] summary{margin-bottom:16px}
.more .row2{margin-top:0}
.again{justify-self:start}
.tool-out{background:#000;color:#fff;border-radius:12px;padding:24px;position:sticky;top:84px}
.tool-out .step-h h2{color:#fff}
.tool-out .num{background:var(--red)}
.tool-out .step-h{margin-bottom:14px}
#out{font-family:var(--mono);font-size:.95rem;word-break:break-all;min-height:110px;line-height:1.55}
#out.empty{color:#999;font-family:var(--sans)}
.tool-out .btn{width:100%;font-size:1.1rem;padding:16px;margin-top:18px;text-align:center}
.tool-out .btn:disabled{background:#3a3a3a;color:#888;cursor:not-allowed}
.tool-out .note{font-size:.85rem;color:#999;margin-top:14px}
.tips{padding:56px 0;border-top:1px solid var(--mist)}
.tips ul{padding-left:20px;max-width:64ch}
.tips li{margin-bottom:10px}
@media(max-width:900px){
  .tool{grid-template-columns:1fr;padding-bottom:40px}
  /* phones/tablets: the result becomes a bar stuck to the bottom of the screen, always visible */
  .tool-out{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:40;border-radius:14px 14px 0 0;border-top:3px solid var(--red);
    padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:center;box-shadow:0 -8px 24px rgba(0,0,0,.3)}
  .tool-out .step-h{grid-column:1/-1;margin:0;gap:10px}
  .tool-out .step-h .num{width:24px;height:24px;font-size:.8rem}
  .tool-out .step-h h2{font-size:.95rem}
  #out{min-height:0;font-size:.8rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  #out.empty{font-size:.85rem}
  .tool-out .btn{width:auto;margin:0;padding:12px 22px;font-size:1rem;grid-row:2;grid-column:2}
  #out{grid-row:2;grid-column:1}
  .tool-out .note{display:none}
  body:has(.tool-out) footer{padding-bottom:130px}
}
@media(max-width:560px){.row2{grid-template-columns:1fr}.step{padding:20px}}
.sr{position:absolute;left:-9999px}
