/* FleetShift marketing site — tokens from DESIGN.json */

:root {
  --ink: #1a1917;
  --ink-soft: #3f3c38;
  --paper: #f4f1ea;
  --surface: #faf8f4;
  --surface-raised: #ffffff;
  --surface-sunken: #ebe6dc;
  --border: #e2ddd4;
  --border-strong: #c9c2b5;
  --text-primary: #1a1917;
  --text-secondary: #6b6560;
  --text-muted: #8a837a;
  --text-inverse: #faf8f4;
  --accent: #1f4e46;
  --accent-hover: #173b35;
  --accent-soft: #e6f0ed;
  --success: #1b7a4e;
  --success-soft: #e3f5eb;
  --warning: #b45309;
  --warning-soft: #fef3e2;
  --danger: #b91c1c;
  --danger-soft: #fdecec;
  --shadow-sheet: 0 8px 28px rgba(26, 25, 23, 0.12);
  --shadow-float: 0 20px 50px rgba(26, 25, 23, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Spline Sans", Inter, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --max: 1120px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

/* ——— Layout ——— */

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.container-wide {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(244, 241, 234, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 248, 244, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms var(--ease);
}

.nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease),
    transform 150ms var(--ease), color 200ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-sunken);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 16px;
}

.menu-toggle {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-primary);
}

.mobile-nav a:hover {
  background: var(--surface-sunken);
}

/* ——— Hero ——— */

.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(31, 78, 70, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 12ch;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36ch;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--text-inverse);
  transition: transform 150ms var(--ease), opacity 150ms var(--ease);
}

.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .store-label small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.75;
}

.store-badge .store-label strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

/* Phone mock ——— */

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-stage {
  position: relative;
  width: min(100%, 340px);
}

.phone {
  position: relative;
  background: var(--ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-float);
  border: 1px solid #2a2825;
}

.phone-screen {
  background: var(--paper);
  border-radius: 26px;
  overflow: hidden;
  min-height: 560px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.phone-body {
  padding: 8px 16px 20px;
}

.phone-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.phone-plate {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.status-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.chip-roadworthy {
  background: var(--success-soft);
  color: var(--success);
}

.chip-offline {
  background: var(--surface-sunken);
  color: var(--text-secondary);
}

.chip-grounded {
  background: var(--danger-soft);
  color: var(--danger);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.check-item span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.check-item .pass-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--success);
  padding: 4px 8px;
  border-radius: 6px;
}

.pass-all-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.phone-footer-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.float-card {
  position: absolute;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sheet);
  padding: 12px 14px;
  max-width: 180px;
  animation: float-soft 5s var(--ease) infinite alternate;
}

.float-card.alert {
  right: -12px;
  top: 18%;
  border-left: 3px solid var(--danger);
}

.float-card.sync {
  left: -8px;
  bottom: 16%;
}

.float-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.float-card p {
  margin: 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

@keyframes float-soft {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

/* ——— Sections ——— */

.section {
  padding: 96px 0;
  position: relative;
}

.section-tight {
  padding: 64px 0;
}

.section-soft {
  background: var(--surface);
}

.section-ink {
  background: var(--ink);
  color: var(--text-inverse);
}

.section-ink .section-lead {
  color: rgba(250, 248, 244, 0.65);
}

.section-ink .section-kicker {
  color: #a7c9c0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.section-lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Trust strip */

.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.trust-item {
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-divider {
  display: none;
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Split head (problem) */

.split-head {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
  align-items: end;
}

.split-head h2 {
  margin: 0;
  max-width: 16ch;
}

.split-head .section-lead {
  max-width: 40ch;
}

/* Compare panel */

.compare-panel {
  display: grid;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sheet);
}

.compare-col {
  padding: 32px 28px;
}

.compare-before {
  background: var(--surface-sunken);
}

.compare-after {
  background: var(--accent);
  color: var(--text-inverse);
}

.compare-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}

.compare-after .compare-label {
  color: #a7c9c0;
  opacity: 1;
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.compare-before .compare-list li {
  color: var(--ink-soft);
}

.x-mark,
.check-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.x-mark {
  background: rgba(185, 28, 28, 0.12);
}

.x-mark::before,
.x-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1.5px;
  background: var(--danger);
}

.x-mark::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.x-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.check-mark {
  background: rgba(250, 248, 244, 0.15);
}

.check-mark::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid #6bc994;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

/* Compliance & audit — tight hierarchy */

.cost-stats {
  display: grid;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-raised);
}

.cost-stat {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}

.cost-stat:last-child {
  border-bottom: none;
}

.cost-stat strong {
  display: block;
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 4px;
}

.cost-stat span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.cost-stat p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 36ch;
}

.cost-compare {
  margin: 0 0 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.cost-compare span {
  color: var(--accent);
  font-weight: 600;
}

.compliance-split {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

.compliance-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
}

.compliance-copy > p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  max-width: 40ch;
}

.compliance-visual {
  display: flex;
  justify-content: center;
}

.audit-doc {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--paper);
}

.audit-doc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--text-inverse);
  font-size: 12px;
  font-weight: 600;
}

.audit-doc-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  padding: 4px 8px;
  border-radius: 999px;
}

.audit-doc-body {
  padding: 14px;
}

.audit-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.audit-meta-row small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.audit-meta-row strong {
  font-size: 13px;
  font-weight: 600;
}

.text-success {
  color: var(--success);
}

.audit-checks {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.audit-check-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
}

.audit-check-line:last-child {
  border-bottom: none;
}

.audit-check-line em {
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  color: var(--success);
}

.audit-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.audit-ok {
  color: var(--success);
  font-weight: 700;
}

.stakes-footnote {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 58ch;
  margin-inline: auto;
}

/* Process rail (how it works) */

.process-rail {
  display: grid;
  gap: 40px;
  max-width: 960px;
  margin-inline: auto;
}

.process-step {
  display: grid;
  gap: 20px;
  align-items: start;
}

.process-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.process-index span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a7c9c0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(250, 248, 244, 0.14);
  background: rgba(250, 248, 244, 0.06);
  display: grid;
  place-items: center;
}

.process-line {
  width: 1px;
  flex: 1;
  min-height: 24px;
  background: linear-gradient(
    to bottom,
    rgba(167, 201, 192, 0.5),
    transparent
  );
  display: none;
}

.process-copy h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.process-copy p {
  margin: 0;
  color: rgba(250, 248, 244, 0.65);
  font-size: 15px;
  line-height: 1.55;
  max-width: 36ch;
}

.process-visual {
  width: 100%;
}

/* Shared UI panels */

.ui-panel {
  background: var(--surface-raised);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.ui-panel-top {
  display: flex;
  gap: 5px;
  margin-bottom: 14px;
}

.ui-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-strong);
}

.ui-dot:first-child {
  background: #e85a5a;
}

.ui-dot:nth-child(2) {
  background: #e9a23b;
}

.ui-dot:nth-child(3) {
  background: #3aad74;
}

.qr-block {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.qr-grid {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background:
    repeating-conic-gradient(var(--ink) 0% 25%, var(--paper) 0% 50%) 0 0 / 12px
    12px;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.qr-meta strong {
  display: block;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.qr-meta code {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.ui-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-mini-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
}

.ui-mini-chip.success {
  background: var(--success-soft);
  color: var(--success);
}

.ui-row-check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--surface);
}

.ui-row-check.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.ui-row-check.muted {
  opacity: 0.55;
}

.ui-row-check em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ui-row-check em.pass {
  color: var(--success);
  background: var(--success-soft);
  padding: 3px 7px;
  border-radius: 5px;
}

.ui-row-check em.neutral {
  color: var(--text-muted);
}

.ui-progress {
  height: 4px;
  background: var(--surface-sunken);
  border-radius: 99px;
  margin: 12px 0 8px;
  overflow: hidden;
}

.ui-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}

.ui-timer {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.ui-alert .alert-banner {
  background: var(--danger);
  color: white;
  margin: -18px -18px 14px;
  padding: 12px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.ui-alert .alert-banner span {
  opacity: 0.85;
  font-size: 12px;
}

.alert-plate {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.alert-body p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ui-btn-ghost,
.ui-btn-solid {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}

.ui-btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.ui-btn-solid {
  background: var(--accent);
  color: var(--text-inverse);
}

/* Feature showcase rows */

.showcase-stack {
  display: grid;
  gap: 64px;
  margin-bottom: 56px;
}

.showcase-row {
  display: grid;
  gap: 32px;
  align-items: center;
}

.showcase-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.showcase-copy > p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 40ch;
}

.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.showcase-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.showcase-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.showcase-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.showcase-frame {
  position: relative;
  border-radius: 24px;
  padding: 28px;
  background:
    linear-gradient(145deg, var(--surface-sunken), var(--surface)),
    var(--surface-sunken);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.frame-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 78, 70, 0.22), transparent 70%);
  top: -40px;
  right: -20px;
  pointer-events: none;
}

.frame-glow.amber {
  background: radial-gradient(circle, rgba(180, 83, 9, 0.18), transparent 70%);
}

.frame-glow.red {
  background: radial-gradient(circle, rgba(185, 28, 28, 0.16), transparent 70%);
}

.showcase-frame .ui-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-sheet);
  border: 1px solid var(--border);
}

/* Speed panel */

.ui-speed {
  text-align: center;
  padding: 28px 20px;
}

.speed-ring {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 6px solid var(--accent-soft);
  border-top-color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.speed-ring strong {
  font-size: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.speed-ring span {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.speed-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.speed-cats span {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
}

/* Offline panel */

.offline-banner {
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.offline-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.offline-item:last-child {
  border-bottom: none;
}

.offline-item.done {
  opacity: 0.55;
}

.plate-mono {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.pending {
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
}

.status-dot.ok {
  background: var(--success);
}

/* Defect panel */

.defect-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.defect-viewfinder {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #2a2825, #1a1917);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: rgba(250, 248, 244, 0.55);
  font-size: 12px;
  font-weight: 500;
}

.vf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(250, 248, 244, 0.7);
}

.vf-corner.tl {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.vf-corner.tr {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.vf-corner.bl {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

.vf-corner.br {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.severity-row {
  display: flex;
  gap: 8px;
}

.sev {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
}

.sev.minor {
  color: var(--warning);
  background: var(--warning-soft);
}

.sev.critical {
  color: var(--danger);
  background: transparent;
  border-color: var(--danger);
}

.sev.critical.active {
  background: var(--danger);
  color: white;
}

/* Capability grid */

.cap-grid {
  display: grid;
  gap: 14px;
}

.cap-card {
  padding: 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.cap-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sheet);
}

.cap-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.cap-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.cap-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Languages */

.languages-section {
  padding: 72px 0;
}

.languages-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.languages-copy h2 {
  margin: 0 0 12px;
  max-width: 18ch;
}

.languages-copy .section-lead {
  max-width: 40ch;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lang-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(250, 248, 244, 0.06);
  border: 1px solid rgba(250, 248, 244, 0.1);
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 248, 244, 0.88);
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.lang-chip:hover {
  background: rgba(250, 248, 244, 0.1);
  border-color: rgba(167, 201, 192, 0.35);
}

.lang-chip strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a7c9c0;
  min-width: 1.75rem;
}

/* Roles stage */

.role-stage {
  display: grid;
  gap: 16px;
}

.role-panel {
  display: grid;
  gap: 28px;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface-raised);
  overflow: hidden;
  align-items: center;
}

.role-panel.manager {
  background: var(--ink);
  color: var(--text-inverse);
  border-color: transparent;
}

.role-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.role-panel.manager .role-label {
  color: #a7c9c0;
}

.role-panel h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.role-panel-copy > p {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 38ch;
}

.role-panel.manager .role-panel-copy > p {
  color: rgba(250, 248, 244, 0.65);
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.role-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  align-items: flex-start;
}

.role-list li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.role-panel.manager .role-list li::before {
  color: #a7c9c0;
}

.role-panel-ui {
  display: flex;
  justify-content: center;
}

.mini-phone {
  width: 180px;
  background: var(--ink);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-float);
}

.mini-phone-bar {
  width: 48px;
  height: 5px;
  background: #3f3c38;
  border-radius: 99px;
  margin: 4px auto 10px;
}

.mini-phone-body {
  background: var(--paper);
  border-radius: 14px;
  padding: 14px 12px;
  color: var(--text-primary);
}

.mp-title {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mp-btn {
  background: var(--accent);
  color: white;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.mp-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.mp-row b.ok {
  color: var(--success);
  font-weight: 700;
}

.manager-dash {
  width: 100%;
  max-width: 280px;
  background: rgba(250, 248, 244, 0.05);
  border: 1px solid rgba(250, 248, 244, 0.1);
  border-radius: 16px;
  padding: 14px;
}

.md-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.08);
}

.md-row .plate-mono {
  color: var(--text-inverse);
  font-size: 12px;
}

.md-row .chip {
  font-size: 10px;
  padding: 4px 8px;
}

.chip-minor {
  background: var(--warning-soft);
  color: var(--warning);
}

.md-alert {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f09a9a;
  background: rgba(185, 28, 28, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
}

/* Pricing */

.pricing-shell {
  max-width: 860px;
  margin-inline: auto;
}

.pricing-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.price-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sheet);
}

.price-card.featured {
  background: var(--ink);
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-float);
}

.price-card.featured:hover {
  box-shadow: 0 24px 56px rgba(26, 25, 23, 0.28);
}

.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 6px 10px;
  border-radius: 999px;
}

.price-top h3 {
  margin: 0 0 4px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.price-top .price-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-card.featured .price-top .price-note {
  color: rgba(250, 248, 244, 0.6);
}

.price-card .price {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 20px 0 4px;
  line-height: 1;
}

.price-card .price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card.featured .price span {
  color: rgba(250, 248, 244, 0.5);
}

.price-limit {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.price-card.featured .price-limit {
  color: rgba(250, 248, 244, 0.6);
}

.price-limit strong {
  color: var(--text-primary);
  font-weight: 600;
}

.price-card.featured .price-limit strong {
  color: var(--text-inverse);
}

.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}

.price-list li {
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-soft);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B7A4E' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.price-card.featured .price-list li::before {
  background-color: rgba(107, 201, 148, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236BC994' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
}

.price-card .btn {
  width: 100%;
}

.price-card.featured .btn-primary {
  background: var(--surface-raised);
  color: var(--ink);
}

.price-card.featured .btn-primary:hover {
  background: var(--paper);
}

.pricing-footnote {
  text-align: center;
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-footnote a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* FAQ split */

.faq-layout {
  display: grid;
  gap: 40px;
  align-items: start;
}

.faq-aside h2 {
  margin: 0 0 12px;
}

.faq-aside .section-lead {
  margin-bottom: 24px;
  max-width: 32ch;
}

.faq-aside .btn {
  margin-bottom: 14px;
}

.faq-support-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-raised);
  overflow: hidden;
  transition: border-color 150ms var(--ease);
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sheet);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.faq-item .faq-body p {
  margin: 0;
}

.faq-item .faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Final CTA */

.cta-band {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 78, 70, 0.12), transparent 55%),
    var(--paper);
}

.cta-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 40px 32px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--text-inverse);
  box-shadow: var(--shadow-float);
  text-align: center;
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-card p {
  margin: 0;
  color: rgba(250, 248, 244, 0.65);
  font-size: 1.05rem;
  max-width: 40ch;
  margin-inline: auto;
}

.cta-card .store-row {
  justify-content: center;
  margin-bottom: 0;
}

.cta-card .store-badge {
  background: var(--surface-raised);
  color: var(--ink);
}

.cta-card .store-badge:hover {
  opacity: 0.92;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 28ch;
  line-height: 1.5;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 150ms var(--ease);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* Utility (support page contact card) */

.problem-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  border: 1px solid var(--border);
}

/* Legal pages */

.legal-page {
  padding: 48px 0 80px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-content {
  max-width: 680px;
}

.legal-content h2 {
  margin: 32px 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.legal-content ul {
  padding-left: 1.2em;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 80ms;
}
.reveal-delay-2 {
  transition-delay: 160ms;
}
.reveal-delay-3 {
  transition-delay: 240ms;
}

/* Responsive */

@media (min-width: 640px) {
  .trust-inner {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
  }

  .trust-divider {
    display: block;
  }

  .compare-panel {
    grid-template-columns: 1fr 1fr;
  }

  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .cost-stat {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .cost-stat:last-child {
    border-right: none;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 64px 0 96px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .split-head {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 48px;
  }

  .compliance-split {
    grid-template-columns: 1.1fr 0.95fr;
    gap: 40px;
    padding: 36px 40px;
  }

  .process-step {
    grid-template-columns: 56px 1fr 1.1fr;
    gap: 28px;
    align-items: stretch;
  }

  .process-line {
    display: block;
    margin-top: 8px;
  }

  .process-index {
    align-items: center;
    height: 100%;
  }

  .showcase-row {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .showcase-row.reverse .showcase-copy {
    order: 2;
  }

  .showcase-row.reverse .showcase-frame {
    order: 1;
  }

  .role-panel {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 40px;
    gap: 32px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
  }

  .cta-card {
    grid-template-columns: 1.2fr auto;
    text-align: left;
    padding: 48px 44px;
    gap: 32px;
  }

  .cta-card p {
    margin-inline: 0;
  }

  .cta-card .store-row {
    justify-content: flex-end;
    margin-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .languages-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .float-card.alert {
    right: -40px;
  }

  .float-card.sync {
    left: -36px;
  }

  .showcase-stack {
    gap: 80px;
  }

  .process-step {
    gap: 36px;
  }

  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .float-card {
    animation: none;
  }

  .cap-card:hover,
  .price-card:hover,
  .store-badge:hover {
    transform: none;
  }
}
