/* ============================================================
   AutomateDemand tool pages (gtm-radar.com): deck, ROI, infrastructure
   Tokens and components mirror integration/website_automatedemand/public/assets/site.css
   (bg #080807, accent #00E5FF, Inter Tight 400 headings, Inter for UI).
   SOURCE OF TRUTH: integration/gtm_radar_shared/assets/. Edit there, then run
   `python integration/gtm_radar_shared/sync.py` to copy into each page's public/assets/.
   ============================================================ */
/* fonts: assets/fonts.css, linked from each page head (no @import chain) */

:root{
  --bg:#080807; --bg-2:#0b0b0a;
  --accent:#00e5ff; --accent-dim:#0aa9bd; --accent-wash:rgba(0,229,255,.09);
  --card:#0f0f0e; --card-2:#0c0c0b; --well:#0a0a09;
  --line:#1e1e1d; --line-2:#282827; --line-soft:#161615;
  --ink:#ffffff; --ink-2:#d6d6d4; --muted:#858585;
  /* site value is #5f5f5e (3.1:1 on the ground); lifted so 12px eyebrows pass 4.5:1 on ground and cards */
  --muted-2:#7e7e7c;
  --on-accent:#04191d;
  --tight:'Inter Tight',system-ui,-apple-system,"Segoe UI",sans-serif;
  --sans:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --wrap:1200px; --pad:40px; --r:12px; --r-sm:10px;
}
*,*::before,*::after{box-sizing:border-box}
html{overflow-x:clip; scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--muted);
  font-family:var(--tight); font-size:16px; line-height:1.5;
  -webkit-font-smoothing:antialiased; position:relative;
}
img{max-width:100%; display:block}
a{color:var(--accent); text-decoration:none}
button{font:inherit; color:inherit; background:none; border:none; cursor:pointer; padding:0}
p{margin:0}
h1,h2,h3,h4{margin:0; font-family:var(--tight); font-weight:400; color:var(--ink);
  letter-spacing:-.02em; line-height:1.06}
::selection{background:rgba(0,229,255,.25); color:#fff}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px}
.num{font-variant-numeric:tabular-nums}
[hidden]{display:none !important}

/* ---------- ground: the site's hero glow + starfield ---------- */
.sky{position:absolute; left:0; right:0; top:0; height:860px; overflow:hidden; pointer-events:none; z-index:0}
.sky::before{content:""; position:absolute; left:50%; top:-300px; width:1200px; height:900px; transform:translateX(-50%);
  background:radial-gradient(closest-side, rgba(0,229,255,.13), rgba(0,229,255,.03) 55%, transparent 75%); filter:blur(30px)}
.sky canvas{position:absolute; inset:0; width:100%; height:100%}
.sky::after{content:""; position:absolute; left:0; right:0; bottom:0; height:260px;
  background:linear-gradient(180deg, rgba(8,8,7,0), var(--bg))}
.nav,main,.foot{position:relative; z-index:1}

/* ---------- layout ---------- */
.wrap{max-width:var(--wrap); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad)}
.eyebrow{font-family:var(--sans); font-size:12px; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:var(--muted-2)}
.eyebrow.a{color:var(--accent)}
.lede{font-size:18px; line-height:1.55; color:var(--muted); text-wrap:pretty}

/* ---------- buttons ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; border-radius:99px; font-family:var(--sans);
  font-size:15px; font-weight:500; padding:13px 24px; transition:.2s ease; white-space:nowrap;
  border:1px solid var(--line-2); color:var(--ink); background:rgba(255,255,255,.02)}
.btn:hover{border-color:rgba(0,229,255,.5); background:var(--accent-wash); color:#fff}
.btn .ar{opacity:.7; transition:transform .2s ease}
.btn:hover .ar{transform:translate(2px,-2px)}
.btn-cta{background:var(--accent); border-color:var(--accent); color:var(--on-accent); font-weight:600}
.btn-cta:hover{background:#5cf0ff; border-color:#5cf0ff; color:var(--on-accent)}
.btn-sm{padding:10px 18px; font-size:14px}

/* ---------- nav ---------- */
.nav{position:sticky; top:0; z-index:80; padding:18px 0; transition:background-color .26s ease, padding .26s ease, border-color .26s ease;
  border-bottom:1px solid transparent}
.nav.stuck{background:rgba(8,8,7,.82); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom-color:var(--line-soft); padding:12px 0}
.nav-in{display:flex; align-items:center; justify-content:space-between; gap:16px 20px; flex-wrap:wrap}
.brand{display:flex; align-items:center; gap:9px}
.brand img{height:26px; width:26px}
.brand span{font-family:var(--sans); font-size:16px; font-weight:500; color:var(--ink); letter-spacing:-.02em}
.nav-pill{display:flex; align-items:center; gap:4px; padding:6px; border:1px solid var(--line-2);
  border-radius:99px; background:rgba(16,16,15,.7); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px)}
.nav-pill a,.nav-pill button{font-family:var(--sans); font-size:14.5px; font-weight:400; color:var(--ink-2);
  padding:8px 16px; border-radius:99px; transition:.18s ease; white-space:nowrap}
.nav-pill a:hover,.nav-pill button:hover{background:rgba(255,255,255,.06); color:#fff}
.nav-pill a[aria-current="page"]{background:rgba(0,229,255,.12); color:var(--accent)}
.nav-pill .lang{letter-spacing:.06em; font-weight:500; color:var(--muted)}
.nav-right{display:flex; align-items:center; gap:10px}

/* ---------- page head (centred, like the site hero) ---------- */
.head{padding:64px 0 52px; text-align:center}
.head .eyebrow{margin-bottom:22px}
.head h1{font-size:clamp(40px,5.6vw,76px); letter-spacing:-.04em; line-height:1.02; max-width:17ch;
  margin:0 auto; text-wrap:balance}
h1 em,h2 em,h3 em{font-style:normal; color:var(--accent)}
.head .lede{margin:24px auto 0; max-width:54ch; text-wrap:balance}

/* ---------- section glow + entrance ---------- */
.glow{position:relative}
.glow::before{content:""; position:absolute; inset:-60px 0; pointer-events:none; z-index:-1;
  background:radial-gradient(50% 42% at 50% 50%, #141712 0%, rgba(8,8,7,0) 100%)}
@keyframes rise{from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none}}
.rise{animation:rise .7s cubic-bezier(.22,.9,.3,1) both}
.rise.d1{animation-delay:.08s} .rise.d2{animation-delay:.16s} .rise.d3{animation-delay:.24s}

/* ---------- card + well ---------- */
.card{padding:28px; border:1px solid var(--line); border-radius:var(--r); min-width:0;
  background:linear-gradient(180deg,var(--card) 0%,var(--card-2) 100%)}
.well{border:1px solid var(--line); border-radius:var(--r-sm); background:var(--well); min-width:0}
.card > .eyebrow{margin-bottom:24px}
.card-top{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:24px; min-height:20px}
.copy{display:inline-flex; align-items:center; gap:7px; font-family:var(--sans); font-size:13px; color:var(--muted); transition:color .18s ease}
.copy svg{width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round}
.copy:hover,.copy.done{color:var(--accent)}

/* ---------- small marks ---------- */
.chip{display:inline-flex; align-items:center; font-family:var(--sans); font-size:12.5px; padding:5px 12px; border-radius:99px;
  border:1px solid var(--line-2); color:var(--muted); background:rgba(255,255,255,.02); white-space:nowrap}
button.chip{min-height:32px; transition:.18s ease}
button.chip:hover{border-color:rgba(0,229,255,.5); color:var(--accent); background:var(--accent-wash)}
.tag{display:inline-flex; align-items:center; padding:3px 11px; border-radius:99px; white-space:nowrap;
  border:1px solid rgba(0,229,255,.4); background:rgba(0,229,255,.08); color:var(--accent);
  font-family:var(--sans); font-size:13px; font-weight:500; font-variant-numeric:tabular-nums}

/* ---------- calculator: shared pieces ---------- */
.calc{display:grid; grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr); gap:18px; align-items:stretch}
.field + .field{margin-top:28px}
.field-top{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px}
.field label,.field .lbl{font-family:var(--sans); font-size:15px; font-weight:500; color:var(--ink-2)}
.hint{font-size:14px; line-height:1.45; color:var(--muted); margin-top:8px}

input[type="range"]{-webkit-appearance:none; appearance:none; display:block; width:100%; height:28px; margin:0;
  background:transparent; cursor:pointer; --fill:50%}
input[type="range"]::-webkit-slider-runnable-track{height:6px; border-radius:99px;
  background:linear-gradient(90deg,rgba(0,229,255,.3),var(--accent)) 0 0/var(--fill) 100% no-repeat, #1c1c1b}
input[type="range"]::-moz-range-track{height:6px; border-radius:99px; background:#1c1c1b}
input[type="range"]::-moz-range-progress{height:6px; border-radius:99px; background:linear-gradient(90deg,rgba(0,229,255,.3),var(--accent))}
input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none; appearance:none; width:20px; height:20px; margin-top:-7px;
  border-radius:50%; background:#fff; border:0; box-shadow:0 0 0 4px rgba(0,229,255,.18), 0 0 14px rgba(0,229,255,.55)}
input[type="range"]::-moz-range-thumb{width:20px; height:20px; border-radius:50%; background:#fff; border:0;
  box-shadow:0 0 0 4px rgba(0,229,255,.18), 0 0 14px rgba(0,229,255,.55)}
input[type="range"]:focus-visible{outline:none}
input[type="range"]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--accent)}
input[type="range"]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--accent)}

.textin{display:flex; align-items:center; border:1px solid var(--line-2); border-radius:var(--r-sm);
  padding:0 14px; background:var(--well); transition:border-color .18s ease, box-shadow .18s ease}
.textin:focus-within{border-color:rgba(0,229,255,.55); box-shadow:0 0 0 3px rgba(0,229,255,.1)}
.textin span{font-family:var(--sans); color:var(--muted); font-weight:500; white-space:nowrap}
.textin input{font-family:var(--sans); font-size:18px; font-weight:600; border:0; outline:0; padding:12px 8px; width:100%; min-width:0;
  background:transparent; color:var(--ink); font-variant-numeric:tabular-nums}
.chips{display:flex; flex-wrap:wrap; gap:6px; margin-top:10px}

.seg{display:inline-flex; gap:4px; padding:4px; border:1px solid var(--line-2); border-radius:99px; background:var(--well)}
.seg button{font-family:var(--sans); font-size:14px; font-weight:500; color:var(--muted); min-width:44px; min-height:36px;
  padding:0 16px; border-radius:99px; transition:.18s ease}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:rgba(0,229,255,.14); color:var(--accent)}

/* results */
.big{font-family:var(--tight); font-weight:400; color:var(--ink); line-height:.95; letter-spacing:-.045em;
  font-size:clamp(60px,8.4vw,108px); font-variant-numeric:tabular-nums}
.big .u{color:var(--accent)}
.big small{font-size:.3em; letter-spacing:-.01em; color:var(--muted); margin-left:.3em}
.stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px}
.stat{padding:13px 15px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--card-2); min-width:0}
.stat .k{font-family:var(--sans); font-size:12.5px; color:var(--muted)}
.stat .v{margin-top:3px; font-family:var(--tight); font-size:24px; line-height:1.15; color:var(--ink); letter-spacing:-.02em;
  font-variant-numeric:tabular-nums}
.stat .s{font-family:var(--sans); font-size:12.5px; color:var(--muted); margin-top:2px}
.callout{padding:14px 16px; border:1px solid rgba(0,229,255,.4); border-radius:var(--r-sm); background:rgba(0,229,255,.05);
  font-size:15px; line-height:1.5; color:var(--ink-2)}
.callout b{font-weight:500; color:var(--accent)}
.fine{font-size:14px; line-height:1.55; color:var(--muted)}

/* next-step strip (the site's dashed .sys-cta) */
.next{margin-top:18px; padding:26px 30px; border:1px dashed var(--line-2); border-radius:var(--r);
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px 32px}
.next p{max-width:46ch; font-size:clamp(19px,2vw,24px); line-height:1.3; letter-spacing:-.02em; color:var(--ink)}
.next .btns{display:flex; flex-wrap:wrap; gap:10px}

/* ---------- footer ---------- */
.foot{border-top:1px solid var(--line); margin-top:96px; padding:44px 0 36px}
.foot-top{display:flex; justify-content:space-between; align-items:flex-start; gap:28px 48px; flex-wrap:wrap}
.foot-top p{font-size:15px; max-width:44ch; line-height:1.55; margin-top:14px}
.foot-links{display:flex; gap:10px 28px; flex-wrap:wrap; padding-top:4px}
.foot a{font-size:15px; color:var(--muted); transition:color .18s ease}
.foot a:hover{color:var(--accent)}
.foot-bar{margin-top:36px; padding-top:22px; border-top:1px solid var(--line);
  display:flex; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; font-size:14px; color:var(--muted)}
.foot-bar div:last-child{display:flex; gap:20px; flex-wrap:wrap}
.foot-bar a{font-size:14px}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .calc{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:780px){
  :root{--pad:16px}
  /* two rows on a phone: let it scroll away instead of covering the page */
  .nav{position:relative; padding:12px 0}
  .nav.stuck{background:transparent; border-bottom-color:transparent; backdrop-filter:none; -webkit-backdrop-filter:none}
  .nav-pill{order:3; width:100%; justify-content:center; overflow-x:auto}
  .nav-pill a,.nav-pill button{padding:8px 13px; font-size:14px}
  .head{padding:36px 0 34px}
  .head .lede{font-size:17px}
  .card{padding:22px 18px}
  .next{padding:22px 18px}
  .next .btns,.next .btn{width:100%}
  .foot{margin-top:64px}
}
@media (max-width:480px){
  .stats{grid-template-columns:1fr; gap:6px}
  .stat{display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:11px 14px}
  .stat .v{margin-top:0; font-size:21px}
  .stat .s{width:100%; margin-top:0}
  .brand span{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rise{animation:none}
  *{transition:none !important}
}
@media print{
  .sky,.nav,.foot{display:none}
}
