/* ==========================================================================
   Inventory & Orders — stylesheet
   Plain CSS. No framework, no build step.
   ========================================================================== */

:root {
  --navy-950: #0b2240;
  --navy-900: #0e294d;
  --navy-850: #0f2a4d;
  --navy-800: #102e57;
  --navy-700: #133868;

  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;

  --emerald-600: #059669;
  --amber-700: #b45309;
  --amber-300: #fcd34d;
  --rose-700: #be123c;
  --rose-400: #fb7185;
  --green-700: #047857;
  --green-400: #34d399;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.75rem;
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

::selection {
  background: var(--blue-700);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 6px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-inline: 2rem; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: var(--navy-950);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.25s,
    border-color 0.25s,
    color 0.25s,
    box-shadow 0.35s,
    transform 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn .icon {
  transition: transform 0.35s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  padding: 0.875rem 1.5rem;
}

.btn-primary:hover {
  background: var(--blue-500);
  box-shadow: 0 12px 28px -10px rgba(37, 99, 235, 0.7);
}

.btn-primary:active {
  background: var(--blue-700);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 0.875rem 1.25rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm {
  padding: 0.625rem 1rem;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-700);
  text-decoration: none;
  transition: color 0.2s, gap 0.35s var(--ease-out);
}

.link-cta:hover {
  color: var(--blue-600);
  gap: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 34, 64, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: box-shadow 0.35s;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -12px rgba(2, 6, 23, 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 0.875rem;
  transition: padding 0.35s var(--ease-out);
}

.site-header.is-scrolled .nav-inner {
  padding-block: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  border-radius: 6px;
  flex-shrink: 0;
}

.logo {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.logo-lg {
  width: 2.5rem;
  height: 2.5rem;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-200);
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-cta {
  display: none;
}

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

.nav-toggle {
  position: relative;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: var(--slate-200);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}

.nav-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  opacity: 0;
  transform: rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0);
}

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

/* Mobile menu: animates height with the grid-rows trick */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  background: var(--navy-950);
  border-top: 1px solid transparent;
  transition:
    grid-template-rows 0.45s var(--ease-out),
    visibility 0.45s,
    border-color 0.45s;
}

.mobile-nav.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.25rem;
}

.mobile-link {
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-200);
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out), background 0.2s, color 0.2s;
}

.mobile-nav.is-open .mobile-link {
  opacity: 1;
  transform: none;
}

.mobile-nav.is-open .mobile-link:nth-child(1) { transition-delay: 0.05s, 0.05s, 0s, 0s; }
.mobile-nav.is-open .mobile-link:nth-child(2) { transition-delay: 0.10s, 0.10s, 0s, 0s; }
.mobile-nav.is-open .mobile-link:nth-child(3) { transition-delay: 0.15s, 0.15s, 0s, 0s; }
.mobile-nav.is-open .mobile-link:nth-child(4) { transition-delay: 0.20s, 0.20s, 0s, 0s; }

.mobile-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-nav .btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
}

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

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.28), transparent);
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-6%, 8%); }
}

.hero-inner {
  padding-block: 3rem 4rem;
}

@media (min-width: 1024px) {
  .hero-inner { padding-block: 4rem 5rem; }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-brand p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-300);
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 4vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-200);
}

@media (min-width: 640px) {
  .hero-lead { font-size: 1.125rem; }
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-trust {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--slate-300);
}

.highlights {
  margin-top: 3.5rem;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .highlights { grid-template-columns: repeat(2, 1fr); }
}

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

.highlight {
  background: var(--navy-900);
  padding: 1.25rem 1.5rem;
  transition: background-color 0.35s;
}

.highlight:hover {
  background: #15396b;
}

.highlight-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.highlight-label {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-300);
}

.highlight-detail {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--slate-300);
}

/* Entrance animation for hero content */
.hero-anim {
  animation: fadeUp 0.9s var(--ease-out) backwards;
  animation-delay: var(--d, 0s);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Phone mockup ---------- */
.phone-wrap {
  width: 100%;
  max-width: 368px;
  margin-inline: auto;
}

.phone-float {
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone {
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--slate-950);
  padding: 0.75rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
  color: var(--slate-900);
}

.phone-screen {
  overflow: hidden;
  border-radius: 1.75rem;
  background: var(--slate-50);
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
}

.phone-head-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.phone-head .logo {
  width: 1.75rem;
  height: 1.75rem;
}

.phone-title {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-sub {
  font-size: 11px;
  color: var(--slate-500);
  transition: opacity 0.25s;
}

.phone-total {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
  padding: 0.375rem;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.phone-tab {
  padding: 0.375rem 0;
  border-radius: 0.375rem;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--slate-600);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.phone-tab:hover {
  color: var(--slate-900);
}

.phone-tab[aria-selected="true"] {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.phone-body {
  height: 352px;
  overflow-y: auto;
  padding: 0.875rem;
  scrollbar-width: thin;
}

.phone-panel {
  display: none;
}

.phone-panel.is-active {
  display: block;
  animation: panelIn 0.5s var(--ease-out) backwards;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.phone-foot {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #fff;
  border-top: 1px solid var(--slate-200);
  font-size: 11px;
  color: var(--slate-500);
}

.phone-search {
  position: relative;
}

.phone-search .ico-search {
  position: absolute;
  left: 0.625rem;
  top: 50%;
  width: 0.875rem;
  height: 0.875rem;
  margin-top: -0.4375rem;
  color: var(--slate-400);
  pointer-events: none;
}

.phone-input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-size: 12px;
  color: var(--slate-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input::placeholder {
  color: var(--slate-400);
}

.phone-input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.card-box {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.list {
  margin-top: 0.625rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  overflow: hidden;
}

.list > * + * {
  border-top: 1px solid var(--slate-200);
}

.list-row {
  padding: 0.625rem;
}

.row-main {
  min-width: 0;
}

.row-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-meta {
  margin-top: 0.125rem;
  font-size: 11px;
  color: var(--slate-500);
}

.row-right {
  text-align: right;
  flex-shrink: 0;
}

.row-qty {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-900);
  font-variant-numeric: tabular-nums;
}

.st {
  font-size: 10px;
  font-weight: 500;
  transition: color 0.3s;
}

.st-green { color: var(--green-700); }
.st-amber { color: var(--amber-700); }
.st-rose { color: var(--rose-700); }

.flash {
  animation: flash 0.7s ease-out;
}

@keyframes flash {
  from { background-color: #bfdbfe; }
  to { background-color: transparent; }
}

.phone-sales-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.phone-sales-head p:first-child {
  font-size: 12px;
  font-weight: 600;
}

.phone-muted {
  font-size: 11px;
  color: var(--slate-500);
}

.phone-lines {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.375rem;
  font-size: 12px;
  color: var(--slate-700);
}

.phone-lines div {
  display: flex;
  justify-content: space-between;
}

.btn-pdf {
  margin-top: 0.75rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--blue-700);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background-color 0.25s, transform 0.2s;
}

.btn-pdf:hover {
  background: var(--blue-600);
}

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

.btn-pdf .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.pdf-card {
  margin-top: 0.75rem;
  animation: panelIn 0.45s var(--ease-out) backwards;
}

.pdf-card[hidden] {
  display: none;
}

.pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.pdf-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-brand .logo {
  width: 1.25rem;
  height: 1.25rem;
}

.pdf-title {
  font-size: 11px;
  font-weight: 700;
}

.pdf-amount {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-700);
}

.scan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--slate-300);
}

.scan-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}

.scan-info .icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--blue-400);
}

.scan-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s;
}

.scan-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--slate-300);
  transition: opacity 0.25s;
}

.btn-scan {
  flex-shrink: 0;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  background: var(--blue-600);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-scan:hover {
  background: var(--blue-500);
}

.btn-scan:active {
  transform: scale(0.94);
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem;
}

.check-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: left;
}

.check-box {
  display: flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-300);
  border-radius: 0.25rem;
  color: transparent;
  background: #fff;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.check-box .icon {
  width: 0.75rem;
  height: 0.75rem;
  stroke-width: 3;
  transform: scale(0.6);
  transition: transform 0.3s var(--ease-out);
}

.check-toggle[aria-checked="true"] .check-box {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff;
}

.check-toggle[aria-checked="true"] .check-box .icon {
  transform: scale(1);
}

.check-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steppers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.stepper {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 0.25rem;
  background: var(--slate-50);
  color: var(--slate-700);
  transition: background-color 0.2s, transform 0.15s;
}

.stepper:hover {
  background: var(--slate-200);
}

.stepper:active {
  transform: scale(0.88);
}

.stepper .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.stepper-val {
  width: 1.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.bars {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.625rem;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--slate-700);
}

.bar-label span:last-child {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bar {
  margin-top: 0.25rem;
  height: 0.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-100);
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: var(--blue-600);
}

.phone-panel.is-active .bar-fill {
  animation: grow 1.1s var(--ease-out) backwards;
}

@keyframes grow {
  from { width: 0; }
}

.backup-card {
  margin-top: 0.75rem;
}

.backup-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
}

.backup-title .icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--blue-700);
}

.backup-text {
  margin-top: 0.25rem;
  font-size: 11px;
  color: var(--slate-500);
}

/* ---------- Sections (shared) ---------- */
.section {
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .section { padding: 6rem 0; }
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-700);
}

.eyebrow-light {
  color: var(--blue-300);
}

.section-title {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  text-wrap: balance;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

.section-title-light {
  color: #fff;
}

.section-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.section-head {
  max-width: 42rem;
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Features ---------- */
.features {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.feature {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: #fff;
  transition:
    box-shadow 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    border-color 0.3s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: #bfd3f5;
  box-shadow: 0 24px 44px -24px rgba(15, 23, 42, 0.3);
}

@media (min-width: 768px) {
  .feature {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }

  .feature-text,
  .feature-media {
    grid-column: span 6;
  }

  .feature.is-reverse .feature-text { order: 2; }
  .feature.is-reverse .feature-media { order: 1; }
}

.feature-text {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 640px) {
  .feature-text { padding: 2.5rem; }
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-700);
}

.feature h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}

@media (min-width: 640px) {
  .feature h3 { font-size: 1.875rem; }
}

.feature-text p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--slate-100);
}

.feature-media img,
.feature-media .visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media img {
  transition: transform 1.2s var(--ease-out);
}

.feature:hover .feature-media img {
  transform: scale(1.06);
}

/* Image "curtain" that wipes away when the card scrolls into view */
.js .feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--slate-200);
  transform-origin: right center;
  transition: transform 1.1s var(--ease-out) 0.2s;
}

.js .reveal.is-visible .feature-media::after {
  transform: scaleX(0);
}

/* Visual cards (alerts, backup) */
.visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  color: #fff;
  background: var(--slate-900);
}

.visual-backup {
  background: var(--navy-950);
}

.visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-head-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.visual-head-left .icon {
  width: 1rem;
  height: 1rem;
}

.visual-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-400);
}

.visual-tag-green {
  color: var(--green-400);
}

.visual-body {
  margin-block: 1rem;
  display: grid;
  gap: 0.625rem;
}

.visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s, border-color 0.3s;
}

.visual-row:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.visual-row-backup {
  padding: 0.875rem 1rem;
}

.visual-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-sub {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--slate-300);
}

.visual-qty {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visual-status {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.visual-status.st-rose { color: var(--rose-400); }
.visual-status.st-amber { color: var(--amber-300); }
.visual-status.st-green { color: var(--green-400); }

.visual-note {
  font-size: 0.75rem;
  color: var(--slate-300);
}

.visual-row .visual-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.visual-row .visual-left .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--blue-300);
}

.visual-row-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-row-right .icon {
  color: var(--green-400);
  width: 1rem;
  height: 1rem;
}

.visual-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #bfdbfe;
}

/* Stagger the visual rows in once the card is visible */
.js .reveal.is-visible .visual-row {
  animation: fadeUp 0.7s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 0.12s + 0.25s);
}

/* ---------- Screen tour ---------- */
.tour {
  background: var(--navy-850);
  color: #fff;
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .tour { padding: 6rem 0; }
}

.tour-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tour-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2.5rem;
  }
}

.tour-lead {
  margin-top: 0.75rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-300);
}

.tour-list {
  margin-top: 2rem;
  display: grid;
  gap: 0.625rem;
}

.tour-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background-color 0.35s, border-color 0.35s;
}

.tour-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tour-item.is-active {
  border-color: var(--blue-400);
  background: rgba(255, 255, 255, 0.1);
}

.tour-trigger {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  text-align: left;
}

.tour-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.tour-num {
  margin-right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--blue-300);
}

.tour-state {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-300);
  white-space: nowrap;
}

.tour-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.tour-item.is-active .tour-collapse {
  grid-template-rows: 1fr;
}

.tour-collapse > div {
  overflow: hidden;
  min-height: 0;
}

.tour-collapse p {
  padding: 0 1.125rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-200);
}

.tour-caption {
  margin-top: 0.875rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--slate-300);
}

.tour-caption.swap {
  animation: fadeUp 0.5s var(--ease-out) backwards;
}

/* ---------- Blog ---------- */
.blog {
  background: #fff;
  padding: 5rem 0;
  border-bottom: 1px solid var(--slate-200);
}

@media (min-width: 640px) {
  .blog { padding: 6rem 0; }
}

.post-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.post {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: var(--slate-50);
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.3s;
}

@media (min-width: 640px) {
  .post { padding: 1.75rem; }
}

.post:hover {
  transform: translateY(-5px);
  border-color: #bfd3f5;
  box-shadow: 0 24px 44px -24px rgba(15, 23, 42, 0.3);
}

.post-topic {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-700);
}

.post h3 {
  margin-top: 0.625rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--slate-900);
}

.post p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.post-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-200);
}

.post-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
}

/* ---------- CTA + footer ---------- */
.cta-band {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .cta-band { padding: 5rem 0; }
}

.cta-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: var(--navy-900);
}

@media (min-width: 640px) {
  .cta-card { padding: 3rem; }
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-copy {
  max-width: 42rem;
}

.cta-copy h2 {
  margin-top: 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .cta-copy h2 { font-size: 2.25rem; }
}

.cta-copy p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-300);
}

.site-footer {
  background: var(--navy-950);
  color: #fff;
}

.foot-top {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.75rem;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .foot-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.foot-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}

.foot-left .logo {
  width: 1.25rem;
  height: 1.25rem;
}

.foot-brand {
  font-weight: 600;
  color: #fff;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot-links a,
.foot-left a {
  text-decoration: none;
  transition: color 0.2s;
}

.foot-links a:hover,
.foot-left a:hover {
  color: #fff;
}

/* ---------- Article (guide) pages ---------- */
.article-page {
  padding: 3rem 0 5rem;
}

.article-wrap {
  max-width: 46rem;
  margin-inline: auto;
}

.crumbs {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.crumbs a {
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.2s;
}

.crumbs a:hover {
  color: var(--blue-700);
}

.article-topic {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-700);
}

.article h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--slate-900);
  text-wrap: balance;
}

.article-summary {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-600);
}

.article-body {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  display: grid;
  gap: 2rem;
}

.article-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
}

.article-body p {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate-700);
}

.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--navy-950);
  color: #fff;
}

.article-cta h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.article-cta p {
  margin-top: 0.5rem;
  color: var(--slate-300);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-cta .btn {
  margin-top: 1.25rem;
}

.article-more {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
}

.article-more h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
}

.more-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .more-list { grid-template-columns: repeat(2, 1fr); }
}

.more-list a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
  background: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-900);
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.more-list a:hover {
  border-color: #bfd3f5;
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -20px rgba(15, 23, 42, 0.35);
}

.more-list a span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue-700);
}

/* Page transitions between pages (progressive: Chromium-based browsers) */
@view-transition {
  navigation: auto;
}

/* Subtle page-load fade for guide pages */
.article-page {
  animation: fadeUp 0.7s var(--ease-out) backwards;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .phone-float,
  .hero::before {
    animation: none !important;
  }

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

  .js .feature-media::after {
    display: none;
  }
}
