/* ==========================================================================
   Site Systems Software - shared design system
   Used by: sitesystemssoftware.com, siteanalystlive.com, siteanalystiot.com,
            siteanalyst.ai
   Edit this file in Modern/_shared/css and run sync-shared.ps1 to copy it
   into each site folder.
   All asset URLs are RELATIVE so every site works at the root of its own
   domain *and* as a virtual directory (e.g. /siteanalystlive/).
   ========================================================================== */

:root {
  --blue-950: #071a2e;
  --blue-900: #0b2a4a;
  --blue-800: #0f3b66;
  --blue-700: #1872ad;
  --blue-600: #1e86c4;
  --blue-500: #2196c8;
  --blue-400: #4db3e6;
  --blue-100: #e3f2fb;
  --orange: #f5a623;
  --orange-dark: #e0950d;
  --ink: #14202e;
  --muted: #566677;
  --line: #e1e8ef;
  --bg: #f5f8fb;
  --white: #fff;
  --ok: #1fa971;

  --accent: var(--blue-500);
  --accent-dark: var(--blue-700);
  --hero-from: var(--blue-950);
  --hero-to: var(--blue-800);
  --glow: rgba(77, 179, 230, .35);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, .06), 0 2px 8px rgba(11, 42, 74, .06);
  --shadow: 0 8px 30px rgba(11, 42, 74, .12);
  --shadow-lg: 0 20px 60px rgba(7, 26, 46, .28);
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Per-site flavour: same brand, different hero mood */
body.theme-corp { --hero-from: #06182b; --hero-to: #0f3b66; }
body.theme-live { --hero-from: #071a2e; --hero-to: #14588f; }
body.theme-iot  { --hero-from: #0a2236; --hero-to: #0b5c78; --glow: rgba(245, 166, 35, .28); }
body.theme-ai   { --hero-from: #070f24; --hero-to: #1d3b86; --glow: rgba(120, 140, 255, .35); }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 0; }

/* ---------- top bar (family switcher) ---------- */
.topbar { background: var(--blue-950); color: #b8c7d6; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #b8c7d6; }
.topbar a:hover { color: var(--orange); }
.family { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.family::-webkit-scrollbar { display: none; }
.family a { padding: .35rem .75rem; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.family a[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }
.topbar .meta { display: flex; gap: 1.1rem; white-space: nowrap; }
.topbar .meta a { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- header / nav ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.scrolled { box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--blue-900); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { height: 44px; width: auto; }
.brand.brand-wide img { height: 40px; }
.brand small { display: block; font-weight: 600; font-size: .68rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); font-weight: 600; font-size: .95rem; padding: .5rem .8rem; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--bg); color: var(--blue-700); }
.nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-100); }
.nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink); }
.nav-toggle .i { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 700; font-size: .95rem; padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #1b1200; box-shadow: 0 4px 14px rgba(245,166,35,.35); }
.btn-primary:hover { background: var(--orange-dark); color: #1b1200; }
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); }
.hero::after { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -180px; z-index: -1; background: radial-gradient(circle, var(--glow), transparent 65%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: clamp(3rem, 7vw, 6rem); }
.hero.hero-center .container { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero.hero-compact .container { padding-block: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #cfdbe8; max-width: 38rem; }
.hero.hero-center .lead { margin-inline: auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero.hero-center .actions { justify-content: center; }
.hero-media { position: relative; }
.hero-media img { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); width: 100%; max-height: 460px; object-fit: contain; }
.hero-media.float img { animation: float 7s ease-in-out infinite; }
.tagline { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.pill { display: inline-block; background: var(--orange); color: #1b1200; font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 999px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.15); }
.hero-stats strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: .85rem; color: #aebfd1; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section-alt { background: var(--bg); }
.section-dark { background: linear-gradient(135deg, var(--blue-950), var(--blue-900)); color: #d7e3ef; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #aebfd1; }
.kicker { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .6rem; }
.section-dark .kicker { color: var(--orange); }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-400); }
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.section-dark .card p { color: #aebfd1; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue-500), var(--blue-700)); color: #fff; margin-bottom: 1rem; box-shadow: 0 6px 16px rgba(33,150,200,.3); }
.icon .i { width: 26px; height: 26px; }
.icon.orange { background: linear-gradient(135deg, #ffbf47, var(--orange-dark)); box-shadow: 0 6px 16px rgba(245,166,35,.3); }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .9rem; margin-top: 1rem; color: var(--blue-700); }
a.card:hover .more { gap: .6rem; }

/* product cards (home / family) */
.product { display: flex; flex-direction: column; text-align: center; align-items: center; padding: 2rem 1.5rem; }
.product img { height: 110px; width: auto; margin-bottom: 1rem; object-fit: contain; }
.product h3 { font-size: 1.3rem; color: var(--blue-900); }
.product .tag { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .8rem; }
.product p { flex: 1; }
.product.featured { border-color: var(--blue-400); box-shadow: var(--shadow); }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 6vw, 5rem); }
.split.reverse > :first-child { order: 2; }
.split .media img { margin-inline: auto; max-height: 420px; width: auto; filter: drop-shadow(0 20px 28px rgba(11,42,74,.22)); }
.split .media.photo img { border-radius: var(--radius); width: 100%; max-height: 380px; object-fit: cover; box-shadow: var(--shadow); filter: none; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks .i { color: var(--ok); margin-top: .25em; }
.section-dark .checks .i { color: var(--orange); }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.compare thead th { background: var(--blue-900); color: #fff; font-size: .9rem; border: 0; }
.compare tbody th { font-weight: 700; color: var(--blue-900); width: 22%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare .no { color: #a8b4c0; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stats strong { display: block; font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--orange); line-height: 1.1; }
.stats span { color: #aebfd1; font-size: .92rem; }

/* CTA */
.cta { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; text-align: center; padding-block: clamp(3rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; left: -140px; bottom: -280px; background: radial-gradient(circle, rgba(245,166,35,.28), transparent 65%); }
.cta .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; }
.cta p { color: #d7e8f5; max-width: 40rem; margin-inline: auto; }
.cta a:not(.btn) { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.4rem; }

/* partner logos */
.logos { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; align-items: center; justify-content: center; }
.logos .tile { display: grid; place-items: center; height: 64px; padding: .4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.logos img { max-height: 44px; width: auto; max-width: 140px; filter: grayscale(1); opacity: .75; transition: .2s; }
.logos .tile:hover img { filter: none; opacity: 1; }

/* ---------- feature gallery (Live) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { font: inherit; font-weight: 700; font-size: .9rem; padding: .55rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--blue-400); }
.chip[aria-pressed="true"] { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .thumb { aspect-ratio: 16 / 10; background: var(--bg); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.feature .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.feature .thumb .play { position: absolute; right: .6rem; bottom: .6rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(11,42,74,.85); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: .2s; }
.feature:hover .play, .feature:focus-visible .play { opacity: 1; transform: none; }
.feature .body { display: block; padding: 1rem 1.1rem 1.2rem; }
.feature .h { display: block; font-size: 1rem; font-weight: 700; line-height: 1.25; margin-bottom: .3rem; }
.feature .p { font-size: .88rem; color: var(--muted); margin: 0 0 .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); }
.badge.build { background: #fff3dc; color: #a96a00; }
.badge.analyze { background: #e3f7ee; color: #12744c; }
.feature[hidden] { display: none; }

/* clickable demo screenshot with play button */
.demo-shot { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); }
.split .media .demo-shot img { width: 100%; max-height: none; filter: none; display: block; }
.demo-shot .play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(245,166,35,.95); color: #1b1200; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s; }
.demo-shot .play .i { width: 28px; height: 28px; margin-left: 3px; }
.demo-shot:hover .play { transform: scale(1.12); }

/* dialog (video + lightbox) */
dialog.modal { border: 0; padding: 0; border-radius: var(--radius); width: min(94vw, 980px); max-height: 92vh; box-shadow: var(--shadow-lg); overflow: auto; background: #fff; }
dialog.modal::backdrop { background: rgba(7,26,46,.78); backdrop-filter: blur(3px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); gap: 1rem; }
.modal-head h3 { margin: 0; }
.modal-close { background: none; border: 0; cursor: pointer; padding: .4rem; border-radius: 50%; color: var(--ink); }
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 1.25rem; }
.modal-body video, .modal-body img { width: 100%; border-radius: var(--radius-sm); background: #000; }
.modal-body p { margin: 1rem 0 0; color: var(--muted); }

/* gallery (screenshots) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.gallery button { padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); transition: .2s; font: inherit; text-align: left; }
.gallery button:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery span { display: block; padding: .5rem .7rem; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.gallery-group { margin-bottom: 2.4rem; }
.gallery-group h3 { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blue-100); }

/* demo list */
.demo-card { display: flex; flex-direction: column; }
.demo-card p { flex: 1; }
.demo-card .btn { align-self: flex-start; margin-top: 1rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid #cdd8e3; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(33,150,200,.18); }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { display: flex; gap: 1rem; }
.info-list .icon { margin: 0; flex: none; width: 46px; height: 46px; }
.info-list strong { display: block; }
.form-note { font-size: .85rem; color: var(--muted); }
.signup { display: flex; max-width: 520px; width: 100%; background: #fff; border-radius: 999px; padding: .35rem; box-shadow: var(--shadow-lg); }
.signup input { flex: 1; border: 0; background: none; font: inherit; padding: .8rem 1.2rem; color: var(--ink); min-width: 0; border-radius: 999px; }
.signup input:focus { outline: none; }
.signup .btn { padding-inline: 1.6rem; }
.signup-msg { min-height: 1.4em; margin-top: .9rem; font-size: .92rem; color: #cfdbe8; }
.signup-msg.ok { color: #7fe3b4; }
.signup-msg.err { color: #ffb4b4; }

/* prose pages */
.prose { max-width: 50rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }

/* AI visual: animated nodes */
.neural { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.neural svg { width: 100%; height: 100%; }
.node { animation: pulse 3.2s ease-in-out infinite; }
.chart-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 1.2rem 1.2rem 1rem; backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.chart-card .legend { display: flex; gap: 1.2rem; font-size: .78rem; color: #b9c8d8; margin-top: .6rem; flex-wrap: wrap; }
.chart-card .legend i { display: inline-block; width: 22px; height: 3px; border-radius: 2px; margin-right: .4rem; vertical-align: middle; }
.chart-title { font-weight: 700; font-size: .9rem; color: #fff; margin-bottom: .4rem; display: flex; justify-content: space-between; }
.chart-title span { color: var(--orange); font-weight: 600; font-size: .78rem; }
.forecast-line { stroke-dasharray: 7 6; animation: dash 18s linear infinite; }

/* department toggle + form status (contact form) */
.seg { display: flex; flex-wrap: wrap; gap: .6rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { font-weight: 700; font-size: .88rem; margin-bottom: .45rem; padding: 0; float: left; width: 100%; }
.seg label { position: relative; flex: 1 1 0; min-width: 6.5rem; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.seg span { display: block; text-align: center; padding: .7rem 1rem; border: 1.5px solid #cdd8e3; border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem; background: #fff; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.seg input:hover + span { border-color: var(--blue-500); }
.seg input:checked + span { background: var(--blue-500); border-color: var(--blue-500); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(33,150,200,.28); }
.form.is-done .field input, .form.is-done .field textarea { background: #eef2f6; color: #7b8896; border-color: #dbe3ec; cursor: not-allowed; }
.form.is-done .field label, .form.is-done .seg legend { color: #8a97a5; }
.form.is-done .seg span { background: #eef2f6; color: #8a97a5; border-color: #dbe3ec; cursor: not-allowed; }
.form.is-done .seg input:checked + span { background: #b9c6d3; border-color: #b9c6d3; color: #fff; }
.form.is-done .seg input { cursor: not-allowed; }
.form.is-done .btn { background: #b9c6d3; color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.form-status a { margin-left: .2rem; text-decoration: underline; font-weight: 700; }
.form-status { min-height: 1.4em; margin: 0; font-weight: 600; font-size: .95rem; }
.form-status.ok { color: #138a5b; } .form-status.err { color: #c53030; }

/* comparison bars (AI page) */
.bars { display: grid; gap: .85rem; margin: 1rem 0 .4rem; }
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr 3.2rem; align-items: center; gap: .8rem; font-size: .84rem; color: #cfdceb; }
.bar-row em { font-style: normal; font-weight: 700; text-align: right; color: #cfdceb; }
.bar-row em.up { color: #5fd39a; } .bar-row em.down { color: #ff8a80; }
.track { position: relative; height: 12px; background: rgba(255,255,255,.08); border-radius: 99px; }
.track i { display: block; height: 100%; border-radius: 99px; background: #4db3e6; }
.track i.up { background: linear-gradient(90deg, #2196C8, #5fd39a); }
.track i.down { background: linear-gradient(90deg, #f5a623, #ff8a80); }
.track b { position: absolute; top: -4px; bottom: -4px; width: 3px; background: #fff; border-radius: 2px; }
@media (max-width: 480px) { .bar-row { grid-template-columns: 6.5rem 1fr 3rem; font-size: .78rem; } }

/* ---------- footer ---------- */
.footer { background: var(--blue-950); color: #9fb2c5; padding-top: 3.5rem; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer a { color: #9fb2c5; display: block; padding: .22rem 0; }
.footer a:hover { color: var(--orange); }
.footer .about img { height: 42px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .9; }
.footer .about p { max-width: 20rem; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.2rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .82rem; }

/* ---------- animation ---------- */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -400; } }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media.float img, .node, .forecast-line { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero .actions, .hero-stats { justify-content: center; }
  .hero-media { max-width: 560px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
  .footer .about { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; }
  .nav .btn { margin: .5rem 0 0; }
  .topbar .meta .hide-sm { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .form .row { grid-template-columns: 1fr; }
  .topbar .meta { display: none; }
  .footer .cols { grid-template-columns: 1fr; }
  .signup { flex-direction: column; border-radius: var(--radius); }
  .signup .btn { width: 100%; }
}
