/* Storage Knight marketing site — clean pro SaaS, light + dark */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f7f6;
  --bg-raised: #ffffff;
  --text: #1a1815;
  --text-soft: #5f5a53;
  --text-faint: #8a847b;
  --border: #e8e5e0;
  --border-strong: #d6d2cb;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #ffffff;
  --check: #4f46e5;
  --badge-bg: #fff3e8;
  --badge-text: #b45309;
  --shadow: 0 1px 2px rgba(26, 24, 21, 0.05), 0 8px 24px rgba(26, 24, 21, 0.06);
  --shadow-pop: 0 2px 6px rgba(26, 24, 21, 0.08), 0 16px 40px rgba(26, 24, 21, 0.12);
}

[data-theme="dark"] {
  --bg: #141311;
  --bg-soft: #1c1a17;
  --bg-raised: #201e1a;
  --text: #f0ede8;
  --text-soft: #b3ada3;
  --text-faint: #7d776d;
  --border: #2e2b26;
  --border-strong: #403c35;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-soft: #23223a;
  --accent-text: #ffffff;
  --check: #818cf8;
  --badge-bg: #2b2113;
  --badge-text: #f5a623;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 2px 6px rgba(0, 0, 0, 0.5), 0 16px 40px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.logo-mark { color: var(--accent); flex: none; display: block; }
.brand .logo-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--text-soft); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
/* buttons in the nav must keep their own text colour (beats .nav-links a) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-text); }
.nav-links a.btn-ghost, .nav-links a.btn-ghost:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; border-radius: 10px;
  padding: 10px 18px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-lg { padding: 13px 26px; font-size: 16px; border-radius: 12px; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border-strong); color: var(--text-soft);
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-faint); }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 64px; text-align: center; }
.hero img.hero-logo { width: 150px; margin: 0 auto 28px; }
.hero h1 {
  font-size: clamp(34px, 5vw, 54px); line-height: 1.12; letter-spacing: -0.03em;
  font-weight: 800; max-width: 780px; margin: 0 auto;
}
.hero h1 .accent { color: var(--accent); }
.hero p.sub {
  font-size: clamp(16px, 2vw, 19px); color: var(--text-soft);
  max-width: 640px; margin: 20px auto 0;
}
.hero .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13.5px; color: var(--text-faint); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 750; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 16.5px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ---------- Feature grid (landing) ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card .icon svg { width: 21px; height: 21px; color: var(--accent); }
.feature-card h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; color: var(--text-soft); margin-top: 7px; }

/* ---------- Pricing cards ---------- */

.billing-toggle {
  display: flex; justify-content: center; align-items: center; gap: 0;
  margin: 0 auto 44px; width: fit-content;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px;
}
.billing-toggle button {
  border: none; background: transparent; color: var(--text-soft); font-weight: 600;
  font-size: 14.5px; padding: 9px 20px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-family: inherit;
}
.billing-toggle button.on { background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow); }
.pill {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent);
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
  position: relative;
}
.plan.popular { border-color: var(--accent); box-shadow: var(--shadow-pop); }
.plan .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 14px; border-radius: 99px;
  white-space: nowrap;
}
.plan h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.plan .for { color: var(--text-soft); font-size: 14px; margin-top: 4px; min-height: 42px; }
.plan .price-row { margin: 18px 0 2px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .per { color: var(--text-faint); font-size: 14.5px; }
.plan .was { color: var(--text-faint); font-size: 17px; text-decoration: line-through; font-weight: 500; }
.plan .bill-note { font-size: 13px; color: var(--text-faint); min-height: 20px; }
.plan .early {
  display: inline-flex; width: fit-content; margin-top: 10px; font-size: 12px; font-weight: 700;
  background: var(--badge-bg); color: var(--badge-text); padding: 3px 10px; border-radius: 99px;
}
.plan ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 10px; }
.plan ul li { font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.plan ul li .tick { color: var(--check); font-weight: 800; flex: none; }
.plan ul li small { color: var(--text-faint); }
.plan .btn { margin-top: auto; width: 100%; }
.plan .note { font-size: 12.5px; color: var(--text-faint); text-align: center; margin-top: 10px; }

/* ---------- Compare strip ---------- */

.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.compare-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.compare-card .vs { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); }
.compare-card .stat { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 8px; }
.compare-card .stat em { font-style: normal; color: var(--accent); }
.compare-card p { font-size: 14px; color: var(--text-soft); }
.compare-foot { text-align: center; font-size: 12.5px; color: var(--text-faint); margin-top: 22px; }

/* ---------- Feature matrix ---------- */

.matrix-hook {
  text-align: center; background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 34px;
  font-size: 15.5px; color: var(--text);
}
.matrix-hook strong { color: var(--accent); }

.matrix-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-raised); box-shadow: var(--shadow); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
table.matrix th, table.matrix td { padding: 12px 18px; text-align: center; border-top: 1px solid var(--border); }
table.matrix td:first-child, table.matrix th:first-child { text-align: left; }
table.matrix thead th {
  border-top: none; background: var(--bg-raised);
  font-size: 15px; padding: 18px 18px 22px;
}
/* breathing room so the first data row is never cramped under the header */
table.matrix tbody tr:first-child td { padding-top: 13px; }
table.matrix td:first-child, table.matrix th:first-child { padding-left: 22px; }
table.matrix thead th .th-price { display: block; font-weight: 500; color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
table.matrix thead th.pop-col { color: var(--accent); }
table.matrix tr.group td {
  background: var(--bg-soft); font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-soft); padding: 10px 18px;
}
table.matrix td .tick { color: var(--check); font-weight: 800; font-size: 16px; }
table.matrix td.num { font-weight: 650; }
table.matrix td .muted { color: var(--text-faint); }
table.matrix tbody tr:hover td { background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
table.matrix tbody tr.group:hover td { background: var(--bg-soft); }
.matrix-cta { text-align: center; margin-top: 34px; }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 22px;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 15.5px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--text-faint); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Final CTA + footer ---------- */

.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.02em; font-weight: 750; max-width: 640px; margin: 0 auto; }
.final-cta p { color: var(--text-soft); margin: 14px auto 30px; max-width: 520px; }

.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.site-footer .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer .brand { font-size: 15px; }
.site-footer .brand .logo-mark { width: 24px; height: 24px; }
.site-footer nav { display: flex; gap: 20px; margin-left: auto; }
.site-footer a, .site-footer span { font-size: 13.5px; color: var(--text-faint); }
.site-footer a:hover { color: var(--text); }

/* ================================================================
   APP PREVIEW — faithful in-page render of the real Storage Knight UI
   ================================================================ */

/* Colour tokens for the mocked app surface (independent of page accent
   except for the indigo primary, which tracks --accent). */
.app, .phone {
  --a-bg: #f6f7f9;
  --a-surface: #ffffff;
  --a-line: #e6e8ec;
  --a-line-soft: #eef0f3;
  --a-text: #1e222a;
  --a-muted: #6b7280;
  --a-faint: #9aa1ac;
  --a-sidebar: #1f2430;
  --a-sidebar-text: #c4c9d4;
}
[data-theme="dark"] .app, [data-theme="dark"] .phone {
  --a-bg: #12141a;
  --a-surface: #1a1d24;
  --a-line: #2a2e37;
  --a-line-soft: #23262e;
  --a-text: #eceef2;
  --a-muted: #98a0ac;
  --a-faint: #6b7280;
  --a-sidebar: #0f1116;
  --a-sidebar-text: #aab1bd;
}

/* ----- window chrome ----- */
.browser {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--a-surface);
  box-shadow: var(--shadow-pop);
}
.browser .chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--a-bg);
  border-bottom: 1px solid var(--a-line);
}
.browser .dots { display: flex; gap: 6px; }
.browser .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser .dots i:nth-child(1) { background: #f0655a; }
.browser .dots i:nth-child(2) { background: #f4bf50; }
.browser .dots i:nth-child(3) { background: #61c454; }
.browser .addr {
  flex: 1; margin-left: 8px; background: var(--a-surface); border: 1px solid var(--a-line);
  border-radius: 7px; font-size: 12px; color: var(--a-faint);
  padding: 4px 12px; display: flex; align-items: center; gap: 6px;
  overflow: hidden; white-space: nowrap;
}
.browser .addr::before {
  content: ""; width: 11px; height: 11px; flex: none; border-radius: 2px;
  border: 1.6px solid var(--a-faint); border-top-left-radius: 5px; border-top-right-radius: 5px;
}

/* ----- app body: sidebar + main ----- */
.app { display: flex; background: var(--a-bg); color: var(--a-text); font-size: 13px; text-align: left; }
.app .sidebar {
  width: 168px; flex: none; background: var(--a-sidebar); color: var(--a-sidebar-text);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 3px;
}
.app .sidebar .brand {
  display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700;
  font-size: 14px; padding: 2px 6px 12px;
}
.app .sidebar .brand .logo-mark { width: 22px; height: 22px; }
.app .sidebar a {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px;
  color: var(--a-sidebar-text); font-size: 12.5px; font-weight: 500;
}
.app .sidebar a .ic { width: 15px; height: 15px; flex: none; opacity: .85; }
.app .sidebar a.on { background: var(--accent); color: #fff; }
.app .sidebar a.on .ic { opacity: 1; }
.app .sidebar .spacer { flex: 1; }

.app .main { flex: 1; min-width: 0; padding: 16px 18px; }
.app .topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app .topbar h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.app .topbar .crumb { color: var(--a-faint); font-weight: 500; }
.app .topbar .grow { flex: 1; }
.app .abtn {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
  border-radius: 8px; padding: 7px 12px; border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-text);
}
.app .abtn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.app .abtn .ic { width: 14px; height: 14px; }

/* summary strip */
.app .summary {
  display: flex; gap: 26px; padding: 12px 14px; margin-bottom: 14px;
  background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px;
}
.app .summary .s .k { font-size: 11px; color: var(--a-muted); }
.app .summary .s .v { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-top: 2px; }
.app .summary .s .v.pos { color: #0f9d58; }
[data-theme="dark"] .app .summary .s .v.pos { color: #4ade80; }

/* filter row */
.app .filters { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.app .search {
  display: flex; align-items: center; gap: 7px; background: var(--a-surface); border: 1px solid var(--a-line);
  border-radius: 8px; padding: 6px 11px; font-size: 12px; color: var(--a-faint); min-width: 168px;
}
.app .search .ic { width: 14px; height: 14px; }
.app .chipset { display: inline-flex; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; background: var(--a-surface); }
.app .chipset span { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--a-muted); border-left: 1px solid var(--a-line); }
.app .chipset span:first-child { border-left: none; }
.app .chipset span.on { background: var(--accent); color: #fff; }
.app .filters .count { margin-left: auto; font-size: 11.5px; color: var(--a-faint); }

/* items table */
.app table { width: 100%; border-collapse: collapse; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; }
.app thead th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--a-muted); font-weight: 600; padding: 9px 10px; background: var(--a-bg); border-bottom: 1px solid var(--a-line);
}
.app thead th.r { text-align: right; }
.app tbody td { padding: 9px 10px; border-bottom: 1px solid var(--a-line-soft); vertical-align: middle; }
.app tbody tr:last-child td { border-bottom: none; }
.app td.r { text-align: right; font-variant-numeric: tabular-nums; }
.app .thumb { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.app .g1 { background: linear-gradient(135deg, #fde3b3, #f7b267); }
.app .g2 { background: linear-gradient(135deg, #bfe3ff, #a5b4fc); }
.app .g3 { background: linear-gradient(135deg, #cfe9d8, #8fd3a6); }
.app .g4 { background: linear-gradient(135deg, #e6dcff, #c4b5fd); }
.app .g5 { background: linear-gradient(135deg, #ffd9d0, #f7a48c); }
.app .noimg { background: var(--a-bg); border: 1px solid var(--a-line); display: grid; place-items: center; color: var(--a-faint); }
.app .iname { font-weight: 600; color: var(--a-text); }
.app .imeta { font-size: 11px; color: var(--a-faint); margin-top: 1px; }
.app td .total { font-weight: 700; }
.app td .unit { color: var(--a-muted); }
.app .cat { color: var(--a-muted); }
.app .badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; }
.app .b-new { background: #e6f7ee; color: #0f8a4d; }
.app .b-used { background: #eceef1; color: #5b6472; }
.app .b-repair { background: #fdf1dc; color: #b7791f; }
.app .b-mixed { background: #efe9ff; color: #6d4bd8; }
.app .b-assigned { background: var(--accent-soft); color: var(--accent); }
.app .b-transit { background: #e5f0ff; color: #2563eb; }
.app .b-await { background: #fdf1dc; color: #b7791f; }
.app .b-done { background: #e6f7ee; color: #0f8a4d; }
[data-theme="dark"] .app .b-new,[data-theme="dark"] .app .b-done { background: rgba(34,197,94,.16); color: #6ee7a8; }
[data-theme="dark"] .app .b-used { background: rgba(148,163,184,.16); color: #b6bdc9; }
[data-theme="dark"] .app .b-repair,[data-theme="dark"] .app .b-await { background: rgba(234,179,8,.16); color: #f2c96b; }
[data-theme="dark"] .app .b-mixed { background: rgba(139,92,246,.18); color: #c4b5fd; }
[data-theme="dark"] .app .b-transit { background: rgba(59,130,246,.18); color: #93b4fd; }
[data-theme="dark"] .app .b-assigned { background: var(--accent-soft); color: var(--accent-hover); }
.app .tpager { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; font-size: 11px; color: var(--a-faint); }

/* locations / warehouses overview */
.app .loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.app .loc-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; padding: 13px 14px; }
.app .loc-card .lc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.app .loc-card .lc-photo { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.app .loc-card .lc-name { font-weight: 700; font-size: 13px; }
.app .loc-card .lc-meta { font-size: 11px; color: var(--a-muted); margin-top: 1px; }
.app .loc-card .lc-value { margin-left: auto; text-align: right; }
.app .loc-card .lc-value .k { font-size: 10px; color: var(--a-faint); }
.app .loc-card .lc-value .v { font-weight: 700; font-size: 13px; }
.app .wh-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.app .wh-row + .wh-row { border-top: 1px solid var(--a-line-soft); }
.app .wh-row .wh-name { font-size: 11.5px; width: 96px; flex: none; display: flex; align-items: center; gap: 5px; color: var(--a-text); }
.app .wh-row .wh-name .snow { color: #3b9ae1; width: 11px; height: 11px; flex: none; }
.app .wh-row .gauge { flex: 1; height: 7px; border-radius: 99px; background: var(--a-line); overflow: hidden; }
.app .wh-row .gauge i { display: block; height: 100%; border-radius: 99px; }
.app .wh-row .gauge i.lo { background: #22a06b; }
.app .wh-row .gauge i.mid { background: #d9a520; }
.app .wh-row .gauge i.hi { background: #e5533d; }
.app .wh-row .pct { font-size: 11px; width: 30px; text-align: right; color: var(--a-muted); font-variant-numeric: tabular-nums; }

/* ----- devices for the hero (laptop + phone, side by side) ----- */
.stage {
  position: relative; max-width: 980px; margin: 46px auto 0;
  display: flex; justify-content: center; align-items: flex-end;
}
.stage::after { /* soft ground shadow */
  content: ""; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 74%; height: 30px; z-index: 0; filter: blur(7px);
  background: radial-gradient(ellipse at center, rgba(20,22,30,.30), transparent 72%);
}
[data-theme="dark"] .stage::after { background: radial-gradient(ellipse at center, rgba(0,0,0,.6), transparent 72%); }

/* laptop */
.laptop { position: relative; z-index: 1; width: min(680px, 68%); flex: none; }
.laptop .lid {
  position: relative;
  background: linear-gradient(158deg, #34383f, #1a1d23);
  border-radius: 16px 16px 6px 6px; padding: 17px 12px 12px;
  box-shadow: 0 24px 48px rgba(18,20,30,.26), inset 0 0 0 1px rgba(255,255,255,.045);
}
.laptop .lid::before { /* webcam */
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #0b0d11;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.laptop .screen { border-radius: 5px; overflow: hidden; background: var(--a-surface); }
.laptop .deck {
  position: relative; height: 15px; width: 116%; margin: 0 -8%;
  background: linear-gradient(180deg, #cbcfd6 0%, #b0b5be 52%, #979ca7 100%);
  border-radius: 2px 2px 12px 12px;
  box-shadow: 0 16px 24px rgba(18,20,30,.22);
}
.laptop .deck::before { /* hinge highlight */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(180deg, #6c717a, #9ea4ae);
}
.laptop .deck::after { /* front finger groove */
  content: ""; position: absolute; top: 2px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 5px; background: #8c919c; border-radius: 0 0 8px 8px;
}
[data-theme="dark"] .laptop .deck { background: linear-gradient(180deg, #40454e 0%, #2a2e36 52%, #20232a 100%); }
[data-theme="dark"] .laptop .deck::before { background: linear-gradient(180deg, #171a1f, #4c525d); }
[data-theme="dark"] .laptop .deck::after { background: #1b1e24; }

/* phone — beside the laptop, overlapping only its outer edge, standing lower/in front */
.phone {
  position: relative; z-index: 2; flex: none; width: 184px;
  margin-left: -12px; margin-bottom: -22px;
  background: linear-gradient(158deg, #2b2f38, #131519);
  border-radius: 30px; padding: 6px;
  box-shadow: 0 28px 52px rgba(18,20,30,.36), inset 0 0 0 1.5px rgba(255,255,255,.07);
}
.phone::before { /* power button (right) */
  content: ""; position: absolute; right: -2px; top: 92px; width: 2.5px; height: 42px;
  background: #22252d; border-radius: 2px;
}
.phone::after { /* volume buttons (left) */
  content: ""; position: absolute; left: -2px; top: 74px; width: 2.5px; height: 24px;
  background: #22252d; border-radius: 2px; box-shadow: 0 32px 0 #22252d;
}
.phone .phone-screen {
  position: relative; border-radius: 25px; overflow: hidden; background: var(--a-surface);
}
.phone .island {
  position: absolute; z-index: 3; top: 9px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 15px; border-radius: 99px; background: #0a0b0e;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* phone item-detail card (Sortly-style) */
.pdetail { background: var(--a-bg); color: var(--a-text); }
.pdetail .hero-img { height: 118px; background: radial-gradient(120% 120% at 50% 32%, #eef1f6, #dde1e9); position: relative; display: grid; place-items: center; }
[data-theme="dark"] .pdetail .hero-img { background: radial-gradient(120% 120% at 50% 32%, #262a35, #1a1d26); }
.pdetail .hero-img svg.tool { width: 156px; height: auto; filter: drop-shadow(0 5px 7px rgba(20,22,30,.22)); }
.pdetail .hero-img .tag { position: absolute; left: 10px; bottom: 8px; font-size: 10px; font-weight: 700; background: rgba(0,0,0,.55); color: #fff; padding: 2px 8px; border-radius: 99px; }
.pdetail .body { padding: 12px; }
.pdetail .cat { font-size: 10.5px; color: var(--a-faint); font-weight: 600; }
.pdetail h4 { font-size: 15px; font-weight: 700; margin: 2px 0 10px; }
.pdetail .actions { display: flex; gap: 6px; margin-bottom: 12px; }
.pdetail .actions button { flex: 1; font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: none; border-radius: 8px; padding: 7px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pdetail .actions button .ic { width: 15px; height: 15px; }
.pdetail .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.pdetail .kv .k { font-size: 10px; color: var(--a-faint); }
.pdetail .kv .v { font-size: 13px; font-weight: 700; margin-top: 1px; }

/* ----- transfer wizard mini ----- */
.tw { padding: 16px 18px; }
.tw h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.tw .lead { font-size: 12px; color: var(--a-muted); margin-bottom: 14px; }
.tw .vehicles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.tw .veh { border: 1.5px solid var(--a-line); border-radius: 10px; padding: 12px 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--a-muted); background: var(--a-surface); }
.tw .veh .ic { width: 22px; height: 22px; margin: 0 auto 5px; display: block; }
.tw .veh.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tw .route { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tw .route .node { flex: 1; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 9px; padding: 9px 11px; }
.tw .route .node .k { font-size: 10px; color: var(--a-faint); }
.tw .route .node .v { font-size: 12.5px; font-weight: 650; margin-top: 1px; }
.tw .route .arrow { color: var(--accent); flex: none; }
.tw .cargo { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.tw .cargo .chead { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--a-muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--a-line); }
.tw .cargo .crow { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 1px solid var(--a-line-soft); font-size: 12px; }
.tw .cargo .crow:last-child { border-bottom: none; }
.tw .cargo .crow .thumb { width: 26px; height: 26px; border-radius: 6px; }
.tw .cargo .crow .qty { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.tw .cargo .crow .qty small { color: var(--a-faint); font-weight: 500; }
.tw .send { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 9px; padding: 10px; font-size: 12.5px; font-weight: 700; }

/* in-transit card */
.transit-card { padding: 16px; }
.transit-card .trow { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-surface); margin-bottom: 9px; }
.transit-card .trow:last-child { margin-bottom: 0; }
.transit-card .trow .vic { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.transit-card .trow .vic .ic { width: 17px; height: 17px; }
.transit-card .trow .t1 { font-size: 12.5px; font-weight: 650; }
.transit-card .trow .t2 { font-size: 11px; color: var(--a-faint); margin-top: 1px; }
.transit-card .trow .rt { margin-left: auto; text-align: right; }

.dual-shots { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px; align-items: start; }
.shot-label { font-size: 13px; font-weight: 600; color: var(--text-soft); margin: 0 0 10px 2px; display: flex; align-items: center; gap: 7px; }
.shot-label .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Coming soon ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 15px; padding: 22px 22px;
  position: relative; overflow: hidden;
}
.soon-card .flagsoon { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); display: inline-flex; padding: 3px 10px; border-radius: 99px; margin-bottom: 12px; }
.soon-card h3 { font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em; }
.soon-card p { font-size: 13.5px; color: var(--text-soft); margin-top: 6px; }
.soon-note { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .feature-grid, .plans, .compare-grid, .soon-grid { grid-template-columns: 1fr; }
  .plan.popular { order: -1; }
  .nav-links a.nav-hide-sm { display: none; }
  .hero { padding: 56px 0 40px; }
  section { padding: 52px 0; }
  table.matrix thead th { position: static; }
  .dual-shots { grid-template-columns: 1fr; }
  .stage { flex-direction: column; align-items: center; }
  .laptop { width: 100%; max-width: 560px; }
  .phone { width: 200px; margin: 14px 0 0 0; }
  .phone::before, .phone::after { display: none; }
}

/* The app preview is dense; on small screens let it scroll rather than crush. */
@media (max-width: 620px) {
  .app { font-size: 12px; }
  .app .sidebar { display: none; }
  .browser .addr { display: none; }
  .app .summary { gap: 16px; overflow-x: auto; }
  .tw .vehicles { grid-template-columns: repeat(2, 1fr); }
}
.app-scroll { overflow-x: auto; }
.app-scroll .app { min-width: 560px; }
