:root {
  color-scheme: light;
  --navy-950: #08162f;
  --navy-900: #102447;
  --navy-700: #29476f;
  --blue-700: #0b4fd8;
  --blue-600: #1769e8;
  --blue-100: #eaf2ff;
  --teal-600: #0d9488;
  --green-600: #16835d;
  --orange-600: #d66b14;
  --red-600: #c53c4c;
  --ink: #17243b;
  --muted: #68758b;
  --line: #dde5f0;
  --soft: #f4f7fb;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(20, 45, 82, 0.1);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  color: var(--navy-950);
  letter-spacing: -0.025em;
}
p {
  line-height: 1.65;
}

.page-loader {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--muted);
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue-600), #073aa5);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(11, 79, 216, 0.25);
}
.page-loader .logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  font-size: 25px;
}

.site-header {
  height: 74px;
  border-bottom: 1px solid rgba(221, 229, 240, 0.85);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(var(--max), calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-950);
  text-decoration: none;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav,
.header-actions,
.button-row,
.filter-row,
.chips {
  display: flex;
  align-items: center;
  gap: 9px;
}
.main-nav a {
  padding: 10px 7px;
  color: #4f5f76;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--blue-700);
}
.mobile-menu {
  display: none;
}

.button {
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--navy-900);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.button:hover {
  transform: translateY(-1px);
  border-color: #b8c7db;
  box-shadow: 0 8px 20px rgba(20, 45, 82, 0.09);
}
.button.primary {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}
.button.primary:hover {
  background: #073fae;
}
.button.soft {
  border-color: transparent;
  color: var(--blue-700);
  background: var(--blue-100);
}
.button.danger {
  border-color: #f0c8ce;
  color: var(--red-600);
  background: #fff5f6;
}
.button.small {
  min-height: 35px;
  padding: 8px 11px;
  font-size: 12px;
}
.button:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: 86px 0;
}
.section.soft {
  background: var(--soft);
}
.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}
.section-heading.center {
  margin-inline: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}

.hero {
  min-height: 650px;
  padding: 72px 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #f8fbff 0%, #eef5ff 48%, #fff 48%);
}
.hero::before {
  content: "";
  width: 620px;
  height: 620px;
  position: absolute;
  top: -280px;
  right: -170px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(23, 105, 232, 0.14),
    transparent 67%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  gap: 60px;
}
.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(43px, 6vw, 70px);
  line-height: 1.02;
}
.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #55657c;
  font-size: 18px;
}
.hero-actions {
  margin: 29px 0 33px;
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}
.trust-row span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green-600);
}
.hero-visual {
  min-height: 470px;
  position: relative;
}
.dashboard-preview {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(186, 204, 228, 0.85);
  border-radius: 22px;
  position: absolute;
  inset: 20px 0 auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 35px 80px rgba(26, 64, 120, 0.18);
  transform: rotate(1deg);
}
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.preview-top strong {
  font-size: 14px;
}
.preview-dots {
  display: flex;
  gap: 5px;
}
.preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd7e7;
}
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.preview-kpi {
  min-height: 94px;
  padding: 13px;
  border-radius: 13px;
  background: var(--soft);
}
.preview-kpi span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.preview-kpi strong {
  display: block;
  margin-top: 10px;
  font-size: 25px;
}
.preview-chart {
  height: 170px;
  margin-top: 11px;
  padding: 18px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #edf5ff, #fff);
}
.chart-bars {
  height: 100%;
  display: flex;
  align-items: end;
  gap: 10px;
}
.chart-bars i {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(#4b8df4, #0b4fd8);
}
.chart-bars i:nth-child(1) {
  height: 38%;
}
.chart-bars i:nth-child(2) {
  height: 61%;
}
.chart-bars i:nth-child(3) {
  height: 49%;
}
.chart-bars i:nth-child(4) {
  height: 80%;
}
.chart-bars i:nth-child(5) {
  height: 65%;
}
.chart-bars i:nth-child(6) {
  height: 85%;
}
.chart-bars i:nth-child(7) {
  height: 74%;
}
.chart-bars i:nth-child(8) {
  height: 91%;
}
.chart-bars i:nth-child(9) {
  height: 81%;
}
.chart-bars i:nth-child(10) {
  height: 98%;
}
.floating-card {
  width: 210px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  position: absolute;
  z-index: 2;
  background: #fff;
  box-shadow: var(--shadow);
}
.floating-card.stock {
  left: -30px;
  bottom: 20px;
}
.floating-card.delivery {
  right: -20px;
  top: 0;
}
.floating-card small {
  display: block;
  color: var(--muted);
}
.floating-card strong {
  display: block;
  margin-top: 6px;
}

.proof-strip {
  padding: 20px 0;
  border-block: 1px solid var(--line);
  background: #fff;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.proof-item {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
}
.proof-item i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-style: normal;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.feature-card,
.industry-card,
.product-card,
.surface,
.kpi-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 50, 88, 0.05);
}
.feature-card,
.industry-card {
  padding: 24px;
}
.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 900;
}
.feature-card h3,
.industry-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}
.feature-card p,
.industry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.industry-card {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 190px 1fr;
}
.product-image {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #174785;
  background: linear-gradient(145deg, #edf5ff, #f8fbff);
}
.product-image::before {
  content: "";
  width: 110px;
  height: 130px;
  border: 12px solid rgba(11, 79, 216, 0.12);
  border-radius: 22px 22px 30px 30px;
  transform: rotate(6deg);
}
.product-image span {
  position: absolute;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.08em;
}
.product-badge {
  padding: 6px 8px;
  border-radius: 999px;
  position: absolute;
  top: 12px;
  left: 12px;
  color: var(--green-600);
  background: #e9f8f1;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.product-body {
  padding: 18px;
  display: grid;
  align-content: start;
}
.product-meta {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.product-body h3 {
  margin: 7px 0;
  font-size: 17px;
}
.product-body p {
  min-height: 42px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 12px;
}
.product-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.product-price strong {
  color: var(--navy-950);
  font-size: 20px;
}
.product-price small {
  color: var(--muted);
}

.cta-band {
  padding: 48px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
  background: linear-gradient(125deg, #082f85, var(--blue-600));
  box-shadow: 0 24px 60px rgba(11, 79, 216, 0.2);
}
.cta-band h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}
.cta-band .button {
  flex: 0 0 auto;
}

.site-footer {
  padding: 60px 0 28px;
  color: rgba(255, 255, 255, 0.7);
  background: var(--navy-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  max-width: 360px;
  margin-top: 18px;
  font-size: 13px;
}
.footer-column strong {
  display: block;
  margin-bottom: 13px;
  color: #fff;
  font-size: 12px;
}
.footer-column a {
  display: block;
  margin: 9px 0;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
}
.footer-column a:hover {
  color: #fff;
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}

.page-hero {
  padding: 68px 0 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #f7faff, #edf4ff);
}
.page-hero h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 57px);
}
.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
}
.filters {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 94px;
}
.filter-group {
  margin-bottom: 22px;
}
.filter-group strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}
.filter-link {
  width: 100%;
  padding: 8px 0;
  border: 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  background: none;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.filter-link.active {
  color: var(--blue-700);
  font-weight: 850;
}
.catalog-toolbar {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.search-field {
  min-width: min(420px, 100%);
  position: relative;
}
.catalog-toolbar select {
  width: auto;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy-900);
  font-size: 12px;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #cfd9e8;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.11);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.form-grid .span-two {
  grid-column: 1/-1;
}
.form-card {
  max-width: 820px;
  padding: 30px;
  margin: 0 auto;
}
.form-message {
  min-height: 0;
  color: var(--muted);
  font-size: 12px;
}
.form-message:not(:empty) {
  padding: 11px;
  border-radius: 9px;
  background: var(--soft);
}
.form-message.error {
  color: var(--red-600);
  background: #fff3f5;
}

.auth-page {
  min-height: calc(100vh - 74px);
  padding: 50px 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f4f8ff, #fff);
}
.auth-card {
  width: min(460px, 100%);
  padding: 32px;
}
.auth-card h1 {
  font-size: 32px;
}
.stack {
  display: grid;
  gap: 14px;
}
.text-link {
  padding: 0;
  border: 0;
  color: var(--blue-700);
  background: none;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  background: var(--soft);
}
.portal-sidebar {
  min-height: 100vh;
  padding: 20px 15px;
  position: sticky;
  top: 0;
  color: #fff;
  background: var(--navy-950);
}
.portal-sidebar .brand {
  padding: 0 7px 20px;
  color: #fff;
}
.portal-nav {
  display: grid;
  gap: 3px;
}
.portal-nav p {
  margin: 18px 9px 6px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portal-nav a {
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
}
.portal-nav a:hover,
.portal-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}
.portal-user {
  margin-top: 30px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.portal-user small {
  color: rgba(255, 255, 255, 0.55);
  overflow-wrap: anywhere;
}
.portal-stage {
  min-width: 0;
}
.portal-topbar {
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}
.portal-topbar h1 {
  margin: 0;
  font-size: 23px;
}
.portal-content {
  padding: 28px;
}
.portal-content-inner {
  max-width: 1440px;
  margin: auto;
}
.portal-menu-button {
  display: none;
}
.portal-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.kpi-card {
  min-height: 125px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}
.kpi-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.kpi-card strong {
  font-size: 31px;
  color: var(--navy-950);
}
.surface {
  padding: 21px;
}
.surface-head {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.surface-head h2,
.surface-head h3 {
  margin: 0;
}
.surface-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.status {
  padding: 5px 8px;
  border-radius: 999px;
  display: inline-flex;
  color: #8b5912;
  background: #fff4da;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.status.active,
.status.approved,
.status.paid,
.status.delivered,
.status.complete {
  color: var(--green-600);
  background: #e6f7ef;
}
.status.rejected,
.status.cancelled,
.status.failed {
  color: var(--red-600);
  background: #fff0f2;
}
.status.submitted,
.status.in-review {
  color: var(--blue-700);
  background: var(--blue-100);
}
.empty-state,
.error-state {
  padding: 34px;
  border: 1px dashed #c7d3e3;
  border-radius: 13px;
  color: var(--muted);
  text-align: center;
}
.page-hero.compact {
  padding-block: 44px;
}
.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.onboarding-finish {
  align-self: stretch;
}
.subsurface {
  padding: 16px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.saved-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.recurring-row,
.preference-row,
.order-totals p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.recurring-row > div:last-child {
  display: grid;
  gap: 9px;
  min-width: 130px;
}
.preference-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.preference-row strong {
  margin-right: auto;
  font-size: 12px;
}
.preference-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.order-totals {
  width: min(320px, 100%);
  margin: 18px 0 18px auto;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.driver-stops {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.driver-stop {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
}
.stop-sequence {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-700);
  font-weight: 900;
}
.stop-main {
  min-width: 0;
}
.error-state {
  color: var(--red-600);
  background: #fff5f6;
}
.loading-skeleton {
  min-height: 240px;
  border-radius: 15px;
  background: linear-gradient(90deg, #f2f5f9 25%, #e8edf5 37%, #f2f5f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}
.detail-image {
  min-height: 480px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(145deg, #edf5ff, #f9fbff);
}
.detail-image::before {
  content: "";
  width: 220px;
  height: 270px;
  border: 24px solid rgba(11, 79, 216, 0.12);
  border-radius: 42px 42px 55px 55px;
  transform: rotate(5deg);
}
.detail-image span {
  position: absolute;
  font-size: 50px;
  font-weight: 900;
  color: #174785;
}
.detail-copy h1 {
  font-size: 42px;
}
.detail-price {
  margin: 20px 0;
  font-size: 32px;
  font-weight: 900;
  color: var(--navy-950);
}
.attribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.attribute {
  padding: 12px;
  border-radius: 10px;
  background: var(--soft);
}
.attribute small {
  display: block;
  color: var(--muted);
  text-transform: capitalize;
}
.quantity-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  margin: 20px 0;
}
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
}
.blueprint-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.blueprint-card strong {
  font-size: 23px;
}
.blueprint-card small {
  display: block;
  color: var(--muted);
}
.progress {
  height: 7px;
  margin-top: 10px;
  border-radius: 99px;
  overflow: hidden;
  background: var(--soft);
}
.progress i {
  display: block;
  height: 100%;
  background: var(--blue-600);
}
.progress .p0 {
  width: 0;
}
.progress .p10 {
  width: 10%;
}
.progress .p20 {
  width: 20%;
}
.progress .p30 {
  width: 30%;
}
.progress .p40 {
  width: 40%;
}
.progress .p50 {
  width: 50%;
}
.progress .p60 {
  width: 60%;
}
.progress .p70 {
  width: 70%;
}
.progress .p80 {
  width: 80%;
}
.progress .p90 {
  width: 90%;
}
.progress .p100 {
  width: 100%;
}
.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: min(380px, calc(100% - 36px));
  display: grid;
  gap: 8px;
}
.toast {
  padding: 13px 15px;
  border-radius: 11px;
  color: #fff;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 750;
}
.toast.error {
  background: var(--red-600);
}

@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 55px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy > p:not(.eyebrow) {
    margin-inline: auto;
  }
  .hero-actions,
  .trust-row {
    justify-content: center;
  }
  .hero-visual {
    width: min(650px, 100%);
    margin: auto;
  }
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filters {
    position: static;
  }
  .filter-group {
    display: none;
  }
  .filters .filter-group:first-child {
    display: block;
  }
  .portal-shell {
    grid-template-columns: 1fr;
  }
  .portal-sidebar {
    width: min(310px, 86vw);
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.18s;
  }
  .portal-shell.nav-open .portal-sidebar {
    transform: none;
  }
  .portal-shell.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(8, 22, 47, 0.55);
  }
  .portal-menu-button {
    display: inline-flex;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .blueprint-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }
}
@media (max-width: 1050px) {
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 45, 82, 0.12);
  }
}
@media (max-width: 760px) {
  .header-inner,
  .container {
    width: min(100% - 28px, var(--max));
  }
  .site-header {
    height: 66px;
  }
  .header-actions .button:not(.primary),
  .header-actions .user-name {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 42px 0 58px;
  }
  .hero-copy h1 {
    font-size: 42px;
  }
  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
  }
  .hero-visual {
    min-height: 390px;
  }
  .dashboard-preview {
    inset: 25px 0 auto;
  }
  .floating-card.stock {
    left: -5px;
  }
  .floating-card.delivery {
    right: -4px;
  }
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section {
    padding: 60px 0;
  }
  .card-grid,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cta-band {
    padding: 30px;
    align-items: flex-start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-field {
    min-width: 0;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .span-two {
    grid-column: auto;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-image {
    min-height: 340px;
  }
  .portal-topbar,
  .portal-content {
    padding: 14px;
  }
  .portal-topbar h1 {
    font-size: 19px;
  }
  .data-table {
    min-width: 680px;
  }
  .blueprint-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .onboarding-grid,
  .saved-list-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .brand small {
    display: none;
  }
  .header-actions .button.primary {
    padding-inline: 11px;
    font-size: 12px;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .hero-visual {
    min-height: 330px;
  }
  .preview-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-kpi:last-child {
    display: none;
  }
  .preview-chart {
    height: 135px;
  }
  .floating-card {
    width: 175px;
    font-size: 11px;
  }
  .proof-grid,
  .card-grid,
  .card-grid.four {
    grid-template-columns: 1fr;
  }
  .product-card {
    grid-template-rows: 160px 1fr;
  }
  .section-heading h2 {
    font-size: 30px;
  }
  .page-hero {
    padding: 46px 0 38px;
  }
  .page-hero h1 {
    font-size: 35px;
  }
  .form-card,
  .auth-card,
  .surface {
    padding: 19px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .portal-actions .button:not(.danger) {
    display: none;
  }
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .driver-stop {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .stop-sequence {
    width: 32px;
    height: 32px;
  }
  .attribute-grid {
    grid-template-columns: 1fr;
  }
  .quantity-row {
    grid-template-columns: 90px 1fr;
  }
}
