/* InventoryCapture staging site (T3647), simplified in T3678 after Mike's "way too busy" feedback.
   Calm rules: one accent colour (--accent, the logo blue darkened for AA contrast), navy for the two dark bands,
   greys for text, no gradients, no icons, no floating or scroll-reveal motion. Mobile-first, no external fonts. */
:root {
  --accent: #2272b4;      /* the only accent: buttons, links, the savings number */
  --navy: #0a1f3a;        /* hero + video bands */
  --ink: #0d1b2e;         /* headings and body text */
  --muted: #4a5868;       /* secondary text */
  --line: #e1e7ee;        /* borders */
  --soft: #f5f7fa;        /* light section background */
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.staging { background: #fff4d6; color: #5c4400; font-size: .85rem; text-align: center; padding: 6px 12px; }
.staging a { color: inherit; }
.body-lg { font-size: 1.1rem; color: var(--muted); }
.fine, .note, .opt { font-size: .85rem; color: var(--muted); font-weight: 400; }
section { padding: clamp(72px, 10vw, 120px) 0; }

/* Header: white, one button */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand img { width: 150px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.top .btn { margin-left: auto; }
@media (min-width: 640px) { .nav { display: flex; } .top .btn { margin-left: 0; } .brand img { width: 170px; } }

/* Buttons: one solid accent style + one quiet outline style */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font: 700 .95rem var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1b5f97; }
.btn-quiet { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-quiet:hover { border-color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Official store badges (Apple + Google artwork, self-hosted) */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 46px; width: auto; }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; padding-top: clamp(56px, 8vw, 96px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .12; filter: saturate(0); }
.hero-in { display: grid; gap: 56px; align-items: center; }
.lede { font-size: 1.2rem; color: #c9d6e4; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-badges-label { width: 100%; font-size: .85rem; color: #c9d6e4; }
@media (min-width: 640px) { .hero-badges-label { width: auto; margin-right: 4px; } }
.hero-phones { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.hero-phones .iphone-main { width: min(42%, 250px); }
.hero-phones .iphone-side { width: min(30%, 190px); margin-top: 48px; }

/* ===== iPhone frame (CSS only): edge, black bezel, Dynamic Island. Click opens the lightbox. ===== */
.iphone { position: relative; align-self: start; padding: calc(1.6% + 7px); border-radius: 15.5% / 7.2%; cursor: zoom-in;
  background: #2a3039; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 20px 40px rgba(5,15,30,.35); }
.iphone-screen { position: relative; aspect-ratio: 1179 / 2556; border-radius: 12.5% / 5.8%; overflow: hidden; background: #111827; box-shadow: 0 0 0 7px #000; }
.iphone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone-screen::after { content: ""; position: absolute; top: 1.6%; left: 50%; transform: translateX(-50%); width: 32%; height: 4.2%; border-radius: 999px; background: #000; z-index: 1; pointer-events: none; }
.iphone:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* ===== Video ===== */
.watch { background: var(--navy); color: #fff; text-align: center; padding-top: 24px; }
.watch h2 { margin: 0 auto 28px; }
.watch-frame { max-width: 960px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.watch-frame video { display: block; width: 100%; height: 100%; }

/* ===== Photos (shared) ===== */
.photo { display: block; margin: 0; border-radius: var(--radius); overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-tall img { aspect-ratio: 4 / 3; }

/* ===== Cost ===== */
.cost-in { display: grid; gap: 48px; align-items: center; }
.compare { display: grid; gap: 16px; margin-top: 32px; }
.compare > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.compare h3 { margin-bottom: .3em; }
.compare p { margin: 0; color: var(--muted); }
.compare-ic { border-color: var(--accent) !important; }
.compare-ic h3 { color: var(--accent); }

/* ===== Calculator ===== */
.calc { background: var(--soft); }
.calc h2, .calc .sub { text-align: center; }
.sub { color: var(--muted); margin-bottom: 40px; }
.calc-box { display: grid; gap: 24px; max-width: 960px; margin: 0 auto; }
.calc-inputs, .calc-out { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.calc-field + .calc-field { margin-top: 22px; }
.calc-field label { font-weight: 600; }
.calc-row { display: grid; grid-template-columns: 1fr 100px; gap: 14px; align-items: center; margin-top: 8px; }
.calc-row input[type=number] { border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 600 1rem var(--font); width: 100%; color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: pointer; }
.calc-out { display: grid; gap: 6px; align-content: center; text-align: center; }
.stat-label { color: var(--muted); font-weight: 600; }
.stat-num { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 800; line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-sub { color: var(--muted); margin-bottom: 18px; }
.note { margin: 10px 0 0; }

/* ===== Warehouse photos row ===== */

/* ===== FAQ ===== */
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; margin: 0; color: var(--muted); }

/* ===== Family strip: one row, two quiet cards ===== */
.family { padding: 0 0 clamp(56px, 8vw, 88px); }
.family-h { font-size: 1rem; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: 0; margin-bottom: 20px; }
.family-row { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.family-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.family-card p { color: var(--muted); margin: 0 0 .6em; font-size: .95rem; }
.family-card a { font-weight: 600; text-decoration: none; font-size: .95rem; }
/* T3697 (Mike): both tiles are the same height and each tile's link sits on its bottom line, so
   "Visit ComponentCRM" lines up with BOMWise's "Get early access". */
.family-card { display: flex; flex-direction: column; }
.family-card a { margin-top: auto; padding-top: .4em; }
.soon { font-size: .75rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ===== Contact ===== */
.final { background: var(--soft); }
.final-in { display: grid; gap: 40px; align-items: start; }
.final-copy .photo { margin-top: 28px; }
.demo-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
label { font-weight: 600; font-size: .92rem; }
.demo-form input, .demo-form textarea { font: inherit; color: var(--ink); width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.demo-form input:focus, .demo-form textarea:focus { border-color: var(--accent); outline: none; }
.demo-form input[aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.interest-note { margin: 0 0 14px; font-weight: 600; color: var(--accent); }
.form-status { min-height: 1.4em; margin: 10px 0 4px; font-weight: 600; }
.form-status.ok { color: #1d7a45; }
.form-status.err { color: #b3261e; }

/* ===== Footer (small) ===== */
.foot { padding: 32px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-in { display: grid; gap: 14px; }
.foot-line { margin: 0; }
.foot a { color: inherit; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--accent); text-decoration: underline; }

/* ===== Wider screens ===== */
@media (min-width: 720px) {
  .compare, .family-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-in { grid-template-columns: 1.05fr .95fr; }
  .cost-in { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .calc-box { grid-template-columns: 1.2fr .8fr; }
  .final-in { grid-template-columns: 1fr 1fr; gap: 72px; }
  .foot-in { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== Lightbox: a phone shown large (Mike 2026-11-03, unchanged behaviour) =====
   No backdrop and no caption; the phone floats over the page, larger than the page phones (~90% window height);
   a click anywhere (on the phone too) or Esc closes it. The X stays for keyboard/screen-reader users, visually hidden. */
.lb-open, .lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: transparent; }
.lb-dialog { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; pointer-events: none; }
.lb-dialog > * { pointer-events: auto; }
.lb-fig { margin: 0; display: grid; justify-items: center; }
.lb-fig figcaption { display: none; }
.iphone-lb { position: relative; padding: calc(1.6% + 7px); border-radius: 15.5% / 7.2%; background: #2a3039; }
.lb-phone { cursor: zoom-out; width: min(90vw, 44vh); box-shadow: 0 24px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); }
.lb-screen { overflow-y: auto; }
.lb-screen img { position: static; height: auto; }
.lb-close { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
