/* signal.css: a copy of ngenmarketsai style/home.css (01-Oct-2026), the "Signal" design language of www.ngenmarkets.in.
   The hub shares its tokens, buttons, header, sections, frames, cards and footer. Hub-only rules live in site.css.
   If home.css changes in a way the hub should follow, copy it again; do not hand-edit this copy. */
/* NGEN Markets public home page (index.html), design "Signal (light)": airy ice-blue, navy type,
   blue/teal signal lines. Loaded INSTEAD of markets.min.css (whose global `header {position:absolute}` rule
   would break this page). The panel status lines (.l_status, .l_reminder_status) are written by the unchanged
   markets.min.js with INLINE colours meant for the old dark-blue box; the rules near the end map those inline
   colours to readable states here (attribute selectors + !important). */
:root {
    --ink: #002b3e;
    --ink2: #0b3a50;
    --body: #46596a;
    --muted: #5f6b76;
    --blue: #006187;
    --navy: #003c55;
    --navy2: #002b3e;
    --navy3: #001a27;
    --teal: #00a198;
    --teal-b: #33d6c9;
    --orange: #e67e22;
    --up: #117a58;
    --down: #c0392b;
    --ice: #f4f8fa;
    --ice2: #e8f3fa;
    --line: rgba(0, 60, 85, .10);
    --line2: rgba(0, 60, 85, .06);
    --q1: #1d9e75; --q2: #9ccc65; --q3: #f4b04f; --q4: #d64545;
    --r: 20px;
    --shadow: 0 1px 2px rgba(0, 43, 62, .06), 0 18px 40px -18px rgba(0, 43, 62, .22);
    --shadow-lg: 0 2px 4px rgba(0, 43, 62, .04), 0 40px 90px -36px rgba(0, 43, 62, .34), 0 16px 36px -20px rgba(0, 97, 135, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --hdr: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
    margin: 0; font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink);
    background: #fff; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
a { color: var(--blue); }
.brk { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ---------- buttons ---------- */
.btn {
    --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: var(--h); padding: 0 20px;
    border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; cursor: pointer;
    white-space: nowrap; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { --h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary {
    color: #fff; background: linear-gradient(135deg, #0a7aa6 0%, var(--blue) 45%, var(--navy) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(0, 97, 135, .65), 0 0 0 1px rgba(0, 60, 85, .25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 16px 30px -12px rgba(0, 97, 135, .7), 0 0 0 1px rgba(0, 60, 85, .3), 0 0 0 6px rgba(51, 214, 201, .14); }
.btn-ghost { color: var(--navy); background: rgba(255, 255, 255, .7); border-color: rgba(0, 60, 85, .18); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-quiet { color: var(--navy); background: #fff; border-color: rgba(0, 60, 85, .14); box-shadow: 0 6px 18px -12px rgba(0, 43, 62, .35); }
.btn-quiet:hover { border-color: rgba(0, 161, 152, .6); color: var(--blue); transform: translateY(-1px); }
.ico { width: 17px; height: 17px; margin-left: -3px; }
.ico-r { width: 19px; height: 19px; margin-right: -4px; transition: transform .25s var(--ease); }
.btn:hover .ico-r { transform: translateX(3px); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(0, 97, 135, .35); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--blue); }
.link.sm { font-size: 12.5px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.scrolled { border-bottom-color: var(--line2); box-shadow: 0 8px 30px -22px rgba(0, 43, 62, .35); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; flex: none; border-radius: 6px; }
.brand-logo {
    display: block; width: 168px; height: 33px; background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 70%, #0a7aa6 100%);
    -webkit-mask: url(../images/home/logo_white.png) left center / contain no-repeat; mask: url(../images/home/logo_white.png) left center / contain no-repeat;
}
.hdr-nav { display: flex; gap: 4px; margin-left: 12px; }
.hdr-nav a { color: var(--ink2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.hdr-nav a:hover { background: var(--ice2); color: var(--blue); }
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-about { color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none; margin-right: 8px; }
.hdr-about:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: clamp(660px, calc(100vh - var(--hdr)), 828px);
    background: linear-gradient(180deg, #ffffff 0%, #f6fafc 55%, #eef6fa 100%);
    display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; will-change: transform; }
.g1 { width: 820px; height: 820px; right: -160px; top: -300px; background: radial-gradient(closest-side, rgba(51, 214, 201, .22), rgba(51, 214, 201, 0)); animation: drift1 26s ease-in-out infinite alternate; }
.g2 { width: 900px; height: 900px; left: -380px; bottom: -520px; background: radial-gradient(closest-side, rgba(0, 97, 135, .13), rgba(0, 97, 135, 0)); animation: drift2 32s ease-in-out infinite alternate; }
.g3 { width: 520px; height: 520px; right: 18%; bottom: -260px; background: radial-gradient(closest-side, rgba(10, 122, 166, .10), rgba(10, 122, 166, 0)); animation: drift1 22s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-70px, 50px, 0) scale(1.08); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(90px, -40px, 0) scale(1.05); } }
.gridlines {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(0, 97, 135, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 97, 135, .055) 1px, transparent 1px);
    background-size: 56px 56px; background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 70% 75% at 68% 42%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 75% at 68% 42%, #000 20%, transparent 75%);
}
/* The panel is placed by home.js with width/height + a TRANSFORM from the hero's top-left corner, never left/top:
   a transform move is not a layout shift (left/top placement after first paint scored CLS 0.15). Hidden until placed. */
.stage-bg {
    position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; opacity: 0; transition: opacity .5s ease;
    border-radius: 22px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 252, 253, .72));
    border: 1px solid rgba(0, 97, 135, .11);
    box-shadow: 0 1px 0 #fff inset, 0 30px 70px -40px rgba(0, 43, 62, .35), 0 10px 26px -18px rgba(0, 97, 135, .18);
}
.stage-bg.placed { opacity: 1; }
.streams { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
/* .fw = "fonts waiting" (index.html <head>): the hero's text and cards stay hidden until Montserrat is in (2.5 s at
   most), so the font swap cannot re-wrap the headline and move the page under a visitor's eyes (a layout shift) */
.fw .hero-in { visibility: hidden; }
.hero-in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 56px; align-items: center; padding-top: 36px; padding-bottom: 44px; }

.hero-copy { position: relative; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; left: -120px; right: -60px; top: -60px; bottom: -60px; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255,255,255,.7) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,0) 100%); pointer-events: none; }
.lede, .proof { position: relative; }
.lede::before { content: ""; position: absolute; inset: -10px -16px; z-index: -1; background: rgba(255,255,255,.72); filter: blur(10px); border-radius: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(232, 243, 250, .85); border: 1px solid rgba(0, 97, 135, .12); }
.lc { text-transform: none; }
.pip { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(0, 161, 152, .5); animation: pip 2.4s ease-out infinite; flex: none; }
.pip.closed { background: #8aa4b2; animation: none; }
@keyframes pip { 0% { box-shadow: 0 0 0 0 rgba(0, 161, 152, .45); } 70% { box-shadow: 0 0 0 9px rgba(0, 161, 152, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 161, 152, 0); } }
h1 { margin: 26px 0 0; font-size: clamp(44px, 5.5vw, 82px); line-height: .98; letter-spacing: -.045em; font-weight: 700; color: var(--ink); }
.grad { background: linear-gradient(95deg, var(--blue) 5%, #0a8fa3 45%, var(--teal) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.lede { margin-top: 24px; max-width: 30em; font-size: 18.5px; line-height: 1.6; color: var(--body); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-ctas.center { justify-content: center; }
.proof { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof svg { width: 18px; height: 18px; color: var(--teal); flex: none; }

/* stage: layout box + chrome (the panel itself is .stage-bg, drawn beneath the streams) */
.hero-vis { position: relative; display: flex; flex-direction: column; gap: 18px; }
.stage { position: relative; height: 370px; }
.stage-head { position: absolute; left: 0; right: 0; top: 0; padding: 18px 20px 0 22px; display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.stage-k { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.stage-t { font-size: 15.5px; font-weight: 700; color: var(--ink); margin-top: 3px; letter-spacing: -.01em; }
.stage-s { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; height: 18px; overflow: hidden; white-space: nowrap; }
.stage-s > span { flex: none; }
.stage-s > span:last-child { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.stage-s .sw { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink2); }
.stage-s .sw i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.stage-s .sq i { width: 10px; height: 10px; border-radius: 3px; }
.stage-cap { transition: opacity .5s; min-width: 0; }
.stage-cap.fade { opacity: 0; }
.seg { display: flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(232, 243, 250, .9); border: 1px solid rgba(0, 97, 135, .10); }
.seg button { position: relative; border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; overflow: hidden; transition: color .25s, background-color .25s, box-shadow .25s; }
.seg button:hover { color: var(--blue); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px -3px rgba(0, 43, 62, .3); }
.seg button i { position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); transform-origin: left; transform: scaleX(0); opacity: 0; }
.seg button[aria-pressed="true"] i { opacity: .9; }
.seg button:disabled { opacity: .45; cursor: default; }

/* svg element classes */
.sv-lbl { fill: #6b7883; font-family: Montserrat, sans-serif; font-size: 10.5px; font-weight: 500; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.sv-lbl.b { fill: #33505f; font-weight: 600; }
.sv-lbl.row { fill: #264556; font-size: 11px; font-weight: 600; }
.sv-lbl.head { fill: #6b7883; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.sv-grid { stroke: rgba(0, 60, 85, .08); stroke-width: 1; fill: none; }
.sv-zero { stroke: rgba(0, 60, 85, .28); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.sv-chip-t { font-family: Montserrat, sans-serif; font-size: 10px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.sv-cell-t { font-family: Montserrat, sans-serif; font-size: 9.5px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.sv-end { font-family: Montserrat, sans-serif; font-size: 11px; font-weight: 700; }
.sv-pill { fill: #fff; stroke: rgba(0,60,85,.12); stroke-width: 1; }

/* live row: brief + chips */
.live-row { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 16px; align-items: stretch; }
.brief {
    position: relative; padding: 18px 20px 16px; border-radius: 18px; background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 97, 135, .12); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 252px;
}
.brief::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--teal), var(--blue)); }
.brief-h { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pip 2.4s ease-out infinite; flex: none; }
.brief-t { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.tag { margin-left: auto; font-size: 10.5px; font-weight: 600; color: #6a4a00; background: #fff3dc; border: 1px solid #f5d9a3; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.brief-lead { margin-top: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.shimmer { display: block; height: 12px; border-radius: 6px; margin: 5px 0 9px; background: linear-gradient(90deg, #eaf2f6, #f6fafc, #eaf2f6); background-size: 200% 100%; animation: shim 1.4s linear infinite; }
.shimmer.s2 { width: 70%; }
@keyframes shim { to { background-position: -200% 0; } }
.brief-pt { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(0, 60, 85, .14); flex: 1; transition: opacity .45s, transform .45s var(--ease); }
.brief-pt.out { opacity: 0; transform: translateY(6px); }
.pt-title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.pt-body { font-size: 13.5px; line-height: 1.5; color: var(--body); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.5em; }   /* 3 lines held: a shorter point never resizes the card (on phones the chips below jumped every 6 s) */
.brief-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.brief-nav { display: flex; gap: 5px; }
.brief-nav i { width: 16px; height: 3px; border-radius: 2px; background: rgba(0, 60, 85, .12); position: relative; overflow: hidden; }
.brief-nav i.done { background: rgba(0, 161, 152, .55); }
.brief-nav i.on::after { content: ""; position: absolute; inset: 0; background: var(--teal); transform-origin: left; animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.chips { display: flex; flex-direction: column; gap: 8px; }
.chips-h { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 2px 2px 0; min-height: 18px; }
.chip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.chip {
    position: relative; padding: 9px 12px 9px 13px; border-radius: 14px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(0, 97, 135, .11);
    box-shadow: 0 8px 20px -16px rgba(0, 43, 62, .4); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
    transition: opacity .45s, transform .45s var(--ease);
}
.chip.out { opacity: 0; transform: translateY(8px); }
.chip-n { grid-column: 1 / -1; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-p { font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; grid-row: 2; margin-top: 2px; }
.chip-c { grid-row: 2; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip-c.up { color: var(--up); } .chip-c.dn { color: var(--down); } .chip-c.fl { color: var(--muted); }
.chip.flash { animation: flash 1.2s ease-out; }
.chip-sk .chip-n, .chip-sk .chip-p { color: transparent; border-radius: 6px; background: linear-gradient(90deg, #eaf2f6, #f6fafc, #eaf2f6); background-size: 200% 100%; animation: shim 1.4s linear infinite; }
.chip-sk .chip-n { width: 62%; }
.chip-sk .chip-p { width: 74%; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(51, 214, 201, .45); } 100% { box-shadow: 0 8px 20px -16px rgba(0, 43, 62, .4); } }

/* ---------- sections ---------- */
.sec { position: relative; padding: 104px 0; }
.sec-research { background: #fff; }
.sec-briefs { background: linear-gradient(180deg, var(--ice) 0%, #fff 100%); }
.sec-compare { background: #fff; }
.sec-port { background: linear-gradient(180deg, var(--ice) 0%, #f9fcfd 100%); }
.sec-share { background: #fff; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -.038em; color: var(--ink); margin-top: 14px; }
.sub { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--body); max-width: 36em; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* frames */
.frame { position: relative; border-radius: 20px; padding: 8px; background: linear-gradient(180deg, #ffffff, #f3f8fb); border: 1px solid rgba(0, 97, 135, .12); box-shadow: var(--shadow-lg); }
.frame-in { position: relative; border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 60, 85, .06); }
.shot { width: 100%; background-repeat: no-repeat; background-color: #fff; }
.s-r1{background-size:100.046% auto;background-position:99.237% 0%;aspect-ratio:2199/1294}
.s-r2{background-size:100.046% auto;background-position:0.832% 100%;aspect-ratio:2199/1294}
.s-r3{background-size:100.046% auto;background-position:0.832% 0%;aspect-ratio:2199/1294}
.s-r4{background-size:100.046% auto;background-position:0.832% 0%;aspect-ratio:2199/1294}
.s-r5{background-size:102.433% auto;background-position:99.245% 0%;aspect-ratio:3491/2053}
.s-c2{background-size:100% auto;background-position:0% 0.671%;aspect-ratio:2999/977}
.s-a5{background-size:100% auto;background-position:0% 99.615%;aspect-ratio:2234/1361}
.s-b5{background-size:100.083% auto;background-position:50.05% 99.896%;aspect-ratio:2419/1501}
.s-b2{background-size:100.067% auto;background-position:98.973% 0.042%;aspect-ratio:1494/649}
.s-b6{background-size:100.062% auto;background-position:0.549% 0.038%;aspect-ratio:1606/775}
.s-p1{background-size:100.126% auto;background-position:50% 49.995%;aspect-ratio:1592/2136}
/* Section screenshots load only when their section nears the viewport (home.js adds .ld), so they never compete
   with the hero's live data; without JS (no .js class) they load as usual. */
.ld .s-r1, html:not(.js) .s-r1 { background-image: url(../images/home/r1.webp); }
.ld .s-r2, html:not(.js) .s-r2 { background-image: url(../images/home/r2.webp); }
.ld .s-r3, html:not(.js) .s-r3 { background-image: url(../images/home/r3.webp); }
.ld .s-r4, html:not(.js) .s-r4 { background-image: url(../images/home/r4.webp); }
.ld .s-r5, html:not(.js) .s-r5 { background-image: url(../images/home/r5.webp); }
.ld .s-c2, html:not(.js) .s-c2 { background-image: url(../images/home/c2.webp); }
.ld .s-a5, html:not(.js) .s-a5 { background-image: url(../images/home/a5.webp); }
.ld .s-b5, html:not(.js) .s-b5 { background-image: url(../images/home/b5.webp); }
.ld .s-b2, html:not(.js) .s-b2 { background-image: url(../images/home/b2.webp); }
.ld .s-b6, html:not(.js) .s-b6 { background-image: url(../images/home/b6.webp); }
.ld .s-p1, html:not(.js) .s-p1 { background-image: url(../images/home/p1.webp); }

/* research carousel */
.carousel { margin: 48px auto 0; max-width: 1000px; }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tabs button { position: relative; overflow: hidden; border: 1px solid rgba(0, 60, 85, .12); background: #fff; color: var(--ink2); padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.tabs button:hover { border-color: rgba(0, 97, 135, .4); color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 43, 62, .7); }
.tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--teal-b), var(--teal)); transform-origin: left; transform: scaleX(0); }
.tabs button[aria-selected="true"] i { animation: fill var(--dur, 6s) linear forwards; }
.frame-lg .frame-in { aspect-ratio: 2199/1294; }
.frame-lg .frame-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 92%); }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.slide.on { opacity: 1; transform: none; }
.caption { text-align: center; margin-top: 24px; font-size: 15px; color: var(--muted); font-weight: 500; min-height: 24px; transition: opacity .35s; }
.caption.out { opacity: 0; }

/* split sections */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: center; }
.split-vis { position: relative; }
.timeline { list-style: none; padding: 0 0 0 30px; margin: 40px 0 0; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(0, 161, 152, .35), rgba(0, 97, 135, .2)); }
.timeline::after { content: ""; position: absolute; left: 3px; top: 4px; width: 8px; height: 26px; border-radius: 4px; background: linear-gradient(180deg, rgba(51, 214, 201, 0), var(--teal-b), rgba(51, 214, 201, 0)); animation: travel 7.5s cubic-bezier(.55, 0, .45, 1) infinite; }
@keyframes travel { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { transform: translateY(var(--tl, 200px)); opacity: 0; } }
.timeline li { position: relative; display: grid; gap: 3px; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: 0 0 0 4px rgba(0, 161, 152, .1); }
.tl-when { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-what { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.tl-plan { justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--navy); background: var(--ice2); border: 1px solid rgba(0, 97, 135, .14); padding: 2px 10px; border-radius: 999px; }
.tl-plan.open { color: #0b6b53; background: #e3f5ef; border-color: rgba(29, 158, 117, .25); }
.float-note { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(0, 97, 135, .14); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--navy); animation: bob 6s ease-in-out infinite; }
.float-note svg { width: 16px; height: 16px; color: var(--teal); }
.fn-brand { left: 36px; top: -20px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* compare */
.frame-wide { margin: 56px auto 0; max-width: 1180px; }
.scan-host { position: relative; }
.scan { position: absolute; top: 0; bottom: 0; left: 27%; width: 5.5%; background: linear-gradient(90deg, rgba(51, 214, 201, 0), rgba(51, 214, 201, .22) 50%, rgba(51, 214, 201, 0)); border-left: 1px solid rgba(0, 161, 152, .25); border-right: 1px solid rgba(0, 161, 152, .25); animation: scan 9s cubic-bezier(.45, 0, .55, 1) infinite; mix-blend-mode: multiply; }
@keyframes scan { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 52% { opacity: 1; } 58% { transform: translateX(1230%); opacity: 0; } 100% { transform: translateX(1230%); opacity: 0; } }
.facts { list-style: none; padding: 0; margin: 48px auto 0; max-width: 980px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--ice); border: 1px solid var(--line2); }
.facts b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--blue); flex: none; }
.facts span { font-size: 14.5px; color: var(--body); font-weight: 500; line-height: 1.4; }
.mini-heat { display: grid !important; grid-template-columns: repeat(4, 10px); gap: 3px; }
.mini-heat i { width: 10px; height: 10px; border-radius: 2px; display: block; background: #bfe6d8; animation: heat 4s ease-in-out infinite; }
.mini-heat i:nth-child(1) { background: #1d9e75; } .mini-heat i:nth-child(2) { background: #f2b8b8; animation-delay: .4s; } .mini-heat i:nth-child(3) { background: #7fcdb1; animation-delay: .8s; } .mini-heat i:nth-child(4) { background: #d64545; animation-delay: 1.2s; }
.mini-heat i:nth-child(5) { background: #e98a8a; animation-delay: 1.6s; } .mini-heat i:nth-child(6) { background: #1d9e75; animation-delay: 2s; } .mini-heat i:nth-child(7) { background: #a9dcc9; animation-delay: 2.4s; } .mini-heat i:nth-child(8) { background: #52b894; animation-delay: 2.8s; }
@keyframes heat { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.files { display: flex !important; gap: 4px; }
.files em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: #fff; padding: 5px 7px; border-radius: 6px; background: #c2552b; }
.files em + em { background: #1f7a4d; }

/* portfolios bento */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 20px; }
.card { position: relative; border-radius: 22px; background: #fff; border: 1px solid rgba(0, 97, 135, .1); box-shadow: var(--shadow); padding: 26px 26px 0; display: flex; flex-direction: column; overflow: hidden; }
.card h3 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
.card p { margin-top: 8px; font-size: 15px; color: var(--body); line-height: 1.55; }
.card .pro { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: #00766f; background: #e0f5f3; border: 1px solid rgba(0, 161, 152, .25); padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.card-shot { margin: auto -1px 0; border-top: 1px solid var(--line2); border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -10px 30px -24px rgba(0, 43, 62, .5); }
.c-a { grid-column: 1 / 3; grid-row: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 24px; padding: 30px 0 0 30px; }
.c-a .card-copy { padding-bottom: 30px; margin-bottom: 0; align-self: center; }
.c-a .card-shot { margin: 0; border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); border-radius: 14px 0 0 0; align-self: end; }
.c-b { grid-column: 3; grid-row: 1 / 3; background: linear-gradient(180deg, #fff 0%, #f1f8fb 100%); }
.card-copy { margin-bottom: 22px; }
.c-b .flow { margin: auto 0; width: 100%; height: auto; padding: 8px 0 26px; overflow: visible; }
.c-c { grid-column: 1; grid-row: 2; }
.c-d { grid-column: 2; grid-row: 2; }
.card-shot .shot { display: block; }
.flow-path { fill: none; stroke: rgba(0, 97, 135, .14); stroke-width: 10; stroke-linecap: round; }
.flow-dash { fill: none; stroke: url(#fg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 14; animation: dash 1.6s linear infinite; }
.flow-dash.d2 { animation-duration: 1.9s; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.src rect { fill: #fff; stroke: rgba(0, 97, 135, .25); stroke-width: 1.2; }
.src text, .dst text { font-family: Montserrat, sans-serif; font-size: 13px; font-weight: 700; fill: var(--navy); text-anchor: middle; }
.dst > rect:first-child { fill: #fff; stroke: rgba(0, 161, 152, .45); stroke-width: 1.4; filter: drop-shadow(0 14px 22px rgba(0, 43, 62, .12)); }
.dst .rule { stroke: rgba(0, 60, 85, .1); stroke-width: 1; }
.dst .av { fill: #e0f5f3; stroke: rgba(0, 161, 152, .45); stroke-width: 1.2; }
.dst .av.b { fill: #e8f3fa; stroke: rgba(0, 97, 135, .35); }
.dst .nm { fill: rgba(0, 60, 85, .12); }
.dst .bar { fill: rgba(0, 97, 135, .55); transform-box: fill-box; transform-origin: left; animation: grow 4.8s var(--ease) infinite; }
.dst .bar.b2 { animation-delay: .6s; fill: rgba(0, 161, 152, .6); } .dst .bar.b3 { animation-delay: 1.2s; } .dst .bar.b4 { animation-delay: 1.8s; fill: rgba(0, 161, 152, .6); }
@keyframes grow { 0% { transform: scaleX(.3); } 55%, 100% { transform: scaleX(1); } }
.ping { fill: var(--teal); transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }

/* share */
.share-vis { min-height: 560px; }
.paper { position: relative; width: 74%; max-width: 440px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(0, 60, 85, .08); transform: rotate(-2deg); margin-left: 4%; }
.phone {
    position: absolute; right: 2%; bottom: -6px; width: 232px; aspect-ratio: 1170/2380; border-radius: 38px; padding: 9px; background: linear-gradient(160deg, #1b3444, #07161f);
    box-shadow: 0 50px 80px -40px rgba(0, 26, 39, .6), 0 18px 40px -20px rgba(0, 43, 62, .5), 0 0 0 1px rgba(255, 255, 255, .06) inset; animation: bob 7s ease-in-out infinite;
}
.phone-scr { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }
.ph { position: absolute; inset: 0; background-size: 100% auto; background-repeat: no-repeat; background-position: top center; background-color: #fff; transform: translateX(100%); transition: transform .7s cubic-bezier(.65, 0, .25, 1); }
.ph.on { transform: none; }
.ph.off { transform: translateX(-100%); }
.ph.enter { transform: translateX(100%); transition: none; }
.ld .ph-a, html:not(.js) .ph-a { background-image: url(../images/home/ph_top.webp); }
.ld .ph-b, html:not(.js) .ph-b { background-image: url(../images/home/ph_analytics.webp); }
.ticks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
.ticks li { position: relative; padding-left: 38px; display: grid; gap: 2px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; background: #e0f5f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2300a198' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticks b { font-size: 17px; font-weight: 600; color: var(--ink); }
.ticks span { font-size: 15px; color: var(--body); }

/* final CTA */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 112px 0 150px; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 110%, rgba(51, 214, 201, .18), transparent 70%), linear-gradient(180deg, #f4f8fa, #e8f3fa); }
.final .streams { z-index: 0; }
.final-in { position: relative; z-index: 1; }
.final h2 { font-size: clamp(38px, 4.6vw, 66px); margin-top: 0; }
.final .sub { margin: 20px auto 0; }
.final .hero-ctas { margin-top: 36px; }
.already { margin-top: 24px; font-size: 14.5px; color: var(--muted); }

/* footer */
.ftr { background: radial-gradient(ellipse 50% 90% at 85% 0%, rgba(0, 161, 152, .16), transparent 70%), var(--navy2); color: rgba(255, 255, 255, .78); padding: 64px 0 40px; }
.ftr-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.ftr-brand img { width: 190px; height: auto; }
.ftr-brand p { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.ftr-links a, .ftr-links .link { color: #fff; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.ftr-links a:hover, .ftr-links .link:hover { color: var(--teal-b); }
.ftr-links .link { text-decoration: none; }
.ftr-legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.ftr-legal p:first-child { max-width: 780px; }

/* phone action bar */
.mbar { display: none; }

/* ---------- dialog ---------- */
.dlg { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 32px); width: 440px; overflow: visible; }
.dlg::backdrop { background: rgba(0, 26, 39, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open] .dlg-card { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.dlg-card { position: relative; background: #fff; border-radius: 24px; padding: 34px 32px 26px; box-shadow: 0 40px 100px -30px rgba(0, 26, 39, .55); border: 1px solid rgba(0, 97, 135, .12); }
.dlg-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--teal), var(--blue)); }
.dlg-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ice); color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.dlg-x svg { width: 16px; height: 16px; }
.dlg-x:hover { background: var(--ice2); }
.dlg-panel { display: none; }
.dlg-panel.on { display: block; }
.dlg-ico { width: 40px; height: 40px; }
.dlg-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); background: var(--ice2); padding: 4px 10px; border-radius: 999px; }
.dlg-badge.teal { color: #00766f; background: #e0f5f3; }
.dlg-title { font-size: 26px; letter-spacing: -.03em; margin-top: 14px; line-height: 1.15; }
.dlg-sub { margin-top: 6px; font-size: 14.5px; color: var(--body); }
.form { margin-top: 22px; display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.fld-row { display: flex; justify-content: space-between; align-items: baseline; }
.fld-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(0, 60, 85, .18); background: #fbfdfe; font: 500 15px Montserrat, sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; width: 100%; }
.fld input:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(0, 161, 152, .14); }
.form .btn-block { margin-top: 6px; height: auto; min-height: 50px; padding-top: 10px; padding-bottom: 10px; white-space: normal; line-height: 1.3; text-align: center; }
.dlg-alt { margin-top: 18px; font-size: 13.5px; color: var(--muted); text-align: center; }


/* ---------- live data: graceful states ---------- */
.live-row.no-brief { grid-template-columns: minmax(0, 1fr); }
.live-row.no-brief .chip-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-row.no-chips { grid-template-columns: minmax(0, 1fr); }
.stage.no-data .seg { visibility: hidden; }

/* off-screen sections: CSS animations rest until the section scrolls back into view */
.is-off *, .is-off *::before, .is-off *::after { animation-play-state: paused !important; }

/* ---------- signing-in splash (#overlay, shown by markets.min.js during autologins) ---------- */
#overlay {
    display: none; position: fixed; inset: 0; z-index: 80;
    background: rgba(244, 248, 250, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ov-card { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; width: min(360px, calc(100vw - 32px)); }
.ov-logo { width: 56px; height: auto; margin: 0 auto; animation: ovpulse 2.2s ease-in-out infinite; }
@keyframes ovpulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.94); opacity: .82; } }
.ov-title { margin-top: 18px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.ov-sub { margin-top: 8px; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--body); }
.ov-alt { display: none; margin-top: 18px; font-size: 14px; }   /* home.js shows it after a few seconds (.ov-slow) */
#overlay.ov-slow .ov-alt { display: block; animation: pop .4s var(--ease); }
.ov-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 97, 135, .18); border-top-color: var(--teal); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- panel extras ---------- */
.dlg-notice { display: none; margin-top: 16px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #7a2d00; background: #fff4e5; border: 1px solid #f3d3a6; border-radius: 12px; padding: 10px 12px; }
.dlg-notice.show { display: block; animation: pop .35s var(--ease); }
.dlg-device { display: none; margin-top: 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.fld-help { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.dlg-done { display: none; margin-top: 22px; }
.dlg-panel.done .form { display: none; }
.dlg-panel.done .dlg-done { display: grid; gap: 16px; }
.dlg-done-msg { font-size: 15px; font-weight: 600; line-height: 1.5; color: #0b5e47; background: #e8f7f1; border: 1px solid rgba(29, 158, 117, .3); border-radius: 12px; padding: 14px 14px 14px 44px; position: relative; }
.dlg-done-msg::before { content: ""; position: absolute; left: 13px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: #1d9e75 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3L14.5 7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.form .btn-block[disabled] { opacity: .65; cursor: progress; transform: none; }

/* Status lines written by markets.min.js (lminner, lmin) and the panel handlers in home.js. Their inline
   colours were chosen for the old dark box: lightblue = working, #fdbbbb / #e67575 = problem, lightgreen = done,
   #006187 = working. Each is mapped to a readable state; !important beats the inline colour. */
.l_status, .l_reminder_status {
    display: none; font-size: 13.5px; font-weight: 600; line-height: 1.45; border-radius: 12px; padding: 10px 12px;
    color: var(--blue) !important; background: var(--ice2); border: 1px solid rgba(0, 97, 135, .16);
}
.l_status:empty, .l_reminder_status:empty { display: none !important; }
.l_status[style*="rgb(253, 187, 187)"], .l_status[style*="rgb(230, 117, 117)"],
.l_reminder_status[style*="rgb(253, 187, 187)"], .l_reminder_status[style*="rgb(230, 117, 117)"] {
    color: #9b2222 !important; background: #fdf0f0; border-color: rgba(214, 69, 69, .3);
}
.l_status[style*="lightgreen"], .l_reminder_status[style*="lightgreen"] {
    color: #0b5e47 !important; background: #e8f7f1; border-color: rgba(29, 158, 117, .3);
}
.l_status a, .l_reminder_status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.l_status b, .l_reminder_status b { font-weight: 700; }
.l_status .link { color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.dlg-status-slot { display: contents; }   /* the hidden status adds no grid gap; shown, it is a grid row */

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .hdr-nav { display: none; }
    .hero-in { gap: 36px; }
    .live-row { grid-template-columns: minmax(0, 1fr) 180px; }
}
@media (max-width: 1180px) and (min-width: 981px) {
    /* two-column hero on small laptops: the view switcher sits under the caption so the title never wraps */
    .stage { height: 404px; }
    .stage-head { flex-direction: column; gap: 10px; }
    .brief-t { font-size: 10.5px; letter-spacing: .1em; white-space: nowrap; }
}
@media (max-width: 980px) {
    .hero { min-height: 0; display: block; }
    /* the hero's height follows its content here: anchor the two lower glows to the TOP, so the hero growing as the
       live cards fill in never moves them (a bottom-anchored glow moving counted as a layout shift) */
    .g2 { bottom: auto; top: 820px; }
    .g3 { bottom: auto; top: 960px; }
    .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 56px; gap: 44px; }
    .hero-copy { max-width: 640px; }
    .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .c-a { grid-column: 1 / 3; }
    .c-b { grid-column: 1 / 3; grid-row: auto; }
    .c-b .flow { max-width: 360px; margin: 10px auto 0; }
    .c-c { grid-row: auto; } .c-d { grid-row: auto; grid-column: 2; }
    .facts { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .hdr-about { display: none; }
}
@media (max-width: 760px) {
    :root { --hdr: 60px; }
    .wrap { padding: 0 16px; }
    .brand-logo { width: 136px; height: 27px; }
    .hdr-demo { display: none; }
    .hero-in { padding-top: 26px; padding-bottom: 32px; gap: 0; }
    .hero-copy, .hero-vis { display: contents; }
    .hero-copy::before { display: none; }
    .eyebrow { order: 1; justify-self: start; }
    h1 { order: 2; }
    .lede { order: 3; }
    .stage { order: 4; margin-top: 24px; }
    .hero-ctas { order: 5; }
    .proof { order: 6; }
    .live-row { order: 7; margin-top: 26px; }
    .brk { display: none; }
    .eyebrow { font-size: 11px; letter-spacing: .1em; padding: 6px 12px 6px 10px; }
    h1 { font-size: 42px; margin-top: 18px; letter-spacing: -.045em; }
    .lede { font-size: 15.5px; margin-top: 14px; line-height: 1.55; }
    .hero-ctas { margin-top: 26px; flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; }
    .hero-copy .hero-ctas .btn-primary { display: none; }   /* the sticky bar carries Get a demo on phones */
    .hero-copy .hero-ctas { margin-top: 18px; align-items: flex-start; }
    .hero-copy .hero-ctas .btn-quiet { width: auto; height: auto; padding: 6px 0; border: 0; background: none; box-shadow: none; font-size: 15px; color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0, 97, 135, .35); text-underline-offset: 4px; }
    .proof { margin-top: 24px; flex-direction: column; gap: 8px; font-size: 13px; }
    .stage { height: 322px; }
    .stage-head { flex-direction: column; gap: 10px; padding: 14px 14px 0 16px; }
    .seg { align-self: stretch; justify-content: space-between; }
    .seg button { flex: 1; padding: 6px 4px; font-size: 11px; }
    .live-row { grid-template-columns: minmax(0, 1fr); }
    .brief { min-height: 0; }
    .chip-list { grid-template-columns: 1fr 1fr; }
    .sec { padding: 72px 0; }
    h2 { font-size: 32px; }
    .sub { font-size: 16px; margin-top: 14px; }
    .carousel { margin-top: 32px; }
    .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 0 16px; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs button { flex: none; padding: 8px 14px; font-size: 13px; }
    .frame { padding: 5px; border-radius: 14px; }
    .frame-in { border-radius: 10px; }
    .caption { font-size: 13.5px; margin-top: 14px; }
    /* phones: zoom each research view onto its main chart or table so it reads at 358px */
    .frame-lg .frame-in { aspect-ratio: 5/4; }
    .frame-lg .slide { aspect-ratio: auto; height: 100%; }
    .s-r1 { background-size: 174.366% auto; background-position: 1.57% 66.754%; }
    .s-r2 { background-size: 163.69% auto; background-position: 3.448% 0.324%; }
    .s-r3 { background-size: 149.086% auto; background-position: 99.5% 94.925%; }
    .s-r4 { background-size: 165.72% auto; background-position: 2.754% 40.521%; }
    .s-r5 { background-size: 227.999% auto; background-position: 0.001% 23.604%; }
    .split { gap: 36px; }
    .timeline { margin-top: 28px; gap: 20px; }
    .tl-what { font-size: 16px; }
    .fn-brand { left: 10px; top: auto; bottom: -18px; font-size: 12px; }
    .frame-wide { margin-top: 32px; }
    .facts { margin-top: 22px; gap: 8px; }
    .facts li { padding: 11px 14px; border-radius: 12px; }
    .facts b { font-size: 22px; }
    .facts span { font-size: 13.5px; }
    .bento { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 14px; }
    .c-a, .c-b, .c-c, .c-d { grid-column: 1; grid-row: auto; }
    .c-a { display: flex; padding: 22px 22px 0; gap: 0; }
    .c-a .card-copy { padding-bottom: 0; }
    .c-a .card-shot { margin: 20px -1px 0; border-left: 0; border-radius: 12px 12px 0 0; align-self: stretch; }
    .card { padding: 22px 22px 0; border-radius: 18px; }
    .card h3 { font-size: 19px; }
    .card p { font-size: 14px; }
    .c-b .flow { max-width: 280px; padding-bottom: 8px; }
    .share-vis { min-height: 0; padding-bottom: 20px; }
    .paper { width: 70%; margin-left: 0; }
    .phone { width: 150px; right: 0; bottom: -4px; border-radius: 26px; padding: 6px; }
    .phone-scr { border-radius: 21px; }
    .ticks { margin-top: 24px; }
    .ticks b { font-size: 16px; } .ticks span { font-size: 14px; }
    .final { padding: 80px 0 88px; }
    .final h2 { font-size: 36px; }
    .ftr { padding: 48px 0 110px; }
    .ftr-in { flex-direction: column; }
    .ftr-legal { margin-top: 28px; padding-top: 22px; }
    .mbar {
        display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line2); box-shadow: 0 -10px 30px -20px rgba(0, 43, 62, .4);
    }
    .mbar .btn { height: 48px; font-size: 15px; }
    .dlg-card { padding: 28px 20px 22px; }
    .fld-2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 399px) {
    /* two chips a row leave no room for the change beside the price: it gets its own line (the arrow used to wrap
       away from its number) */
    .chip-c { grid-column: 1 / -1; grid-row: 3; margin-top: 1px; }
}
@media (max-width: 391px) {
    /* below 392px Montserrat sets the headline on three lines where the system font can fit two: hold three lines,
       in case the font arrives after the 2.5 s font wait has let the hero show */
    h1 { min-height: 2.94em; }
}
@media (max-width: 760px) {
    .dlg-device { display: block; }
    .live-row.no-brief .chip-list { grid-template-columns: 1fr 1fr; }
    .dlg { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overflow-x: hidden; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .glow, .phone, .float-note, .scan, .timeline::after { animation: none !important; }
    .scan, .timeline::after { display: none; }
    .ov-logo { animation: none !important; }
    .slide, .chip, .brief-pt, .js .rv { transition: opacity .6s ease !important; transform: none !important; }
    .streams { transition: opacity .6s ease; }
    .ph, .ph.off, .ph.enter { transform: none !important; opacity: 0; transition: opacity .6s ease !important; }
    .ph.on { opacity: 1; }
}
