/* ============================================================
   DGIConnect — Experience layer (conversion + interaction)
   Loaded after style.css. Premium motion, simulated app UI,
   ROI calculator, AI preview, comparison, timeline, mobile.
   ============================================================ */

/* ---------- Scroll progress + floating demo CTA ---------- */
.scroll-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:200;
  background:linear-gradient(90deg,var(--gold),var(--gold-hover));transition:width .1s linear}
.demo-dock{position:fixed;right:20px;bottom:20px;z-index:150;transform:translateY(140%);transition:transform .4s var(--e-spring)}
.demo-dock.show{transform:none}
.demo-dock a{display:inline-flex;align-items:center;gap:8px;background:var(--gold);color:#071A3D;font-weight:700;
  padding:14px 22px;border-radius:var(--r-pill);box-shadow:var(--sh-float);font-size:15px}
.demo-dock a:hover{background:var(--gold-hover);transform:translateY(-2px)}
.demo-dock svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none}
@media(max-width:560px){.demo-dock{right:12px;bottom:12px}.demo-dock a{padding:12px 18px;font-size:14px}}

/* ---------- Animated eyebrow chip ---------- */
.chip-live{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:.02em;
  padding:6px 14px;border-radius:var(--r-pill);background:rgba(212,165,74,.14);color:var(--gold);border:1px solid rgba(212,165,74,.3)}
.chip-live .dot{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 0 rgba(212,165,74,.5);animation:pulse 2s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(212,165,74,.5)}70%{box-shadow:0 0 0 8px rgba(212,165,74,0)}100%{box-shadow:0 0 0 0 rgba(212,165,74,0)}}
@media(prefers-reduced-motion:reduce){.chip-live .dot{animation:none}}

/* ---------- Count-up stat band ---------- */
.statband{background:var(--surface);border-block:1px solid var(--border)}
.statband .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding-block:36px;text-align:center}
.statband .n{font-size:clamp(30px,4vw,44px);font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--text)}
.statband .n .u{color:var(--gold-pressed)}
:root[data-theme="dark"] .statband .n .u{color:var(--gold)}
.statband .l{font-size:13.5px;color:var(--text-2);margin-top:8px;font-weight:500}
@media(max-width:720px){.statband .wrap{grid-template-columns:1fr 1fr;gap:20px}}

/* ---------- Role selector ---------- */
.roles{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.role-btn{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:14.5px;font-weight:600;
  padding:11px 18px;border-radius:var(--r-pill);border:1.5px solid var(--border-strong);background:var(--surface);color:var(--text-2);cursor:pointer;
  transition:all .18s var(--e-std)}
.role-btn:hover{border-color:var(--gold);color:var(--text);transform:translateY(-1px)}
.role-btn[aria-pressed="true"]{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:var(--sh-md)}
.role-btn svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.75;fill:none}
.role-dyn{transition:opacity .3s var(--e-enter)}
.role-dyn.swap{opacity:0}

/* ---------- Problem / agitation ---------- */
.pain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:44px}
.pain{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:24px;position:relative;overflow:hidden;
  transition:transform .2s var(--e-std),box-shadow .2s}
.pain::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(var(--danger),var(--warning))}
.pain:hover{transform:translateY(-3px);box-shadow:var(--sh-md)}
.pain .ico{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--danger-subtle);color:var(--danger);margin-bottom:14px}
.pain .ico svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.75;fill:none}
.pain h3{font-size:17px;margin-bottom:6px}
.pain p{font-size:14px;color:var(--text-2);margin:0}
.pain .cost{margin-top:12px;font-size:13px;font-weight:600;color:var(--danger)}
@media(max-width:960px){.pain-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.pain-grid{grid-template-columns:1fr}}

.bridge{text-align:center;padding:40px 0}
.bridge .arrow-down{width:2px;height:56px;margin:0 auto 8px;background:linear-gradient(var(--border),var(--gold))}
.bridge h2{font-size:clamp(26px,3.6vw,40px)}
.bridge .accent{color:var(--gold-pressed)}
:root[data-theme="dark"] .bridge .accent{color:var(--gold)}

/* ---------- Interactive product tour (simulated app) ---------- */
.appsim{display:grid;grid-template-columns:220px 1fr;gap:0;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-lg);background:var(--surface)}
.appsim-rail{background:var(--sunken);border-right:1px solid var(--border);padding:16px 12px;display:flex;flex-direction:column;gap:4px}
.appsim-rail .brand{padding:6px 10px 14px;font-weight:700;font-size:15px}
.appsim-mod{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;font-size:13.5px;font-weight:500;color:var(--text-2);cursor:pointer;border:none;background:none;text-align:left;width:100%;transition:all .15s}
.appsim-mod:hover{background:var(--surface);color:var(--text)}
.appsim-mod[aria-selected="true"]{background:var(--primary);color:#fff}
.appsim-mod svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.75;fill:none;flex:0 0 18px}
.appsim-stage{padding:22px;min-height:440px;position:relative;background:var(--bg)}
.appsim-topbar{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.appsim-topbar .crumb{font-size:12px;color:var(--text-3)}
.appsim-topbar .badge-demo{margin-left:auto}
.appsim-panel{display:none;animation:fadein .4s var(--e-enter)}
.appsim-panel.active{display:block}
@keyframes fadein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.appsim-panel{animation:none}}
/* simulated widgets */
.sim-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.sim-kpi{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px}
.sim-kpi .l{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);font-weight:600}
.sim-kpi .v{font-size:22px;font-weight:700;margin-top:4px}
.sim-kpi .d{font-size:11px;color:var(--success);font-weight:600;margin-top:2px}
.sim-kpi .d.neg{color:var(--danger)}
.sim-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.sim-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}
.sim-card h4{font-size:13.5px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}
.sim-card h4 .tag{font-size:10px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--primary-subtle);color:var(--primary)}
.sim-list{list-style:none;padding:0;margin:0}
.sim-list li{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);font-size:13px}
.sim-list li:last-child{border-bottom:none}
.sim-list .st{font-size:10px;font-weight:700;padding:3px 9px;border-radius:999px;margin-left:auto}
.st.open{background:var(--warning-subtle);color:var(--warning)}
.st.urgent{background:var(--danger-subtle);color:var(--danger)}
.st.done{background:var(--success-subtle);color:var(--success)}
.st.paid{background:var(--success-subtle);color:var(--success)}
.st.pending{background:var(--warning-subtle);color:var(--warning)}
.sim-avatar{width:28px;height:28px;border-radius:50%;background:var(--primary);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700;flex:0 0 28px}
.sim-bar{height:8px;border-radius:4px;background:var(--sunken);overflow:hidden;margin-top:6px}
.sim-bar span{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--c1),var(--gold));width:0;transition:width 1s var(--e-enter)}
.sim-chart{width:100%;height:120px}
.sim-chart .ln{fill:none;stroke:var(--c1);stroke-width:2.5}
.sim-chart .ar{fill:url(#simgrad);opacity:.85}
.sim-chart .tg{fill:none;stroke:var(--gold);stroke-width:1.5;stroke-dasharray:4 4}
.sim-doc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.sim-doc{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px;text-align:center}
.sim-doc svg{width:26px;height:26px;stroke:var(--c3);stroke-width:1.5;fill:none;margin:0 auto 8px}
.sim-doc .nm{font-size:11.5px;font-weight:600}
.sim-doc .mt{font-size:10px;color:var(--text-3)}
.sim-feed{list-style:none;padding:0;margin:0}
.sim-feed li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.sim-feed .fi{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 34px}
.sim-feed .fi svg{width:18px;height:18px;stroke-width:1.75;fill:none}
.fi.blue{background:var(--primary-subtle);color:var(--primary)}
.fi.gold{background:var(--gold-subtle);color:var(--gold-pressed)}
.fi.green{background:var(--success-subtle);color:var(--success)}
.fi.red{background:var(--danger-subtle);color:var(--danger)}
.sim-feed .ft{font-size:13px}.sim-feed .fm{font-size:11px;color:var(--text-3);margin-top:2px}
@media(max-width:820px){.appsim{grid-template-columns:1fr}.appsim-rail{flex-direction:row;overflow-x:auto;border-right:none;border-bottom:1px solid var(--border)}.appsim-rail .brand{display:none}.appsim-mod{white-space:nowrap}.sim-row,.sim-kpis{grid-template-columns:1fr}.sim-doc-grid{grid-template-columns:1fr 1fr}}

/* ---------- ROI calculator ---------- */
.roi{display:grid;grid-template-columns:1fr 1.1fr;gap:0;border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-lg)}
.roi-inputs{padding:32px;background:var(--surface)}
.roi-inputs h3{font-size:19px;margin-bottom:4px}
.roi-inputs .sub{font-size:13px;color:var(--text-3);margin-bottom:22px}
.roi-field{margin-bottom:18px}
.roi-field label{display:flex;justify-content:space-between;font-size:13.5px;font-weight:600;margin-bottom:8px}
.roi-field label .val{color:var(--gold-pressed);font-variant-numeric:tabular-nums}
:root[data-theme="dark"] .roi-field label .val{color:var(--gold)}
.roi-field input[type=range]{width:100%;-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;background:var(--sunken);outline:none}
.roi-field input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:var(--gold);cursor:pointer;box-shadow:var(--sh-sm);border:2px solid var(--surface)}
.roi-field input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--gold);cursor:pointer;border:2px solid var(--surface)}
.roi-results{padding:32px;background:linear-gradient(160deg,var(--primary),var(--secondary));color:#fff;position:relative;overflow:hidden}
.roi-results::before{content:"";position:absolute;inset:0;background:var(--hero-grad-b)}
.roi-results>*{position:relative;z-index:1}
.roi-results h3{color:#fff;font-size:16px;opacity:.85;font-weight:500}
.roi-hero-num{font-size:clamp(36px,6vw,56px);font-weight:800;letter-spacing:-.03em;line-height:1;margin:8px 0}
.roi-hero-num .u{color:var(--gold)}
.roi-sub{color:rgba(255,255,255,.7);font-size:13px;margin-bottom:24px}
.roi-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.roi-metric{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:14px;backdrop-filter:blur(10px)}
.roi-metric .v{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}
.roi-metric .l{font-size:11.5px;color:rgba(255,255,255,.7);margin-top:2px}
.roi-metric .track{height:6px;border-radius:3px;background:rgba(255,255,255,.15);margin-top:8px;overflow:hidden}
.roi-metric .track span{display:block;height:100%;background:var(--gold);border-radius:3px;width:0;transition:width .8s var(--e-enter)}
.roi-disclaim{font-size:11px;color:rgba(255,255,255,.55);margin-top:20px}
.roi-cta{margin-top:20px}
@media(max-width:820px){.roi{grid-template-columns:1fr}}

/* ---------- AI assistant preview ---------- */
.ai-demo{border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh-lg);background:var(--surface);max-width:760px;margin-inline:auto}
.ai-head{background:var(--primary);color:#fff;padding:16px 20px;display:flex;align-items:center;gap:10px}
.ai-head svg{width:22px;height:22px;stroke:var(--gold);stroke-width:1.75;fill:none}
.ai-head .badge-demo{margin-left:auto}
.ai-body{padding:22px;min-height:280px;display:flex;flex-direction:column;gap:14px}
.ai-msg{max-width:82%;padding:12px 16px;border-radius:16px;font-size:14px;line-height:1.5;animation:fadein .3s var(--e-enter)}
.ai-msg.user{align-self:flex-end;background:var(--primary);color:#fff;border-bottom-right-radius:4px}
.ai-msg.bot{align-self:flex-start;background:var(--sunken);border:1px solid var(--border);border-bottom-left-radius:4px}
.ai-result{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ai-result .r{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.ai-result .r .v{font-size:18px;font-weight:700}
.ai-result .r .l{font-size:10.5px;color:var(--text-3);text-transform:uppercase;letter-spacing:.04em}
.ai-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:14px 16px;background:var(--sunken);border:1px solid var(--border);border-radius:16px}
.ai-typing span{width:7px;height:7px;border-radius:50%;background:var(--text-3);animation:blink 1.4s infinite both}
.ai-typing span:nth-child(2){animation-delay:.2s}.ai-typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.ai-chips{display:flex;flex-wrap:wrap;gap:8px;padding:16px 22px;border-top:1px solid var(--border);background:var(--sunken)}
.ai-chip{font-size:13px;font-weight:500;padding:8px 14px;border-radius:var(--r-pill);border:1px solid var(--border-strong);background:var(--surface);color:var(--text-2);cursor:pointer;transition:all .15s}
.ai-chip:hover{border-color:var(--gold);color:var(--text)}
@media(prefers-reduced-motion:reduce){.ai-typing span{animation:none}.ai-msg{animation:none}}

/* ---------- Competitor comparison matrix ---------- */
.matrix-wrap{overflow-x:auto;border-radius:var(--r-lg);border:1px solid var(--border);box-shadow:var(--sh-md)}
.matrix{width:100%;border-collapse:collapse;min-width:720px;background:var(--surface)}
.matrix th,.matrix td{padding:14px 16px;text-align:center;border-bottom:1px solid var(--border);font-size:13.5px}
.matrix th:first-child,.matrix td:first-child{text-align:left;font-weight:600}
.matrix thead th{background:var(--sunken);font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-2);position:sticky;top:0}
.matrix .col-dgi{background:linear-gradient(var(--primary),var(--primary));color:#fff;font-weight:700}
.matrix tbody .col-dgi{background:var(--primary-subtle)}
:root[data-theme="dark"] .matrix tbody .col-dgi{background:rgba(44,74,128,.25)}
.matrix .yes{color:var(--success)}.matrix .no{color:var(--text-3)}
.matrix .yes svg,.matrix .no svg{width:20px;height:20px;stroke-width:2.5;fill:none;display:inline-block;vertical-align:middle}
.matrix .yes svg{stroke:var(--success)}.matrix .no svg{stroke:var(--text-3)}

/* ---------- Implementation timeline ---------- */
.timeline{position:relative;margin-top:48px}
.timeline::before{content:"";position:absolute;left:26px;top:10px;bottom:10px;width:2px;background:linear-gradient(var(--gold),var(--border))}
.tl-step{display:grid;grid-template-columns:56px 1fr;gap:20px;padding-bottom:28px;position:relative}
.tl-step .num{width:54px;height:54px;border-radius:50%;background:var(--surface);border:2px solid var(--gold);color:var(--gold-pressed);
  display:grid;place-items:center;font-weight:700;font-size:18px;z-index:1;box-shadow:var(--sh-sm)}
:root[data-theme="dark"] .tl-step .num{color:var(--gold)}
.tl-step .body{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-card);padding:20px 24px;box-shadow:var(--sh-sm)}
.tl-step .body h3{font-size:18px;margin-bottom:6px;display:flex;align-items:center;gap:10px}
.tl-step .body .when{font-size:12px;font-weight:600;color:var(--gold-pressed);text-transform:uppercase;letter-spacing:.04em}
:root[data-theme="dark"] .tl-step .body .when{color:var(--gold)}
.tl-step .body p{font-size:14.5px;color:var(--text-2);margin:8px 0 0}

/* ---------- Mobile experience ---------- */
.phones{display:flex;gap:24px;justify-content:center;align-items:flex-end;flex-wrap:wrap}
.phone{width:230px;border-radius:34px;border:8px solid #0b1526;background:var(--surface);box-shadow:var(--sh-float);overflow:hidden;position:relative}
:root[data-theme="dark"] .phone{border-color:#000}
.phone .notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:110px;height:22px;background:#0b1526;border-radius:0 0 14px 14px;z-index:2}
:root[data-theme="dark"] .phone .notch{background:#000}
.phone .screen{padding:34px 14px 18px}
.phone .pt{font-size:13px;font-weight:700;margin-bottom:12px}
.phone .pcard{background:var(--sunken);border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:10px;font-size:11.5px}
.phone .pcard .h{font-weight:600;font-size:12px;margin-bottom:4px;display:flex;justify-content:space-between}
.notif-float{position:absolute;left:12px;right:12px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 12px;box-shadow:var(--sh-md);font-size:11px;display:flex;gap:8px;align-items:center;animation:slidein 4s var(--e-spring) infinite}
@keyframes slidein{0%,100%{opacity:0;transform:translateY(-10px)}10%,60%{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.notif-float{animation:none;opacity:1}}
.phone .notif-float svg{width:16px;height:16px;stroke:var(--gold-pressed);stroke-width:2;fill:none;flex:0 0 16px}

/* ---------- Case studies (labeled illustrative) ---------- */
.cases{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:44px}
.case{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:26px;box-shadow:var(--sh-sm);transition:transform .2s,box-shadow .2s}
.case:hover{transform:translateY(-4px);box-shadow:var(--sh-md)}
.case .badge-demo{margin-bottom:14px}
.case .who{font-size:13px;color:var(--text-3);margin-bottom:14px}
.case .ba{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin:16px 0}
.case .ba .b{text-align:center}
.case .ba .b .v{font-size:22px;font-weight:700}
.case .ba .b.before .v{color:var(--danger)}
.case .ba .b.after .v{color:var(--success)}
.case .ba .b .l{font-size:10.5px;color:var(--text-3);text-transform:uppercase;letter-spacing:.04em}
.case .ba .ar{color:var(--gold-pressed)}
.case .ar svg{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none}
.case .q{font-size:14px;color:var(--text-2);font-style:italic;border-left:3px solid var(--gold);padding-left:14px;margin-top:12px}
@media(max-width:960px){.cases{grid-template-columns:1fr}}

/* ---------- Trust marquee (value strip) ---------- */
.valuewall{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;margin-top:40px}
.vw{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:18px 14px;text-align:center}
.vw svg{width:26px;height:26px;stroke:var(--gold-pressed);stroke-width:1.6;fill:none;margin:0 auto 8px}
:root[data-theme="dark"] .vw svg{stroke:var(--gold)}
.vw .t{font-size:12.5px;font-weight:600}
@media(max-width:960px){.valuewall{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.valuewall{grid-template-columns:1fr 1fr}}

/* ---------- Section reveal choreography ---------- */
.js .rise{opacity:0;transform:translateY(24px);transition:opacity .7s var(--e-enter),transform .7s var(--e-enter)}
.rise.in{opacity:1;transform:none}
.rise-2{transition-delay:.08s}.rise-3{transition-delay:.16s}.rise-4{transition-delay:.24s}
@media(prefers-reduced-motion:reduce){.rise{opacity:1;transform:none;transition:none}}

/* ---------- App-window frame (premium product shot) ---------- */
.app-frame{border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.16);box-shadow:var(--sh-float);background:var(--surface)}
.app-frame .chrome{display:flex;align-items:center;gap:7px;padding:11px 14px;background:#0d1730;border-bottom:1px solid rgba(255,255,255,.08)}
.app-frame .chrome .dot{width:11px;height:11px;border-radius:50%}
.app-frame .chrome .r{background:#ff5f57}.app-frame .chrome .y{background:#febc2e}.app-frame .chrome .g{background:#28c840}
.app-frame .chrome .url{margin-left:10px;font-size:11px;color:rgba(255,255,255,.55);background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:7px;padding:4px 12px;flex:1;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-frame .shot{position:relative;line-height:0}
.app-frame .shot img{display:block;width:100%;height:auto}
.app-frame .shot .cap{position:absolute;top:12px;right:12px;z-index:2}
:root[data-theme="light"] .app-frame{border-color:var(--border)}

/* gradient text accent */
.grad{background:linear-gradient(100deg,var(--gold-pressed),var(--gold-hover));-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-theme="dark"] .grad{background:linear-gradient(100deg,var(--gold),var(--gold-hover));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---- Book-a-Demo hotfix: checklist icon sizing (unsized SVGs were rendering 100-360px) ---- */
.stack{display:grid;gap:14px;margin:16px 0 0;padding:0;list-style:none}
.stack li{display:flex;gap:12px;align-items:flex-start;color:var(--text-2);font-size:15px;line-height:1.55}
.stack li svg{width:22px;height:22px;min-width:22px;flex:0 0 22px;margin-top:2px;stroke:var(--success);stroke-width:2;fill:none}

/* ---- Header: prevent nav overflow in the 961-1080 band (was ~21px over at 1024) ---- */
@media (min-width:961px) and (max-width:1080px){
  .nav{gap:10px}
  .nav-links{margin-left:2px}
  .nav-links a{padding:8px 9px;font-size:14px}
  .nav-right{gap:8px}
}

/* ============================================================
   PRESENTATION POLISH — perceived-quality pass (v1.0.5, additive)
   Keynote-grade refinements layered over the base design system.
   Goal: minimalism, the product as the visual hero, one icon language.
   ============================================================ */

/* 1 · ICON NORMALIZATION — one visual language everywhere.
   Root cause of the "black triangles" (role-benefits list) and the garbled
   "Demo data" badge: inline SVG icons in these contexts had no size and no
   stroke, so their <path> rendered SOLID BLACK and huge. Size + line-style
   every inline UI icon so none can ever balloon into a black shape again. */
.dgi .badge-demo svg{width:13px;height:13px;flex:0 0 13px;stroke:currentColor;stroke-width:2;fill:none}
.dgi .btn svg{width:18px;height:18px;flex:0 0 18px}
.dgi .btn-lg svg{width:19px;height:19px;flex:0 0 19px}
.dgi .hero-note svg,.dgi .form-note svg,.dgi .muted svg,.dgi .cost svg{width:14px;height:14px;flex:0 0 14px}

/* Role-benefits list — small gold checks + tight, premium rhythm.
   (Was three enormous solid-black triangles that also blew the section's
   vertical spacing wide open.) */
[data-role-benefits]{display:flex;flex-direction:column;gap:14px;margin:22px 0 30px}
[data-role-benefits] li{display:flex;align-items:flex-start;gap:12px;font-size:16.5px;line-height:1.5;color:var(--text-2);margin:0}
[data-role-benefits] li svg{flex:0 0 22px;width:22px;height:22px;stroke:var(--gold);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
[data-role-benefits] li span{flex:1}

/* 2 · THE PRODUCT IS THE HERO — screenshots get more room than the copy.
   Desktop only; below 1025px the base rules stack the columns as before. */
@media (min-width:1025px){
  .hero-grid{grid-template-columns:1fr 1.26fr;gap:60px}
  section:has(.roles) .grid.g2{grid-template-columns:1fr 1.18fr!important;gap:56px!important}
}
.app-frame{border-radius:18px}

/* 3 · BREATHE — a little more air on the proof stat band */
.statband .wrap{padding-block:46px}

/* 4 · TYPOGRAPHY — crisper hierarchy on the dynamic role headline + leads */
.role-dyn[data-role-headline]{letter-spacing:-.015em}
.sec .lead.center{max-width:62ch}

/* 5 · LANGUAGE SWITCHER — small, quiet, premium (Stripe-like). Never draws attention. */
.lang-switch{display:inline-flex;align-items:center;gap:1px;padding:2px;border:1px solid var(--border);border-radius:var(--r-pill);background:var(--surface);flex:0 0 auto}
.lang-switch .lang-opt{font-size:11.5px;font-weight:600;letter-spacing:.02em;line-height:1;color:var(--text-3);padding:5px 8px;border-radius:var(--r-pill);transition:color .15s var(--e-std),background .15s var(--e-std)}
.lang-switch .lang-opt:hover{color:var(--text-2)}
.lang-switch .lang-opt.on{color:var(--text);background:var(--sunken)}
:root[data-theme="dark"] .lang-switch .lang-opt.on{background:var(--raised)}

/* 6 · PHONE MOCKUPS — physically-correct iPhone proportions, Dynamic-Island pill,
   uniform premium bezel + edge highlight, dimensional shadow. (Were flat, stretched,
   content-driven heights with a dated wide-bar notch.) */
.phones{align-items:center;gap:30px}
.phone{width:236px;aspect-ratio:9 / 19.3;border-radius:46px;border:11px solid #0e1a30;
  box-shadow:0 2px 6px rgba(7,26,61,.10),0 24px 54px rgba(7,26,61,.22),0 46px 100px rgba(7,26,61,.12)}
:root[data-theme="dark"] .phone{border-color:#05070d;box-shadow:0 24px 54px rgba(0,0,0,.55),0 46px 100px rgba(0,0,0,.42)}
.phone::after{content:"";position:absolute;inset:0;border-radius:35px;pointer-events:none;z-index:4;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.05)}
.phone .notch{top:11px;width:78px;height:23px;border-radius:999px;background:#0a1424}
:root[data-theme="dark"] .phone .notch{background:#000}
.phone .screen{padding:46px 15px 20px;height:100%;overflow:hidden}
.phone .notif-float{top:auto;bottom:14px}

/* 7 · FEATURE-CARD list icons — small gold checks + tight rhythm (were giant checkmarks) */
.card ul li{align-items:flex-start!important;padding:5px 0!important}
.card ul li svg{width:18px;height:18px;flex:0 0 18px;stroke:var(--gold);stroke-width:2.3;fill:none;stroke-linecap:round;stroke-linejoin:round;margin-top:2px}

/* 8 · CONTACT cards — small inline icons (were huge), so the form becomes the focus */
.card h3 svg{width:20px;height:20px;flex:0 0 20px;stroke:var(--gold);stroke-width:2;fill:none}

/* 9 · RESPONSIVE NAV — the language switcher needs room. Collapse the links to the
   hamburger earlier (≤1080) so the bar never overflows, and trim the brand lockup to
   just "DGIConnect" on small phones so the header fits cleanly at 390. */
@media (max-width:1080px){ .nav-links{display:none} .menu-toggle{display:grid} }
@media (max-width:440px){
  .brand .sub,.brand-rule{display:none}
  .nav-right{gap:8px}
  .lang-switch .lang-opt{padding:5px 7px}
}
/* Long CTAs (esp. Greek) must wrap, not overflow, on phones */
@media (max-width:560px){ .btn{white-space:normal;text-align:center} }
