/* iSolve multipage — Version E · Tech Platform */

:root {
  --blue: #326296;
  --blue-deep: #24486e;
  --navy: #152438;
  --navy-2: #0f1a2b;
  --gold: #FDC62F;
  --ink: #221F20;
  --cream: #FFF8EE;
  --cream-2: #FFFDF8;
  --paper: #ffffff;
  --muted: #5a5553;
  --muted-2: #7a7470;
  --line: rgba(21, 36, 56, 0.10);
  --line-strong: rgba(21, 36, 56, 0.16);
  --max: 1180px;
  --nav-h: 70px;
  --radius: 12px;
  --radius-sm: 8px;
  --serif: "Instrument Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(21, 36, 56, 0.12);
  --shadow-sm: 0 8px 24px rgba(21, 36, 56, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(253, 198, 47, 0.32); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(50, 98, 150, 0.28); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-ghost {
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(255, 248, 238, 0.35);
}
.btn-ghost-light:hover { background: rgba(255, 248, 238, 0.08); border-color: rgba(255, 248, 238, 0.6); }
.btn-lg { padding: 14px 24px; font-size: 0.98rem; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-gold { background: rgba(253, 198, 47, 0.18); color: #8a6a00; }
.chip-blue { background: #E4EEF8; color: var(--blue); }
.chip-navy { background: rgba(21, 36, 56, 0.08); color: var(--navy); }
.chip-on-light {
  background: rgba(50, 98, 150, 0.10);
  color: var(--navy);
  border: 1px solid rgba(50, 98, 150, 0.18);
}
.chip-on-dark { background: rgba(253, 198, 47, 0.14); color: var(--gold); }
.chip-on-dark::before { background: var(--gold); }

.logo-plate {
  display: inline-flex; align-items: center;
  background: var(--cream); padding: 10px 16px; border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.logo-plate img { height: 36px; width: auto; display: block; }

/* Product logo on dark page heroes — no cream plate (same issue as old iSolve mark) */
.page-hero .logo-plate {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 14px;
}
.page-hero .logo-plate .product-logo,
.page-hero .product-logo {
  height: 44px;
  width: auto;
}



/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 16px; }
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 0.84rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.nav-links a:hover { color: var(--navy); }
.nav-links a[aria-current="page"] { color: var(--navy); position: relative; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  border-radius: 2px; background: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: rgba(255, 248, 238, 0.98); border-bottom: 1px solid var(--line);
  padding: 12px 20px 22px; box-shadow: var(--shadow-sm);
}
.mobile-panel.open { display: block; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-panel a { padding: 11px 12px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.mobile-panel a:hover, .mobile-panel a[aria-current="page"] { background: #E4EEF8; color: var(--blue); }
.mobile-panel .mobile-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.mobile-panel .btn { width: 100%; }

/* Section primitives */
.section-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--blue); margin-bottom: 12px;
}
.section-kicker .bar { width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.15; color: var(--ink); margin-bottom: 12px;
}
.section-sub { font-size: 1.02rem; color: var(--muted); line-height: 1.65; max-width: 42em; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .section-kicker { justify-content: center; }
.section-head.center .section-sub { margin-inline: auto; }
.page-section { padding: 72px 0; background: var(--cream-2); }
.page-section.alt { background: var(--paper); }
.page-section.soft { background: var(--cream); }

.check {
  width: 20px; height: 20px; border-radius: 6px;
  background: #E4EEF8; color: var(--blue);
  display: grid; place-items: center; flex-shrink: 0; margin-top: 2px;
}
.check svg { width: 11px; height: 11px; }

.feat-list { display: grid; gap: 12px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.feat-list li strong { color: var(--ink); }

.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--blue);
}
.card-link:hover { color: var(--navy); gap: 10px; }
.card-link { transition: gap 0.18s ease, color 0.18s ease; }

/* Reveal */
.js .reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .lift:hover, .eco-card:hover { transform: none; }
  html { scroll-behavior: auto; }
  .live-dot { animation: none !important; }
  .hero-carousel-slide { transition: none !important; }
  .hero-carousel-slide:not(.is-active) { display: none; }
  .hero-carousel-slide.is-active { opacity: 1; display: block; }
}

/* Home hero — dark navy only */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--navy-2) 0%, var(--navy) 55%, #1a2d48 100%);
  color: var(--cream);
  padding: 72px 0 36px;
  overflow: visible;
}
.hero-grid-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(45deg, rgba(253,198,47,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.85), transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px;
  align-items: end;
  padding-bottom: 56px;
}
.hero-copy { padding-bottom: 28px; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.15rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 14px 0 18px;
}
.hero-lead {
  font-size: 1.05rem; line-height: 1.65;
  color: rgba(255, 248, 238, 0.78);
  max-width: 36em; margin-bottom: 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 140px;
}
.meta-pill strong { font-size: 0.78rem; color: #fff; letter-spacing: -0.01em; }
.meta-pill span { font-size: 0.72rem; color: rgba(255,248,238,0.58); }

.hero-visual { position: relative; min-height: 420px; }

/* Hero product frame — login brand carousel */
.hero-app-frame {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-app-carousel {
  position: relative;
  background: #0b1626;
  /* Slightly shorter than full slide so baked-in dashes are clipped */
  aspect-ratio: 557 / 558;
  overflow: hidden;
}
.hero-carousel-track {
  position: absolute;
  inset: 0;
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-carousel-dots {
  position: absolute;
  left: 36px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-carousel-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.hero-carousel-dot.is-active {
  width: 26px;
  background: #fff;
}
.hero-carousel-dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* App UI placeholders */
.ui-shell {
  background: var(--navy);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.ui-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: #101c30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ui-dots { display: flex; gap: 6px; }
.ui-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); display: block; }
.ui-dots i:nth-child(1) { background: #e36b6b; }
.ui-dots i:nth-child(2) { background: var(--gold); }
.ui-dots i:nth-child(3) { background: #5aa86a; }
.ui-chrome-title {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: rgba(255,248,238,0.55);
}
.ui-chrome-mark { height: 16px; width: auto; }
.ui-body {
  display: grid; grid-template-columns: 72px 1fr;
  background: var(--cream);
  min-height: 340px;
}
.ui-rail {
  background: var(--navy);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 16px 16px;
}
.ui-rail span {
  height: 28px; border-radius: 7px; background: rgba(255,255,255,0.06);
}
.ui-rail span.on { background: var(--gold); }
.ui-workspace { padding: 16px 16px 18px; }
.ui-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ui-top h4 { font-size: 0.82rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
.ui-top em { font-style: normal; font-size: 0.68rem; color: var(--muted-2); font-weight: 600; }
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ui-kpi {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 10px 9px;
}
.ui-kpi b { display: block; font-size: 1.05rem; letter-spacing: -0.03em; color: var(--navy); }
.ui-kpi span { font-size: 0.64rem; color: var(--muted-2); font-weight: 600; letter-spacing: 0.02em; }
.ui-chart {
  height: 78px; border-radius: 10px; background: #fff;
  border: 1px solid var(--line); padding: 10px 12px 8px;
  display: flex; align-items: flex-end; gap: 6px; margin-bottom: 12px;
}
.ui-chart i {
  flex: 1; display: block; border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--blue), #7aa0c4);
}
.ui-chart i.g { background: linear-gradient(180deg, var(--gold), #ffe08a); }
.ui-rows { display: grid; gap: 6px; }
.ui-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 0.7rem;
}
.ui-row .left { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.dot.gold { background: var(--gold); }
.dot.warn { background: #EC8B03; }
.tag {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 3px 7px; border-radius: 999px; background: #E4EEF8; color: var(--blue);
}
.tag.gold { background: rgba(253,198,47,0.22); color: #7a6200; }
.tag.warn { background: #FFF3E0; color: #b86a00; }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5aa86a;
  box-shadow: 0 0 0 0 rgba(90,168,106,0.5);
  animation: pulse 1.8s ease infinite;
  display: inline-block;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(90,168,106,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(90,168,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(90,168,106,0); }
}

.hero-float {
  position: absolute; right: -10px; top: 54px; bottom: auto;
  background: #fff; color: var(--ink);
  border-radius: 12px; padding: 11px 14px;
  box-shadow: var(--shadow);
  display: flex; gap: 10px; align-items: center;
  width: 248px; border: 1px solid var(--line);
  z-index: 4;
}
.hero-float strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero-float span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}
.hero-float .ico {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}

/* Trust / AI strip */
.trust-strip {
  overflow: visible;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.trust-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px;
}
.trust-body {
  margin: 0;
  max-width: 38rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.trust-names { font-size: 0.88rem; font-weight: 600; color: var(--navy); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.trust-names span { color: var(--line-strong); }
.trust-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.trust-strip .ai-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.ai-pills { display: flex; flex-wrap: wrap; gap: 8px; }

/* AI band */
.ai-band { padding: 72px 0; background: var(--cream); }
.ai-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start; }
.ai-cards { display: grid; gap: 12px; }
.ai-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.ai-ico {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.ai-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.ai-card p { font-size: 0.9rem; color: var(--muted); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.eco-card, .lift {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.eco-card:hover, .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.card-body p { color: var(--muted); font-size: 0.92rem; }
.eco-note { font-size: 0.78rem !important; font-weight: 600; color: var(--blue) !important; margin-bottom: 8px; }
.product-logo-mark {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 10px 0 6px;
  background: transparent;
  align-self: flex-start;
}
.eco-card .product-logo-mark {
  height: 32px;
  max-width: 180px;
  align-self: flex-start;
  margin-left: 0;
  margin-right: auto;
}
.eco-feats { margin-top: 12px; display: grid; gap: 8px; }
.eco-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--muted); }

/* Door / checkin mini mocks inside cards */
.eco-viz { height: 150px; padding: 14px; background: linear-gradient(180deg, #f4f7fb, #fff); border-bottom: 1px solid var(--line); }
.eco-mock { height: 100%; }
.door-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.door-cell {
  height: 34px; border-radius: 6px; background: #e8edf3; color: var(--muted);
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 700;
}
.door-cell.open { background: #E4EEF8; color: var(--blue); }
.door-cell.alert { background: rgba(253,198,47,0.28); color: #8a6a00; }
.checkin-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 7px; font-size: 0.7rem; font-weight: 600; margin-bottom: 6px;
}
.status-pill { font-size: 0.6rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: #E4EEF8; color: var(--blue); }
.label-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.label-stub {
  background: #fff; border: 1px dashed var(--line-strong); border-radius: 8px; padding: 10px;
}
.label-stub .tiny { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted-2); }
.barcode {
  height: 22px; margin: 8px 0;
  background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 5px, transparent 5px 8px);
}

/* Photo + UI split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.split.top { align-items: start; }
.photo-frame {
  position: relative; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line); background: #d9dde4;
}
.photo-frame.roomy { min-height: 320px; }
.photo-frame.wide { min-height: 360px; }
.photo-frame.fill { height: 100%; min-height: 220px; }
.photo-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-frame > img.photo-cover { position: absolute; }
.photo-frame { aspect-ratio: 16 / 10; }
.photo-frame.wide { aspect-ratio: 16 / 8; }
.photo-frame.portrait { aspect-ratio: 4 / 5; }
.photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15,26,43,0.55));
}
.photo-caption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff;
}
.photo-caption strong { display: block; font-size: 0.95rem; }
.photo-caption span { font-size: 0.78rem; opacity: 0.8; }
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo-gallery .photo-frame { aspect-ratio: 1 / 1; min-height: 0; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-tile { display: block; }

/* Proof */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 18px;
}
.stat .num { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.04em; color: var(--navy); margin-bottom: 6px; }
.stat .desc { font-size: 0.86rem; color: var(--muted); }
.stat.navy { background: var(--navy); color: #fff; border-color: transparent; }
.stat.navy .num { color: var(--gold); }
.stat.navy .desc { color: rgba(255,248,238,0.7); }

/* Inner page heroes */
.page-hero {
  position: relative;
  background: linear-gradient(165deg, var(--navy-2), var(--navy));
  color: var(--cream);
  padding: 48px 0 56px;
  overflow: hidden;
}
.page-hero .grid-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent);
}
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.025em;
  color: #fff; margin: 10px 0 14px;
}
.page-hero .lead { color: rgba(255,248,238,0.74); font-size: 1.05rem; max-width: 40em; }
.page-hero .product-logo { height: 40px; width: auto; margin-bottom: 8px; }
.pro-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pro-hero-top .logo-plate { margin-bottom: 0; }
.pro-hero-top .product-logo { height: 52px; margin-bottom: 0; }
@media (max-width: 640px) {
  .pro-hero-top { align-items: flex-start; }
}

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; color: rgba(255,248,238,0.5); margin-bottom: 16px; font-weight: 600; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Channels */
.channel-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.channel-pill {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.channel-pill strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.channel-pill span { font-size: 0.82rem; color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 10px; border-radius: 999px; background: #E4EEF8; color: var(--blue);
}

.platform-panel {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.platform-copy { padding: 32px; }
.platform-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy); background: var(--gold);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.platform-copy h3 { font-size: 1.4rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.platform-copy p { color: var(--muted); margin-bottom: 16px; }
.platform-art { background: var(--navy); padding: 22px; display: flex; flex-direction: column; justify-content: center; }

/* Steps / industry / values */
.steps-grid, .industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step-card, .industry-card, .value-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover, .industry-card:hover, .value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.step-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px;
}
.step-card h3, .industry-card h3, .value-card h3 { font-size: 1.05rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.step-card p, .industry-card p, .value-card p { color: var(--muted); font-size: 0.92rem; }

.sol-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.sol-features { display: grid; gap: 16px; margin: 22px 0 26px; }
.sol-feat { display: grid; grid-template-columns: 40px 1fr; gap: 12px; }
.sol-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center;
}
.sol-icon svg { width: 18px; height: 18px; }
.sol-feat h4 { font-size: 0.95rem; margin-bottom: 3px; }
.sol-feat p { font-size: 0.88rem; color: var(--muted); }

.trace-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.trace-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--navy); color: #fff; font-size: 0.82rem; font-weight: 600;
}
.trace-head .badge { background: var(--gold); color: var(--navy); font-size: 0.65rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.trace-body { padding: 14px; display: grid; gap: 8px; }
.trace-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; }
.trace-step.hi { background: #E4EEF8; }
.tnum {
  width: 26px; height: 26px; border-radius: 7px; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.trace-step strong { display: block; font-size: 0.88rem; }
.trace-step span { font-size: 0.78rem; color: var(--muted); }

.outcome-list { display: grid; gap: 14px; margin: 18px 0; }
.outcome-item { display: flex; gap: 12px; align-items: flex-start; }
.outcome-item strong { display: block; }
.outcome-item span { color: var(--muted); font-size: 0.9rem; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.quote blockquote { font-size: 0.95rem; color: var(--ink); margin-bottom: 16px; line-height: 1.55; }
.quote-attr { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
}
.quote-attr strong { display: block; font-size: 0.88rem; }
.quote-attr span { font-size: 0.75rem; color: var(--muted); }

.pti-compliance-row {
  display: flex; gap: 14px; align-items: center; margin-top: 20px;
  padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.pti-logo-mark { width: 72px; height: auto; }
.pti-compliance-row p { font-size: 0.86rem; color: var(--muted); }

.featured-product {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
}

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: start; }
.form-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
  background: var(--cream-2); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid rgba(50, 98, 150, 0.25); border-color: var(--blue);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.75rem; color: var(--muted-2); margin-top: 12px; }
.form-success {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #E4EEF8; color: var(--blue); font-weight: 600; font-size: 0.88rem;
}
.form-success.show { display: block; }
.form-error {
  display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: #FBE9E7; color: #A3341F; font-weight: 600; font-size: 0.88rem;
}
.form-error.show { display: block; }
.form-error a { text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: 0.7; cursor: wait; }
.contact-aside { display: grid; gap: 12px; }
.contact-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.contact-card h3 { font-size: 0.92rem; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--muted); }
.contact-card a { color: var(--blue); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* CTA + Footer — dark navy */
.cta {
  background: linear-gradient(165deg, var(--navy), var(--navy-2));
  color: var(--cream); padding: 64px 0;
  position: relative; overflow: hidden;
}
.cta .grid-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.cta-copy h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.025em;
  color: #fff; margin-bottom: 10px;
}
.cta-copy p { color: rgba(255,248,238,0.7); max-width: 38em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

.footer {
  background: var(--navy-2); color: rgba(255,248,238,0.72);
  padding: 48px 0 22px; border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.footer-brand p { font-size: 0.88rem; margin-top: 12px; max-width: 32em; line-height: 1.6; }
.footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.footer ul { display: grid; gap: 8px; }
.footer a { font-size: 0.88rem; }
.footer a:hover { color: var(--gold); }
.footer-bottom a { font-size: inherit; color: rgba(255,248,238,0.72); }
.footer-subscribe { margin-top: 22px; max-width: 26em; }
.footer-subscribe > label {
  display: block; color: #fff; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.footer-subscribe-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-subscribe-row input {
  flex: 1 1 180px; min-width: 0; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff;
}
.footer-subscribe-row input::placeholder { color: rgba(255,248,238,0.45); }
.footer-subscribe-row input:focus { outline: 3px solid rgba(253,198,47,0.35); border-color: var(--gold); }
.footer-subscribe .form-success, .footer-subscribe .form-error { margin-top: 10px; padding: 10px 12px; font-size: 0.82rem; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem; color: rgba(255,248,238,0.45);
}

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.center { text-align: center; }

@media (max-width: 980px) {
  .hero-inner, .ai-grid, .split, .platform-panel, .sol-grid, .contact-layout, .featured-product, .cta-inner {
    grid-template-columns: 1fr;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .card-grid, .card-grid.four, .proof-grid, .channel-pills, .steps-grid, .industry-grid, .photo-strip, .quotes, .photo-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .hero { padding-top: 48px; }
  .hero-visual { min-height: 0; }
  .hero-float { position: static; margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.two, .card-grid.four, .proof-grid, .channel-pills, .steps-grid, .industry-grid, .photo-strip, .quotes, .photo-gallery, .form-grid, .footer-grid, .ui-kpis {
    grid-template-columns: 1fr;
  }
  .ui-body { grid-template-columns: 52px 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .wrap { width: min(100% - 28px, var(--max)); }
}


/* Booth taglines (GPFS) */
.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--gold);
}
.booth-tagline {
  margin: 0 0 10px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--blue);
}
.page-hero .booth-tagline { color: var(--gold); }


/* Sit produce — photoreal 3D objects on white/cream */
.sit-stage {
  position: relative;
  overflow: visible;
}
.sit-produce {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  /* soft lift for white surfaces — baked PNG shadow does most of the work */
  filter: drop-shadow(0 8px 14px rgba(34, 31, 32, 0.05));
}
.sit-produce img {
  display: block;
  width: 100%;
  height: auto;
}

/* Trust strip (white) */
.trust-strip {
  position: relative;
  overflow: visible;
}
.trust-strip .sit-produce.trust-pepper {
  position: relative;
  right: auto;
  bottom: auto;
  width: 92px;
  flex-shrink: 0;
  transform: rotate(8deg) translateY(-6px);
  z-index: 4;
}

/* AI band (cream) */
.ai-band {
  position: relative;
  overflow: visible;
}
.ai-band .sit-produce.avocado {
  left: 2%;
  bottom: -28px;
  width: 140px;
  transform: rotate(-7deg);
}

/* Platform ecosystem (paper/white) */
.page-section.sit-stage .sit-produce.tomatoes {
  right: 2.5%;
  top: 36px;
  width: 150px;
  transform: rotate(5deg);
}
.page-section.sit-stage .sit-produce.orange {
  left: 3%;
  bottom: 18px;
  width: 108px;
  transform: rotate(-9deg);
}

/* Floor / warehouse split (cream) */
.floor-sit .sit-produce.apple {
  left: 1.5%;
  top: 24px;
  width: 128px;
  transform: rotate(-8deg);
}
.floor-sit .sit-produce.pepper {
  right: 2%;
  bottom: 28px;
  width: 112px;
  transform: rotate(11deg);
}

/* Outcomes (paper/white) */
.outcomes-sit .sit-produce.pepper2 {
  left: 7%;
  top: -12px;
  width: 82px;
  transform: rotate(13deg);
}

@media (max-width: 900px) {
  .trust-strip .sit-produce.trust-pepper { width: 76px; transform: rotate(8deg) translateY(-4px); }
  .ai-band .sit-produce.avocado { width: 100px; }
  .page-section.sit-stage .sit-produce.tomatoes { width: 108px; top: 12px; }
  .page-section.sit-stage .sit-produce.orange { width: 80px; }
  .floor-sit .sit-produce.apple { width: 96px; }
  .floor-sit .sit-produce.pepper { width: 84px; }
}
@media (max-width: 640px) {
  /* keep 3 accents on small screens so white pages stay airy */
  .trust-strip .sit-produce.trust-pepper,
  .page-section.sit-stage .sit-produce.orange,
  .floor-sit .sit-produce.pepper,
  .outcomes-sit .sit-produce.pepper2 { display: none; }
}

/* Hero video background (legacy iSolve Produce presentation) */
.hero.hero-has-video {
  background: var(--cream);
  color: var(--navy);
  padding: 72px 0 48px;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(0.92) contrast(1.02);
}
.hero-video-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,248,238,0.88) 0%, rgba(255,248,238,0.72) 42%, rgba(255,248,238,0.45) 70%, rgba(255,248,238,0.28) 100%),
    linear-gradient(180deg, rgba(255,248,238,0.35) 0%, rgba(255,248,238,0.15) 55%, rgba(255,248,238,0.55) 100%);
  pointer-events: none;
}
.hero.hero-has-video .hero-inner {
  position: relative;
  z-index: 2;
}
.hero.hero-has-video h1 {
  color: var(--navy);
}
.hero.hero-has-video .hero-lead {
  color: rgba(34, 31, 32, 0.78);
}
.hero.hero-has-video .hero-eyebrow {
  color: var(--blue);
}
.hero.hero-has-video .hero-eyebrow::after {
  background: var(--gold);
}
.hero.hero-has-video .meta-pill {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(50, 98, 150, 0.18);
  color: var(--navy);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(34, 31, 32, 0.08);
}
.hero.hero-has-video .meta-pill strong {
  color: var(--navy);
}
.hero.hero-has-video .meta-pill span {
  color: var(--muted);
}
.hero.hero-has-video .btn-blue {
  box-shadow: 0 8px 24px rgba(50, 98, 150, 0.22);
}

/* Homepage hero: copy left, AI Assistant shot in the open right */
.hero.hero-copy-only {
  padding: 56px 0 40px;
}
.hero.hero-copy-only .hero-inner {
  display: block;
  padding-bottom: 0;
}
.hero.hero-copy-only .hero-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 36px;
  align-items: center;
}
.hero.hero-copy-only .hero-copy {
  max-width: none;
  padding-bottom: 0;
}
.hero.hero-copy-only .hero-lead {
  max-width: 38em;
}
.hero-shot {
  margin: 0;
}
.hero-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 18px 40px rgba(34, 31, 32, 0.16);
  background: #f4f1ea;
}
.hero.hero-copy-only .hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: none;
  margin-top: 26px;
}
@media (max-width: 980px) {
  .hero.hero-copy-only .hero-stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero.hero-copy-only .hero-shot {
    max-width: 520px;
  }
  .hero.hero-copy-only .hero-meta {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .hero.hero-copy-only .hero-meta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero.hero-has-video {
    background: linear-gradient(165deg, #f7f1e6 0%, var(--cream) 100%);
  }
  .hero-video-wash {
    background: transparent;
  }
}


/* Version E — DoorWiz content density */
.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feat-list.tight { margin-top: 10px; }
.feat-list.tight li { margin-bottom: 6px; }
.roi-callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(253, 198, 47, 0.14);
  border: 1px solid rgba(253, 198, 47, 0.35);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--navy);
}
.result-badge {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
}
.quotes { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: 1fr; }
}



/* DoorWiz light hero — logo-first, white */
.page-hero.page-hero-light,
.page-hero.doorwiz-hero {
  background: #ffffff;
  color: var(--navy);
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(50, 98, 150, 0.10);
}
.doorwiz-hero .doorwiz-hero-inner {
  max-width: 920px;
  text-align: center;
  margin-inline: auto;
}
.dw-designed {
  margin: 8px 0 28px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dw-product-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 26px;
  padding: 0;
  max-width: none;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.dw-product-logo img {
  height: auto;
  width: min(680px, 88vw);
  max-width: 100%;
  display: block;
  filter: none;
}
.doorwiz-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 auto 18px;
  max-width: none; /* honor explicit <br> two-line break */
}
.dw-patent {
  display: inline-block;
  margin: 0 auto 18px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(50, 98, 150, 0.08);
  border: 1px solid rgba(50, 98, 150, 0.16);
}
.doorwiz-hero .lead {
  color: var(--muted);
  margin-inline: auto;
}
.doorwiz-hero .hero-ctas {
  justify-content: center;
}
.doorwiz-hero .hero-eyebrow {
  display: inline-block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doorwiz-hero .hero-eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--gold);
}
@media (max-width: 640px) {
  .dw-product-logo { margin-bottom: 20px; }
  .dw-product-logo img { width: min(420px, 90vw); }
  .doorwiz-hero h1 { font-size: 1.7rem; }
}


/* DoorWiz real UI screenshot in Built for coolers */
.doorwiz-ui-shot {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(34, 31, 32, 0.10);
  background: #fff;
}
.doorwiz-ui-shot .photo-cover {
  object-fit: contain;
  object-position: top center;
  width: 100%;
  height: auto;
  max-height: none;
  display: block;
}

/* tdLoop mobile screens composite — keep PNG transparency between phones */
.tdloop-mobile-frame {
  aspect-ratio: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  display: block;
  overflow: visible;
  box-shadow: none;
  border: none;
}
.tdloop-mobile-frame img {
  position: static;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: transparent;
}

/* DoorWiz value section — title + $160K on one row */
.dw-value-head {
  text-align: left;
  margin-bottom: 28px;
}
.dw-value-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.dw-value-title-row .section-title {
  margin: 0;
  flex: 1 1 280px;
  max-width: 720px;
}
.dw-value-stat {
  flex: 0 0 auto;
  min-width: 160px;
  text-align: center;
  padding: 14px 22px;
}
.dw-value-head .section-sub {
  max-width: 640px;
  margin: 0;
}
@media (max-width: 720px) {
  .dw-value-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dw-value-stat { align-self: stretch; }
}

/* isolvepro.html — full-text platform block (scoped; other pages unchanged) */
.pro-fulltext {
  background: var(--paper);
  padding-top: 64px;
  padding-bottom: 28px;
}
.pro-fulltext .pro-fulltext-lead {
  position: relative;
  display: grid;
  container-type: inline-size;
  /* First track sizes to the video (GIF height × video aspect), not the file's intrinsic width. */
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  max-width: none;
  padding-bottom: 8px;
}
.pro-fulltext .pro-lead-copy { padding-right: 104px; }
.pro-fulltext .pro-fulltext-lead p { max-width: 46em; }
.pro-fulltext .pro-fulltext-lead .sit-produce.pepper {
  right: 8px;
  bottom: 6px;
  top: auto;
  width: 92px;
  transform: rotate(10deg);
}

/* Produce-type lookup loop — stacked stills + cursor, left of the lead copy */
.pro-fulltext .pro-lookup {
  position: relative;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f6f8;
}
.pro-fulltext .pro-lookup img,
.pro-fulltext .pro-lookup video {
  display: block;
  min-width: 0;
  max-width: 100%;
}
/* GIF filled the 0.88fr column at its intrinsic 932×638, so its rendered height was
   (column − 2px border) × 638/932. Match that height; width follows 960×516. */
.pro-fulltext .pro-lookup video {
  height: calc(((100cqw - 40px) * 0.44 - 2px) * 638 / 932);
  width: calc(((100cqw - 40px) * 0.44 - 2px) * 638 / 932 * 960 / 516);
  object-fit: contain;
}
.pro-fulltext .pro-lookup img {
  width: 100%;
  height: auto;
}
.pro-fulltext .pro-lookup-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f4f6f8;
  opacity: 0;
}
.pro-fulltext .pro-lookup-frame.is-on {
  opacity: 1;
  z-index: 1;
}
.pro-fulltext .pro-lookup-press {
  position: absolute;
  z-index: 2;
  left: 37.9%;
  top: 31.17%;
  width: 4.57%;
  height: 4.33%;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.pro-fulltext .pro-lookup-press.is-on {
  background: rgba(253, 198, 47, 0.72);
  box-shadow: inset 0 0 0 1px rgba(120, 82, 0, 0.45), inset 0 1px 2px rgba(80, 50, 0, 0.28);
}
.pro-fulltext .pro-lookup-cursor {
  position: absolute;
  z-index: 3;
  left: 14%;
  top: 48%;
  width: 22px;
  height: 22px;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
  transform-origin: 1px 1px;
  transition: left 0.72s cubic-bezier(0.4, 0.05, 0.2, 1), top 0.72s cubic-bezier(0.4, 0.05, 0.2, 1), opacity 0.18s linear, transform 0.1s ease;
}
.pro-fulltext .pro-lookup-cursor svg { display: block; }
.pro-fulltext .pro-lookup-cursor.is-moving {
  left: 40.14%;
  top: 33.26%;
  opacity: 1;
}
.pro-fulltext .pro-lookup-cursor.is-down { transform: scale(0.84); }
.pro-fulltext .pro-lookup-cursor.is-instant { transition: none; }
.pro-fulltext .pro-fulltext-lead p {
  font-family: var(--sans);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 14px;
}
.pro-fulltext .pro-sub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  gap: 28px 40px;
  align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.pro-fulltext .pro-sub h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 12px;
}
.pro-fulltext .pro-copy p {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 42em;
}
.pro-fulltext .pro-copy p:last-child { margin-bottom: 0; }
.pro-fulltext .pro-sub-stack {
  grid-template-columns: 1fr;
  gap: 18px;
}
.pro-fulltext .pro-sub-text {
  grid-template-columns: 1fr;
}
.pro-fulltext .pro-sub-flip {
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
}
.pro-fulltext .pro-sub-flip .pro-shot { order: -1; }

.pro-fulltext .pro-sub-text .pro-copy p {
  max-width: 46em;
}
.pro-fulltext .pro-shots.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.pro-fulltext .pro-shot,
.pro-fulltext .pro-shots figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f4f6f8;
}
.pro-fulltext .pro-shot img,
.pro-fulltext .pro-shots img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f4f6f8;
}
.pro-fulltext .pro-slot {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: rgba(50, 98, 150, 0.035);
  border: 1px solid var(--line);
}
/* One photoreal cutout per module subsection — same sit-produce lift as the homepage */
.pro-fulltext .pro-sub-pallet .sit-produce.tomatoes {
  left: 8px;
  bottom: 6px;
  top: auto;
  width: 118px;
  transform: rotate(-6deg);
}
.pro-fulltext .pro-sub-wms .sit-produce.lemon {
  left: auto;
  right: 28px;
  bottom: 10px;
  width: 96px;
  transform: rotate(-8deg);
}
.pro-fulltext .pro-sub-desks .sit-produce.orange {
  top: 4px;
  right: calc(44% + 22px);
  width: 72px;
  transform: rotate(9deg);
}
.pro-fulltext .pro-sub-acct .sit-produce.avocado {
  left: 772px;
  top: 28%;
  width: 118px;
  transform: rotate(-7deg);
}

/* Pallet Tag Central — two screenshots, same text/frame grid as the other modules */
.pro-fulltext .pro-shot-carousel {
  display: flex;
  flex-direction: column;
}
.pro-fulltext .pro-carousel-stage {
  position: relative;
  aspect-ratio: 1419 / 735;
  background: #f4f6f8;
}
.pro-fulltext .pro-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}
.pro-fulltext .pro-carousel-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.pro-fulltext .pro-shot-carousel .pro-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f4f6f8;
}
.pro-fulltext .pro-carousel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px 9px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.pro-fulltext .pro-carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pro-fulltext .pro-carousel-dot {
  appearance: none;
  border: 0;
  padding: 0;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(21, 36, 56, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.pro-fulltext .pro-carousel-dot.is-active {
  width: 26px;
  background: var(--navy);
}
.pro-fulltext .pro-carousel-dot:focus-visible,
.pro-fulltext .pro-carousel-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.pro-fulltext .pro-carousel-btn {
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pro-fulltext .pro-carousel-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 1210px) {
  .pro-fulltext .pro-sub-wms .sit-produce { display: none; }
}
@media (max-width: 980px) {
  .pro-fulltext .pro-sub-desks .sit-produce { display: none; }
}
@media (max-width: 960px) {
  .pro-fulltext .pro-sub-acct .sit-produce { display: none; }
}
@media (max-width: 860px) {
  .pro-fulltext .pro-sub-pallet .sit-produce,
  .pro-fulltext .pro-fulltext-lead .sit-produce { display: none; }
  .pro-fulltext .pro-fulltext-lead { grid-template-columns: 1fr; }
  .pro-fulltext .pro-lead-copy { padding-right: 0; }
  .pro-fulltext .pro-lookup { width: 100%; }
  .pro-fulltext .pro-lookup video {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pro-carousel-slide { transition: none !important; }
  .pro-carousel-slide:not(.is-active) { display: none; }
  .pro-carousel-slide.is-active { opacity: 1; display: block; }
  .pro-lookup-frame:not(.is-on) { display: none; }
  .pro-lookup-frame.is-on { opacity: 1; }
  .pro-lookup-cursor,
  .pro-lookup-press { display: none !important; }
}

@media (max-width: 860px) {
  .pro-fulltext .pro-sub,
  .pro-fulltext .pro-shots.pair {
    grid-template-columns: 1fr;
  }
  .pro-fulltext .pro-slot { aspect-ratio: 16 / 7; }
}

/* tdLoop — Digital Check-in options (QR Code / Kiosk) */
.feat-list li > span:not(.check) strong { color: var(--navy); font-weight: 700; }
.td-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}
.td-option {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(34, 31, 32, 0.04);
}
.td-option-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(50, 98, 150, 0.08);
  color: var(--blue, #326296);
  margin-bottom: 10px;
}
.td-option-icon svg { width: 20px; height: 20px; }
.td-option h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.td-option p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 6px;
}
.td-option p:last-child { margin-bottom: 0; }
.td-option p strong { color: var(--ink); }
@media (max-width: 560px) {
  .td-options { grid-template-columns: 1fr; }
}

/* tdLoop — QR code peeking behind the phone screens (flow starts at a scan) */
.tdloop-mobile-frame { position: relative; isolation: isolate; }
.tdloop-mobile-frame img.tdloop-qr {
  position: absolute;
  z-index: -1;
  top: -58px;
  left: -34px;
  width: 180px;
  height: auto;
  max-width: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(34, 31, 32, 0.12);
  transform: rotate(-6deg);
  pointer-events: none;
}
.tdloop-mobile-frame img:not(.tdloop-qr) { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .tdloop-mobile-frame img.tdloop-qr { top: -40px; left: -10px; width: 130px; }
}

.td-option-photo { margin: -4px -4px 12px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.td-option-photo img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 35% 40%; }

/* tdLoop — Smart Communication */
.td-comm { }
.td-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.td-tags span {
  font-size: 0.8rem; font-weight: 600; color: var(--navy);
  background: rgba(50, 98, 150, 0.08); border: 1px solid rgba(50, 98, 150, 0.16);
  border-radius: 999px; padding: 3px 10px;
}
.td-comm-collage {
  display: grid;
  /* column ratio makes both stacks end at the same height */
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.65fr);
  gap: 14px;
  align-items: start;
}
.td-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.td-shot { margin: 0; border-radius: 12px; overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(34, 31, 32, 0.08); }
.td-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 560px) {
  .td-comm-collage { grid-template-columns: 1fr; }
}

/* tdLoop — 2027 roadmap */
.td-roadmap .section-head .chip { margin-bottom: 10px; }
.td-roadmap-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.td-road-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px 22px 18px; box-shadow:0 6px 18px rgba(34,31,32,.04); }
.td-road-card h3 { font-family: var(--sans); font-size:1.1rem; font-weight:700; color:var(--navy); margin:0 0 8px; }
.td-road-card p { font-size:.94rem; line-height:1.6; color:var(--muted); margin:0 0 8px; }
.td-road-card p strong { color: var(--ink); }
@media (max-width: 860px) { .td-roadmap-grid { grid-template-columns: 1fr; } }

.td-roadmap-layout { display:grid; grid-template-columns: minmax(0, 250px) minmax(0,1fr); gap: 56px; align-items: start; }
.td-roadmap-layout .td-roadmap-grid { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 20px; }
.td-roadmap-layout .td-road-card:nth-child(2) { grid-row: span 2; }
.td-phone { margin:0; border-radius: 34px; padding: 8px; background: #221F20; box-shadow: 0 22px 50px rgba(34,31,32,.18); }
.td-phone img { display:block; width:100%; height:auto; border-radius: 27px; }
@media (max-width: 860px) {
  .td-roadmap-layout { grid-template-columns: 1fr; }
  .td-phone { max-width: 240px; margin: 0 auto; }
  .td-roadmap-layout .td-roadmap-grid { grid-template-columns: 1fr; }
  .td-roadmap-layout .td-road-card:nth-child(2) { grid-row: auto; }
}

/* tdLoop outcomes — three stats */
@media (min-width: 981px) { .proof-grid.td-proof-three { grid-template-columns: repeat(3, 1fr); } }


/* DoorWiz dark hero — matches iSolvePro / tdLoop heroes */
.dw-hero-dark .pro-hero-top .product-logo { height: 46px; }
.dw-hero-dark .dw-designed {
  margin: 22px 0 0; color: rgba(255,248,238,0.6);
  font-size: 0.78rem; letter-spacing: 0.12em; text-align: left;
}
.dw-hero-dark h1 { max-width: none; }
.dw-pallet {
  margin: 14px 0 0; font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.dw-pallet::after {
  content: ""; display: block; width: 48px; height: 3px;
  margin-top: 10px; border-radius: 2px; background: var(--gold);
}
@media (max-width: 640px) { .dw-hero-dark .pro-hero-top .product-logo { height: 32px; } }

/* DoorWiz brand indigo (#373760, sampled from logo) */
.page-hero.dw-hero-dark {
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(120,120,190,0.22), transparent 60%),
    linear-gradient(165deg, #41416f, #373760 45%, #24243f);
}

/* DoorWiz coolers shot: frame hugs the screenshot */
#coolers .doorwiz-ui-shot { aspect-ratio: auto; min-height: 0; height: auto; line-height: 0; }
#coolers .doorwiz-ui-shot > img.photo-cover { position: static; width: 100%; height: auto; object-fit: initial; }

/* DoorWiz coolers: photoreal roma tomato sitting on the screenshot's bottom-right corner */
#coolers .dw-shot-stage { position: relative; min-width: 0; }
#coolers .dw-shot-stage .sit-produce.roma {
  right: -34px;
  bottom: -30px;
  width: 132px;
  transform: rotate(-9deg);
  z-index: 4;
}
@media (max-width: 900px) {
  #coolers .dw-shot-stage .sit-produce.roma { width: 108px; right: -14px; bottom: -26px; }
}
@media (max-width: 640px) {
  #coolers .dw-shot-stage .sit-produce.roma { width: 84px; right: -6px; bottom: -22px; }
}

/* DoorWiz coolers: second roma (USDA stage 4 "Pink") tucked behind the red one */
#coolers .dw-shot-stage .sit-produce.roma4 {
  right: 62px;
  bottom: -6px;
  width: 114px;
  transform: rotate(18deg);
  z-index: 3;
}
@media (max-width: 900px) {
  #coolers .dw-shot-stage .sit-produce.roma4 { width: 92px; right: 48px; bottom: -8px; }
}
@media (max-width: 640px) {
  #coolers .dw-shot-stage .sit-produce.roma4 { width: 70px; right: 38px; bottom: -8px; }
}

/* DoorWiz overview: Door 09 screenshot, frame hugs image */
.dw-door09 { aspect-ratio: auto; min-height: 0; height: auto; line-height: 0; }
.dw-door09 > img.photo-cover { position: static; width: 100%; height: auto; object-fit: initial; }

/* DoorWiz How it works: four steps */
.steps-grid.dw-steps-four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps-grid.dw-steps-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps-grid.dw-steps-four { grid-template-columns: 1fr; } }

/* DoorWiz key features: four in a row */
.card-grid.dw-feat-four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid.dw-feat-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid.dw-feat-four { grid-template-columns: 1fr; } }

.card-grid.dw-feat-two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
@media (max-width: 640px) { .card-grid.dw-feat-two { grid-template-columns: 1fr; } }

/* DoorWiz insights video: frame hugs video */
.dw-video { aspect-ratio: auto; min-height: 0; height: auto; line-height: 0; }
.dw-video video { display: block; width: 100%; height: auto; }

/* DoorWiz: Pricing (left) + Contact (right) side by side */
.dw-pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.dw-price-list { display: grid; gap: 14px; }
.dw-price-item .card-body h3 { margin-bottom: 6px; }
.dw-contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; box-shadow: 0 18px 40px rgba(34,31,32,0.08);
}
.dw-newsletter { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.dw-newsletter h3 { margin-bottom: 6px; }
.dw-newsletter p { color: var(--muted); font-size: .95rem; }
.dw-newsletter-form { margin-top: 14px; }
@media (max-width: 900px) { .dw-pc-grid { grid-template-columns: 1fr; } }

/* PTI FSMA 204 hero photo background */
.page-hero.fsma-hero{
  background:
    linear-gradient(90deg, rgba(11,22,40,.94) 0%, rgba(11,22,40,.86) 38%, rgba(11,22,40,.45) 68%, rgba(11,22,40,.18) 100%),
    linear-gradient(180deg, rgba(11,22,40,.25) 0%, rgba(11,22,40,0) 30%, rgba(11,22,40,.35) 100%),
    url("../brand/photos/fsma-hero-market.jpg?v=1") right center / cover no-repeat,
    #0b1628;
}
.page-hero.fsma-hero .grid-tex{opacity:.35}
@media (max-width:760px){
  .page-hero.fsma-hero{
    background:
      linear-gradient(180deg, rgba(11,22,40,.88) 0%, rgba(11,22,40,.80) 60%, rgba(11,22,40,.65) 100%),
      url("../brand/photos/fsma-hero-market.jpg?v=1") 70% center / cover no-repeat,
      #0b1628;
  }
}

/* ===== PTI FSMA 204 page ===== */
.mt-24{margin-top:24px}.mt-36{margin-top:36px}
.fsma-ask{gap:40px}
.fsma-ask-copy{display:grid;gap:18px}
.fsma-std{background:#fff;border:1px solid rgba(15,30,55,.10);border-left:4px solid var(--blue,#326296);border-radius:14px;padding:20px 22px}
.fsma-std h3{font-size:1.05rem;margin:0 0 8px;color:var(--ink)}
.fsma-std p{margin:0;color:var(--muted);font-size:.95rem;line-height:1.65}
.fsma-photo{min-height:0;aspect-ratio:4/3}
.fsma-ask .fsma-photo{height:100%;min-height:340px}
.fsma-table-wrap{background:#fff;border:1px solid rgba(15,30,55,.10);border-radius:16px;overflow:hidden;box-shadow:0 10px 30px -18px rgba(11,22,40,.25)}
.fsma-table{width:100%;border-collapse:collapse;font-size:.93rem}
.fsma-table thead th{background:#0b1628;color:#fff;text-align:left;font-weight:650;padding:14px 18px;font-size:.85rem;letter-spacing:.02em}
.fsma-table thead th:not(:first-child){color:#FDC62F}
.fsma-table tbody th,.fsma-table td{padding:13px 18px;border-top:1px solid rgba(15,30,55,.08);vertical-align:top;text-align:left}
.fsma-table tbody th{font-weight:650;color:var(--ink);width:32%}
.fsma-table td{color:var(--muted)}
.fsma-table tbody tr:nth-child(even){background:rgba(50,98,150,.035)}
.fsma-bottomline{margin-top:24px;background:#fff8e1;border:1px solid rgba(253,198,47,.55);border-left:4px solid #FDC62F;border-radius:14px;padding:18px 22px;color:var(--ink);line-height:1.65}
.fsma-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.fsma-pair .fsma-photo{aspect-ratio:16/7}
.fsma-closing{text-align:center;margin:28px auto 0;font-size:1.15rem;font-weight:650;color:var(--navy,#0b1628);max-width:40em}
.fsma-banner .fsma-photo{aspect-ratio:21/6;margin-bottom:24px}
.fsma-feat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.fsma-feat{background:#fff;border:1px solid rgba(15,30,55,.10);border-radius:14px;padding:20px}
.fsma-feat-dot .check{display:inline-flex}
.fsma-feat h3{font-size:1rem;margin:10px 0 6px;color:var(--ink)}
.fsma-feat p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.6}
.fsma-faq{max-width:860px;margin:0 auto;display:grid;gap:10px}
.fsma-faq-item{background:#fff;border:1px solid rgba(15,30,55,.10);border-radius:12px;padding:0 20px}
.fsma-faq-item summary{cursor:pointer;list-style:none;padding:16px 28px 16px 0;font-weight:650;color:var(--ink);position:relative}
.fsma-faq-item summary::-webkit-details-marker{display:none}
.fsma-faq-item summary::after{content:"+";position:absolute;right:0;top:12px;font-size:1.4rem;color:#326296;font-weight:500}
.fsma-faq-item[open] summary::after{content:"–"}
.fsma-faq-item p{margin:0 0 16px;color:var(--muted);line-height:1.65}
@media (max-width:1000px){.fsma-feat-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.fsma-ask .fsma-photo{min-height:240px}}
@media (max-width:640px){
  .fsma-feat-grid,.fsma-pair{grid-template-columns:1fr}
  .fsma-table thead{display:none}
  .fsma-table,.fsma-table tbody,.fsma-table tr,.fsma-table th,.fsma-table td{display:block;width:100%}
  .fsma-table tbody tr{padding:12px 16px;border-top:1px solid rgba(15,30,55,.08)}
  .fsma-table tbody th,.fsma-table td{border:0;padding:3px 0}
  .fsma-table td::before{content:attr(data-label) ": ";font-weight:650;color:#326296}
  .fsma-banner .fsma-photo{aspect-ratio:16/9}
}
@media (max-width:640px){.fsma-table tbody th{width:100%;margin-bottom:4px}}
.fsma-how-top{gap:40px;align-items:stretch}
.fsma-how-top .fsma-photo{aspect-ratio:3/2}
.fsma-how-top .section-sub{margin-top:12px}
.fsma-beyond{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;background:#FDC62F;color:#0b1628;font-size:.78rem;font-weight:700;letter-spacing:.02em}
.fsma-feat-3{grid-template-columns:repeat(3,1fr)}
.fsma-feat-today{position:relative;border-color:rgba(253,198,47,.55);box-shadow:0 0 0 1px rgba(253,198,47,.25)}
.fsma-feat-today .fsma-beyond{margin-top:12px}
.fsma-banner-photo{aspect-ratio:21/6}
@media (max-width:1000px){.fsma-feat-3{grid-template-columns:1fr}}
.fsma-label-sample{margin:20px 0 0;max-width:280px;background:#fff;border:1px solid rgba(15,30,55,.12);border-radius:12px;padding:12px;box-shadow:0 12px 28px -16px rgba(11,22,40,.35)}
.fsma-label-sample img{display:block;width:100%;height:auto;border-radius:4px}
@media (max-width:900px){.fsma-label-sample{max-width:240px;margin-inline:auto}}
#start.sit-stage{position:relative;overflow:visible}
#start .fsma-start-tomato{right:1.5%;bottom:-6px;top:auto;width:150px;transform:rotate(6deg);z-index:4}
@media (max-width:900px){#start .fsma-start-tomato{width:110px;right:8px;bottom:-2px}}
@media (max-width:640px){#start .fsma-start-tomato{width:88px}}
.fsma-label-row{display:flex;align-items:flex-end;justify-content:flex-end;gap:14px;margin-top:0;flex-wrap:wrap}
.fsma-label-row .fsma-label-sample{margin:0;max-width:240px;flex:0 1 240px}
.fsma-label-row .sit-produce.beefsteak{position:relative;right:auto;bottom:auto;top:auto;left:auto;width:132px;transform:rotate(5deg);flex:0 0 auto;margin-bottom:-4px}
@media (max-width:900px){
  .fsma-label-row{justify-content:center}
  .fsma-label-row .sit-produce.beefsteak{width:110px}
}
#start, #compliance, #how, #features, #faq, #warehouse {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.fsma-start-copy{display:flex;flex-direction:column;height:100%;min-height:100%}
.fsma-start-copy .section-title{margin-top:0}
.fsma-start-copy .fsma-label-row{margin-top:auto;padding-top:24px}
#start .fsma-how-top{
  align-items:stretch;
}
#start .fsma-start-copy{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-self:stretch;
  min-height:100%;
  height:auto;
}
#start .fsma-start-copy .section-title{
  margin-top:0;
  margin-bottom:10px;
}
#start .fsma-label-row{
  margin-top:auto;
  justify-content:flex-end;
  align-self:stretch;
}
#start .fsma-how-top{
  align-items:start !important;
}
#start .fsma-how-top .fsma-photo{
  aspect-ratio:3/2;
  width:100%;
}
#start .fsma-start-copy{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  aspect-ratio:3/2;
  width:100%;
  box-sizing:border-box;
}
#start .fsma-start-copy .section-title{
  margin-top:0;
}
#start .fsma-label-row{
  margin-top:auto;
  justify-content:flex-end;
}
@media (max-width:980px){
  #start .fsma-start-copy{aspect-ratio:auto;min-height:0}
}

/* iSolveEdi */
#connect,
#stay {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

.edi-product-name {
  margin: 14px 0 6px;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.edi-lead-2 {
  margin-top: 12px;
}

.edi-way-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.edi-way-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.edi-status {
  margin-left: auto;
}

.edi-status-now {
  background: rgba(50, 98, 150, 0.12);
  color: var(--blue);
}

.edi-status-now::before {
  background: var(--blue);
}

.edi-icw {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: start;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.edi-icw-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.edi-icw-copy p strong {
  color: var(--ink);
}

.edi-icw-diagram {
  margin: 0;
  padding: 22px 20px 18px;
  background: linear-gradient(165deg, #0f1a2b 0%, #152438 55%, #1a2f4a 100%);
  border-radius: 14px;
  color: #fff;
  border: 1px solid rgba(253, 198, 47, 0.18);
  box-shadow: 0 18px 40px rgba(11, 22, 40, 0.28);
}

.edi-diagram-headline {
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
  color: rgba(255, 248, 238, 0.88);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.edi-flow {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(110px, 1fr);
  gap: 10px;
  align-items: center;
}

.edi-flow-card {
  background: rgba(255, 248, 238, 0.06);
  border: 1px solid rgba(255, 248, 238, 0.16);
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.edi-flow-card strong {
  font-size: 0.92rem;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.01em;
}

.edi-flow-card span {
  font-size: 0.72rem;
  color: rgba(255, 248, 238, 0.62);
  line-height: 1.35;
}

.edi-flow-arrows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 2px;
}

.edi-arrow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.edi-arrow-label {
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.edi-arrow-out .edi-arrow-label {
  color: var(--gold);
}

.edi-arrow-in .edi-arrow-label {
  color: #8eb7e0;
}

.edi-arrow-line {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  width: 100%;
}

.edi-arrow-out .edi-arrow-line {
  background: var(--gold);
}

.edi-arrow-out .edi-arrow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--gold);
  border-right-width: 0;
}

.edi-arrow-in .edi-arrow-line {
  background: #5b8ec4;
}

.edi-arrow-in .edi-arrow-line::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: #5b8ec4;
  border-left-width: 0;
}

.edi-diagram-sync {
  margin-top: 16px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
}

.edi-diagram-caption {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 248, 238, 0.68);
  text-align: center;
}

/* EDI featured block — equal weight to ICW */
.edi-edi {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.edi-edi-intro p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 10px;
}

.edi-edi-intro .edi-way-head {
  margin-bottom: 4px;
}

.edi-table-wrap {
  margin-top: 20px;
}

.edi-table tbody th {
  width: 18%;
  white-space: nowrap;
  vertical-align: top;
}

.edi-table td:first-of-type {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.edi-edi-more {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.edi-callout {
  margin-top: 18px;
  background: #fff8e1;
  border: 1px solid rgba(253, 198, 47, 0.55);
  border-left: 4px solid #FDC62F;
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--ink);
  line-height: 1.65;
  font-size: 0.95rem;
}

.edi-callout strong {
  color: var(--navy);
}

.edi-callout a {
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.edi-callout a:hover {
  color: var(--navy);
}

.edi-ways .card-body h3 {
  margin: 4px 0 10px;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.edi-ways .card-body p {
  color: var(--muted);
  font-size: 0.9rem;
}

.edi-ways .card-body p + p {
  margin-top: 10px;
}

.edi-ways .edi-way-head {
  margin-bottom: 6px;
}

.edi-ways .edi-status {
  margin-left: auto;
}

.edi-stay-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.edi-stay-copy .section-title {
  margin-bottom: 10px;
}

.edi-stay-copy .section-sub {
  max-width: none;
}

.edi-stay-form {
  margin-top: 22px;
}

.edi-stay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.edi-stay-email {
  flex: 1 1 240px;
}

.edi-stay-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .edi-icw,
  .edi-edi {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .edi-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .edi-flow-arrows {
    padding: 2px 18px;
  }

  .edi-arrow-label {
    white-space: normal;
  }

  .edi-arrow-line {
    width: min(200px, 70%);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .edi-stay-panel {
    padding: 26px 18px;
  }

  .edi-stay-row .btn {
    width: 100%;
  }

  .edi-edi {
    padding: 18px;
  }

  .edi-table thead {
    display: none;
  }

  .edi-table,
  .edi-table tbody,
  .edi-table tr,
  .edi-table th,
  .edi-table td {
    display: block;
    width: 100%;
  }

  .edi-table tbody tr {
    padding: 12px 16px;
    border-top: 1px solid rgba(15, 30, 55, 0.08);
  }

  .edi-table tbody th,
  .edi-table td {
    border: 0;
    padding: 3px 0;
    white-space: normal;
    width: 100%;
  }

  .edi-table tbody th {
    margin-bottom: 4px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #326296;
  }

  .edi-table td::before {
    content: attr(data-label) ": ";
    font-weight: 650;
    color: #326296;
  }

  .edi-table td:first-of-type {
    font-weight: 650;
  }

  .edi-callout {
    padding: 16px 16px;
  }
}

/* Legal pages (privacy-policy.html) */
.legal { max-width: 760px; margin-inline: auto; color: var(--ink); line-height: 1.7; }
.legal-intro { font-size: 1.08rem; color: var(--muted); }
.legal h2 {
  font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; color: var(--navy);
  margin: 44px 0 8px; padding-top: 24px; border-top: 1px solid var(--line);
}
.legal p { margin-bottom: 12px; }
.legal-sub { color: var(--muted); }
.legal-note { color: var(--muted); font-size: 0.95rem; }
.legal-list { display: grid; gap: 10px; margin: 14px 0 16px; padding: 0; list-style: none; }
.legal-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.legal-list li strong { display: block; color: var(--navy); margin-bottom: 2px; }
.legal a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal h2.legal-first { margin-top: 0; padding-top: 0; border-top: 0; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Newsletter preferences (/newsletter/preferences) ---------- */
.prefs { max-width: 640px; margin-inline: auto; }
.prefs-loading { color: var(--muted); }
.prefs-email { color: var(--muted); margin: 0 0 16px; }
.prefs-email strong { color: var(--ink); }
.prefs-list { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.prefs-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.prefs-item:first-child { border-top: 0; }
.prefs-name { flex: 1; font-weight: 600; color: var(--ink); }
.prefs-state { font-size: 0.8rem; color: var(--muted-2); }
.prefs-item.is-on .prefs-state { color: var(--blue-deep); font-weight: 600; }
.prefs-item .btn { padding: 8px 14px; font-size: 0.82rem; }
.prefs-all { margin-bottom: 8px; }
.prefs .form-error, .prefs .form-success { margin: 0 0 16px; }
@media (max-width: 520px) {
  .prefs-item { flex-wrap: wrap; }
  .prefs-item .btn { width: 100%; }
}
.btn-portal svg { width: 18px; height: 18px; flex-shrink: 0; }
