/* ==========================================================================
   FleetSpy — design tokens
   ========================================================================== */
:root {
  --blue: #2d4cff;
  --blue-600: #1f3be6;
  --blue-700: #1830c2;
  --blue-50: #f0f3ff;
  --blue-100: #dfe5ff;
  --navy: #142d7a;
  --navy-900: #0b1640;
  --dark: #0a0f24;

  --ink: #1a1a1a;
  --text: #3d3d3d;
  --muted: #6e6e6e;
  --faint: #9a9a9a;
  --line: #e6e6e6;
  --line-dash: #d6d6d6;
  --soft: #fafafa;
  --white: #fff;

  --green: #12a150;
  --green-50: #eaf7ef;
  --amber: #e08700;
  --amber-50: #fff5e6;
  --red: #e5383b;
  --red-50: #fdecec;

  --frame: 1280px;
  --header-h: 64px;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 .5em; font-weight: 500; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 300; }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   Buttons, chips, labels
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15.5px; line-height: 1; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn .icon { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--blue-50); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16.5px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions.center { justify-content: center; }

.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-dash); padding-bottom: 1px; }
.link:hover { color: var(--blue); border-color: var(--blue); }
.link .icon { width: 15px; height: 15px; stroke-width: 2; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 3px; font-size: 13.5px; color: var(--text); background: #fff; white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.off { color: var(--faint); border-style: dashed; background: var(--soft); }
.chip.off .icon { color: var(--faint); }

.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; font-weight: 500; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--blue); border-radius: 1px; }
.on-dark .label { color: rgba(255, 255, 255, .7); }
.on-dark .label::before { background: #fff; }

.status { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 3px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-blue { background: var(--blue-50); color: var(--blue); }
.s-green { background: var(--green-50); color: var(--green); }
.s-amber { background: var(--amber-50); color: #b26b00; }
.s-gray { background: #f2f2f2; color: var(--muted); }
.s-red { background: var(--red-50); color: var(--red); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); }
.nav { max-width: 1496px; height: 100%; margin: 0 auto; padding: 0 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand img { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 8px 13px; border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; transition: background .15s; }
.nav-links a:hover { background: #f3f3f3; color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.nav-right .nav-mail { font-size: 14.5px; color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); display: inline-flex; gap: 6px; align-items: center; }
.nav-right .nav-mail .icon { width: 15px; height: 15px; }
.nav-right .nav-mail:hover { border-color: var(--ink); }
.nav-links .nav-mobile-cta { display: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 20px; height: 20px; }

@media (max-width: 1080px) { .nav-right .nav-mail { display: none; } }
@media (max-width: 1024px) { .nav { padding: 0 40px; } }
@media (max-width: 760px) { .nav { padding: 0 28px; } }
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .nav-right { display: none; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 20px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
  }
  .nav-links a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: transparent; }
  .nav-links .nav-mobile-cta { display: flex; margin-top: 16px; border: 0; border-radius: 999px; color: #fff; }
  .nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
}

/* ==========================================================================
   Frame: dashed side rails + corner markers (Cloudflare-style grid)
   ========================================================================== */
body { overflow-x: clip; }
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px dashed var(--line-dash); border-right: 1px dashed var(--line-dash); }
.sec { position: relative; border-top: 1px solid var(--line); }
.sec::before, .sec::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px; background: #fff; border: 1px solid #c9c9c9; z-index: 2;
}
.sec::before { left: -4px; }
.sec::after { right: -4px; }
.sec.no-top { border-top: 0; }
.sec.no-top::before, .sec.no-top::after { display: none; }
.pad { padding: 96px 56px; }
.pad-sm { padding: 64px 56px; }
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.sec-head p { font-size: 18.5px; color: var(--muted); margin: 0; }
.sec-head.left { text-align: left; margin-left: 0; }
.dots { height: 56px; border-top: 1px solid var(--line); background-image: radial-gradient(#d4d4d4 1px, transparent 1.2px); background-size: 9px 9px; background-position: 4px 4px; }
@media (max-width: 760px) { .pad { padding: 72px 20px; } .pad-sm { padding: 48px 20px; } .frame { border: 0; } .sec::before, .sec::after { display: none; } }

/* Cells: grids where every cell shares 1px lines */
.cells { display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.cells.no-border { border-top: 0; }
.cells > * { background: #fff; padding: 36px 32px; min-width: 0; }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c5 { grid-template-columns: repeat(5, 1fr); }
.c6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) { .c4 { grid-template-columns: repeat(2, 1fr); } .c6 { grid-template-columns: repeat(3, 1fr); } .c5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .c2, .c3, .c4 { grid-template-columns: 1fr; } .c5, .c6 { grid-template-columns: repeat(2, 1fr); } .cells > * { padding: 28px 20px; } }

.cell h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.cell p { margin: 0; font-size: 15.5px; color: var(--muted); }
.cell .chips { margin-top: 18px; }
.cell .link { margin-top: 20px; }
a.cell { color: inherit; display: block; transition: background .15s; }
a.cell:hover { background: var(--soft); }
a.cell:hover .cell-arrow { transform: translateX(3px); color: var(--blue); }
.cell-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cell-arrow { color: var(--faint); transition: .15s; }
.cell-icon { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--blue); background: #fff; }
.cell-icon .icon { width: 20px; height: 20px; }

/* ==========================================================================
   Hero (rounded panel, pixel texture, horizon glow)
   ========================================================================== */
.hero-wrap, .ticker-wrap { max-width: 1496px; margin: 0 auto; padding: 8px 8px 12px; }
.hero {
  position: relative; overflow: hidden; border-radius: 16px; color: #fff; text-align: center;
  background: linear-gradient(180deg, #0f1f8f 0%, #1c35d6 45%, #2d4cff 100%);
  padding: 128px 32px 0; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 6px 6px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: -38%; width: 130%; height: 80%; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, #e8f6ff 0%, #9fd4ff 18%, #4f8bff 40%, rgba(45, 76, 255, 0) 68%);
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow { from { opacity: .85; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.hero h1 { color: #fff; max-width: 1080px; margin: 28px auto 22px; font-weight: 500; font-size: clamp(2.4rem, 4.2vw, 3.5rem); letter-spacing: -.025em; }
.hero h1 span { opacity: .62; display: block; }
.hero .lead { font-size: 18px; max-width: 600px; margin: 0 auto 34px; color: rgba(255, 255, 255, .86); }
.announce { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: 15px; background: rgba(255, 255, 255, .06); }
.announce i, .announce .arrow { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--blue); display: grid; place-items: center; }
.announce .arrow .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.announce:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.hero-shot { max-width: 1120px; margin: 80px auto 0; position: relative; }
.hero-shot .window { border-radius: 12px 12px 0 0; border-bottom: 0; box-shadow: 0 -10px 60px rgba(6, 14, 60, .35); text-align: left; }

.hero.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; text-align: left; padding: 80px 0 80px 48px; }
.hero.split .announce { font-size: 14px; }
.hero.split h1 { margin: 24px 0 20px; font-size: clamp(2.3rem, 3.6vw, 3.4rem); }
.hero.split .lead { margin: 0 0 32px; max-width: 520px; }
.hero.split .hero-shot { margin: 0; max-width: none; }
.hero.split .hero-shot .window { width: 760px; max-width: none; border-radius: 12px 0 0 12px; border: 1px solid rgba(255, 255, 255, .5); border-right: 0; box-shadow: 0 30px 80px rgba(6, 14, 60, .45); }
.hero.split .panel { overflow: hidden; }
.hero.split::after { left: 70%; bottom: -60%; width: 90%; height: 110%; }
@media (max-width: 1024px) {
  .hero.split { grid-template-columns: 1fr; gap: 48px; padding: 64px 0 0 32px; }
  .hero.split .hero-copy { padding-right: 32px; }
  .hero.split .hero-shot .window { width: 100%; min-width: 640px; border-radius: 12px 0 0 0; border-bottom: 0; }
}
@media (max-width: 760px) {
  .hero.split { padding: 56px 0 0 20px; }
  .hero.split .hero-copy { padding-right: 20px; }
  .hero.split .hero-shot .window { min-width: 0; max-height: 340px; }
}

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; border-radius: 16px; padding: 88px 40px; background: linear-gradient(180deg, #0f1f8f, #2d4cff); color: #fff; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 6px 6px; }
.page-hero::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 70%; height: 120%; z-index: -1; background: radial-gradient(ellipse, #bfe3ff 0%, #5d93ff 30%, rgba(45, 76, 255, 0) 65%); }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.6rem); max-width: 860px; }
.page-hero p { font-size: 19px; max-width: 640px; color: rgba(255, 255, 255, .86); }
.page-hero .actions { margin-top: 28px; }
.page-hero .label { color: rgba(255, 255, 255, .75); }
.page-hero .label::before { background: #fff; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center p { margin-left: auto; margin-right: auto; }
.page-hero.center .actions { justify-content: center; }
@media (max-width: 760px) { .hero { padding-top: 72px; } .page-hero { padding: 64px 22px; } }

/* ==========================================================================
   Trust strip + stats
   ========================================================================== */
.strip-title { text-align: center; color: var(--muted); font-size: 15px; margin: 0; padding: 28px 20px 0; }
.logo-cells > * { display: flex; align-items: center; justify-content: center; padding: 28px 16px; min-height: 96px; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -.03em; color: #8c8c8c; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .15s; }
.logo-cells > *:hover .wordmark { color: var(--ink); }
.wordmark .dot { width: 16px; height: 16px; border-radius: 4px; background: currentColor; }
.wordmark.wide { text-transform: uppercase; letter-spacing: .08em; font-size: 16px; }
.wordmark.light { font-weight: 400; }
.wordmark.serif { font-family: Georgia, serif; }

.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 12px; }
.stat strong em { font-style: normal; color: var(--blue); }
.stat p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ==========================================================================
   Diagram boxes (dashed, corner squares)
   ========================================================================== */
.diagram { position: relative; border: 1px dashed var(--line-dash); padding: 18px; background: #fff; }
.diagram > .corner { position: absolute; width: 7px; height: 7px; border: 1px solid #c9c9c9; background: #fff; }
.diagram > .corner:nth-child(1) { left: -4px; top: -4px; } .diagram > .corner:nth-child(2) { right: -4px; top: -4px; }
.diagram > .corner:nth-child(3) { left: -4px; bottom: -4px; } .diagram > .corner:nth-child(4) { right: -4px; bottom: -4px; }
.diagram-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; gap: 10px; }
.diagram-head b { color: var(--blue); font-weight: 500; }
.dash-row { display: grid; gap: 8px; grid-template-columns: repeat(var(--n, 3), 1fr); }
@media (max-width: 760px) { .dash-row { grid-template-columns: repeat(2, 1fr); } }
.dash-box { border: 1px dashed var(--line-dash); padding: 14px 10px; text-align: center; font-size: 14px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-box .icon { color: var(--blue); }
.dash-box small { color: var(--muted); font-size: 12.5px; }
.diagram-foot { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }

/* ==========================================================================
   App window mockup (flat)
   ========================================================================== */
.window { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--soft); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcdc; }
.window-bar .url { margin: 0 auto; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.window-bar .url .icon { width: 11px; height: 11px; }
.app { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 14px 10px; background: #fff; }
.app-side .logo { padding: 4px 8px 14px; }
.app-side .logo img { height: 13px; width: auto; }
.app-side a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: var(--text); font-size: 12.5px; }
.app-side a.on { background: var(--blue-50); color: var(--blue); font-weight: 600; }
.app-side .icon { width: 15px; height: 15px; }
.app-side small { display: block; padding: 14px 8px 6px; color: var(--faint); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.app-main { padding: 18px; min-width: 0; background: var(--soft); }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-top h5 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.app-top small { color: var(--muted); }
.search { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 6px 10px; color: var(--faint); font-size: 11.5px; min-width: 180px; }
.search .icon { width: 12px; height: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.kpi { background: #fff; padding: 12px 14px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.kpi em { font-style: normal; color: var(--green); font-size: 11px; margin-left: 4px; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; overflow-x: auto; }
.panel-title { display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; margin-bottom: 8px; }
.panel-title small { color: var(--muted); font-weight: 400; }
.app-row { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 11px; padding: 0 8px 8px 0; }
.tbl td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: 4px; }
.bars i { flex: 1; background: var(--blue-100); border-radius: 2px; }
.bars i.on { background: var(--blue); }
.bars-x { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; margin-top: 6px; }
@media (max-width: 860px) { .app { grid-template-columns: 1fr; } .app-side { display: none; } .kpis { grid-template-columns: repeat(2, 1fr); } .app-row { grid-template-columns: 1fr; } .search { display: none; } }

/* ==========================================================================
   Product tabs
   ========================================================================== */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 18px 22px; font-size: 15.5px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.tabs button .icon { width: 17px; height: 17px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--blue); }
.tabs button[aria-selected="true"] .icon { color: var(--blue); }
.tab-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; }
.tab-panel[hidden] { display: none; }
.tab-panel > div { padding: 56px; min-width: 0; }
.tab-panel > div:first-child { border-right: 1px solid var(--line); }
.tab-panel h3 { font-size: 1.9rem; letter-spacing: -.025em; margin-bottom: 14px; }
.tab-panel p { color: var(--muted); font-size: 16.5px; }
.tab-panel .visual { background: var(--soft); display: flex; align-items: center; }
.tab-panel .visual > * { width: 100%; }
@media (max-width: 960px) {
  .tab-panel { grid-template-columns: 1fr; }
  .tab-panel > div { padding: 36px 20px; }
  .tab-panel > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; padding: 16px 14px; }
}

.ticks { display: grid; gap: 10px; margin: 22px 0 26px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.ticks li .icon { width: 18px; height: 18px; color: var(--blue); stroke-width: 2.2; margin-top: 2px; }
.on-dark .ticks li { color: #e6e9f5; }
.on-dark .ticks li .icon { color: #9db0ff; }

/* ==========================================================================
   Dispatch board
   ========================================================================== */
.board-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); }
.board-legend span { display: inline-flex; align-items: center; gap: 5px; }
.board-legend i { width: 10px; height: 10px; border-radius: 2px; }
.lg-loaded { background: var(--blue); }
.lg-empty { background: repeating-linear-gradient(45deg, #cfcfcf 0 2px, #f1f1f1 2px 5px); }
.lg-avail { background: var(--green); }
.lg-shop { background: var(--amber); }
.board { display: grid; grid-template-columns: 96px repeat(7, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 11px; background: #fff; }
.board > div { border-bottom: 1px solid var(--line); min-height: 40px; }
.board > div:nth-last-child(-n+2) { border-bottom: 0; }
.b-day { padding: 9px 4px; text-align: center; color: var(--muted); font-weight: 600; font-size: 10.5px; background: var(--soft); }
.b-day.today { color: var(--blue); }
.b-truck { padding: 6px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.b-truck b { font-size: 11.5px; }
.b-truck small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-lane { grid-column: 2 / -1; position: relative; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 7) 100%; }
.trip { position: absolute; top: 7px; bottom: 7px; border-radius: 4px; padding: 0 8px; display: flex; align-items: center; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; background: var(--blue); color: #fff; }
.trip.navy { background: var(--navy); }
.trip.empty { background: repeating-linear-gradient(45deg, #e2e2e2 0 3px, #f4f4f4 3px 7px); color: var(--muted); }
.trip.avail { background: var(--green-50); color: var(--green); border: 1px dashed #8fd4aa; }
.trip.shop { background: var(--amber-50); color: #b26b00; }
.board-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 12px; }
.board-sum div { background: #fff; padding: 8px 12px; font-size: 11px; color: var(--muted); }
.board-sum b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
@media (max-width: 560px) { .board { grid-template-columns: 70px repeat(7, 1fr); } .trip { font-size: 0; padding: 0; } }

/* ==========================================================================
   AI load entry
   ========================================================================== */
.ai { display: grid; grid-template-columns: 1fr 56px 1.1fr; align-items: center; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; font-size: 11.5px; color: var(--ink); position: relative; overflow: hidden; }
.doc-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 12px; gap: 8px; }
.doc-head b { font-size: 13px; letter-spacing: .03em; }
.doc-head small { display: block; color: var(--muted); }
.doc-pdf { font-size: 10px; font-weight: 700; color: var(--red); border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; height: fit-content; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.doc-grid small { display: block; color: var(--muted); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; }
.hl { background: rgba(45, 76, 255, .1); box-shadow: 0 0 0 1px rgba(45, 76, 255, .45); border-radius: 2px; padding: 0 3px; font-weight: 600; }
.doc-lines { margin-top: 12px; }
.doc-lines i { display: block; height: 5px; background: #efefef; border-radius: 2px; margin: 7px 0; }
.doc-lines i:nth-child(2) { width: 80%; } .doc-lines i:nth-child(3) { width: 60%; }
.scan { position: absolute; left: 0; right: 0; height: 2px; background: var(--blue); box-shadow: 0 0 14px 3px rgba(45, 76, 255, .45); animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 92%; } }
.ai-arrow { display: grid; place-items: center; color: var(--blue); }
.ai-arrow span { width: 36px; height: 36px; border: 1px dashed var(--blue); border-radius: 50%; display: grid; place-items: center; background: #fff; }
.ai-arrow .icon { width: 16px; height: 16px; stroke-width: 2; }
.extract { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px; font-size: 12px; color: var(--ink); }
.extract-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 12.5px; }
.extract-head span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.extract-head .icon { width: 15px; height: 15px; color: var(--blue); }
.progress { height: 3px; background: #efefef; border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.progress i { display: block; height: 100%; background: var(--blue); transform-origin: left; animation: fill 3.4s ease-in-out infinite; }
@keyframes fill { 0% { transform: scaleX(.05); } 70%, 100% { transform: scaleX(1); } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.fields div { background: #fff; padding: 7px 9px; position: relative; }
.fields small { display: block; color: var(--muted); font-size: 10px; }
.fields b { font-weight: 600; font-size: 11.5px; }
.fields .icon { position: absolute; right: 7px; top: 8px; width: 13px; height: 13px; color: var(--green); stroke-width: 2.6; }
.fields .full { grid-column: 1 / -1; }
.extract-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 11px; }
.extract-foot .btn { height: 30px; font-size: 12.5px; padding: 0 12px; }
@media (max-width: 760px) { .ai { grid-template-columns: 1fr; gap: 14px; } .ai-arrow span { transform: rotate(90deg); } }

/* AI feature block (dark) */
.dark-block { background: var(--dark); color: #b9c0d8; position: relative; overflow: hidden; isolation: isolate; }
.dark-block::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.3px); background-size: 7px 7px; }
.dark-block::after { content: ""; position: absolute; left: 50%; top: -55%; width: 90%; height: 90%; transform: translateX(-50%); z-index: -1; background: radial-gradient(ellipse, rgba(45, 76, 255, .55), rgba(45, 76, 255, 0) 65%); }
.dark-block h2, .dark-block h3, .dark-block h4 { color: #fff; }
.dark-block .sec-head p { color: #9ea7c4; }
.dark-cells { display: grid; gap: 1px; background: rgba(255, 255, 255, .1); border-top: 1px solid rgba(255, 255, 255, .1); }
.dark-cells > * { background: var(--dark); padding: 32px; }
.dark-cells .num { width: 28px; height: 28px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 13px; margin-bottom: 18px; }
.dark-cells h4 { margin-bottom: 6px; }
.dark-cells p { margin: 0; font-size: 15px; color: #9ea7c4; }
.ai-stage { max-width: 980px; margin: 0 auto; padding: 0 0 72px; }
.ai-stage .diagram { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .22); }
.ai-stage .diagram > .corner { background: var(--dark); border-color: rgba(255, 255, 255, .4); }
.ai-stage .diagram-head { color: #9ea7c4; }
.ai-stage .diagram-head b { color: #9db0ff; }

/* ==========================================================================
   Fleet map
   ========================================================================== */
.map { position: relative; height: 380px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #eef1f4; }
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.pin .icon { width: 13px; height: 13px; stroke-width: 2; }
.pin.idle { background: var(--amber); } .pin.off { background: #8c8c8c; } .pin.trailer { background: var(--navy); border-radius: 6px; }
.pin.live::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--blue); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.gas { position: absolute; transform: translate(-50%, -100%); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px 2px 3px; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; color: var(--ink); }
.gas .icon { width: 13px; height: 13px; background: var(--green); color: #fff; border-radius: 3px; padding: 2px; stroke-width: 2; }
.map-chips { position: absolute; left: 10px; top: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.map-chips span { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; font-size: 10.5px; font-weight: 600; color: var(--ink); }
.map-chips span.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-card { position: absolute; right: 10px; top: 10px; width: 196px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font-size: 11.5px; color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.map-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.mstats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mstats div { background: #fff; padding: 5px 7px; }
.mstats small { display: block; color: var(--muted); font-size: 9.5px; }
.mstats b { font-size: 12px; font-weight: 600; }
.fuel { height: 4px; background: #eee; border-radius: 2px; margin-top: 3px; overflow: hidden; }
.fuel i { display: block; height: 100%; background: var(--green); }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; font-size: 13px; color: var(--ink); }
.st-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.who { display: flex; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.avatar.a2 { background: var(--navy); } .avatar.a3 { background: #7a5cff; } .avatar.a4 { background: #0ea5e9; }
.who b { display: block; font-size: 13.5px; font-weight: 600; }
.who small { color: var(--muted); font-size: 11.5px; }
.st-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.st-line span { display: flex; align-items: center; gap: 8px; color: var(--text); }
.st-line span .icon { width: 14px; height: 14px; color: var(--faint); }
.st-line b { font-variant-numeric: tabular-nums; font-weight: 600; }
.st-line.minus b { color: var(--red); }
.st-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); padding: 12px 0 4px; border-top: 1px solid var(--line); }
.st-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; }
.st-total small { display: block; color: var(--muted); font-size: 11px; }
.st-total strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }

/* ==========================================================================
   Performance TV
   ========================================================================== */
.tv-screen { background: #070b1d; border: 8px solid #20263a; border-radius: 10px; padding: 16px; color: #c3cae3; font-size: 12px; }
.tv-stand { width: 90px; height: 26px; margin: 0 auto; background: #20263a; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tv-base { width: 180px; height: 6px; margin: 0 auto; background: #20263a; border-radius: 3px; }
.tv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #fff; font-weight: 600; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .08em; color: #ff8d8f; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden; margin-bottom: 10px; }
.tv-kpis div { background: #0d1430; padding: 8px 10px; }
.tv-kpis small { display: block; color: #8590b5; font-size: 10px; }
.tv-kpis b { color: #fff; font-size: 16px; font-weight: 600; }
.leader { display: grid; grid-template-columns: 18px 110px 1fr 60px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.leader .r { color: #8590b5; font-weight: 700; } .leader .r.gold { color: #fdb022; }
.leader .n { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; }
.leader .n .avatar { width: 22px; height: 22px; font-size: 9px; }
.leader .bar { height: 6px; background: rgba(255, 255, 255, .07); border-radius: 3px; overflow: hidden; }
.leader .bar i { display: block; height: 100%; background: var(--blue); }
.leader .v { text-align: right; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .tv-kpis { grid-template-columns: repeat(2, 1fr); } .leader { grid-template-columns: 18px 1fr 64px; } .leader .bar { display: none; } }

/* ==========================================================================
   Onboarding modes
   ========================================================================== */
.mode h3 { font-size: 1.6rem; margin: 16px 0 10px; }
.mode > p { color: var(--muted); font-size: 16px; max-width: 520px; }
.mode .chips { margin-top: 22px; }
.mode-toggle { display: flex; flex-direction: column; gap: 0; margin-top: 26px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.mode-toggle div { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 14.5px; color: var(--ink); border-top: 1px solid var(--line); }
.mode-toggle div:first-child { border-top: 0; }
.switch { width: 32px; height: 18px; border-radius: 999px; background: #d4d4d4; position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on { background: var(--blue); }
.switch.on::after { left: 16px; }
.note-row { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px 24px; text-align: center; color: var(--ink); font-size: 16px; background: var(--soft); border-top: 1px solid var(--line); }
.note-row .icon { color: var(--blue); }

/* ==========================================================================
   Access anywhere
   ========================================================================== */
.place { text-align: center; padding: 30px 12px !important; }
.place .cell-icon { margin: 0 auto 12px; }
.place b { display: block; color: var(--ink); font-weight: 500; font-size: 16px; }
.place small { color: var(--muted); font-size: 13.5px; }

/* ==========================================================================
   Mobile apps
   ========================================================================== */
.app-cell { display: flex; flex-direction: column; padding: 0 !important; }
.app-stage { height: 360px; overflow: hidden; display: flex; justify-content: center; padding-top: 36px; border-bottom: 1px solid var(--line); background-image: radial-gradient(#dcdcdc 1px, transparent 1.2px); background-size: 9px 9px; }
.app-body { padding: 28px 32px 34px; }
.app-body h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 1.25rem; }
.app-body h3 .appicon { width: 30px; height: 30px; border-radius: 7px; background: var(--blue); display: grid; place-items: center; flex: none; }
.app-body h3 .appicon img { width: 16px; filter: brightness(0) invert(1); }
.app-body p { color: var(--muted); font-size: 15.5px; }
.app-body .ticks { margin: 16px 0 0; gap: 8px; }
.app-body .ticks li { font-size: 15px; }

.phone { width: 214px; height: 430px; flex: none; background: #111; border-radius: 32px; padding: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .14); position: relative; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 60px; height: 17px; border-radius: 10px; background: #111; z-index: 2; }
.ph { height: 100%; background: #f6f7f9; border-radius: 25px; overflow: hidden; font-size: 10.5px; color: var(--ink); line-height: 1.35; }
.ph-status { display: flex; justify-content: space-between; padding: 11px 18px 8px; font-size: 9.5px; font-weight: 700; }
.ph-head { padding: 6px 14px 10px; }
.ph-head small { display: block; color: var(--muted); font-size: 9.5px; }
.ph-head b { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.ph-card { margin: 0 10px 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.ph-card .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.ph-card small { color: var(--muted); font-size: 9.5px; }
.ph-card b { font-size: 11.5px; font-weight: 600; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 10px 8px; }
.ph-grid div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.ph-grid small { display: block; color: var(--muted); font-size: 9px; }
.ph-grid b { font-size: 13px; font-weight: 600; }
.ph-btn { margin: 4px 10px; background: var(--blue); color: #fff; text-align: center; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 11px; }
.ph-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ph-stop { display: flex; gap: 8px; padding: 5px 0; }
.ph-stop i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--blue); flex: none; margin-top: 2px; }
.ph-stop.done i { background: var(--blue); }
.ph-check { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.ph-check:first-of-type { border-top: 0; }
.ok, .bad, .todo { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; color: #fff; }
.ok { background: var(--green); } .bad { background: var(--red); } .todo { border: 1.5px solid #c4c4c4; }
.ok .icon, .bad .icon { width: 10px; height: 10px; stroke-width: 3.5; }
.offline { display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 7px; font-size: 9px; }
.offline .icon { width: 10px; height: 10px; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 6px; }
.mini-bars i { flex: 1; background: var(--blue-100); border-radius: 2px; }
.mini-bars i.on { background: var(--blue); }

/* ==========================================================================
   Integrations
   ========================================================================== */
.int { display: flex; flex-direction: column; gap: 12px; }
.int-logo { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.int b { color: var(--ink); font-weight: 500; font-size: 17px; }
.int p { margin: 0; color: var(--muted); font-size: 14.5px; }
.int .chip { align-self: flex-start; margin-top: auto; }
.int-more { align-items: center; justify-content: center; text-align: center; background: var(--soft) !important; color: var(--muted); }
.int-more .cell-icon { margin-bottom: 4px; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.plan { display: flex; flex-direction: column; }
.plan h4 { margin: 0; font-weight: 600; }
.plan .for { color: var(--muted); font-size: 15px; margin: 2px 0 22px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; color: var(--ink); }
.plan .price strong { font-size: 44px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.plan .price span { color: var(--muted); font-size: 14px; }
.plan .sub { color: var(--muted); font-size: 14px; margin: 6px 0 20px; min-height: 22px; }
.plan .chips { margin-bottom: 26px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan.featured { background: var(--blue-50) !important; }
.plan.featured .price strong { color: var(--blue); }
.calc label { display: flex; justify-content: space-between; font-weight: 500; color: var(--ink); margin: 6px 0 12px; }
.calc label output { color: var(--blue); }
.range { width: 100%; accent-color: var(--blue); }
.calc-out { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 22px 0 0; }
.calc-out div { background: #fff; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; }
.calc-out small { color: var(--muted); font-size: 14px; }
.calc-out b { color: var(--ink); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-out .hi { background: var(--blue-50); }
.calc-out .hi b { color: var(--blue); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--blue); }
.faq details > div { padding: 0 4px 24px; color: var(--muted); font-size: 16px; max-width: 760px; }
.faq details > div p:last-child { margin: 0; }
.narrow { max-width: 860px; margin: 0 auto; }

/* ==========================================================================
   Feature rows (features page)
   ========================================================================== */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--frame); margin: 0 auto; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 20px; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 14px 14px; font-size: 14.5px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-color: var(--blue); }

.row { display: grid; grid-template-columns: 1fr 1.1fr; }
.row > div { padding: 72px 56px; min-width: 0; }
.row > div:first-child { border-right: 1px solid var(--line); }
.row.flip > div:first-child { order: 2; border-right: 0; border-left: 1px solid var(--line); }
.row h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.row .copy > p { color: var(--muted); font-size: 17px; }
.row .visual { background: var(--soft); display: flex; align-items: center; }
.row .visual > * { width: 100%; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-top: 26px; }
.mini div { background: #fff; padding: 16px; }
.mini .icon { color: var(--blue); width: 18px; height: 18px; margin-bottom: 8px; }
.mini b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.mini p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 960px) {
  .row { grid-template-columns: 1fr; }
  .row > div { padding: 48px 20px; }
  .row > div:first-child, .row.flip > div:first-child { order: 0; border: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .mini { grid-template-columns: 1fr; } }

.list-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: 13px; color: var(--ink); }
.list-card h5 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.li .l { display: flex; gap: 10px; align-items: center; min-width: 0; }
.li .l b { display: block; font-weight: 600; font-size: 13px; }
.li .l small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-ico { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); flex: none; }
.li-ico .icon { width: 15px; height: 15px; }
.li-ico.green { color: var(--green); } .li-ico.amber { color: var(--amber); } .li-ico.red { color: var(--red); } .li-ico.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.pdfs { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; flex-wrap: wrap; border-top: 1px solid var(--line); }
.pdf { width: 50px; height: 64px; border: 1px solid var(--line); border-radius: 3px; display: grid; place-items: center; text-align: center; font-size: 9px; font-weight: 700; color: var(--muted); background: #fff; }
.pdf.big { width: 62px; height: 78px; border: 1px solid var(--blue); color: var(--blue); background: var(--blue-50); }
.pdfs .plus { color: var(--faint); }
.pdfs .icon { color: var(--blue); width: 16px; height: 16px; }
.chain { display: flex; align-items: center; flex-wrap: wrap; padding: 6px 0 12px; }
.chain span { padding: 6px 10px; border: 1px solid var(--blue-100); background: var(--blue-50); color: var(--blue-700); border-radius: 3px; font-weight: 600; font-size: 11.5px; }
.chain span.n { background: var(--navy); border-color: var(--navy); color: #fff; }
.chain i { width: 18px; border-top: 1px dashed var(--blue); }

/* ==========================================================================
   Learning center
   ========================================================================== */
.search-box { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 28px auto 0; background: #fff; border-radius: 999px; padding: 5px 5px 5px 18px; }
.search-box .icon { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; }
.guide { display: flex; flex-direction: column; }
.guide[hidden] { display: none; }
.guide ul { margin-top: 16px; display: grid; gap: 6px; }
.guide ul li { font-size: 14.5px; color: var(--text); display: flex; gap: 8px; }
.guide ul li::before { content: "→"; color: var(--blue); }
.no-results { display: none; padding: 40px 20px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); }
.steps { counter-reset: s; }
.steps > div { counter-increment: s; }
.steps > div::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; color: var(--blue); font-weight: 600; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps b { display: block; color: var(--ink); font-weight: 500; font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.video { padding: 0 !important; color: inherit; display: block; }
.video:hover { color: inherit; }
.thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(180deg, #0f1f8f, #2d4cff); position: relative; overflow: hidden; }
.thumb::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.3px); background-size: 6px 6px; }
.thumb span { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); position: relative; transition: transform .2s; }
.video:hover .thumb span { transform: scale(1.08); }
.thumb .icon { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.video .vb { padding: 22px 28px 28px; }
.video .vb h3 { font-size: 1.1rem; margin: 0 0 4px; }
.video .vb p { margin: 0; color: var(--muted); font-size: 15px; }
.gloss dt { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.gloss dd { margin: 0; color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; }
.contact > div { padding: 64px 56px; min-width: 0; }
.contact > div:first-child { border-right: 1px solid var(--line); }
.info { display: flex; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); }
.info:first-of-type { border-top: 0; padding-top: 0; }
.info b { display: block; color: var(--ink); font-weight: 500; font-size: 17px; }
.info p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label, .field > span { font-weight: 500; color: var(--ink); font-size: 14.5px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--ink); width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45, 76, 255, .12); }
.pick { display: flex; flex-wrap: wrap; gap: 6px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.pick span { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); transition: .15s; }
.pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pick input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-note { text-align: center; color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.form-done { display: none; text-align: center; padding: 40px 10px; }
.form-done .cell-icon { margin: 0 auto 16px; color: var(--green); }
.sent form { display: none; }
.sent .form-done { display: block; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } .contact > div { padding: 48px 20px; } .contact > div:first-child { border: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   API documentation
   ========================================================================== */
:root { --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; }
.api-doc { padding: 64px 56px; }
.api-head { max-width: 780px; margin-bottom: 36px; }
.api-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.api-head p { color: var(--muted); font-size: 17px; margin: 0; }
.api-doc p, .api-doc li { font-size: 16px; }
.api-doc code, .api-code { font-family: var(--mono); font-size: .86em; }
.api-doc :not(pre) > code, .cells .cell code { background: var(--soft); border: 1px solid var(--line); border-radius: 3px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.cells .cell code { font-family: var(--mono); font-size: .86em; word-break: break-all; white-space: normal; }

.method { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--green-50); color: var(--green); flex: none; }

.api-index { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 32px; }
.api-index a { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1.6fr) auto; gap: 16px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--text); transition: background .15s; }
.api-index a:first-child { border-top: 0; }
.api-index a:hover { background: var(--soft); color: var(--text); }
.api-index a:hover .cell-arrow { transform: translateX(3px); color: var(--blue); }
.api-index .path { font-family: var(--mono); font-size: 14px; color: var(--ink); word-break: break-all; }
.api-index .desc { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .api-index a { grid-template-columns: auto 1fr; } .api-index .desc { grid-column: 1 / -1; } .api-index .cell-arrow { display: none; } }

.endpoint { border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-top: 16px; scroll-margin-top: calc(var(--header-h) + 72px); }
.endpoint[open] { border-color: #c9d2ff; box-shadow: 0 8px 30px rgba(20, 45, 122, .06); }
.endpoint > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.endpoint > summary::-webkit-details-marker { display: none; }
.endpoint > summary:hover { background: var(--soft); border-radius: 8px; }
.endpoint .ep-path { font-family: var(--mono); font-size: 14.5px; color: var(--ink); font-weight: 600; word-break: break-all; }
.endpoint .ep-title { margin-left: auto; color: var(--muted); font-size: 15px; text-align: right; }
.endpoint > summary .icon { color: var(--muted); transition: transform .2s; margin-left: 4px; }
.endpoint[open] > summary .icon { transform: rotate(90deg); color: var(--blue); }
.ep-body { padding: 4px 24px 28px; border-top: 1px solid var(--line); }
.ep-body > p { margin: 22px 0 0; color: var(--text); max-width: 820px; }
.ep-body h4 { margin: 28px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.ep-body .note { margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--blue-100); background: var(--blue-50); border-radius: 6px; font-size: 15px; color: var(--navy); }
.ep-body .note p { margin: 0; font-size: 15px; }
@media (max-width: 760px) {
  .endpoint > summary { flex-wrap: wrap; row-gap: 6px; }
  .endpoint .ep-title { order: 3; margin-left: 0; width: 100%; text-align: left; }
  .endpoint > summary .icon { margin-left: auto; }
  .ep-body { padding: 4px 16px 24px; }
  .api-doc { padding: 48px 20px; }
}

.api-table-wrap { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.api-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.api-table th { text-align: left; background: var(--soft); color: var(--muted); font-weight: 500; font-size: 13px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.api-table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text); }
.api-table tr:first-child td { border-top: 0; }
.api-table td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 13.5px; color: var(--ink); font-weight: 600; }
.api-table td:nth-child(2) { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
.api-table .req { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--blue-50); color: var(--blue); }
.api-table .opt { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 12px; font-weight: 600; background: #f2f2f2; color: var(--muted); }
.api-table.api-fields td:nth-child(3) { min-width: 280px; }

.codeblock { position: relative; margin: 0; border-radius: 8px; background: var(--dark); color: #d6dcf5; }
.codeblock-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: #8590b5; }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.65; tab-size: 2; }
.codeblock pre code { font: inherit; }
.codeblock .tk-key { color: #8fb4ff; }
.codeblock .tk-str { color: #9be3b0; }
.codeblock .tk-num { color: #ffcb7a; }
.codeblock .tk-lit { color: #ff9fa8; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #c3cae3; font-size: 12.5px; transition: background .15s, color .15s; }
.copy-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.copy-btn .icon { width: 13px; height: 13px; stroke-width: 2; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #9be3b0; }
.status-pill.err { color: #ff9fa8; }

.err-codes td:first-child { font-family: var(--font); }
.err-codes td:first-child b { font-family: var(--mono); font-size: 13.5px; }

/* ==========================================================================
   CTA + ticker + footer
   ========================================================================== */
.cta { text-align: center; }
.cta h2 { max-width: 720px; margin: 0 auto 14px; }
.cta p { color: var(--muted); font-size: 18px; max-width: 580px; margin: 0 auto 28px; }

.ticker { position: relative; overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #1c35d6, #2d4cff); color: #fff; isolation: isolate; }
.ticker::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1.3px); background-size: 6px 6px; }
.ticker-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 48px 48px 40px; flex-wrap: wrap; }
.ticker-cta h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.ticker-cta p { margin: 6px 0 0; color: rgba(255, 255, 255, .8); font-size: 17px; }
.marquee { margin: 0 48px; border-top: 1px solid rgba(255, 255, 255, .2); overflow: hidden; padding: 18px 0 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
@media (max-width: 860px) { .marquee { margin: 0 22px; } }
.marquee-track { display: flex; gap: 44px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; white-space: nowrap; color: rgba(255, 255, 255, .92); }
.marquee-track .icon { width: 17px; height: 17px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.site-footer { max-width: var(--frame); margin: 0 auto; padding: 48px 20px 36px; font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-top img { height: 22px; width: auto; }
.socials { display: flex; gap: 6px; }
.socials a { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; color: var(--ink); transition: .15s; }
.socials a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.socials svg.filled { fill: currentColor; stroke: none; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-left: 68px; }
.foot-cols h4 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 14px; letter-spacing: 0; }
.foot-cols ul { display: grid; gap: 9px; }
.foot-cols a { color: var(--ink); }
.foot-cols a:hover { color: var(--blue); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; padding-left: 0; } .ticker-cta { padding: 32px 22px 26px; } }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
