:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-elevated: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-secondary: #71717a;
  --text-tertiary: #a1a1aa;
  --accent: #2563eb;
  --accent-muted: #dbeafe;
  --teal: #2dd4bf;
  --teal-muted: rgba(45, 212, 191, 0.12);
  --on-accent: #ffffff;
  --success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px rgba(9, 9, 11, 0.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1080px;
  --narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #18181b;
    --surface-elevated: #27272a;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent: #3b82f6;
    --accent-muted: #1e3a8a;
    --teal-muted: rgba(45, 212, 191, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 80px 0 56px;
  text-align: center;
}
.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-muted);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.25rem);
  }
}
.hero .lede {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: default;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-disabled,
.btn-disabled:hover {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  cursor: default;
  filter: none;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-muted);
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshots */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}
@media (max-width: 800px) {
  .shot-row { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}
.phone {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: 20px;
}
.phone-caption {
  text-align: center;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.theme-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 20px;
}
.shot-light { display: none; }
.shot-dark { display: block; }
@media (prefers-color-scheme: light) {
  .shot-dark { display: none; }
  .shot-light { display: block; }
}
@media (prefers-color-scheme: dark) {
  .shot-light { display: none; }
  .shot-dark { display: block; }
}

/* Pro */
.pro-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .pro-panel { grid-template-columns: 1fr; padding: 24px; }
}
.pro-panel h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.pro-panel .price {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.pro-panel .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.pro-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.pro-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.pro-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.coming-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-muted);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}

/* Legal / doc pages */
.doc-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}
.doc-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.doc-meta strong { color: var(--text); font-weight: 600; }
.doc {
  padding: 40px 0 72px;
}
.doc h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}
.doc p, .doc li {
  color: var(--text-secondary);
}
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* Interactive app demo */
.app-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.demo-device {
  width: min(100%, 320px);
  margin-inline: auto;
}
.demo-bezel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-clip {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 393 / 769;
  border-radius: 26px 26px 0 0;
  background: var(--bg);
  position: relative;
}
.demo-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Full phone shot is 393×852; object-position top crops baked-in tab bar. */
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.demo-clip img.is-active {
  opacity: 1;
}
/* App default is dark; site demo matches unless visitor prefers light. */
.demo-clip img.demo-light { display: none !important; }
.demo-clip img.demo-dark { display: block; }
@media (prefers-color-scheme: light) {
  .demo-clip img.demo-dark { display: none !important; }
  .demo-clip img.demo-light { display: block !important; }
}
@media (prefers-color-scheme: dark) {
  .demo-clip img.demo-light { display: none !important; }
  .demo-clip img.demo-dark { display: block !important; }
}
.demo-tabs {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 8px 4px 18px;
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  border-top: 1px solid var(--border);
  position: relative;
  border-radius: 0 0 26px 26px;
}
.demo-tabs button {
  flex: 1;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  padding: 4px 2px 0;
  -webkit-tap-highlight-color: transparent;
}
.demo-tabs button svg {
  width: 24px;
  height: 24px;
  display: block;
}
.demo-tabs button[aria-selected="true"] {
  color: var(--accent);
}
.demo-tabs .home-pip {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 3px;
  background: var(--text-primary);
  opacity: 0.18;
  pointer-events: none;
}
.demo-hint {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0;
}

/* Badge logo glow: colour follows the palette highlight (--glow-rgb) */
.brand img{width:40px;height:40px;border-radius:8px;
  box-shadow:0 0 0 0 rgba(var(--glow-rgb),.5),0 0 14px rgba(var(--glow-rgb),.35);
  animation:bench-logo-pulse 2.6s ease-in-out infinite}
.brand:hover img,.brand:focus-visible img{box-shadow:0 0 0 3px rgba(var(--glow-rgb),.25),0 0 20px rgba(var(--glow-rgb),.55)}
@keyframes bench-logo-pulse{
  0%,100%{box-shadow:0 0 0 0 rgba(var(--glow-rgb),.45),0 0 10px rgba(var(--glow-rgb),.3)}
  50%{box-shadow:0 0 0 6px rgba(var(--glow-rgb),0),0 0 20px rgba(var(--glow-rgb),.55)}
}
@media (prefers-reduced-motion:reduce){.brand img{animation:none}}
.hero-icon{width:168px;height:168px;box-shadow:none;border:0;filter:drop-shadow(0 0 6px rgba(var(--glow-rgb),.4)) drop-shadow(0 0 12px rgba(var(--glow-rgb),.22))}
@media (max-width:600px){.hero-icon{width:144px;height:144px}}

/* Homepage hero: full IEB logo with wording, uncropped and readable; same blue glow */
.hero-icon.hero-full-logo{width:280px;height:auto;max-width:72vw;aspect-ratio:auto;object-fit:contain;border-radius:28px}
@media (max-width:600px){.hero-icon.hero-full-logo{width:240px;height:auto}}

/* ---- Bench app site additions (shared by Fieldscan, Pipefit, Truesolve) ---- */
:root{--glow-rgb:161,161,170}
.btn{cursor:pointer}
.brand .brand-mark{width:40px;height:40px;flex-shrink:0;border-radius:10px;}
.brand .brand-badge{box-shadow:none;animation:none;filter:drop-shadow(0 0 8px rgba(var(--glow-rgb),.35))}
.hero-badge{object-fit:contain}
.brand svg.brand-mark{box-shadow:0 0 14px rgba(var(--glow-rgb),.35);animation:bench-logo-pulse 2.6s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.brand .brand-mark{animation:none}}
.btn-primary,.hero-actions .btn:not(.btn-secondary){background:var(--accent);color:var(--on-accent)}
.status-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;border:1px solid color-mix(in srgb,var(--teal) 45%,var(--border));background:var(--teal-muted);color:var(--text);font-size:13px;font-weight:600;margin:0 0 18px}
.hero-mark{width:168px;height:168px;margin:0 auto 18px;display:block;filter:drop-shadow(0 0 6px rgba(var(--glow-rgb),.4)) drop-shadow(0 0 14px rgba(var(--glow-rgb),.22))}
@media (max-width:600px){.hero-mark{width:144px;height:144px}}
.wordmark{margin:0 0 22px;font-size:15px;font-weight:600;letter-spacing:.28em;text-transform:uppercase;color:var(--text-secondary)}
.card .tag{display:inline-block;margin-top:12px;padding:2px 9px;border-radius:999px;background:var(--teal-muted);color:var(--text);font-size:11.5px;font-weight:600;letter-spacing:.02em}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
@media (max-width:800px){.grid-2{grid-template-columns:1fr}}
.tier{display:flex;flex-direction:column}
.tier h3{font-size:1.25rem;margin:0 0 4px}
.tier .tier-sub{color:var(--text-secondary);font-size:.92rem;margin:0 0 6px}
.tier.tier-hi{border-color:color-mix(in srgb,var(--teal) 55%,var(--border))}
.note{color:var(--text-tertiary);font-size:13px;text-align:center;margin:20px auto 0;max-width:640px}
.section-head .eyebrow{margin:0 auto 10px}
.ipad-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.ipad-grid figure{margin:0;flex:0 0 calc((100% - 48px) / 4);max-width:calc((100% - 48px) / 4);text-align:center}
@media (max-width:900px){.ipad-grid figure{flex-basis:calc((100% - 16px) / 2);max-width:calc((100% - 16px) / 2)}}
.ipad-grid img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--border)}
.ipad-grid figcaption{font-size:13px;color:var(--text-secondary);margin-top:8px}
.shot-switch{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.shot-switch button{appearance:none;font:inherit;font-size:13px;font-weight:600;padding:7px 14px;border-radius:999px;border:1px solid var(--border-strong);background:var(--surface-elevated);color:var(--text-secondary);cursor:pointer}
.shot-switch button[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.phone-demo{width:min(100%,300px);margin-inline:auto;background:var(--surface-elevated);border:1px solid var(--border-strong);border-radius:38px;padding:10px;box-shadow:var(--shadow)}
.phone-demo .clip{position:relative;aspect-ratio:603/1311;border-radius:29px;overflow:hidden;background:#000}
.phone-demo .clip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .18s ease}
.phone-demo .clip img.is-active{opacity:1}
.phone-demo .clip img.l{display:none}
@media (prefers-color-scheme: light){.phone-demo .clip img.d{display:none}.phone-demo .clip img.l{display:block}}
.concept-art{display:block;width:min(100%,520px);margin:0 auto;height:auto;border-radius:20px;border:1px solid var(--border);background:var(--surface-elevated);box-shadow:var(--shadow)}
.checklist{list-style:none;padding:0;margin:0 auto;max-width:640px}
.checklist li{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border);color:var(--text-secondary)}
.checklist li:last-child{border-bottom:0}
.checklist li::before{content:"";width:8px;height:8px;margin-top:9px;border-radius:50%;background:var(--teal);flex-shrink:0}
.status-panel{text-align:left}
.status-panel .btn{margin-top:18px}
.pro-panel .price-tbd{font-size:1.15rem;font-weight:600;margin:0 0 8px;color:var(--text)}
.site-footer .footer-links{flex-wrap:wrap}
