/* ============ base.css ============ */
:root {
  --io-bg: #050b0a;
  --io-bg-elevated: #08110f;
  --io-surface: #0d1b18;
  --io-surface-soft: #11241f;
  --io-surface-bright: #163027;
  --io-border: #19362e;
  --io-border-strong: #78b820;
  --io-action: #b8ff3d;
  --io-action-dark: #172508;
  --io-text: #ffffff;
  --io-text-secondary: #c6d0ca;
  --io-text-muted: #7f9389;
  --io-cyan: #42d9f5;
  --io-orange: #ffad3d;
  --io-sand: #e8e2c6;
  --io-danger: #ff736b;
  --io-warning: #ffd15c;
  --io-success: #7bed9f;
  --io-radius-sm: 10px;
  --io-radius-md: 16px;
  --io-radius-lg: 24px;
  --io-radius-xl: 34px;
  --io-max: 1280px;
  --io-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --io-font-display: "Aldrich", "Arial Narrow", sans-serif;
  --io-font-body: "Space Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--io-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--io-bg);
  color: var(--io-text);
  font-family: var(--io-font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  color: var(--io-bg);
  background: var(--io-action);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  border: 0;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--io-bg);
  background: var(--io-action);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--io-cyan);
  outline-offset: 3px;
}

.app {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  border-bottom: 1px solid rgba(25, 54, 46, 0.8);
  background: rgba(5, 11, 10, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  width: min(calc(100% - 40px), var(--io-max));
  min-height: 76px;
  margin: 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--io-font-display);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.brand-copy small {
  color: var(--io-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--io-text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--io-text);
  background: var(--io-surface-soft);
}

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

.mobile-nav-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--io-border);
  border-radius: 50%;
  color: var(--io-text);
  background: var(--io-surface);
  cursor: pointer;
}

.button,
.button-secondary,
.button-quiet,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button {
  color: var(--io-action-dark);
  background: var(--io-action);
}

.button:hover {
  transform: translateY(-1px);
  background: #c8ff69;
}

.button-secondary {
  border: 1px solid var(--io-border-strong);
  color: var(--io-action);
  background: var(--io-surface);
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: var(--io-surface-bright);
}

.button-quiet {
  border: 1px solid var(--io-border);
  color: var(--io-text-secondary);
  background: transparent;
}

.button-quiet:hover {
  color: var(--io-text);
  border-color: var(--io-border-strong);
}

.button-danger {
  border: 1px solid rgba(255, 115, 107, 0.5);
  color: #ffd0cd;
  background: rgba(255, 115, 107, 0.09);
}

.button:disabled,
.button-secondary:disabled,
.button-quiet:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.45;
}

.button.small,
.button-secondary.small,
.button-quiet.small {
  /* Deliberately still under the site's 48px customer-facing standard -- these are dense
     desktop/staff-tool contexts (admin tables, toolbars), not customer touch targets. Real
     customer-facing actions must not use .small -- an exhaustive repo-wide audit (2026-08-27)
     found and fixed 5 total public instances across two passes: the Delivery page's "Use this
     ZIP in a quote" link, the public header's "Track my project"/"Launch my quote", and the
     customer portal header's "Public website"/"Message Mission Control". If you're adding a
     new customer-facing button, do not reach for .small. */
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

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

.page-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 76px 0 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  align-items: center;
  gap: 48px;
}

.eyebrow,
.kicker,
.label-caps {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--io-border);
  border-radius: 999px;
  color: var(--io-action);
  background: var(--io-surface-soft);
}

.kicker {
  margin: 22px 0 18px;
  color: var(--io-text-secondary);
}

.hero h1 {
  max-width: 810px;
  margin-bottom: 24px;
  font-family: var(--io-font-display);
  font-size: clamp(52px, 6.6vw, 92px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 span {
  color: var(--io-action);
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 28px;
  color: var(--io-text-secondary);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}

.hero-actions,
.inline-actions,
.chip-row,
.segmented-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--io-border);
  border-radius: 999px;
  color: var(--io-text-secondary);
  background: var(--io-surface);
  font-size: 13px;
  white-space: nowrap;
}

.chip.status-good::before,
.chip.status-limited::before,
.chip.status-neutral::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--io-success);
  content: "";
}

.chip.status-limited::before {
  background: var(--io-warning);
}

.chip.status-neutral::before {
  background: var(--io-cyan);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 490px;
}

/* Nothing may be drawn behind the logo: it shows through the gaps in the artwork.
   scripts/brand_assets.py check enforces this. */
.hero-visual img {
  position: relative;
  width: min(100%, 520px);
  height: auto;
  min-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(115, 190, 31, 0.18));
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid var(--io-border);
  border-radius: 22px;
  background: #f7faf8;
  color: var(--io-bg);
  box-shadow: var(--io-shadow);
}

.hero-stat {
  min-height: 108px;
  padding: 24px 28px;
  border-right: 1px solid #dbe2de;
}

.hero-stat:last-child {
  border-right: 0;
}

.hero-stat strong {
  display: block;
  margin-bottom: 4px;
  color: #72a916;
  font-size: 24px;
  font-weight: 500;
}

.hero-stat span {
  color: #526059;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: 92px 0;
}

.section.compact {
  padding: 60px 0;
}

.section-soft {
  border-top: 1px solid rgba(25, 54, 46, 0.8);
  border-bottom: 1px solid rgba(25, 54, 46, 0.8);
  background: var(--io-bg-elevated);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}

.section-heading h2,
.page-hero h1,
.dashboard-title h1 {
  margin-bottom: 0;
  font-family: var(--io-font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 780px;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.06;
}

.section-heading p,
.page-hero p {
  margin-bottom: 0;
  color: var(--io-text-secondary);
  line-height: 1.65;
}

.page-hero {
  padding: 70px 0 38px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: end;
  gap: 40px;
}

.page-hero h1 {
  max-width: 880px;
  margin-top: 20px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
}

.page-hero-aside {
  padding: 20px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-md);
  color: var(--io-text-secondary);
  background: var(--io-surface);
  font-size: 14px;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.panel,
.metric-card,
.material-card,
.tool-card,
.timeline-card,
.quote-card,
.table-card {
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-lg);
  background: var(--io-surface);
}

.card,
.panel,
.tool-card,
.timeline-card,
.table-card {
  padding: 26px;
}

.card h3,
.panel h3,
.tool-card h3,
.timeline-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.card p,
.panel p,
.tool-card p,
.timeline-card p {
  color: var(--io-text-secondary);
  line-height: 1.6;
}

.card-accent {
  border-color: rgba(184, 255, 61, 0.5);
  background: var(--io-surface-soft);
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid var(--io-border-strong);
  border-radius: 50%;
  color: var(--io-action);
  font-family: var(--io-font-display);
  font-size: 13px;
}

/* ============ commerce.css ============ */
.material-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 18px 0 28px;
}

.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--io-border);
  border-radius: 999px;
  color: var(--io-text);
  background: var(--io-surface);
}

.search-field input::placeholder,
.input::placeholder,
textarea::placeholder {
  color: #71857b;
}

.segmented-control {
  padding: 4px;
  border: 1px solid var(--io-border);
  border-radius: 999px;
  background: var(--io-surface);
}

.segmented-control button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--io-text-secondary);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.segmented-control button[aria-pressed="true"] {
  color: var(--io-action-dark);
  background: var(--io-action);
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.material-card {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.material-card:hover {
  transform: translateY(-4px);
  border-color: var(--io-border-strong);
}

.material-swatch {
  height: 144px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--material-tone);
  overflow: hidden;
}

.material-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-card-body {
  display: flex;
  flex-direction: column;
  min-height: 205px;
  padding: 20px;
}

.material-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.material-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--io-text-muted);
  font-size: 12px;
}

.material-card p {
  margin-bottom: 18px;
  color: var(--io-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.material-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.demo-price {
  color: var(--io-text-secondary);
  font-size: 12px;
}

.demo-price strong {
  display: block;
  color: var(--io-text);
  font-size: 18px;
}

.text-link {
  color: var(--io-action);
  font-weight: 700;
}

.finder-layout,
.calculator-layout,
.delivery-layout,
.portal-grid,
.owner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 22px;
  align-items: start;
}

.finder-options,
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-md);
  color: var(--io-text-secondary);
  background: var(--io-bg-elevated);
  cursor: pointer;
  text-align: left;
}

.choice-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--io-text);
}

.choice-card:hover,
.choice-card[aria-pressed="true"],
.choice-card.selected {
  border-color: var(--io-border-strong);
  background: var(--io-surface-bright);
}

.recommendation {
  display: grid;
  gap: 18px;
}

.recommendation-swatch {
  height: 130px;
  border-radius: var(--io-radius-md);
  background: var(--material-tone);
  overflow: hidden;
}

.recommendation-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state[hidden] {
  display: none;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 34px;
  border: 1px dashed var(--io-border);
  border-radius: var(--io-radius-lg);
  color: var(--io-text-muted);
  text-align: center;
}

.tool-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  min-height: 206px;
}

.tool-card .label-caps {
  display: block;
  margin-bottom: 18px;
  color: var(--io-action);
}

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

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field .field-label {
  color: var(--io-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--io-border);
  border-radius: 12px;
  color: var(--io-text);
  background: var(--io-bg-elevated);
}

.textarea {
  min-height: 112px;
  padding-top: 13px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--io-border-strong);
  outline: none;
}

/* Keyboard-only focus needs to stay clearly visible even though click-focus above only shows a
   subtle border-color change -- found via a real keyboard-navigation pass, not assumed compliant. */
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: 3px solid var(--io-cyan);
  outline-offset: 2px;
}

.helper-text {
  color: var(--io-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.error-banner,
.notice-banner,
.success-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.error-banner {
  border: 1px solid rgba(255, 115, 107, 0.45);
  color: #ffd0cd;
  background: rgba(255, 115, 107, 0.08);
}

.notice-banner {
  border: 1px solid rgba(255, 209, 92, 0.35);
  color: #ffe9a8;
  background: rgba(255, 209, 92, 0.07);
}

.success-banner {
  border: 1px solid rgba(123, 237, 159, 0.4);
  color: #c9ffda;
  background: rgba(123, 237, 159, 0.08);
}

.quote-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}

.quote-progress-step {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--io-border);
  border-radius: 12px;
  color: var(--io-text-muted);
  background: var(--io-bg-elevated);
  font-size: 12px;
  font-weight: 700;
}

.quote-progress-step strong {
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-progress-step.active,
.quote-progress-step.complete {
  color: var(--io-text);
  border-color: var(--io-border-strong);
}

.quote-progress-step.complete {
  color: var(--io-action);
  background: var(--io-surface-soft);
}

.quote-stage {
  min-height: 430px;
}

.quote-stage h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.quote-stage > p {
  margin-bottom: 24px;
  color: var(--io-text-secondary);
  line-height: 1.6;
}

.quote-material-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quote-material-option {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 13px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-md);
  color: var(--io-text-secondary);
  background: var(--io-bg-elevated);
  cursor: pointer;
  text-align: left;
}

.quote-material-option:hover,
.quote-material-option.selected {
  border-color: var(--io-border-strong);
  background: var(--io-surface-bright);
}

.quote-material-option .mini-swatch {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: var(--material-tone);
  overflow: hidden;
}

.quote-material-option .mini-swatch img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-material-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--io-text);
}

.quote-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--io-border);
}

.quote-summary {
  position: sticky;
  top: 108px;
  overflow: hidden;
}

.quote-summary-head {
  padding: 22px;
  border-bottom: 1px solid var(--io-border);
  background: var(--io-surface-soft);
}

.quote-summary-head .label-caps {
  color: var(--io-action);
}

.quote-summary-body {
  padding: 22px;
}

.summary-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(25, 54, 46, 0.8);
  color: var(--io-text-secondary);
  font-size: 14px;
}

.summary-row strong {
  color: var(--io-text);
  text-align: right;
}

.summary-row.total {
  border-bottom: 0;
  color: var(--io-text);
  font-size: 17px;
}

.summary-row.total strong {
  color: var(--io-action);
  font-size: 22px;
}

.live-quantity {
  display: grid;
  place-items: center;
  min-height: 170px;
  margin-top: 18px;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-lg);
  background: var(--io-surface-soft);
  text-align: center;
}

.live-quantity strong {
  display: block;
  color: var(--io-action);
  font-family: var(--io-font-display);
  font-size: 48px;
  font-weight: 400;
}

.live-quantity span {
  color: var(--io-text-secondary);
  font-size: 13px;
}

.quote-item-list h3 {
  font-family: var(--io-font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 16px;
  color: var(--io-text);
}

.quote-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-lg);
  background: var(--io-surface-soft);
}

.quote-item-row strong {
  display: block;
  color: var(--io-text);
}

.quote-item-row .helper-text {
  margin-top: 2px;
}

.quote-item-row-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.quote-item-row-actions strong {
  color: var(--io-action);
  font-size: 16px;
}

.success-screen {
  display: grid;
  place-items: center;
  min-height: 600px;
  text-align: center;
}

.success-screen-inner {
  max-width: 720px;
  padding: 48px;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-xl);
  background: var(--io-surface-soft);
  box-shadow: var(--io-shadow);
}

.success-code {
  display: inline-grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border: 1px solid var(--io-border-strong);
  border-radius: 50%;
  color: var(--io-action);
  font-family: var(--io-font-display);
  font-size: 19px;
}

.success-screen h1 {
  font-family: var(--io-font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 400;
  text-transform: uppercase;
}

.success-screen p {
  color: var(--io-text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

.delivery-result {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-md);
  background: var(--io-surface-soft);
}

.delivery-result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--io-action);
  font-size: 20px;
}

.payload-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--io-radius-md);
  background: var(--io-bg-elevated);
}

.payload-result.safe {
  border: 1px solid rgba(123, 237, 159, 0.45);
}

.payload-result.caution {
  border: 1px solid rgba(255, 209, 92, 0.45);
}

.payload-result.unsafe {
  border: 1px solid rgba(255, 115, 107, 0.5);
}

/* ============ systems.css ============ */
.portal-shell,
.internal-shell {
  min-height: calc(100vh - 34px);
}

.portal-header,
.internal-topbar {
  border-bottom: 1px solid var(--io-border);
  background: var(--io-bg-elevated);
}

.portal-header-inner,
.internal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 40px), var(--io-max));
  min-height: 74px;
  margin: 0 auto;
}

.portal-body {
  padding: 34px 0 108px;
}

.dashboard-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dashboard-title h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 4.5vw, 52px);
}

.dashboard-title p {
  margin-bottom: 0;
  color: var(--io-text-secondary);
}

.mission-card {
  overflow: hidden;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-lg);
  background: var(--io-surface);
}

.mission-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px;
  border-bottom: 1px solid var(--io-border);
  background: var(--io-surface-soft);
}

.mission-card-head h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.mission-card-head p {
  margin-bottom: 0;
  color: var(--io-text-secondary);
}

.mission-card-body {
  padding: 26px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 18px 0 4px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  min-height: 72px;
}

.timeline-marker {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid var(--io-border-strong);
  border-radius: 50%;
  background: var(--io-bg);
}

.timeline-step:not(:last-child) .timeline-marker::after {
  position: absolute;
  top: 14px;
  left: 4px;
  width: 2px;
  height: 58px;
  background: var(--io-border);
  content: "";
}

.timeline-step.complete .timeline-marker {
  background: var(--io-action);
}

.timeline-step.active .timeline-marker {
  box-shadow: 0 0 0 6px rgba(184, 255, 61, 0.12);
}

.timeline-step strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-step span {
  color: var(--io-text-muted);
  font-size: 13px;
}

.message-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.message,
.activity-item {
  padding: 14px 16px;
  border: 1px solid var(--io-border);
  border-radius: 14px;
  background: var(--io-bg-elevated);
}

.message strong,
.activity-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.message span,
.activity-item span {
  color: var(--io-text-secondary);
  font-size: 13px;
  line-height: 1.55;
}

.internal-layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: calc(100vh - 34px);
}

.internal-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid var(--io-border);
  background: #07100e;
}

.internal-sidebar .brand-lockup {
  margin: 0 8px 28px;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--io-text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link[aria-current="page"] {
  color: var(--io-text);
  background: var(--io-surface-soft);
}

.sidebar-divider {
  height: 1px;
  margin: 14px 8px;
  background: var(--io-border);
}

.sidebar-note {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid var(--io-border);
  border-radius: 12px;
  color: var(--io-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.internal-content {
  width: min(calc(100% - 40px), 1420px);
  margin: 0 auto;
  padding: 34px 0 110px;
}

.internal-topbar-inner {
  width: min(calc(100% - 40px), 1420px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title strong {
  font-size: 14px;
}

.topbar-title span {
  color: var(--io-text-muted);
  font-size: 12px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--io-text-secondary);
  font-size: 12px;
}

.status-indicator::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--io-success);
  content: "";
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  min-height: 138px;
  padding: 20px;
}

.metric-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--io-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--io-text);
  font-size: 34px;
  font-weight: 500;
}

.metric-card small {
  color: var(--io-text-secondary);
}

.metric-card.highlight {
  border-color: rgba(184, 255, 61, 0.45);
  background: var(--io-surface-soft);
}

.metric-card.highlight strong {
  color: var(--io-action);
}

.kanban-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-column {
  min-width: 220px;
  padding: 12px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-md);
  background: var(--io-bg-elevated);
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  margin-bottom: 10px;
  color: var(--io-text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kanban-column-head span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--io-action);
  background: var(--io-surface-soft);
}

.quote-card {
  padding: 14px;
  cursor: pointer;
}

.quote-card + .quote-card {
  margin-top: 9px;
}

.quote-card:hover,
.quote-card.selected {
  border-color: var(--io-border-strong);
}

.quote-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.quote-card p {
  margin-bottom: 12px;
  color: var(--io-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.quote-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--io-text-muted);
  font-size: 11px;
}

.quote-detail {
  position: sticky;
  top: 98px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--io-border);
  font-size: 13px;
}

.detail-row span {
  color: var(--io-text-muted);
}

.detail-row strong {
  color: var(--io-text-secondary);
}

.missing-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.missing-item {
  padding: 7px 9px;
  border-radius: 999px;
  color: #ffe6a0;
  background: rgba(255, 209, 92, 0.09);
  font-size: 11px;
}

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

.chart-card h3 {
  margin-bottom: 4px;
}

.chart-card > p {
  margin-bottom: 24px;
  color: var(--io-text-muted);
  font-size: 13px;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px minmax(120px, 1fr) 52px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.bar-row span {
  color: var(--io-text-secondary);
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--io-bg-elevated);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--io-action);
}

.bar-row strong {
  text-align: right;
}

.table-wrap {
  position: relative;
  overflow-x: auto;
}

/* Visual hint that there's more table to the right -- found via a real visual QA pass: the
   Quote Command Center table sits in a narrow kanban-layout column next to the detail sidebar,
   so Source/Owner columns are reachable by scroll but were easy to miss with no cue at all. */
.table-wrap::after {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  width: 28px;
  height: 100%;
  margin-top: -1px;
  margin-left: -28px;
  background: linear-gradient(to right, transparent, var(--io-surface));
  content: "";
  pointer-events: none;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--io-border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table th {
  color: var(--io-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--io-text-secondary);
}

.data-table td strong {
  color: var(--io-text);
}

.data-table tbody tr[role="button"] {
  cursor: pointer;
}

.data-table tbody tr[role="button"]:hover {
  background: var(--io-bg-elevated);
}

.data-table tr.row-selected {
  background: var(--io-surface-bright);
}

.data-table tr.row-breach td:first-child {
  box-shadow: inset 3px 0 0 var(--io-danger);
}

.source-block {
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid var(--io-action);
  border-radius: 0 12px 12px 0;
  color: var(--io-text-secondary);
  background: var(--io-bg-elevated);
  font-size: 13px;
  line-height: 1.6;
}

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

.reorder-option {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--io-border);
  border-radius: 14px;
  color: var(--io-text-secondary);
  background: var(--io-bg-elevated);
  cursor: pointer;
  text-align: left;
}

.reorder-option:hover,
.reorder-option.selected {
  border-color: var(--io-border-strong);
  background: var(--io-surface-bright);
}

.reorder-option strong {
  color: var(--io-text);
}

.prototype-switcher {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--io-border);
  border-radius: 999px;
  background: rgba(7, 16, 14, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}

.prototype-switcher a {
  min-height: 36px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--io-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-switcher a:hover,
.prototype-switcher a.active {
  color: var(--io-action-dark);
  background: var(--io-action);
}

.footer {
  padding: 48px 0 100px;
  border-top: 1px solid var(--io-border);
  background: #030706;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}

.footer p {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--io-text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--io-text-secondary);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--io-text-muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--io-text-secondary);
}

.breadcrumb [aria-current="page"] {
  color: var(--io-text);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.product-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-lg);
  background: var(--io-surface);
}

.product-photo .material-swatch {
  height: 320px;
  border-bottom: none;
}

.product-photo-caption {
  text-decoration: none;
}

.product-photo-caption:hover {
  text-decoration: underline;
}

.product-photo-caption {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--io-text-secondary);
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
}

.uses-list {
  display: grid;
  gap: 8px;
  margin: 0 0 4px;
  padding-left: 20px;
  color: var(--io-text-secondary);
}

.calc-embed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.4fr);
  gap: 22px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-lg);
  background: var(--io-bg-elevated);
}

.calc-embed-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calc-embed-result {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--io-border-strong);
  border-radius: var(--io-radius-md);
  background: var(--io-surface);
  text-align: center;
}

.calc-embed-result strong {
  font-size: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.info-grid ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--io-text-secondary);
  font-size: 14px;
}

.info-grid p {
  margin: 10px 0 0;
  color: var(--io-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

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

.fulfillment-cards h3 {
  margin-bottom: 8px;
}

.fulfillment-cards p {
  margin-bottom: 16px;
  color: var(--io-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.depot-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.depot-status-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-md);
  background: var(--io-bg-elevated);
}

.depot-status-card strong {
  font-size: 20px;
}

.depot-status-card .chip {
  justify-self: start;
}

.capacity-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 22px;
}

.capacity-slot {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--io-border);
  border-radius: var(--io-radius-sm);
  background: var(--io-bg-elevated);
  text-align: center;
}

.capacity-slot span {
  color: var(--io-text-muted);
  font-size: 12px;
}

.capacity-slot.open strong {
  color: var(--io-success);
}

.capacity-slot.full strong {
  color: var(--io-text-secondary);
}

.capacity-slot.blocked {
  border-color: var(--io-danger);
}

.capacity-slot.blocked strong {
  color: var(--io-danger);
}

.dispatch-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* ============ responsive.css ============ */
@media (max-width: 1120px) {
  .primary-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav-button {
    display: grid;
    place-items: center;
  }

  .site-header.mobile-open .primary-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--io-border);
    border-radius: var(--io-radius-md);
    background: var(--io-surface);
    box-shadow: var(--io-shadow);
  }

  .site-header.mobile-open .nav-link {
    border-radius: 10px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  }

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

  .tool-strip,
  .kpi-grid,
  .info-grid,
  .depot-status-grid,
  .dispatch-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kanban-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-detail {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 54px;
  }

  .hero-grid,
  .section-heading,
  .page-hero-grid,
  .finder-layout,
  .calculator-layout,
  .delivery-layout,
  .portal-grid,
  .owner-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 380px;
  }

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

  .material-toolbar {
    grid-template-columns: 1fr;
  }

  .internal-layout {
    grid-template-columns: 1fr;
  }

  .internal-sidebar {
    position: static;
    height: auto;
    padding: 14px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--io-border);
  }

  .internal-sidebar .brand-lockup,
  .sidebar-note,
  .sidebar-divider {
    display: none;
  }

  .sidebar-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .sidebar-link {
    min-width: max-content;
  }

  .internal-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
  }

  .quote-summary {
    position: static;
  }
}

@media (max-width: 660px) {
  .container,
  .header-inner,
  .portal-header-inner,
  .internal-topbar-inner,
  .internal-content {
    width: min(calc(100% - 28px), var(--io-max));
  }

  .header-actions .button-secondary,
  .header-actions .button {
    display: none;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-visual img {
    min-height: 290px;
  }

  .hero-stat-strip {
    margin-top: 34px;
  }

  .hero-stat {
    min-height: 92px;
    padding: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .page-hero h1 {
    font-size: 38px;
  }

  .card-grid,
  .card-grid.two,
  .material-grid,
  .finder-options,
  .option-grid,
  .tool-strip,
  .form-grid,
  .form-grid.three,
  .quote-material-list,
  .kpi-grid,
  .product-detail-layout,
  .calc-embed,
  .calc-embed-fields,
  .info-grid,
  .fulfillment-cards,
  .depot-status-grid,
  .dispatch-board {
    grid-template-columns: 1fr;
  }

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

  .material-card {
    min-height: auto;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
  }

  .segmented-control button {
    min-width: max-content;
  }

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

  .quote-footer,
  .dashboard-title,
  .mission-card-head,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

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

  .quote-footer .button,
  .quote-footer .button-secondary,
  .quote-footer .button-quiet {
    width: 100%;
  }

  .dashboard-title {
    display: grid;
  }

  .mission-card-head {
    display: grid;
  }

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

  .prototype-switcher {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: space-between;
    overflow-x: auto;
  }

  .prototype-switcher a {
    flex: 1 0 auto;
    text-align: center;
  }

  .bar-row {
    grid-template-columns: 92px minmax(90px, 1fr) 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Final mobile header normalization */
@media (max-width: 660px) {
  .header-inner { gap: 10px; }
  .brand-copy small {
    max-width: 175px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav-button {
    width: 54px;
    min-width: 54px;
    border-radius: 999px;
    font-size: 12px;
  }
}

@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .brand-copy small { display: none; }
}

/* Honeypot: off-screen so people never see it; bots that fill every field give themselves away. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  margin-top: 14px;
}

/* Owner-supplied contact facts in the footer (phone, address, hours), shown only when set. */
.footer-contact {
  display: grid;
  gap: 6px;
  font-style: normal;
}

.footer-contact a {
  color: inherit;
  font-weight: 600;
}
