/* Velocity 360 marketing site.
   One 1200px column on the app's cool warehouse-grey ground. Every product picture is a real screenshot of the app
   (tools: see site/README.md), framed like a window; section labels are set in the mono face, like location codes.
   Colours and faces are the app's own (src/Velocity360.UI/wwwroot/velocity360.css); change them there first. */

/* ---------- Faces: the app's three, served from here so nothing waits on another host ---------- */

@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 500 800; font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-stretch: 100%; font-display: swap;
  src: url("fonts/ibm-plex-sans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --ground: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eaeef2;
  --ink: #172029;
  --ink-2: #3d4a56;
  --muted: #5b6773;
  --line: #d5dde4;
  --line-strong: #b9c4cd;
  --accent: #1f5f8b;
  --accent-hover: #184c70;
  --accent-ink: #ffffff;
  --accent-soft: #e3eef7;
  --amber: #945a0b;
  --amber-bright: #e0a23c;
  --amber-soft: #fbf1df;
  --ok: #1f7a4d;
  --ok-soft: #dff3e8;
  /* The dark band (the floor map, the closing call) is dark in both themes. */
  --band: #0f1d28;
  --band-2: #162836;
  --band-ink: #e8eef3;
  --band-muted: #a3b5c3;
  --band-line: #263c4c;
  --band-accent: #7fbbe6;
  --device: #1b232a;
  --device-edge: #323e48;
  --grid: rgba(31, 95, 139, 0.075);
  --glow: rgba(31, 95, 139, 0.16);
  --shadow: 0 1px 2px rgba(23, 32, 41, 0.06);
  --shadow-md: 0 1px 2px rgba(23, 32, 41, 0.05), 0 10px 24px -10px rgba(23, 32, 41, 0.14);
  --shadow-lg: 0 1px 2px rgba(23, 32, 41, 0.06), 0 18px 40px -12px rgba(23, 32, 41, 0.18), 0 48px 96px -32px rgba(23, 32, 41, 0.22);

  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0f1418; --surface: #161d23; --surface-2: #1d262e;
    --ink: #e6ebef; --ink-2: #c3ccd4; --muted: #95a2ad;
    --line: #2a353e; --line-strong: #3a4751;
    --accent: #6fb1e0; --accent-hover: #8cc2e8; --accent-ink: #0f1418; --accent-soft: #1a2c3a;
    --amber: #e0a23c; --amber-soft: #2c2213;
    --ok: #5fcf8f; --ok-soft: #14301f;
    --band: #0b1116; --band-2: #131b22; --band-ink: #e6ebef; --band-muted: #9aa9b5; --band-line: #232e37; --band-accent: #7fbbe6;
    --device: #05080a; --device-edge: #2a353e;
    --grid: rgba(111, 177, 224, 0.06);
    --glow: rgba(111, 177, 224, 0.13);
    --shadow: none;
    --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0f1418; --surface: #161d23; --surface-2: #1d262e;
  --ink: #e6ebef; --ink-2: #c3ccd4; --muted: #95a2ad;
  --line: #2a353e; --line-strong: #3a4751;
  --accent: #6fb1e0; --accent-hover: #8cc2e8; --accent-ink: #0f1418; --accent-soft: #1a2c3a;
  --amber: #e0a23c; --amber-soft: #2c2213;
  --ok: #5fcf8f; --ok-soft: #14301f;
  --band: #0b1116; --band-2: #131b22; --band-ink: #e6ebef; --band-muted: #9aa9b5; --band-line: #232e37; --band-accent: #7fbbe6;
  --device: #05080a; --device-edge: #2a353e;
  --grid: rgba(111, 177, 224, 0.06);
  --glow: rgba(111, 177, 224, 0.13);
  --shadow: none;
  --shadow-md: 0 12px 28px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 28px 64px -24px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-weight: 700; font-stretch: 88%; font-size: clamp(40px, 6vw, 76px); line-height: 0.99; letter-spacing: -0.022em; word-spacing: 0.04em; }
h2 { font-weight: 700; font-stretch: 90%; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.04; letter-spacing: -0.018em; }
h3 { font-weight: 600; font-size: 19px; line-height: 1.25; letter-spacing: -0.005em; }
h4 { font-weight: 600; font-size: 15px; line-height: 1.3; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .n { color: var(--muted); }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 60; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  font: 600 15px/1 var(--sans); padding: 13px 20px; border-radius: var(--radius);
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14) inset, 0 6px 16px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 10px 15px; font-size: 14px; }
.btn .i { width: 17px; height: 17px; transition: transform 0.18s var(--ease); }
.btn:hover .i.arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow .i { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .i { transform: translateX(3px); }

.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.test { background: var(--accent-soft); color: var(--accent); }
.pill.road { background: var(--amber-soft); color: var(--amber); }

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

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 12px; border-radius: var(--radius); transition: background-color 0.16s var(--ease), color 0.16s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid transparent; background: none; cursor: pointer; color: var(--ink-2); transition: background-color 0.16s var(--ease), color 0.16s var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}
.menu-btn { display: none; }

/* Sign in: a small menu of the two apps. A <details>, so it opens from the keyboard and with scripts off. */
.signin { position: relative; }
.signin > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 9px 10px 9px 12px; border-radius: var(--radius); transition: background-color 0.16s var(--ease), color 0.16s var(--ease); }
.signin > summary::-webkit-details-marker { display: none; }
.signin > summary:hover, .signin[open] > summary { color: var(--ink); background: var(--surface-2); }
.signin > summary .i { width: 16px; height: 16px; transition: transform 0.18s var(--ease); }
.signin[open] > summary .i { transform: rotate(180deg); }
.signin-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; width: 300px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-md); display: grid; gap: 2px; }
.nav .signin-menu a:not(.btn) { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 10px; color: var(--ink); }
.nav .signin-menu a:not(.btn):hover { background: var(--surface-2); }
.signin-menu .ic { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); }
.signin-menu strong { font-weight: 600; font-size: 15px; line-height: 1.3; }
.signin-menu small { grid-column: 2; color: var(--ink-3, var(--ink-2)); font-size: 13px; line-height: 1.35; font-weight: 400; }

@media (max-width: 900px) {
  .signin { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .signin > summary { display: flex; justify-content: space-between; padding: 13px 12px; font-size: 16px; min-height: 48px; }
  .signin-menu { position: static; width: auto; padding: 0 0 4px; border: 0; box-shadow: none; background: none; }
  .nav .signin-menu a:not(.btn) { min-height: 56px; padding: 8px 12px; }
}

@media (max-width: 900px) {
  .top .wrap { gap: 8px; }
  .theme-btn { margin-left: auto; }
  .menu-btn { display: inline-grid; border-color: var(--line-strong); }
  .menu-btn .close, .menu-btn[aria-expanded="true"] .open { display: none; }
  .menu-btn[aria-expanded="true"] .close { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .nav .btn { margin: 10px 0 0; }
}
@media (min-width: 901px) { .theme-btn { order: 3; } .nav { order: 2; } }

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

.section { padding-block: clamp(72px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 780px; display: grid; gap: 16px; justify-items: start; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-body { margin-top: clamp(40px, 5vw, 64px); }

.band { background: var(--band); color: var(--band-ink); border: 0 !important; position: relative; isolation: isolate; overflow: clip; }
.band + .section { border-top: 0; }
.band h2, .band h3, .band h4 { color: var(--band-ink); }
.band .eyebrow { color: var(--band-accent); }
.band .lede, .band p { color: var(--band-muted); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--band-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--band-line) 1px, transparent 1px) 0 0 / 56px 56px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- Product pictures ---------- */

/* A screenshot in a plain window: a bar that says where it is, then the picture. */
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 38px; border-bottom: 1px solid var(--line); background: var(--surface); }
.window-bar .dots { display: flex; gap: 6px; flex: none; }
.window-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.window-bar .where { font: 400 11.5px/1 var(--mono); color: var(--muted); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-bar .where b { font-weight: 500; color: var(--ink-2); }
.window img { width: 100%; }
.window .zoom { display: block; cursor: zoom-in; }
.band .window { background: #161d23; border-color: #2a353e; box-shadow: 0 40px 96px -32px rgba(0, 0, 0, 0.8); }
.band .window-bar { background: #161d23; border-color: #2a353e; }
.band .window-bar .dots i { background: #3a4751; }
.band .window-bar .where { color: #95a2ad; }
.band .window-bar .where b { color: #c3ccd4; }

/* A handheld: the screenshot inside a plain rugged case. */
.phone { width: 100%; max-width: 280px; background: var(--device); border: 1px solid var(--device-edge); border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg); position: relative; }
.phone::before { content: ""; position: absolute; top: -6px; left: 50%; width: 84px; height: 7px; margin-left: -42px; background: var(--device); border: 1px solid var(--device-edge); border-bottom: 0; border-radius: 6px 6px 0 0; }
.phone img { width: 100%; border-radius: 25px; }

.caption { font: 400 12px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em; margin-top: 14px; }
.band .caption { color: var(--band-muted); }

/* The enlarged picture. */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 12, 16, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lightbox img { max-width: min(96vw, 1500px); max-height: 88vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.lightbox button { background: #161d23; color: #e6ebef; border: 1px solid #3a4751; border-radius: 8px; padding: 9px 14px; font: 600 14px/1 var(--sans); cursor: pointer; }

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

.hero { position: relative; isolation: isolate; padding-top: clamp(40px, 5vw, 72px); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 920px; z-index: -2; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 50% 0 / 64px 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 50% 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 28%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 28%, #000 10%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: 240px; width: min(1100px, 92vw); height: 620px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero-head { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 940px; margin-inline: auto; }
.hero-head .lede { font-size: clamp(17px, 1.6vw, 20.5px); max-width: 43em; }
.chip { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 14px 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.chip .dot { width: 8px; height: 8px; border-radius: 2px; background: var(--amber-bright); flex: none; }
.hero-note { font-size: 14px; color: var(--muted); }

.hero-stage { position: relative; margin-top: clamp(32px, 4vw, 52px); padding-bottom: clamp(56px, 7vw, 104px); }
.hero-stage .window { max-width: 1120px; margin-inline: auto; }
.hero-stage .phone { position: absolute; right: clamp(0px, 2vw, 24px); bottom: clamp(24px, 3vw, 48px); width: 22%; max-width: 250px; min-width: 150px; }
@media (max-width: 720px) {
  .hero-stage .phone { width: 34%; right: 4px; bottom: 16px; border-radius: 22px; padding: 6px; }
  .hero-stage .phone img { border-radius: 17px; }
  .hero-stage .window { margin-right: 14%; }
}

/* ---------- Four ways in ---------- */

.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.way { padding: 24px 24px 26px; display: grid; gap: 8px; align-content: start; }
.way + .way { border-left: 1px solid var(--line); }
.way .i { color: var(--accent); width: 22px; height: 22px; margin-bottom: 6px; }
.way h3 { font-size: 17px; }
.way p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 980px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way:nth-child(3) { border-left: 0; }
  .way:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way + .way { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Three things a 3PL needs ---------- */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 4px clamp(20px, 3vw, 40px) 0; display: grid; gap: 12px; align-content: start; }
.fact:first-child { padding-left: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact .tag { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.fact h3 { font-size: 22px; font-stretch: 94%; font-weight: 700; }
.fact p { color: var(--ink-2); }
@media (max-width: 860px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fact, .fact:first-child { padding: 0; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
}

/* ---------- The warehouse day: six steps, one picture each ---------- */

.day-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--line-strong); }
.day-tab {
  display: grid; gap: 6px; text-align: left; padding: 14px 14px 16px 0; background: none; border: 0; cursor: pointer; position: relative;
  color: var(--muted); transition: color 0.16s var(--ease);
}
.day-tab .n { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; }
.day-tab .t { font: 600 17px/1.2 var(--display); }
.day-tab::after { content: ""; position: absolute; left: 0; right: 14px; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease); }
.day-tab:hover { color: var(--ink); }
.day-tab[aria-selected="true"] { color: var(--ink); }
.day-tab[aria-selected="true"] .n { color: var(--accent); }
.day-tab[aria-selected="true"]::after { transform: scaleX(1); }

.day-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: clamp(32px, 4vw, 52px); }
.day-copy { display: grid; gap: 16px; align-content: start; justify-items: start; }
.day-copy .eyebrow { display: none; }
.day-copy h3 { font: 700 clamp(24px, 2.4vw, 31px)/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.012em; }
.day-copy > p { color: var(--ink-2); font-size: 17px; }
.js .day-panel[hidden] { display: none; }
.js .day-panel { animation: panel-in 0.35s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Narrow screens, and no script: every step in turn, no tabs. */
.no-tabs .day-tabs { display: none; }
.no-tabs .day-panel { display: grid !important; }
.no-tabs .day-panel + .day-panel { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.no-tabs .day-copy .eyebrow { display: inline-flex; }
@media (max-width: 940px) {
  .day-tabs { display: none; }
  .day-panel, .js .day-panel[hidden] { display: grid; grid-template-columns: minmax(0, 1fr); }
  .day-panel + .day-panel { margin-top: 44px; border-top: 1px solid var(--line); }
  .day-copy .eyebrow { display: inline-flex; }
}

.checks { display: grid; gap: 11px; margin-top: 4px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
/* A check mark painted in the accent through a mask, so it follows the theme. */
.checks li::before {
  content: ""; position: absolute; left: 0; top: calc(0.8em - 8px); width: 16px; height: 16px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks b { color: var(--ink); font-weight: 600; }
.band .checks li { color: var(--band-muted); }
.band .checks li::before { background: var(--band-accent); }
.band .checks b { color: var(--band-ink); }

/* ---------- The floor map band ---------- */

.map-stage { margin-top: clamp(36px, 5vw, 60px); }
.map-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 52px); }
.map-notes > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--band-line); }
.map-notes h3 { font-size: 17px; }
.map-notes p { font-size: 15px; }
@media (max-width: 800px) { .map-notes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Spotlights: copy beside a picture ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.even.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split.flip > :first-child { order: 2; }
.split-copy { display: grid; gap: 18px; align-content: start; justify-items: start; }
.split-copy .lede { font-size: 18px; }
@media (max-width: 940px) {
  .split, .split.even, .split.flip, .split.even.flip { grid-template-columns: minmax(0, 1fr); }
  .split.flip > :first-child { order: 0; }
}

.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 24px); padding-block: 12px; }
.phones .phone { flex: 1 1 0; max-width: 250px; min-width: 0; }
.phones .phone:nth-child(2) { margin-bottom: 36px; }
@media (max-width: 560px) {
  .phones .phone { border-radius: 20px; padding: 5px; }
  .phones .phone img { border-radius: 16px; }
  .phones .phone:nth-child(2) { margin-bottom: 20px; }
}

/* ---------- Integrations ---------- */

.integr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 24px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease); }
.icard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.icard .top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icard .i { color: var(--accent); width: 22px; height: 22px; }
.icard h3 { font-size: 17px; }
.icard p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 940px) { .integr { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .integr { grid-template-columns: minmax(0, 1fr); } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Capability index ---------- */

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 48px); row-gap: 34px; }
.cap { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.cap h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cap p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 900px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Roadmap ---------- */

.roadmap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.roadmap li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.roadmap .pill { margin-top: 2px; flex: none; }
.roadmap div { display: grid; gap: 4px; }
.roadmap b { font: 600 16px/1.3 var(--display); color: var(--ink); }
.roadmap span.d { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .roadmap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Closing call ---------- */

.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta .actions { margin-top: 10px; }
.band .btn-primary { background: var(--band-accent); color: #0b1116; box-shadow: none; }
.band .btn-primary:hover { background: #a5cfee; }
.band .btn-ghost { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.band .btn-ghost:hover { border-color: var(--band-muted); }
.contact-box { border: 1px solid var(--band-line); border-radius: var(--radius-lg); padding: 26px; background: var(--band-2); display: grid; gap: 12px; }
.contact-box .k { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-muted); }
.contact-box .email { font: 600 clamp(17px, 2vw, 21px)/1.3 var(--display); color: var(--band-ink); overflow-wrap: anywhere; text-decoration: none; }
.contact-box .email:hover { text-decoration: underline; }
.contact-box p { font-size: 14.5px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy-btn { background: none; border: 1px solid var(--band-line); color: var(--band-ink); border-radius: var(--radius); padding: 8px 12px; min-height: 36px; font: 500 13px/1 var(--sans); cursor: pointer; }
.copy-btn:hover { border-color: var(--band-muted); }
@media (max-width: 860px) { .cta { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Page heads (inner pages) ---------- */

.page-head { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 92px) clamp(36px, 5vw, 60px); overflow: clip; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 50% 0 / 64px 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 50% 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 90% at 30% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 90% at 30% 0%, #000 0%, transparent 78%);
}
.page-head .wrap { display: grid; gap: 20px; justify-items: start; }
.page-head h1 { font-size: clamp(38px, 5.2vw, 64px); max-width: 16em; }
.page-head .lede { max-width: 42em; }

/* The product page's index of areas. */
.toc { position: sticky; top: 68px; z-index: 30; background: color-mix(in srgb, var(--ground) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.toc .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.toc .wrap::-webkit-scrollbar { display: none; }
.toc a { flex: none; font: 500 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 6px; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a.on { color: var(--accent); background: var(--accent-soft); }

.area { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 0; }
.area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: clamp(32px, 4vw, 48px); }
.area-list li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.area-list b { font: 600 16px/1.3 var(--display); color: var(--ink); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.area-list span.d { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .area-list { grid-template-columns: minmax(0, 1fr); } }

/* Code on the integrations page. */
.code { margin: 0; background: var(--band); color: #d5e2ec; border-radius: var(--radius-lg); padding: 20px 22px; font: 400 12.5px/1.7 var(--mono); tab-size: 2; overflow-x: auto; border: 1px solid var(--band-line); box-shadow: var(--shadow-md); }
.code .c { color: #7f93a3; }
.code .k { color: #7fbbe6; }
.code .s { color: #e0a23c; }
.code-cap { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-bottom: 10px; }

/* Steps on the contact page. */
.steps { counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/26px var(--mono); color: var(--accent); grid-row: span 2; }
.steps b { font: 600 17px/1.3 var(--display); color: var(--ink); }
.steps span { color: var(--ink-2); font-size: 15.5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.card .k { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card .big { font: 600 clamp(18px, 2.2vw, 23px)/1.3 var(--display); color: var(--ink); overflow-wrap: anywhere; text-decoration: none; }
.card a.big:hover { color: var(--accent); }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); padding-block: 52px 36px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 1040px) and (min-width: 801px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
.foot h2 { font: 500 12px/1 var(--mono); font-stretch: 100%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .brand { color: var(--ink); margin-bottom: 14px; }
.foot .brand:hover { text-decoration: none; }
.foot p { max-width: 30em; }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Not found ---------- */

.notfound { min-height: 62vh; display: grid; place-content: center; justify-items: start; gap: 18px; padding-block: 80px; }
.notfound .code-no { font: 500 13px/1 var(--mono); letter-spacing: 0.1em; color: var(--accent); }

/* ---------- Motion: one quiet reveal, only with script and only when motion is welcome ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.hero-head > * { animation: rise 0.7s var(--ease) both; }
.hero-head > :nth-child(2) { animation-delay: 0.06s; }
.hero-head > :nth-child(3) { animation-delay: 0.12s; }
.hero-head > :nth-child(4) { animation-delay: 0.18s; }
.hero-head > :nth-child(5) { animation-delay: 0.24s; }
.hero-stage { animation: rise 0.9s var(--ease) 0.2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .top, .toc, .menu-btn, .theme-btn { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
