/* Homepage — Property Inspect */

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 72px 0;
  /* overflow unclipped so the large hero image can bleed to the viewport edge */
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(97,206,112,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 110%, rgba(86,112,132,0.06) 0%, transparent 50%),
    linear-gradient(180deg, #FDFDFE 0%, var(--off-white-40) 100%);
  z-index: -1;
}
body[data-hero-bg="dark"] .hero-bg {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(97,206,112,0.15) 0%, transparent 55%),
    var(--gradient-deep);
}
body[data-hero-bg="dark"] .hero-h1,
body[data-hero-bg="dark"] .hero-sub,
body[data-hero-bg="dark"] .hero-support { color: #fff; }
body[data-hero-bg="dark"] .hero-sub { color: rgba(255,255,255,0.82); }
body[data-hero-bg="dark"] .hero-support { color: rgba(255,255,255,0.6); }
body[data-hero-bg="dark"] .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
body[data-hero-bg="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.08); }
body[data-hero-bg="dark"] .hero-micro { color: rgba(255,255,255,0.7); }
body[data-hero-bg="dark"] .eyebrow { background: rgba(97,206,112,0.18); color: var(--green-100); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 0;
  align-items: center;
}
.hero-copy { max-width: 520px; }
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 68px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-top: 24px;
  max-width: 620px;
}
.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-top: 24px;
  max-width: 540px;
}
.hero-support {
  font-size: 16px;
  color: var(--color-text-subtle);
  margin-top: 16px;
  max-width: 520px;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; }
.hero-micro {
  display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px;
  font-size: 14px; color: var(--color-text-subtle);
}
.hero-micro span { display: inline-flex; align-items: center; gap: 6px; }

/* Hero variants */
body[data-hero-variant="B"] .hero { padding: 100px 0 140px; }
body[data-hero-variant="B"] .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
body[data-hero-variant="B"] .hero-h1 { font-size: 88px; line-height: 1.2; max-width: 880px; }
body[data-hero-variant="B"] .hero-sub { font-size: 22px; max-width: 640px; margin-left: auto; margin-right: auto; }
body[data-hero-variant="B"] .hero-support { margin-left: auto; margin-right: auto; }
body[data-hero-variant="B"] .hero-product { grid-column: 1; width: 100%; max-width: 1100px; margin-top: 56px; transform: none; }
body[data-hero-variant="B"] .hero-mobile,
body[data-hero-variant="B"] .hero-stat { display: none; }

body[data-hero-variant="C"] .hero { padding: 96px 0 160px; }
body[data-hero-variant="C"] .hero-bg {
  background: var(--gradient-deep);
  z-index: -1;
}
body[data-hero-variant="C"] .hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 40%, rgba(97,206,112,0.18) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
}
body[data-hero-variant="C"] .hero-h1,
body[data-hero-variant="C"] .hero-sub,
body[data-hero-variant="C"] .hero-support { color: #fff; }
body[data-hero-variant="C"] .hero-h1 {
  font-size: 84px;
  background: linear-gradient(180deg, #fff 0%, #C9D4E0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body[data-hero-variant="C"] .hero-sub { color: rgba(255,255,255,0.85); }
body[data-hero-variant="C"] .hero-support { color: rgba(255,255,255,0.6); }
body[data-hero-variant="C"] .eyebrow { background: rgba(97,206,112,0.2); color: var(--green-100); }
body[data-hero-variant="C"] .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
body[data-hero-variant="C"] .btn-ghost:hover { background: rgba(255,255,255,0.1); }
body[data-hero-variant="C"] .hero-micro { color: rgba(255,255,255,0.7); }
body[data-hero-variant="C"] .site-header { background: rgba(27,32,38,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
body[data-hero-variant="C"] .site-header .nav-item { color: rgba(255,255,255,0.72); }
body[data-hero-variant="C"] .site-header .nav-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
body[data-hero-variant="C"] .site-header .logo img { filter: brightness(0) invert(1); }
body[data-hero-variant="C"] .btn-text { color: rgba(255,255,255,0.9); }
body[data-hero-variant="C"] .region-pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: #fff; }
body[data-hero-variant="C"] .announce { background: #000; }

/* ============ APP WINDOW (hero product mock) ============ */
.hero-product {
  position: relative;
  transform: perspective(1600px) rotateY(-5deg) rotateX(3deg);
  transform-origin: 40% 50%;
}
/* SVG/HTML hero mock variant (option A: laptop + phone + notif + scheduled card). */
.hero-product.is-svg {
  transform: none;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 4 / 3;
  position: relative;
  margin: 0 auto;
  font-family: 'Figtree', sans-serif;
}
/* Legacy image-hero styles — retained (inert) for A/B reversion.
   If the homepage never shows an .is-image variant these are dead CSS. */
.hero-product.is-image {
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-product.is-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(10,20,40,0.16)) drop-shadow(0 8px 16px rgba(10,20,40,0.08));
}

.app-window {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg), 0 40px 80px -20px rgba(54,62,72,0.18);
  overflow: hidden;
  width: 100%;
  max-width: 720px;
}
.app-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--off-white-40);
  border-bottom: 1px solid var(--color-border);
}
.app-chrome .dot { width: 10px; height: 10px; border-radius: 50%; }
.app-chrome .dot.r { background: #FF5F57; }
.app-chrome .dot.y { background: #FEBC2E; }
.app-chrome .dot.g { background: #28C840; }
.app-chrome .url {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--color-text-subtle);
  background: #fff; padding: 4px 12px; border-radius: 6px;
  max-width: 280px; margin: 0 auto;
  border: 1px solid var(--color-border);
}
.app-body { display: grid; grid-template-columns: 180px 1fr; min-height: 440px; }
.app-side { background: var(--off-white-40); border-right: 1px solid var(--color-border); padding: 16px 10px; }
.app-logo img { height: 22px; margin: 4px 0 18px 6px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
}
.side-nav a.active { background: #fff; color: var(--color-text); box-shadow: var(--shadow-sm); }
.side-nav a .icn-sm { width: 14px; height: 14px; stroke-width: 1.75; }
.side-nav a .pill {
  position: absolute; right: 10px;
  background: var(--green-100); color: var(--anthracite-100);
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 99px;
}
.app-main { padding: 20px; background: #fff; }
.app-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 16px; border-bottom: 1px solid var(--color-border); margin-bottom: 12px;
}
.app-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 2px; letter-spacing: -0.01em; }
.app-stats { display: flex; gap: 20px; }
.ast .l { font-size: 10px; color: var(--color-text-subtle); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.ast .v { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 2px; }
.ast .v span { font-size: 11px; color: var(--color-text-subtle); font-weight: 500; }
.app-list { display: flex; flex-direction: column; }
.app-row {
  display: grid; grid-template-columns: 1.4fr 1fr auto 100px;
  gap: 16px; align-items: center;
  padding: 12px 8px; border-radius: 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
}
.app-row:last-child { border-bottom: none; }
.app-row.highlighted { background: var(--off-white-40); }
.app-row .addr strong { display: block; font-size: 14px; color: var(--color-text); font-weight: 600; margin-bottom: 2px; }
.app-row .addr span { color: var(--color-text-subtle); font-size: 11px; }
.app-row .insp { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.app-row .time { color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }
.ava { width: 22px; height: 22px; border-radius: 50%; background: var(--anthracite-100); color: #fff; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Floating mobile in hero */
.hero-mobile {
  position: absolute;
  right: -40px; bottom: -60px;
  width: 220px;
  background: #1F252D;
  border-radius: 32px;
  padding: 10px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 2;
}
.m-chrome { height: 14px; position: relative; }
.m-chrome .notch { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 50px; height: 6px; background: #000; border-radius: 999px; }
.m-body {
  background: #fff; border-radius: 24px;
  padding: 14px;
  font-size: 11px;
}
.m-top {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding-bottom: 10px; border-bottom: 1px solid var(--color-border);
  margin-bottom: 10px;
}
.m-top .pill {
  margin-left: auto;
  background: var(--off-white-100); color: var(--color-text-muted);
  padding: 2px 7px; border-radius: 99px; font-size: 10px;
}
.m-photo {
  background:
    linear-gradient(135deg, #E8DFD2 0%, #C5B8A1 50%, #9A8F7A 100%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.05) 0 2px, transparent 2px 4px);
  height: 100px; border-radius: 10px;
  position: relative;
  background-blend-mode: overlay;
}
.m-photo::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
  border-radius: 10px;
}
.m-caption { font-weight: 600; margin-top: 8px; font-size: 12px; }
.m-cond { display: flex; gap: 4px; margin-top: 8px; }
.cond {
  flex: 1; padding: 5px 6px; border-radius: 6px;
  font-size: 10px; font-weight: 600;
  background: var(--off-white-100); color: var(--color-text-muted);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid transparent;
}
.cond.on { background: var(--green-20); color: #1E7A2B; border-color: var(--green-80); }
.cond .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--anthracite-40); }
.cond .dot.pass { background: var(--green-100); }
.m-note {
  margin-top: 8px; padding: 8px; background: var(--off-white-40);
  border-radius: 8px; font-size: 10px; color: var(--color-text-muted);
  line-height: 1.4;
}
.m-next {
  width: 100%; margin-top: 10px; padding: 8px;
  background: var(--anthracite-100); color: #fff;
  border-radius: 8px; font-size: 11px; font-weight: 600;
}
.hero-stat {
  position: absolute; top: -12px; left: -48px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  min-width: 200px;
}
.hero-stat .l { font-size: 11px; color: var(--color-text-subtle); text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; }
.hero-stat .v { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 4px; letter-spacing: -0.01em; }
.hero-stat .sub { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--color-success); font-weight: 600; }

/* ============ WORKFLOW ============ */
.workflow { padding: 120px 0; }
.wf-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
}
.wf-rail {
  position: absolute;
  /* Vertical: dot center sits at wf-stage padding-top (48) + step
   * padding-top (32) + half dot height (22) = 102px from wf-stage top.
   * Rail is 2px tall so top: 101px puts the line's midpoint exactly
   * on the dot row, instead of 22px above it like the old 80px value. */
  top: 101px;
  /* Horizontal: rail must start at dot-1's centre and end at dot-5's
   * centre. The wf-steps grid sits inside the wf-stage's 40px padding,
   * is 5 columns wide with 4 × 16px gaps, so each column is
   *   (100% - 80px - 64px) / 5
   * (where 100% is the wf-stage width). Half-column = (100% - 144px) /
   * 10, which is how far the dot centre sits inside its column. Adding
   * the 40px stage padding gives the left/right offsets used here so
   * the rail scales correctly with viewport width and lands on the
   * dot centres at every desktop size. Old fixed 80px was hand-tuned
   * for one container width and drifted as soon as the page reflowed. */
  left:  calc(40px + (100% - 144px) / 10);
  right: calc(40px + (100% - 144px) / 10);
  height: 2px; pointer-events: none;
}
.wf-rail-track { position: absolute; inset: 0; background: var(--color-border); border-radius: 2px; }
.wf-rail-fill {
  position: absolute; top: 0; left: 0; height: 100%;
  background: linear-gradient(90deg, var(--green-100), var(--green-80));
  border-radius: 2px;
  transition: width 600ms var(--ease-standard);
}
.wf-rail-pulse {
  position: absolute; top: -4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green-100);
  box-shadow: 0 0 0 6px rgba(97, 206, 112, 0.2);
  transition: left 600ms var(--ease-standard);
}

.wf-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
}
.wf-step {
  padding: 32px 16px 0;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 240ms var(--ease-standard);
}
.wf-step:hover { transform: translateY(-2px); }
.wf-dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  color: var(--anthracite-80);
  transition: all 240ms var(--ease-standard);
  position: relative; z-index: 2;
}
.wf-step.active .wf-dot,
.wf-step.done .wf-dot {
  background: var(--green-100);
  border-color: var(--green-100);
  color: var(--anthracite-100);
  box-shadow: 0 0 0 8px rgba(97, 206, 112, 0.12);
}
.wf-step.done:not(.active) .wf-dot { background: var(--anthracite-100); border-color: var(--anthracite-100); color: #fff; box-shadow: none; }
.wf-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  color: var(--color-text-subtle);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.wf-step h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 16px; margin-bottom: 6px;
  color: var(--color-text);
  transition: color 240ms;
}
.wf-step.active h4 { color: var(--color-text); }
.wf-step p { font-size: 14px; color: var(--color-text-muted); line-height: 1.45; }

/* Preview pane */
.wf-preview {
  background: var(--off-white-40);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 340px;
  position: relative;
}
.wf-preview-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.wf-preview-chrome .dot { width: 9px; height: 9px; border-radius: 50%; }
.wf-preview-chrome .dot.r { background: #FF5F57; }
.wf-preview-chrome .dot.y { background: #FEBC2E; }
.wf-preview-chrome .dot.g { background: #28C840; }
.wf-preview-tab {
  margin-left: 16px;
  font-size: 12px; color: var(--color-text-subtle);
  transition: all 240ms;
}
.wf-preview-body { position: relative; min-height: 300px; padding: 24px; }
.wf-frame {
  position: absolute; inset: 24px;
  opacity: 0; transform: translateY(8px);
  transition: all 320ms var(--ease-standard);
  pointer-events: none;
}
.wf-frame.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Frame 0 — mobile capture */
.wf-mobile {
  background: #1F252D; border-radius: 16px;
  padding: 14px; max-width: 280px; margin: 0 auto;
  color: #fff;
}
.wf-mobile-photo {
  height: 140px; border-radius: 10px;
  /* Neutral fallback if the inline background-image fails to load. */
  background-color: #2a2a2a;
  background-size: cover;
  background-position: center;
  position: relative;
}
.wf-mobile-overlay { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.wf-mobile-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; background: rgba(255,255,255,0.06);
  border-radius: 8px;
  font-size: 12px;
}
.wf-mobile-row .k { color: rgba(255,255,255,0.6); font-size: 11px; }
.wf-mobile-row .v { font-weight: 600; }
.wf-mobile-row .v.mono { font-family: var(--font-mono); font-size: 11px; color: var(--green-100); }
.wf-mobile-progress {
  height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px;
  margin-top: 10px; overflow: hidden;
}
.wf-mobile-progress span { display: block; height: 100%; background: var(--green-100); border-radius: 2px; animation: wfFill 1.8s ease-out; }
@keyframes wfFill { from { width: 0 } }
.wf-caption { text-align: center; font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 8px; }

/* Frame 1 — report */
.wf-report { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--color-border); max-width: 560px; margin: 0 auto; }
.wf-report-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.wf-report-head strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.wf-report-meta { font-size: 12px; color: var(--color-text-subtle); padding-bottom: 14px; border-bottom: 1px solid var(--color-border); margin-bottom: 14px; }
.wf-report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.wf-tile { border-radius: 8px; overflow: hidden; border: 1px solid var(--color-border); }
.wf-tile .thumb {
  height: 70px;
  /* Neutral fallback if the inline background-image fails to load. */
  background-color: #d6cfc1;
  background-size: cover;
  background-position: center;
}
.wf-tile .cap { padding: 6px 8px; font-size: 11px; color: var(--color-text-muted); background: var(--off-white-40); }
.wf-report-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-text-subtle); }

/* Frame 2 — actions */
.wf-actions { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--color-border); max-width: 560px; margin: 0 auto; }
.wf-actions-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.wf-actions-head strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.wf-action-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.wf-action-row:last-child { border-bottom: none; }
.wf-action-row.done strong { text-decoration: line-through; color: var(--color-text-subtle); }
.wf-action-pri { width: 3px; height: 32px; border-radius: 2px; }
.wf-action-pri.p-high { background: var(--color-danger); }
.wf-action-pri.p-med { background: var(--color-warning); }
.wf-action-pri.p-low { background: var(--color-info); }
.wf-action-body strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.wf-action-body span { font-size: 11px; color: var(--color-text-subtle); }

/* Frame 3 — dashboard */
.wf-dash { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--color-border); max-width: 560px; margin: 0 auto; }
.wf-dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.wf-dash-head strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.wf-dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.wf-kpi { padding: 12px; border: 1px solid var(--color-border); border-radius: 8px; }
.wf-kpi .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-subtle); font-weight: 600; }
.wf-kpi .v { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 4px 0; letter-spacing: -0.01em; }
.wf-kpi .trend { font-size: 11px; font-weight: 600; }
.wf-kpi .trend.up { color: var(--color-success); }
.wf-kpi .trend.down { color: var(--color-success); }
.wf-chart { height: 70px; }
.wf-chart svg { width: 100%; height: 100%; }

/* Frame 4 — audit */
.wf-audit { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--color-border); max-width: 560px; margin: 0 auto; }
.wf-audit-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--color-border); margin-bottom: 10px; }
.wf-audit-head strong { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.wf-audit-row { display: grid; grid-template-columns: 60px 1fr; gap: 16px; padding: 8px 0; }
.wf-audit-row .t { font-family: var(--font-mono); font-size: 11px; color: var(--color-text-subtle); padding-top: 2px; }
.wf-audit-row strong { display: block; font-size: 14px; font-weight: 600; }
.wf-audit-row span { font-size: 11px; color: var(--color-text-subtle); }

.wf-controls {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 32px;
}
.wf-control { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border-strong); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.wf-control:hover { border-color: var(--anthracite-100); color: var(--anthracite-100); }
.wf-pager { display: flex; gap: 8px; }
.wf-pager-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-border-strong); cursor: pointer; transition: all 150ms; }
.wf-pager-dot.on { background: var(--green-100); width: 24px; border-radius: 4px; }
.wf-hint { font-size: 12px; color: var(--color-text-subtle); }

/* Workflow layout: tabs */
body[data-workflow="tabs"] .wf-rail { display: none; }
body[data-workflow="tabs"] .wf-steps { gap: 4px; background: var(--off-white-100); padding: 4px; border-radius: 12px; margin-bottom: 24px; }
body[data-workflow="tabs"] .wf-step { padding: 10px 12px; border-radius: 8px; text-align: left; display: flex; align-items: center; gap: 10px; }
body[data-workflow="tabs"] .wf-step.active { background: #fff; box-shadow: var(--shadow-sm); }
body[data-workflow="tabs"] .wf-dot { width: 28px; height: 28px; margin: 0; box-shadow: none !important; }
body[data-workflow="tabs"] .wf-num { display: none; }
body[data-workflow="tabs"] .wf-step h4 { font-size: 14px; margin: 0; }
body[data-workflow="tabs"] .wf-step p { display: none; }

/* Workflow layout: stack */
body[data-workflow="stack"] .wf-rail { display: none; }
body[data-workflow="stack"] .wf-steps { grid-template-columns: 1fr; gap: 8px; }
body[data-workflow="stack"] .wf-step { padding: 20px; border: 1px solid var(--color-border); border-radius: 12px; text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
body[data-workflow="stack"] .wf-dot { margin: 0; }
body[data-workflow="stack"] .wf-num { grid-column: 2; margin-bottom: 2px; }
body[data-workflow="stack"] .wf-step h4 { grid-column: 2; }
body[data-workflow="stack"] .wf-step p { grid-column: 2; }

/* ============ INDUSTRIES ============ */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 240ms var(--ease-standard);
  display: flex; flex-direction: column;
}
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--anthracite-20); }
.ind-photo {
  height: 160px; position: relative;
  background-size: cover; background-position: center;
}
.ind-res { background: linear-gradient(135deg, #D8C9B0 0%, #A89076 100%); }
.ind-com { background: linear-gradient(135deg, #8A9AAE 0%, #4E5E73 100%); }
.ind-hou { background: linear-gradient(135deg, #B8C5A0 0%, #7A8A5E 100%); }
.ind-hos { background: linear-gradient(135deg, #C8A890 0%, #8A6B52 100%); }
.ind-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 20px, transparent 20px 40px),
    linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
}
.ind-photo svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46%; height: auto; z-index: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2)); }
.ind-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ind-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.ind-body p { font-size: 16px; color: var(--color-text-muted); line-height: 1.5; }
.ind-body ul { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 6px; }
.ind-body li { font-size: 14px; color: var(--color-text-muted); padding-left: 18px; position: relative; }
.ind-body li::before { content: ''; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border: 1.5px solid var(--green-100); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.ind-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--color-text); display: inline-flex; align-items: center; gap: 6px; }
.ind-link .arr { width: 14px; height: 14px; transition: transform 150ms; }
.ind-card:hover .ind-link .arr { transform: translateX(3px); }

/* ============ USE CASES ============ */
.uc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.uc-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.uc-graphic {
  height: 260px;
  padding: 28px;
  position: relative;
  background: var(--gradient-primary);
  color: #fff;
  overflow: hidden;
}
.uc-g-pm { background: var(--gradient-deep); }
.uc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  color: #fff;
  margin-bottom: 18px;
}
.uc-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-100); }
.uc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.uc-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  padding: 16px 12px;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: #fff;
  text-align: center;
}
.uc-prop-stack { display: flex; flex-direction: column; gap: 8px; }
.uc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  backdrop-filter: blur(4px);
}
.uc-row .ua { color: #fff; }
.uc-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.uc-body .kicker { margin-bottom: 4px; }
.uc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
.uc-body > p { font-size: 16px; color: var(--color-text-muted); line-height: 1.55; }
.uc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.uc-list li { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--color-text); }

/* ============ ENTERPRISE ============ */
.ent-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.ent-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; margin-top: 16px; }
.ent-lead { font-size: 17px; color: rgba(255,255,255,0.72); line-height: 1.55; }
.ent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 1200px) { .ent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .ent-grid { grid-template-columns: repeat(2, 1fr); } }
.ent-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 240ms var(--ease-standard);
}
.ent-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.ent-ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(97,206,112,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ent-ic svg { width: 22px; height: 22px; stroke: var(--green-100); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ent-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.ent-card p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.55; }
/* flex-wrap so the badges (SOC 2 Type II / ISO 27001 / GDPR / HIPAA-ready)
 * stack onto multiple rows on narrow viewports instead of pushing the page
 * width past the viewport. row-gap is smaller than column-gap so wrapped
 * rows feel tighter than the default 36px column spacing. */
.ent-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 36px; row-gap: 14px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; }
.ent-logos > span:first-child { text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); font-weight: 600; }
.ent-logo { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: rgba(255,255,255,0.75); letter-spacing: -0.005em; }

/* ============ CASE STUDIES ============ */
.cs-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.cs-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; margin-top: 16px; line-height: 1.1; max-width: 520px; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cs-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
  transition: all 240ms var(--ease-standard);
}
.cs-card:hover { border-color: var(--anthracite-20); box-shadow: var(--shadow-md); }
.cs-logo { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--anthracite-80); letter-spacing: -0.005em; margin-bottom: 4px; }
.cs-logo .sub { display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 2px; color: var(--color-text-subtle); }
.cs-stat { }
.cs-stat .n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 52px; letter-spacing: -0.025em; color: var(--color-text); line-height: 1; }
.cs-stat .l { display: block; font-size: 14px; color: var(--color-text-muted); margin-top: 6px; }
.cs-quote { font-size: 15px; line-height: 1.55; color: var(--color-text); font-style: italic; }
.cs-meta { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-text-subtle); margin-top: auto; }
.cs-meta span:first-child { color: var(--color-text); font-weight: 600; font-style: normal; }

/* ============ SAMPLE REPORTS ============ */
.sr-filters-wrap { padding: 14px 20px; background: #fff; border: 1px solid var(--color-border); border-radius: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.sr-count { font-size: 14px; color: var(--color-text-subtle); margin-bottom: 24px; }
.sr-count strong { color: var(--color-text); }
.sr-filters { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.sr-filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-filter-group:first-child { order: 2; margin-left: auto; }
.sr-filter-group:nth-child(2) { order: 1; }
.sr-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-subtle); margin-right: 4px; }
.chip {
  padding: 6px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 150ms;
}
.chip:hover { border-color: var(--anthracite-100); color: var(--color-text); }
.chip.active { background: var(--anthracite-100); color: #fff; border-color: var(--anthracite-100); }

.sr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sr-card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 240ms;
  display: flex; flex-direction: column;
}
.sr-card.hide { display: none; }
.sr-card:hover { border-color: var(--anthracite-20); box-shadow: var(--shadow-md); }
.sr-preview {
  position: relative; height: 280px;
  background: linear-gradient(180deg, var(--off-white-60) 0%, var(--off-white-100) 100%);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 20px 20px 0;
}
/* When .sr-preview is itself a link (post-driven cards), strip default a styling. */
a.sr-preview { text-decoration: none; color: inherit; padding: 0; }

/* Featured-image thumbnail (replaces the legacy .sr-doc mock for editor-managed cards). */
.sr-thumb {
  position: absolute; inset: 0;
  width: 360px;
  margin: 0 auto;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  border: 1px solid var(--color-border);
  transition: transform 280ms var(--ease-standard);
}
/* Inline-SVG variant — used when the featured image is an SVG (which
 * browsers won't paint via background-image when it contains foreignObject).
 * The SVG's preserveAspectRatio is rewritten to "xMidYMin slice" upstream
 * so it fills the box and crops below, matching the bitmap "cover" behavior. */
.sr-thumb-svg { overflow: hidden; background: var(--off-white-60); }
.sr-thumb-svg svg { display: block; width: 100%; height: 100%; }
.sr-card:hover .sr-thumb { transform: scale(1.03); }

/* Fallback gradient slots — used when no featured image is set. Six variants
 * cycle by post slug hash so adjacent cards-without-thumbs don't all look
 * identical. Editors uploading a featured image instantly replaces these. */
.sr-thumb-fallback {
  background: linear-gradient(135deg, var(--off-white-60), var(--off-white-100));
  display: flex; align-items: center; justify-content: center;
}
.sr-thumb-fallback::after {
  content: "";
  width: 64px; height: 80px;
  background:
    linear-gradient(180deg, transparent 0 14px, rgba(54,62,72,0.08) 14px 18px, transparent 18px 28px, rgba(54,62,72,0.08) 28px 32px, transparent 32px 42px, rgba(54,62,72,0.08) 42px 46px, transparent 46px 56px, rgba(54,62,72,0.08) 56px 60px),
    #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(54,62,72,0.08);
  opacity: 0.7;
}
.sr-thumb-fallback.t-1 { background: linear-gradient(135deg, #E8EEF5, #D4DEEC); }
.sr-thumb-fallback.t-2 { background: linear-gradient(135deg, #EDF2EE, #D6E3D8); }
.sr-thumb-fallback.t-3 { background: linear-gradient(135deg, #F2EEE6, #E2D9C8); }
.sr-thumb-fallback.t-4 { background: linear-gradient(135deg, #ECEAF1, #D5D0E0); }
.sr-thumb-fallback.t-5 { background: linear-gradient(135deg, #EAF1F0, #CFE0DC); }
.sr-thumb-fallback.t-6 { background: linear-gradient(135deg, #F1ECE9, #DED2CB); }
.sr-doc {
  background: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 10px 30px -5px rgba(54,62,72,0.15);
  width: 90%;
  max-width: 360px;
  overflow: hidden;
  transition: transform 240ms var(--ease-standard);
  border: 1px solid var(--color-border);
  border-bottom: none;
}
.sr-card:hover .sr-doc { transform: translateY(-10px); }
.sr-doc-head { padding: 14px 16px 10px; border-bottom: 2px solid var(--anthracite-100); }
.sr-doc-head.dark { background: var(--anthracite-100); color: #fff; border-bottom-color: var(--green-100); }
.sr-doc-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-subtle); margin-bottom: 4px; }
.sr-doc-head.dark .sr-doc-brand { color: var(--green-100); }
.sr-doc-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.3; margin-bottom: 2px; }
.sr-doc-sub { font-size: 10px; color: var(--color-text-subtle); }
.sr-doc-head.dark .sr-doc-sub { color: rgba(255,255,255,0.6); }
.sr-doc-body { padding: 10px; }
.sr-doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sr-doc-thumb { height: 44px; border-radius: 4px; }
.sr-doc-thumb {
  /* Real inspection photo backgrounds wired below.
   * Each .sr-t-N slot maps to a different room or scene so the 6-up grid
   * inside the sample-report card preview reads like a real report's
   * photo page (rather than 6 colour swatches). */
  background-color: #d6cfc1;
  background-size: cover;
  background-position: center;
}
.sr-t-1 { background-image: url('../assets/inspection-photos/kitchen-side-angle.webp'); }
.sr-t-2 { background-image: url('../assets/inspection-photos/bathroom-side-angle.webp'); }
.sr-t-3 { background-image: url('../assets/inspection-photos/bedroom-side-angle.webp'); }
.sr-t-4 { background-image: url('../assets/inspection-photos/living-room-side-angle.webp'); }
.sr-t-5 { background-image: url('../assets/inspection-photos/exterior-house-front.webp'); }
.sr-t-6 { background-image: url('../assets/inspection-photos/hallway-corridor.webp'); }
.sr-doc-list { display: flex; flex-direction: column; gap: 4px; }
.sr-doc-li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; font-size: 10px; border-bottom: 1px solid var(--color-border); }
.sr-doc-li:last-child { border: none; }
.sr-doc-li .ln { font-family: var(--font-mono); font-size: 9px; color: var(--color-text-subtle); }
.sr-doc-li .badge { font-size: 9px; padding: 2px 6px; }
.sr-doc-summary { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.sr-kv { display: flex; justify-content: space-between; font-size: 10px; padding: 4px 6px; background: var(--off-white-40); border-radius: 4px; }
.sr-kv .scr { font-family: var(--font-display); font-weight: 700; color: var(--green-100); font-size: 12px; }
.sr-kv .scr span { color: var(--color-text-subtle); font-size: 9px; }
.sr-doc-rooms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.sr-room { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; background: var(--off-white-40); border-radius: 4px; font-size: 10px; font-weight: 600; }
.sr-room .badge { font-size: 8px; padding: 1px 5px; }

.sr-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(27,32,38,0) 30%, rgba(27,32,38,0.65) 100%);
  opacity: 0; transition: opacity 240ms;
}
.sr-card:hover .sr-overlay { opacity: 1; }
.sr-meta { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-top: 1px solid var(--color-border); }
.sr-meta h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.sr-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--off-white-100); color: var(--color-text-muted); font-weight: 500; }
.sr-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sr-btn {
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
}
.sr-btn:hover { background: var(--off-white-60); color: var(--color-text); border-color: var(--anthracite-100); }
.sr-foot { text-align: center; margin-top: 48px; }

/* ============ FINAL CTA ============ */
.final-cta {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  color: #fff;
  padding: 120px 0;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(97,206,112,0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(97,206,112,0.1) 0%, transparent 40%);
}
.fcta-inner { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.fcta-inner .kicker { justify-content: center; margin-bottom: 20px; }
.fcta-inner h2 { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; color: #fff; }
.fcta-inner p { font-size: 19px; color: rgba(255,255,255,0.82); margin-top: 16px; line-height: 1.5; }
.fcta-btns { display: flex; gap: 12px; justify-content: center; margin-top: 36px; }
.fcta-trust { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; font-size: 16px; color: rgba(255,255,255,0.6); }

/* ======= Responsive ======= */
@media (max-width: 1170px) {
  /* Hero collapses to single column — center the copy + mock blocks horizontally,
     and centre the copy's text (headline, sub, support, CTAs, trust line). */
  .hero-inner { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .hero-ctas, .hero-micro { justify-content: center; }
  .hero-product { transform: none; max-width: 700px; margin: 0 auto; }
}
@media (max-width: 1200px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .ent-grid { grid-template-columns: repeat(2, 1fr); }
  /* Five ent-cards in a 2-col grid leaves the last card alone on row 3 with
   * empty space beside it. Span the full width so it fills the row instead
   * of looking orphaned. Harmless at the ≤540px breakpoint when the grid is
   * already single-column (grid-column: 1/-1 == 1/-1 == one column wide). */
  .ent-grid .ent-card:last-child { grid-column: 1 / -1; }
  .ent-head { grid-template-columns: 1fr; }
  .cs-grid { grid-template-columns: 1fr; }
  .uc-split { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-h1 { font-size: 40px !important; }
  .sr-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  /* Hero text re-centered at the phone breakpoint. The default chain
   * (.hero-copy max-width: 520px + margin: 0 auto) interacts with the
   * .hero-h1's own max-width: 620px and the wider .hero-sub max-width:
   * 540px — at viewport widths <500px the parent constraint forces
   * everything narrower than its max, but the explicit max-width values
   * leave block-alignment up to inherited margins, which can creep right
   * via sub-pixel rounding on some devices (Samsung S8+ Chrome notably).
   * Force max-width: 100% + auto margins on every hero text child so
   * each line is exactly centered within its parent. */
  .hero-copy { max-width: 100%; margin-left: 0; margin-right: 0; }
  .hero-h1, .hero-sub, .hero-support {
    max-width: 100%; margin-left: auto; margin-right: auto;
  }
  /* Collapse the Enterprise 5-card grid to a single column on phones —
   * has to live AFTER the @media (max-width: 1200px) block above (which
   * forces 2-col), otherwise its 2-col rule wins by source order. */
  .ent-grid { grid-template-columns: 1fr; }
  .wf-steps { grid-template-columns: 1fr; gap: 8px; }
  .wf-rail { display: none; }
  /* Homepage-only header trim at ≤768px: drop the inline primary-nav
   * remnants (redundant with site.css's nav.primary hide at ≤1168px but
   * kept defensively) + hide Book demo text earlier than the global
   * 560px breakpoint so the bar isn't cramped at tablet widths.
   *
   * `.region-pill` was previously in this list and was the cause of the
   * pill disappearing below 768px on the homepage. Removed — the pill
   * needs to stay visible all the way down per the global header rule
   * (site.css ≤1168px clusters Logo + Burger + Pill on the left). */
  .site-header .primary, .header-ctas .btn-text { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cs-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-stat, .hero-mobile { display: none; }
}

/* Very narrow phones (Samsung S8+ at 360px, older Androids): the container
 * default `padding: 0 32px` consumes nearly 18% of the viewport. Trim the
 * hero's left padding only so the headline + copy sit slightly closer to
 * the left edge and feel less crowded — right padding stays at 32px so
 * the visual symmetry with the centered text doesn't shift. Scoped to
 * .hero .container-wide so it doesn't ripple to any other section's
 * container. */
@media (max-width: 365px) {
  .hero .container-wide { padding-left: 16px; }
}


/* ============ INSPECTION MODES (on-site / self / live) ============ */
.inspect-modes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 8px;
}
.im-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 240ms var(--ease-standard);
}
.im-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--anthracite-20); }
.im-card.im-featured { border-color: var(--anthracite-100); box-shadow: var(--shadow-md); }
.im-card.im-featured:hover { border-color: var(--anthracite-100); }

.im-feature-pill {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--green-100);
  color: var(--anthracite-100);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.im-feature-pill svg { width: 12px; height: 12px; }

.im-graphic {
  position: relative;
  height: 220px;
  padding: 24px;
  background: var(--gradient-primary);
  color: #fff;
  overflow: hidden;
  display: flex; align-items: flex-end;
}
.im-card.im-featured .im-graphic { background: var(--gradient-deep); }
.im-graphic::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 20px, transparent 20px 40px),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
}
.im-mode-tag {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  color: #fff;
  white-space: nowrap;
  max-width: calc(100% - 110px);
}
.im-mode-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-100); }

.im-art { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; align-items: flex-end; }

/* ON-SITE: phone mock */
.im-phone {
  width: 140px; height: 180px;
  background: #1F252D;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 18px 18px 6px 6px;
  padding: 10px 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(20px);
}
.im-phone-head { height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-bottom: 2px; }
.im-phone-row {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 10px; color: #fff;
}
.im-phone-check {
  width: 12px; height: 12px; border-radius: 3px;
  background: var(--green-100);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.im-phone-check svg { width: 8px; height: 8px; stroke: var(--anthracite-100); stroke-width: 3; fill: none; }
.im-phone-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; flex: 1; }
.im-phone-thumb {
  height: 34px; background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.im-phone-thumb svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.5); fill: none; stroke-width: 1.5; }

/* SELF: link/QR panels */
.im-self {
  display: flex; gap: 12px; align-items: flex-end;
  width: 100%;
  transform: translateY(10px);
}
.im-self-panel {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  backdrop-filter: blur(4px);
}
.im-self-panel-main { flex: 1.2; }
.im-self-label { font-size: 10px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.im-self-value { font-size: 12px; color: #fff; font-weight: 500; font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); word-break: break-all; line-height: 1.4; }
.im-self-qr {
  width: 68px; height: 68px;
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); gap: 2px;
}
.im-self-qr span { background: #1F252D; border-radius: 1px; }
.im-self-qr span.off { background: transparent; }
.im-self-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(97,206,112,0.14);
  border: 1px solid rgba(97,206,112,0.3);
  border-radius: 8px;
  font-size: 11px; color: #fff; font-weight: 500;
}
.im-self-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-100); box-shadow: 0 0 0 4px rgba(97,206,112,0.2); }

/* LIVE: video call mock */
.im-live {
  width: 100%;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
  transform: translateY(10px);
}
.im-live-main {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2A3540 0%, #1A2028 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.im-live-main::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 15px);
}
.im-live-rec {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 7px;
  background: rgba(209,72,72,0.9);
  border-radius: 4px;
  font-size: 9px; font-weight: 700; color: #fff;
  letter-spacing: 0.08em;
}
.im-live-rec .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: im-pulse 1.6s ease-in-out infinite; }
@keyframes im-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.im-live-annot {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 6px;
}
.im-live-annot svg { width: 42px; height: 42px; stroke: var(--green-100); stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 8px rgba(97,206,112,0.5)); }
.im-live-side { display: flex; flex-direction: column; gap: 8px; }
.im-live-tile {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #3A4550, #1F252D);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.im-live-tile.im-you { border-color: var(--green-100); box-shadow: 0 0 0 2px rgba(97,206,112,0.3); }
.im-live-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
}
.im-live-label {
  position: absolute; bottom: 4px; left: 4px; z-index: 1;
  font-size: 9px; color: #fff; font-weight: 600;
  padding: 2px 5px; background: rgba(0,0,0,0.5); border-radius: 3px;
}

/* Body */
.im-body {
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.im-eyebrow {
  font-size: 12px; font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.im-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  color: var(--color-text);
}
.im-body p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.im-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding-top: 8px;
}
.im-link .arr { width: 16px; height: 16px; transition: transform 200ms var(--ease-standard); }
.im-link:hover .arr { transform: translateX(4px); }

@media (max-width: 960px) {
  .inspect-modes { grid-template-columns: 1fr; gap: 16px; }
  .im-graphic { height: 200px; }
}
