/* ============================================================
   RASQI — marketing site · shared styles
   Brand matched to the app's dark theme (see HANDOFF §3 / §4b).
   ============================================================ */
:root {
  --bg: #0a0c0f;  --bg2: #0f1217;  --bg3: #141820;
  --panel: rgba(22, 27, 36, 0.6);  --panel2: rgba(28, 35, 48, 0.6); /* 40% transparent → bg pattern shows through */
  --border: #2a3545;  --border2: #3a4a5f;
  --accent: #00d4ff;  --accent2: #1c84ec; /* logo blue (sampled from RASQI mark) */
  --warn: #ffaa00;  --danger: #ff4455;
  --text: #c8d8e8;  --text2: #7a9ab8;  --text3: #4a6a88;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --display: 'Orbitron', sans-serif;
  --maxw: 1800px;
  --r: 6px;
}

/* ── LIGHT THEME (toggle ☀️/🌙 in the nav; persisted in localStorage) ── */
:root[data-theme="light"] {
  --bg: #f2f5f9;  --bg2: #ffffff;  --bg3: #e7edf4;
  --panel: rgba(255, 255, 255, 0.72);  --panel2: rgba(240, 245, 250, 0.72);
  --border: #d5dee8;  --border2: #b9c7d6;
  --accent: #0083c1;  --accent2: #1c84ec;
  --warn: #b45309;  --danger: #c22436;
  --text: #16232e;  --text2: #43586c;  --text3: #7a8fa3;
}
:root[data-theme="light"] body {
  background-image:
    radial-gradient(900px 480px at 80% -10%, rgba(0, 131, 193, .07), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(28, 132, 236, .06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='760' height='760' viewBox='0 0 760 760'><g fill='none' stroke='%23c9d8e6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='95' cy='90' r='17'/><circle cx='95' cy='90' r='7'/><path d='M95 66v-8M95 114v8M71 90h-8M119 90h8M78 73l-6-6M112 107l6 6M112 73l6-6M78 107l-6 6'/><path d='M285 150v-25h12v25M303 150v-40h12v40M321 150v-55h12v55M279 150h64'/><path d='M285 114l28-22 12 8 24-20M349 80l-10 2 7 8'/><circle cx='545' cy='80' r='5'/><circle cx='585' cy='60' r='5'/><circle cx='620' cy='90' r='5'/><circle cx='575' cy='110' r='5'/><path d='M550 78l30-15M590 62l25 24M615 93l-35 14M578 105l-28-21M588 65l-11 40'/><path d='M85 345h130M95 343c25 0 25-62 55-62s30 62 55 62'/><path d='M150 345v-60' stroke-dasharray='3 4'/><path d='M390 358h90M395 350h40l15-35 32 12'/><circle cx='435' cy='350' r='5'/><circle cx='450' cy='315' r='5'/><circle cx='482' cy='327' r='4'/><path d='M488 322l10-7M489 332l11 4'/><path d='M615 335a42 42 0 0 1 84 0'/><path d='M657 335l22-26'/><circle cx='657' cy='335' r='4'/><path d='M621 321l-6-4M638 305l-4-6M676 305l4-6M693 321l6-4'/><ellipse cx='105' cy='543' rx='26' ry='8'/><path d='M79 543v16c0 4 12 8 26 8s26-4 26-8v-16M79 551c0 4 12 8 26 8s26-4 26-8'/><path d='M300 585v-38l26 14v-14l26 14v-14l26 14h14v24zM312 585v-10h10v10M334 585v-10h10v10M382 547v-22h8v24'/><path d='M545 570h120'/><circle cx='560' cy='578' r='6'/><circle cx='590' cy='578' r='6'/><circle cx='620' cy='578' r='6'/><circle cx='650' cy='578' r='6'/><rect x='558' y='546' width='22' height='22' rx='2'/><rect x='606' y='546' width='22' height='22' rx='2'/><path d='M205 712v-62M205 712h100'/><path d='M212 702l24-22 16 10 28-30 16 8M290 662l8-6-2 10'/><rect x='490' y='662' width='90' height='56' rx='4'/><path d='M520 662v56M550 662v56'/><rect x='497' y='670' width='16' height='10' rx='2'/><rect x='497' y='685' width='16' height='10' rx='2'/><rect x='527' y='670' width='16' height='10' rx='2'/><rect x='557' y='670' width='16' height='10' rx='2'/><rect x='557' y='685' width='16' height='10' rx='2'/></g></svg>");
}
:root[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.86); }
:root[data-theme="light"] .pill { background: rgba(0, 131, 193, 0.07); }
:root[data-theme="light"] .demo-shell { box-shadow: 0 24px 60px rgba(22, 35, 46, .18), 0 0 0 1px rgba(0, 131, 193, .10); }
:root[data-theme="light"] .demo-viewport .vp-progress { background: rgba(0, 0, 0, .08); }
:root[data-theme="light"] .shot { box-shadow: 0 14px 40px rgba(22, 35, 46, .16); }
:root[data-theme="light"] .stage { box-shadow: 0 24px 60px rgba(22, 35, 46, .18); }
:root[data-theme="light"] .tier.pop { box-shadow: 0 0 0 1px rgba(28, 132, 236, .3), 0 18px 50px rgba(28, 132, 236, .14); }
:root[data-theme="light"] .vs-col.us { box-shadow: 0 0 0 1px rgba(28, 132, 236, .22), 0 18px 50px rgba(28, 132, 236, .10); }
:root[data-theme="light"] table.matrix tbody tr:hover,
:root[data-theme="light"] table.captable tbody tr:hover { background: rgba(0, 131, 193, .05); }

/* theme toggle button (injected by site.js into .nav-cta) */
.theme-toggle { background: none; border: 1px solid var(--border2); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; font-size: 15px; line-height: 1; color: var(--text2); flex: none; }
.theme-toggle:hover { border-color: var(--accent); }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* subtle glows + a faint industry-4.0 line-art pattern (gear, charts,
     IoT network, bell curve, robot arm, gauge, coins, factory, conveyor,
     kanban, trend) — all strokes in one near-background dark tone. */
  background-image:
    radial-gradient(900px 480px at 80% -10%, rgba(0,212,255,.07), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(28,132,236,.06), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='760' height='760' viewBox='0 0 760 760'><g fill='none' stroke='%23233850' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='95' cy='90' r='17'/><circle cx='95' cy='90' r='7'/><path d='M95 66v-8M95 114v8M71 90h-8M119 90h8M78 73l-6-6M112 107l6 6M112 73l6-6M78 107l-6 6'/><path d='M285 150v-25h12v25M303 150v-40h12v40M321 150v-55h12v55M279 150h64'/><path d='M285 114l28-22 12 8 24-20M349 80l-10 2 7 8'/><circle cx='545' cy='80' r='5'/><circle cx='585' cy='60' r='5'/><circle cx='620' cy='90' r='5'/><circle cx='575' cy='110' r='5'/><path d='M550 78l30-15M590 62l25 24M615 93l-35 14M578 105l-28-21M588 65l-11 40'/><path d='M85 345h130M95 343c25 0 25-62 55-62s30 62 55 62'/><path d='M150 345v-60' stroke-dasharray='3 4'/><path d='M390 358h90M395 350h40l15-35 32 12'/><circle cx='435' cy='350' r='5'/><circle cx='450' cy='315' r='5'/><circle cx='482' cy='327' r='4'/><path d='M488 322l10-7M489 332l11 4'/><path d='M615 335a42 42 0 0 1 84 0'/><path d='M657 335l22-26'/><circle cx='657' cy='335' r='4'/><path d='M621 321l-6-4M638 305l-4-6M676 305l4-6M693 321l6-4'/><ellipse cx='105' cy='543' rx='26' ry='8'/><path d='M79 543v16c0 4 12 8 26 8s26-4 26-8v-16M79 551c0 4 12 8 26 8s26-4 26-8'/><path d='M300 585v-38l26 14v-14l26 14v-14l26 14h14v24zM312 585v-10h10v10M334 585v-10h10v10M382 547v-22h8v24'/><path d='M545 570h120'/><circle cx='560' cy='578' r='6'/><circle cx='590' cy='578' r='6'/><circle cx='620' cy='578' r='6'/><circle cx='650' cy='578' r='6'/><rect x='558' y='546' width='22' height='22' rx='2'/><rect x='606' y='546' width='22' height='22' rx='2'/><path d='M205 712v-62M205 712h100'/><path d='M212 702l24-22 16 10 28-30 16 8M290 662l8-6-2 10'/><rect x='490' y='662' width='90' height='56' rx='4'/><path d='M520 662v56M550 662v56'/><rect x='497' y='670' width='16' height='10' rx='2'/><rect x='497' y='685' width='16' height='10' rx='2'/><rect x='527' y='670' width='16' height='10' rx='2'/><rect x='557' y='670' width='16' height='10' rx='2'/><rect x='557' y='685' width='16' height='10' rx='2'/></g></svg>");
  background-repeat: no-repeat, no-repeat, repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--text); letter-spacing: .5px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

/* Near-full-width ("full-screen") layout: 92vw, no fixed column.
   --maxw kept as a safety cap so ultra-wide monitors don't get unreadable line lengths. */
.wrap { width: 92vw; max-width: var(--maxw); margin: 0 auto; padding: 0; }
.section { padding: 72px 0; }
.muted { color: var(--text2); }
.dim { color: var(--text3); }
.accent { color: var(--accent); }
.accent2 { color: var(--accent2); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 13px 22px; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), #1668c4);
  color: #fff; box-shadow: 0 0 0 1px rgba(28,132,236,.25), 0 6px 22px rgba(28,132,236,.18);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(28,132,236,.4), 0 8px 28px rgba(28,132,236,.28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-cyan {
  background: linear-gradient(135deg, var(--accent), #009fc4); color: #021015;
  box-shadow: 0 0 0 1px rgba(0,212,255,.25), 0 6px 22px rgba(0,212,255,.18);
}
.btn-sm { padding: 9px 16px; font-size: 12px; }

/* ── Pills / eyebrows ─────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--border2); border-radius: 999px;
  padding: 6px 14px; background: rgba(0,212,255,.05);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); }

/* ── Header / nav ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,12,15,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 18px; }
.nav-logo img { height: 56px; display: block; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--text2); font-size: 14px; letter-spacing: .5px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border2); border-radius: var(--r); color: var(--text); padding: 8px 11px; cursor: pointer; font-size: 18px; }

/* ── Hero (Concept A · split) ────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); margin: 20px 0 16px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 18px; color: var(--text2); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.trust { font-size: 13px; color: var(--text3); letter-spacing: .5px; }
.trust .ok { color: var(--accent2); }

/* ── Demo frame ──────────────────────────────────────────── */
.demo-shell { border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; background: var(--bg2); box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(0,212,255,.08); }
.demo-chrome { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--bg3); border-bottom: 1px solid var(--border); }
.demo-chrome .dotrow { display: flex; gap: 6px; }
.demo-chrome .d { width: 11px; height: 11px; border-radius: 50%; background: var(--border2); }
.demo-chrome .addr { flex: 1; text-align: center; font-size: 11px; color: var(--text3); letter-spacing: 1px; }
.demo-chrome .live { font-size: 10px; color: var(--accent2); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.demo-chrome .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 8px var(--accent2); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.demo-viewport { position: relative; aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.demo-viewport iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-viewport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; opacity: 0; transition: opacity .6s ease; }
.demo-viewport img.on { opacity: 1; }
.demo-viewport .vp-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.06); }
.demo-viewport .vp-progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); box-shadow: 0 0 8px rgba(0,212,255,.5); }
.demo-viewport .caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 18px 16px; background: linear-gradient(to top, rgba(8,10,13,.97) 35%, rgba(8,10,13,.55) 75%, transparent); }

/* Shared caption parts (home preview + demo.html walkthrough) */
.caption .cap-step { display: inline-block; font-family: var(--display); font-size: 10px; letter-spacing: 2px; color: var(--accent2); border: 1px solid var(--accent2); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px; }
.caption .cap-title { display: block; font-family: var(--display); font-size: 17px; letter-spacing: .5px; color: var(--text); line-height: 1.2; }
.caption .cap-desc { display: block; font-size: 13px; color: var(--text2); margin-top: 4px; line-height: 1.5; }
.caption.anim { animation: capIn .5s ease both; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.demo-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--text2); font-size: 13px; letter-spacing: 1px; }
.demo-loading .spin { width: 34px; height: 34px; border: 3px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--bg3); font-size: 12px; color: var(--text3); flex-wrap: wrap; }

/* ── Product film (two clips, one player) ────────────────── */
.film { max-width: 980px; margin: 0 auto; }
.vid-stage { position: relative; aspect-ratio: 16 / 10; background: var(--bg); }
.vid-stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.vid-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--bg3); flex-wrap: wrap; }
.vid-chips { display: flex; gap: 8px; flex: none; }
.vid-chips button { background: var(--panel); border: 1px solid var(--border2); color: var(--text2); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-family: var(--display); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; transition: all .15s ease; }
.vid-chips button:hover { border-color: var(--accent); color: var(--accent); }
.vid-chips button.on { background: rgba(0,212,255,.1); border-color: var(--accent); color: var(--accent); }
.vid-caption { font-size: 13px; color: var(--text2); }
.vid-caption b { color: var(--accent2); font-family: var(--display); font-size: 12px; letter-spacing: .5px; }

/* ── Feature strip / cards ───────────────────────────────── */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); }
.card .ic { font-size: 24px; margin-bottom: 10px; display: block; }
.card h3 { font-size: 16px; margin-bottom: 8px; color: var(--accent); }
.card p { font-size: 14px; color: var(--text2); }

.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head .pill { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); margin-bottom: 12px; }
.sec-head p { color: var(--text2); font-size: 17px; }

/* ── Feature rows (alternating) ──────────────────────────── */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 38px 0; border-top: 1px solid var(--border); }
.frow:nth-child(even) .ftext { order: 2; }
.frow h3 { font-size: 24px; color: var(--text); margin-bottom: 12px; }
.frow h3 .num { color: var(--accent2); font-size: 15px; margin-right: 8px; }
.frow p { color: var(--text2); margin-bottom: 14px; }
.frow ul { list-style: none; }
.frow li { color: var(--text2); font-size: 14px; padding-left: 22px; position: relative; margin-bottom: 7px; }
.frow li::before { content: '▸'; color: var(--accent); position: absolute; left: 0; }
.shot { border: 1px solid var(--border2); border-radius: 8px; overflow: hidden; background: var(--bg2); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.shot img { display: block; width: 100%; }

/* ── Rationale flowchart ─────────────────────────────────── */
.flow { max-width: 1080px; margin: 0 auto; }
.flow-node { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; }
.fn-k { display: block; font-family: var(--display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.flow .hl { color: var(--accent2); }
.flow-top { display: flex; justify-content: center; }
.node-purpose { text-align: center; max-width: 680px; border-color: var(--border2); }
.node-purpose strong { font-family: var(--display); font-size: clamp(18px, 2.4vw, 23px); color: var(--text); line-height: 1.3; }
.node-purpose p { color: var(--text2); font-size: 14px; margin-top: 10px; }
.flow-arrow { text-align: center; color: var(--text3); font-size: 18px; line-height: 1; padding: 12px 0; }

.flow-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.flow-col { display: flex; flex-direction: column; }
.node-goal { border-width: 1px; }
.node-goal strong { display: block; font-family: var(--display); font-size: 16px; line-height: 1.35; color: var(--text); }
.goal-cyan { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.goal-green { border-color: var(--accent2); box-shadow: inset 4px 0 0 var(--accent2); }
.goal-cyan .fn-k { color: var(--accent); }
.goal-green .fn-k { color: var(--accent2); }

.flow-steps { position: relative; padding: 16px 0 6px; }
.flow-steps::before { content: ''; position: absolute; left: 19px; top: 30px; bottom: 28px; width: 2px; background: var(--border2); }
.fstep { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text2); line-height: 1.5; }
.fstep b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 12px; color: var(--bg); z-index: 1; }
.col-cyan .fstep > b { background: var(--accent); }
.col-green .fstep > b { background: var(--accent2); }
.fstep .inl { color: var(--text); background: none; }
.col-cyan .fstep .inl { color: var(--accent); }
.col-green .fstep .inl { color: var(--accent2); }

.flow-out { margin-top: 14px; border: 1px dashed var(--border2); border-radius: 8px; padding: 13px 16px; font-size: 14px; color: var(--text); }
.col-cyan .flow-out { background: rgba(0,212,255,.05); border-color: rgba(0,212,255,.35); }
.col-green .flow-out { background: rgba(28,132,236,.05); border-color: rgba(28,132,236,.35); }

.node-concl { text-align: center; background: linear-gradient(135deg, var(--panel), var(--panel2)); border-color: var(--border2); padding: 30px 28px; }
.node-concl strong { display: block; font-family: var(--display); font-size: clamp(19px, 2.6vw, 25px); color: var(--text); margin-bottom: 12px; line-height: 1.25; }
.node-concl p { color: var(--text2); font-size: 15px; max-width: 760px; margin: 0 auto; }

/* ── Pricing ─────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.tier { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.tier.pop { border-color: var(--accent2); box-shadow: 0 0 0 1px rgba(28,132,236,.25), 0 18px 50px rgba(28,132,236,.1); }
.tier .badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--accent2); color: #fff; font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 999px; }
.tier .tname { font-family: var(--display); color: var(--accent); letter-spacing: 1.5px; font-size: 14px; }
.tier .tprice { font-family: var(--display); font-size: 34px; color: var(--text); margin: 8px 0 2px; }
.tier .tprice small { font-size: 13px; color: var(--text3); }
.tier .tonce { font-size: 12px; color: var(--text3); margin-bottom: 14px; }
.tier .ttag { font-size: 13px; color: var(--text2); line-height: 1.55; margin-bottom: 18px; min-height: 76px; }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.tier-ent { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, var(--panel), var(--panel2)); border: 1px solid var(--border2); border-radius: 10px; padding: 26px 28px; margin-top: 16px; }
.tier-ent h3 { color: var(--accent); font-size: 18px; letter-spacing: 1.5px; }
.tier-ent p { color: var(--text2); font-size: 14px; margin-top: 6px; }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 40px; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
table.matrix th, table.matrix td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--border); }
table.matrix thead th { font-family: var(--display); color: var(--accent); font-size: 11px; letter-spacing: 1px; background: var(--bg3); position: sticky; top: 0; }
table.matrix tbody td:first-child, table.matrix thead th:first-child { text-align: left; color: var(--text); }
table.matrix tbody tr:hover { background: rgba(0,212,255,.03); }
table.matrix .col-pop { background: var(--bg3); }
table.matrix .yes { color: var(--accent2); font-weight: 700; }
table.matrix .no { color: var(--text3); }

/* ── Capability table (Capabilities page) ────────────────── */
.captable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
table.captable { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.captable th, table.captable td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.captable thead th { font-family: var(--display); color: var(--accent); font-size: 11px; letter-spacing: 1px; background: var(--bg3); text-transform: uppercase; }
table.captable tbody tr:hover { background: rgba(0,212,255,.03); }
table.captable td.cap { color: var(--text); font-weight: 600; }
table.captable td.why { color: var(--text2); font-size: 13px; line-height: 1.55; }
table.captable td.st { white-space: nowrap; }
table.captable tr.grp td { background: var(--bg3); font-family: var(--display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent2); }
.stbadge { display: inline-block; font-family: var(--display); font-size: 10px; letter-spacing: .5px; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; border: 1px solid; white-space: nowrap; }
.stbadge.inc { color: var(--accent2); border-color: var(--accent2); background: rgba(28,132,236,.08); }
.stbadge.simp { color: var(--warn); border-color: var(--warn); background: rgba(255,170,0,.09); }
.stbadge.soon { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,.08); }
.stbadge.out { color: var(--text3); border-color: var(--border2); }
.captable-legend { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; font-size: 12px; color: var(--text2); }
.captable-legend span { display: inline-flex; align-items: center; gap: 7px; }

/* ── Generic info boxes ──────────────────────────────────── */
.boxgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.box { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.box.hi { border-color: var(--accent2); }
.box h4 { color: var(--accent); font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.box p { font-size: 14px; color: var(--text2); }

/* ── Comparison (vs heavyweight simulators) ──────────────── */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.vs-col { border: 1px solid var(--border); border-radius: 10px; padding: 26px; background: var(--panel); }
.vs-col.them { opacity: .92; }
.vs-col.us { border-color: var(--accent2); box-shadow: 0 0 0 1px rgba(28,132,236,.2), 0 18px 50px rgba(28,132,236,.08); background: linear-gradient(180deg, var(--panel), var(--panel2)); }
.vs-col h3 { font-size: 18px; letter-spacing: 1px; margin-bottom: 4px; }
.vs-col.them h3 { color: var(--text2); }
.vs-col.us h3 { color: var(--accent2); }
.vs-col .kicker { font-size: 12px; color: var(--text3); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; display: block; }
.vs-col ul { list-style: none; }
.vs-col li { font-size: 14px; padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--border); color: var(--text2); }
.vs-col li:first-child { border-top: 0; }
.vs-col.them li::before { content: '✕'; color: var(--danger); position: absolute; left: 0; font-weight: 700; }
.vs-col.us li::before { content: '✓'; color: var(--accent2); position: absolute; left: 0; font-weight: 700; }
.vs-col.us li { color: var(--text); }
.vs-lead { text-align: center; max-width: 760px; margin: 28px auto 0; color: var(--text2); font-size: 16px; }
.vs-lead b { color: var(--accent); }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band { text-align: center; background: linear-gradient(135deg, var(--panel), var(--panel2)); border: 1px solid var(--border2); border-radius: 14px; padding: 48px 28px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 12px; }
.cta-band p { color: var(--text2); margin-bottom: 24px; }
.cta-band .hero-cta { justify-content: center; }

/* ── Forms ───────────────────────────────────────────────── */
.form { max-width: 560px; margin: 0 auto; display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; letter-spacing: .5px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--r);
  color: var(--text); font-family: var(--mono); font-size: 15px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.12); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 36px; margin-top: 40px; background: var(--bg2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h5 { font-family: var(--display); font-size: 12px; letter-spacing: 1.5px; color: var(--text3); text-transform: uppercase; margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--text2); font-size: 14px; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text3); font-size: 13px; }
.footer-logo img { height: 130px; margin-bottom: 12px; border-radius: 10px; }
.footer-tag { color: var(--text2); font-size: 14px; max-width: 320px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr) !important; }
  .frow { grid-template-columns: 1fr; gap: 24px; }
  .frow:nth-child(even) .ftext { order: 0; }
  .flow-cols { grid-template-columns: 1fr; gap: 16px; }
  .boxgrid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links { display: flex; position: absolute; top: 84px; left: 0; right: 0; flex-direction: column; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px; }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr !important; }
  .tier-ent { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ============================================================
   FREE TOOLS — fit assessment · OEE calculator · ROI calculator
   ============================================================ */
.tool-hub { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.tool-hub .card { display: flex; flex-direction: column; flex: 0 1 330px; }
.tool-hub .card .btn { margin-top: auto; }
.tool-hub .card .ic { font-size: 30px; }

/* two-column tool layout: inputs on the left, live result on the right */
.tool { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; max-width: 980px; margin: 0 auto; }
.tool-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 22px; }
.tool-panel h3 { font-family: var(--display); font-size: 13px; letter-spacing: 1.2px; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; }
.tool-panel .field { margin-bottom: 14px; }
.tool-panel .field small { display: block; color: var(--text3); font-size: 11px; margin-top: 4px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* result readouts */
.result-big { font-family: var(--display); font-size: 46px; font-weight: 900; line-height: 1; margin: 4px 0 2px; }
.result-sub { color: var(--text3); font-size: 12px; letter-spacing: .5px; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.metric-row:last-child { border-bottom: 0; }
.metric-row .k { color: var(--text2); font-size: 13px; }
.metric-row .v { font-family: var(--mono); font-size: 18px; color: var(--text); }
.bar { height: 8px; border-radius: 5px; background: var(--bg3); overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; border-radius: 5px; transition: width .3s ease, background .3s ease; }
.ok { color: #37d67a; } .warn { color: var(--warn); } .bad { color: var(--danger); }
.bg-ok { background: #37d67a; } .bg-warn { background: var(--warn); } .bg-bad { background: var(--danger); }
.note { font-size: 12px; color: var(--text3); line-height: 1.55; margin-top: 12px; }

/* fit questionnaire */
.quiz { max-width: 760px; margin: 0 auto; }
.q { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 14px; }
.q > p { font-size: 15px; color: var(--text); margin-bottom: 12px; font-weight: 500; }
.q .opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--border2); }
.opt input { margin-top: 3px; accent-color: var(--accent); }
.opt.sel { border-color: var(--accent); background: rgba(0,212,255,.06); }
.opt span { font-size: 13.5px; color: var(--text2); }
.verdict { border-radius: 10px; padding: 24px; margin: 0 auto 8px; max-width: 760px; text-align: center; border: 1px solid var(--border); background: var(--panel); }
.verdict.good { border-color: #37d67a; box-shadow: 0 0 0 1px rgba(55,214,122,.25); }
.verdict.mid { border-color: var(--warn); box-shadow: 0 0 0 1px rgba(255,170,0,.25); }
.verdict.bad { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(255,68,85,.22); }
.verdict h3 { font-family: var(--display); font-size: 22px; margin-bottom: 8px; }
.verdict p { color: var(--text2); font-size: 14px; }
.verdict ul { text-align: left; max-width: 560px; margin: 12px auto 0; color: var(--text2); font-size: 13px; line-height: 1.7; }

@media (max-width: 820px) {
  .tool-hub { grid-template-columns: 1fr; }
  .tool { grid-template-columns: 1fr; }
}
