*, *::before, *::after { box-sizing: border-box; }
/* Later display:flex/grid rules must not un-hide [hidden] elements (demo banner, demo fill, etc.). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.has-demo-banner { padding-top: var(--banner-h); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--w-display); letter-spacing: var(--ls-display); line-height: 1.1; margin: 0 0 0.4em; color: var(--text); }
h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); font-weight: 560; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.lede { font-size: var(--fs-lede); color: var(--muted); max-width: 34em; line-height: 1.45; }
.wrap { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { top: 12px; }

.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--banner-bg); color: var(--banner-fg);
  font-size: 12px; letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule);
}
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(16px);
}
body.has-demo-banner .site-header { top: var(--banner-h); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 20px;
}
.brand img { height: 28px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--muted); font-size: 13px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.cart-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--rule); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
}
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--text); color: var(--bg);
  font-size: 10px; font-weight: 600;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }
section[id] { scroll-margin-top: calc(var(--banner-h) + var(--header-h) + 20px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.icon { display: block; flex-shrink: 0; }
.feature-icon {
  width: 36px; height: 36px; margin-bottom: 14px; color: var(--text);
  display: grid; place-items: center;
}

/* Apple Pay */
.apple-pay-mount { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.apple-pay-btn {
  appearance: none; background: #000; color: #fff; border: 1px solid #000;
  border-radius: var(--r-pay);
  height: 52px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.apple-pay-btn:hover { opacity: 0.88; }
.apple-pay-btn:active { transform: scale(0.987); }
.apple-pay-btn-hero { height: 56px; }
.apple-pay-btn-bar { height: 44px; font-size: 15px; min-width: 200px; width: auto; padding: 0 22px; }
.ap-mark { display: inline-flex; align-items: center; gap: 0; color: #fff; line-height: 1; }
.ap-mark-svg { display: block; height: 22px; width: auto; }
.apple-pay-btn-bar .ap-mark-svg { height: 18px; }
.ap-logo { display: block; width: 17px; height: 17px; }
.ap-pay-word {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 560; font-size: 1.32em; letter-spacing: -0.03em;
}
[data-hidden-stripe-warning] { display: none !important; }
.ap-tagline { margin: 2px 0 0; text-align: center; font-weight: 500; font-size: 13px; color: var(--text); letter-spacing: -0.01em; }
.ap-hint { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
.pay-card-instead {
  appearance: none; background: none; border: 0; color: var(--muted);
  cursor: pointer; font-size: 13px; text-decoration: underline;
  text-underline-offset: 3px; padding: 4px; align-self: center;
}
.pay-card-instead:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-sm); padding: 0.8rem 1.15rem;
  font-weight: 550; cursor: pointer; font-size: 14px; text-decoration: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { opacity: 0.86; color: var(--bg); }
.btn-full { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; }

.section { padding: var(--sec-y) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 36px; max-width: 36em; }
.section-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}

.feature-grid, .hub-grid, .schematic-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  list-style: none; margin: 0 0 1.2rem; padding: 0;
}
.feature, .hub-card, .schematic-card {
  padding: 0;
  background: transparent;
  border: 0;
}
.hub-card, .schematic-card, .feature { min-width: 0; }
.hub-card h3, .schematic-card strong, .feature h3 { margin: 0 0 8px; display: block; }
.hub-card p, .schematic-card span, .feature p { margin: 0; color: var(--muted); font-size: 14px; }
.fine-print { color: var(--muted); font-size: 13px; max-width: 46em; margin: 0; }
.maps-panel .section-head { margin-bottom: 0; }

.models-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-card { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.product-visual { background: var(--well); border-radius: var(--r); overflow: hidden; }
.product-visual img { width: 100%; height: auto; }
.price { font-family: var(--display); font-size: 32px; font-weight: var(--w-display); letter-spacing: -0.03em; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 0; border-top: 1px solid var(--rule); font-weight: 400; vertical-align: top; }
.spec-table th { color: var(--muted); width: 38%; font-weight: 400; }
.qty-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.qty-btn {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--rule);
  background: transparent; color: var(--text); cursor: pointer; font-size: 16px;
}
.qty-input {
  width: 44px; height: 30px; text-align: center; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--bg); color: var(--text);
}
.product-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.add-link { text-align: center; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }

.faq-list { display: grid; gap: 0; max-width: 720px; }
.faq-item { padding: 18px 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 56px; font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { color: var(--text); font-weight: 560; margin-bottom: 6px; font-size: 14px; }
.footer-col h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: var(--muted); margin: 0 0 8px; }
.footer-col a:hover { color: var(--text); }
.footer-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }

/* Cart */
.cart-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 70; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cart-backdrop.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--bg); z-index: 80; transform: translateX(100%);
  transition: transform 0.28s ease; display: flex; flex-direction: column;
  border-left: 1px solid var(--rule);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head, .cart-summary { padding: 18px 20px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.cart-summary { border-bottom: 0; border-top: 1px solid var(--rule); display: block; }
.cart-items { padding: 12px 20px; overflow: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.cart-empty { color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; }
.cart-line-img { width: 72px; height: 36px; object-fit: contain; }
.cart-line-name { font-weight: 560; font-size: 14px; }
.cart-line-price, .cart-line-sum { color: var(--muted); font-size: 13px; }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; margin: 8px 0 14px; color: var(--text); }
body.drawer-open, body.ap-open { overflow: hidden; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: 0.2s ease; z-index: 90; font-size: 13px;
}
body.has-buy-bar .toast { bottom: 108px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; padding: 48px 0 80px; }
.panel { border: 1px solid var(--rule); border-radius: var(--r); padding: 22px; background: var(--bg); }
.panel h2 { font-size: 18px; }
.or-split { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 8px 0 18px; }
.or-split::before, .or-split::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select {
  height: 42px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--bg); color: var(--text); padding: 0 12px; font-size: 15px;
}
.field.error input { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.form-error { color: var(--danger); font-size: 13px; }
.demo-card { border: 1px solid var(--rule); border-radius: 8px; padding: 14px; margin: 8px 0 16px; color: var(--muted); font-size: 13px; }
.demo-card strong { color: var(--text); letter-spacing: 0.12em; }
.summary-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.summary-line.muted, .summary-line.total { grid-template-columns: 1fr auto; }
.summary-line.total { border-bottom: 0; font-size: 16px; font-weight: 600; padding-top: 14px; color: var(--text); }
.summary-line img { object-fit: contain; }
.summary-qty, .summary-price { color: var(--muted); font-size: 13px; }
.legal-page { padding: 56px 0 80px; max-width: 680px; }
.legal-page p, .legal-page li { color: var(--muted); }

.confirm-wrap { padding: 72px 0 80px; }
.confirm-kicker { font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 11px; color: var(--muted); }
.confirm-id { font-family: var(--mono); color: var(--muted); margin: 8px 0 28px; font-size: 13px; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.confirm-note { color: var(--muted); font-size: 13px; }

/* Apple Pay sheet — native, quiet */
.ap-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; opacity: 0; transition: opacity 0.25s ease; }
.ap-overlay.in { opacity: 1; }
.ap-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); }
.ap-phone { position: relative; z-index: 1; width: min(390px, 100%); transform: translateY(20px); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
.ap-overlay.in .ap-phone { transform: translateY(0); }
.ap-side-btn {
  position: absolute; right: -6px; top: 200px; width: 6px; height: 68px; border: 0; padding: 0;
  background: linear-gradient(#d8d8dc, #8e8e93); border-radius: 1px 3px 3px 1px; cursor: pointer; z-index: 3;
}
.ap-phone.clicked .ap-side-btn { transform: translateX(1px); filter: brightness(0.85); }
.ap-sheet {
  position: relative; background: #f2f2f7; color: #1d1d1f;
  border-radius: 20px 20px 0 0; overflow: hidden;
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
}
.ap-handle { width: 36px; height: 5px; border-radius: 99px; background: #c7c7cc; margin: 8px auto 0; }
.ap-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 16px 8px; border-bottom: 0.5px solid #d1d1d6; }
.ap-wordmark { font-size: 1.15rem; margin: 0; display: flex; align-items: center; }
.ap-wordmark .ap-mark { color: #1d1d1f; }
.ap-wordmark .ap-mark-svg { height: 26px; }
.ap-cancel { background: none; border: 0; color: #007aff; font-size: 16px; cursor: pointer; padding: 8px; }
.ap-body { padding: 10px 20px 8px; }
.ap-demo-pill { margin: 0 0 10px; text-align: center; font-size: 11px; color: #8e8e93; }
.ap-card-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ap-card-art { width: 50px; height: 32px; border-radius: 5px; background: linear-gradient(180deg, #3a3a3c, #1c1c1e); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; flex-shrink: 0; }
.ap-card-chip { width: 9px; height: 7px; border-radius: 1.5px; background: #c8b07a; }
.ap-card-name { font-size: 5px; letter-spacing: 0.08em; }
.ap-card-label { font-weight: 600; font-size: 15px; }
.ap-card-sub { color: #8e8e93; font-size: 12px; }
.ap-block { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 9px 0; border-top: 0.5px solid #d1d1d6; font-size: 15px; }
.ap-block-label { color: #8e8e93; }
.ap-block-value { font-weight: 500; }
.ap-lines { border-top: 0.5px solid #d1d1d6; padding-top: 6px; margin-top: 2px; }
.ap-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.ap-total { font-weight: 650; font-size: 17px; padding-top: 8px; }
.ap-pay-area { background: #fff; padding: 12px 20px 26px; border-top: 0.5px solid #d1d1d6; text-align: center; }
.ap-pay-instr { margin: 0 0 10px; color: #8e8e93; font-size: 13px; }
.ap-double-cta { width: 100%; height: 50px; border: 0; border-radius: 12px; background: #000; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.ap-double-dots { display: none; }
.ap-success { padding: 36px 20px 48px; text-align: center; min-height: 260px; }
.ap-face { width: 120px; height: 120px; margin: 0 auto 14px; }
.ap-face-svg { width: 120px; height: 120px; }
.ap-face-bracket { fill: none; stroke: #1d1d1f; stroke-width: 5; }
.ap-face-ring { fill: none; stroke: #1d1d1f; stroke-width: 3; opacity: 0; transform-origin: 60px 60px; }
.ap-face-check { fill: none; stroke: #34c759; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.ap-face.scanning .ap-face-bracket { animation: apscan 0.9s ease-in-out infinite; }
.ap-face.ok .ap-face-bracket { stroke: #34c759; }
.ap-face.ok .ap-face-check { stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease; }
.ap-success-title { font-size: 20px; font-weight: 650; margin: 0 0 4px; }
.ap-success-amount { color: #8e8e93; margin: 0; }
@keyframes apscan { 0%,100%{opacity:1} 50%{opacity:.25} }

@media (max-width: 900px) {
  .hero-grid, .models-grid, .feature-grid, .hub-grid, .schematic-grid, .steps, .checkout-grid, .confirm-grid, .field-row, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout-grid, .models-grid, .confirm-grid, .steps, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .hub-grid, .schematic-grid { grid-template-columns: 1fr; }
}


:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #1d1d1f;
  --link-hover: #424245;
  --rule: #d2d2d7;
  --well: #f5f5f7;
  --header-bg: rgba(255,255,255,0.86);
  --banner-bg: #f5f5f7;
  --banner-fg: #6e6e73;
  --good: #248a3d;
  --danger: #b00020;
  --font: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --display: "Inter", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --mono: "Inter", ui-monospace, monospace;
  --fs-body: 16px;
  --fs-lede: 19px;
  --fs-1: clamp(48px, 7vw, 80px);
  --fs-2: clamp(28px, 3.4vw, 40px);
  --fs-3: 19px;
  --w-display: 600;
  --ls-display: -0.045em;
  --max: 1080px;
  --gutter: 28px;
  --gap: 32px;
  --sec-y: 88px;
  --header-h: 56px;
  --banner-h: 36px;
  --r: 18px;
  --r-sm: 10px;
  --r-pay: 980px;
}
body.theme-studio.has-buy-bar { padding-bottom: 84px; }
body.theme-studio.has-demo-banner.has-buy-bar { padding-top: var(--banner-h); }
.hero { padding: 56px 0 24px; }
.hero-intro { max-width: 16em; margin: 0 auto 8px; text-align: center; }
.hero-intro .lede { margin: 0 auto 0; }
.hero-intro h1 { margin-bottom: 16px; }
.hero-stage { display: flex; justify-content: center; padding: 8px 4vw 0; }
.hero-stage img { width: min(980px, 100%); height: auto; }
.hero-caption {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  color: var(--muted); font-size: 13px; padding: 8px 0 48px;
}
.rule-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--rule); }
.buy-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(16px);
}
.buy-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.buy-bar-id { display: flex; align-items: center; gap: 12px; }
.buy-bar-id img { width: 96px; height: 36px; object-fit: contain; }
.buy-bar-name { font-size: 13px; font-weight: 550; }
.buy-bar-price { font-size: 13px; color: var(--muted); }
.buy-bar .apple-pay-mount { flex-direction: row; align-items: center; gap: 14px; }
.buy-bar .ap-tagline, .buy-bar .ap-hint { display: none; }
.buy-bar .pay-card-instead { margin: 0; }
.product-visual { background: #f5f5f7; }
.section-kicker { letter-spacing: 0.08em; text-transform: none; font-family: var(--font); font-size: 12px; }

/* Shared polish */
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.product-visual { padding: 22px 10px 18px; }
.product-visual img { width: 100%; height: auto; }
.summary-name { font-weight: 560; font-size: 14px; }
button { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hero-intro { max-width: 920px; margin: 0 auto 4px; text-align: center; }
.hero-intro h1 { margin-bottom: 18px; }
.hero-intro .lede { margin: 0 auto; max-width: 28em; }
.buy-bar {
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
body.buy-bar-visible .buy-bar { transform: none; pointer-events: auto; }
body.theme-studio.has-buy-bar { padding-bottom: 0; }
body.theme-studio.buy-bar-visible { padding-bottom: 84px; }
.apple-pay-btn { letter-spacing: -0.02em; }

/* Review fixes */
.hero .ap-hint { display: none; }
.hero-cta .apple-pay-mount { max-width: 320px; }
.theme-studio .section-kicker,
.theme-graphite .section-kicker { text-transform: uppercase; letter-spacing: 0.12em; }
.theme-studio .cart-btn { border-color: transparent; }
.theme-studio .cart-btn:hover { border-color: var(--rule); }
.theme-studio .eyebrow .dot { background: var(--text); width: 4px; height: 4px; }
#faq-teaser a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.summary-name { font-size: 13px; line-height: 1.3; }
.summary-line img { width: 80px; height: 32px; }

/* ============================================================
   Final site additions — same tokens, typography, and palette
   ============================================================ */
h1 { text-wrap: unset; }
h2 { text-wrap: balance; }
.page-home h2 { text-wrap: unset; }
body:not(.page-home) h1 { font-size: clamp(36px, 5vw, 56px); }

.header-actions { display: flex; align-items: center; gap: 4px; }
.menu-btn {
  display: none;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid transparent; color: var(--text);
  place-items: center; cursor: pointer; padding: 0;
}
.menu-btn:hover { border-color: var(--rule); }
.menu-btn .menu-lines {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 16px; height: 16px;
}
.menu-btn .menu-lines span {
  display: block; height: 1.25px; background: currentColor; border-radius: 1px;
}
.nav-backdrop {
  display: none;
}

.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Privacy / promise row */
.promise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap);
}
.promise-card h3 { margin-bottom: 8px; }
.promise-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Manuals */
.manuals {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}
.manuals h3 { margin-bottom: 10px; }
.manual-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.manual-list li { color: var(--muted); font-size: 15px; padding: 0; }
.manual-list strong { color: var(--text); font-weight: 560; display: block; margin-bottom: 2px; }

/* Maps */
.maps-points {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 28px 0 28px;
}
.maps-point h3 { margin: 0 0 8px; font-size: 17px; }
.maps-point p { margin: 0; color: var(--muted); font-size: 14px; }

.maps-stage {
  background: var(--well);
  border-radius: var(--r);
  padding: 20px;
}
.maps-chrome {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.maps-toolbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
}
.maps-search {
  flex: 1; position: relative;
}
.maps-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.maps-search input {
  width: 100%; height: 42px; border: 1px solid var(--rule); border-radius: 10px;
  padding: 0 12px 0 38px; font-size: 15px; background: var(--well); color: var(--text);
}
.maps-search input:focus { outline: 2px solid var(--text); outline-offset: 1px; background: #fff; }
.maps-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.maps-status {
  flex-shrink: 0; font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.maps-status strong { color: var(--text); font-weight: 560; letter-spacing: 0; text-transform: none; font-size: 13px; }
.maps-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  z-index: 5; max-height: 240px; overflow: auto;
  margin: 0; padding: 6px; list-style: none;
}
.maps-suggest[hidden] { display: none; }
.maps-suggest button {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; border-radius: 8px;
  padding: 9px 10px; font-size: 14px; color: var(--text); cursor: pointer;
}
.maps-suggest button:hover,
.maps-suggest button[aria-selected="true"] { background: var(--well); }
.maps-suggest .city-sub { color: var(--muted); font-size: 12px; margin-left: 8px; }

.maps-body {
  display: grid; grid-template-columns: 1.15fr 0.95fr; min-height: 300px;
}
.maps-us, .maps-street {
  position: relative; min-height: 300px;
}
.maps-us { background: #fafafa; border-right: 1px solid var(--rule); padding: 36px 18px 20px; }
.maps-us img, .maps-street img { width: 100%; height: 100%; object-fit: contain; }
.maps-us .pane-label,
.maps-street .pane-label {
  position: absolute; left: 14px; top: 14px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,0.9);
  padding: 4px 8px; border-radius: 6px;
}
.maps-street { background: #f5f5f7; }
.maps-street-frame { width: 100%; height: 100%; display: block; }
.maps-street .pane-label { left: auto; right: 14px; }

.maps-hubs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--rule);
  background: #fff;
}
.hub-chip {
  appearance: none; border: 1px solid var(--rule); background: #fff; color: var(--text);
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.hub-chip:hover { border-color: var(--text); }
.hub-chip.is-on { background: var(--text); color: #fff; border-color: var(--text); }

.maps-caption {
  color: var(--muted); font-size: 13px; margin: 14px 4px 0;
  max-width: 58em; line-height: 1.5;
}

/* Comparison */
.compare-wrap { margin-top: 56px; }
.compare-wrap h3 { margin-bottom: 6px; }
.compare-wrap .lede { margin-bottom: 20px; }
.compare {
  width: 100%; border-collapse: collapse; font-size: 15px;
}
.compare th, .compare td {
  text-align: left; padding: 13px 16px 13px 0;
  border-top: 1px solid var(--rule); vertical-align: top; font-weight: 400;
}
.compare thead th { border-top: 0; font-size: 13px; font-weight: 560; padding-top: 0; }
.compare tbody th { color: var(--muted); width: 28%; }
.compare .price-cell { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }

.req-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 36px; padding: 28px 0 0; border-top: 1px solid var(--rule);
}
.req-grid h3 { font-size: 16px; margin-bottom: 8px; }
.req-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + var(--banner-h, 0px));
    left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(1.2) blur(16px);
    border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 0 16px; z-index: 50;
  }
  body:not(.has-demo-banner) .nav { top: var(--header-h); }
  .nav.is-open { display: flex; }
  .nav a {
    display: block; padding: 12px var(--gutter);
    font-size: 16px; color: var(--text);
  }
  .nav-backdrop.is-on {
    display: block; position: fixed; inset: 0;
    top: calc(var(--header-h) + var(--banner-h, 0px));
    background: rgba(0,0,0,0.18); z-index: 35;
  }
  body:not(.has-demo-banner) .nav-backdrop.is-on { top: var(--header-h); }
  .feature-grid.cols-3,
  .promise-grid,
  .maps-points,
  .req-grid,
  .manual-list { grid-template-columns: 1fr 1fr; }
  .maps-body { grid-template-columns: 1fr; }
  .maps-us { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 280px; }
  .maps-street { min-height: 320px; }
  .maps-toolbar { flex-wrap: wrap; }
  .maps-status { width: 100%; }
}
@media (max-width: 640px) {
  .buy-bar-inner { min-height: 68px; gap: 12px; }
  .buy-bar-id img { width: 72px; height: 28px; }
  .buy-bar .apple-pay-mount { flex: 1; min-width: 0; }
  .buy-bar .apple-pay-btn { height: 48px; }
  .hero-caption { gap: 8px; font-size: 12px; padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .feature-grid.cols-3,
  .promise-grid,
  .maps-points,
  .req-grid,
  .manual-list { grid-template-columns: 1fr; }
  .buy-bar-id { display: none; }
  .buy-bar-actions { width: 100%; }
  .buy-bar-inner { padding-top: 10px; padding-bottom: 10px; }
  .maps-stage { padding: 12px; }
}

.legal-page h2 { font-size: 22px; letter-spacing: -0.03em; margin: 1.5em 0 0.5em; }
.legal-page h1 { margin-bottom: 0.35em; }

/* Sticky chrome: banner + header travel together, no overlap */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
}
.demo-banner {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 7px 16px;
  z-index: 2;
}
body.has-demo-banner { padding-top: 0; }
.site-header {
  position: relative;
  top: auto;
}
body.has-demo-banner .site-header { top: auto; }
section[id] { scroll-margin-top: 7.5rem; }
@media (max-width: 900px) {
  .site-header { position: relative; }
  .nav {
    top: auto;
    position: absolute;
    left: 0; right: 0;
    /* sits below the header row, still inside sticky chrome */
  }
  body:not(.has-demo-banner) .nav { top: auto; }
  .nav.is-open { display: flex; }
  .nav-backdrop.is-on {
    top: 0;
  }
}

.site-header { z-index: 2; }
@media (max-width: 900px) {
  .nav.is-open {
    top: 100%;
  }
}

@media (max-width: 900px) { .nav.is-open { background: #fff; } }

/* Single-unit product photos — modest pair, same scale, white-on-white */
.hero-stage { padding: 28px 4vw 8px; }
.hero-stage .photo-pair,
.product-visual.photo .photo-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.hero-stage .photo-pair {
  width: min(640px, 92vw);
  margin: 0 auto;
}
.hero-stage .photo-pair picture,
.product-visual.photo .photo-pair picture {
  min-width: 0;
  margin: 0;
}
/* 4:3 and 16:9 share a height when flexed 3:4 */
.hero-stage .photo-pair picture:first-child,
.product-visual.photo .photo-pair picture:first-child { flex: 3 1 0; }
.hero-stage .photo-pair picture:last-child,
.product-visual.photo .photo-pair picture:last-child { flex: 4 1 0; }
.hero-stage img,
.hero-stage picture img,
.product-visual.photo img,
.product-visual.photo picture img {
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
}
.hero-caption { padding-top: 4px; }
.product-single {
  display: grid;
  grid-template-columns: minmax(280px, 560px) 1fr;
  gap: 48px 40px;
  align-items: start;
}
.product-visual.photo {
  background: transparent;
  padding: 8px 0 0;
  border-radius: 0;
  overflow: visible;
}
.buy-bar-id img {
  width: 56px;
  height: 42px;
  object-fit: contain;
  object-position: center;
}
.summary-line img {
  width: 64px;
  height: 48px;
  object-fit: contain;
}
.maps-static {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 8px;
  max-width: 560px;
  margin: 8px auto 0;
  background: var(--well);
  border-radius: var(--r);
  padding: 16px 14px;
  align-items: center;
}
.maps-static figure { margin: 0; }
.maps-static img,
.maps-static svg { width: 100%; height: auto; display: block; }
.maps-static .pane-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 2px;
}
.maps-caption { text-align: center; margin-left: auto; margin-right: auto; }
.maps-points { margin-bottom: 20px; }
@media (max-width: 900px) {
  .product-single { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .product-visual.photo .photo-pair { width: min(520px, 100%); margin: 0; }
  .maps-static { max-width: 420px; }
}
@media (max-width: 640px) {
  .buy-bar-id img { width: 48px; height: 36px; }
  .maps-static { grid-template-columns: 1fr; max-width: 280px; padding: 12px; }
}
@media (max-width: 560px) {
  .buy-bar-id { display: none; }
  .buy-bar-actions { width: 100%; }
  .buy-bar .pay-card-instead { white-space: nowrap; }
}


/* ============================================================
   Mobile comfort — iPhone-sized layouts only. Desktop is unchanged.
   ============================================================ */
.faq-item summary {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 560;
  letter-spacing: -0.02em;
  font-family: var(--display);
  color: var(--text);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.card-fields { margin-top: 10px; }
.card-field-row { grid-template-columns: 1fr 1fr; }

@media (min-width: 901px) {
  /* Full FAQ page stays fully open on desktop, same as the old article list. */
  .faq-item summary { cursor: default; pointer-events: none; }
}

@media (max-width: 900px) {
  .menu-btn, .cart-btn {
    width: 44px;
    height: 44px;
  }
  .brand {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .qty-input {
    width: 52px;
    height: 44px;
    font-size: 16px;
  }
  .pay-card-instead,
  .link-btn,
  .cart-drawer-head .link-btn {
    min-height: 44px;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Expand hit area without changing the caption/FAQ-link layout. */
  .hero-caption a,
  #faq-teaser a {
    position: relative;
  }
  .hero-caption a::after,
  #faq-teaser a::after {
    content: "";
    position: absolute;
    inset: -13px -10px;
  }
  .footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
  }
  .field input,
  .field select,
  .card-fields input {
    height: 48px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .demo-card, .card-fields, .field, .field-row { max-width: 100%; min-width: 0; }
  .card-field-row { grid-template-columns: 1fr 1fr; }
  .ap-cancel {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .ap-pay-area {
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }
  .cart-drawer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.theme-studio.buy-bar-visible {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .buy-bar-inner {
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .buy-bar .apple-pay-mount {
    max-width: none;
  }
  .buy-bar .apple-pay-btn-bar {
    min-width: 0;
    flex: 1;
  }
  .faq-item summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    margin: 0;
  }
  .faq-item summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    flex-shrink: 0;
    margin-top: -3px;
    transition: transform 0.15s ease;
  }
  .faq-item[open] summary::after {
    transform: rotate(225deg);
    margin-top: 3px;
  }
  .faq-item[open] summary { margin-bottom: 6px; }
  .legal-page { padding-bottom: 40px; }
}

@media (max-width: 640px) {
  :root, .theme-studio, body {
    --gutter: 22px;
  }
}

.nowrap { white-space: nowrap; }
.mbr { display: none; }

@media (max-width: 900px) {
  .mbr { display: block; }
  .site-chrome .site-header,
  .site-header { background: #fff; }
  body.drawer-open .toast { display: none; }
  body.theme-studio.buy-bar-visible .site-footer {
    padding-bottom: calc(32px + 84px + env(safe-area-inset-bottom, 0px));
  }
  /* City full width; state and ZIP share a row. Card expiry + CVC stay a pair. */
  .page-checkout .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .page-checkout .field-row:not(.card-field-row) > .field:first-child {
    grid-column: 1 / -1;
  }
  .page-checkout .card-field-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .panel, .field, .field-row, .checkout-grid, .confirm-grid { min-width: 0; }
  .page-checkout main.wrap,
  .page-confirm main.wrap {
    max-width: 100%;
    overflow-x: hidden;
  }
}


/* Live Stripe mounts — same studio tokens, official Apple Pay button in the iframe */
.express-checkout { width: 100%; min-height: 52px; }
.apple-pay-mount .express-checkout { margin: 0; }
/* Keep the ECE in layout while Stripe detects Apple Pay. display:none
   during that window makes the official button inert on iPhone. */
.express-checkout.is-pending {
  min-height: 52px;
  opacity: 0;
  pointer-events: none;
}
.apple-pay-mount:not(.apple-pay-ready) .ap-tagline,
.apple-pay-mount:not(.apple-pay-ready) .ap-hint,
.apple-pay-mount.apple-pay-unavailable .ap-tagline,
.apple-pay-mount.apple-pay-unavailable .ap-hint {
  display: none;
}
.buy-bar .express-checkout {
  flex: 1 1 auto;
  min-width: 160px;
}

@media (max-width: 900px) {
  .cart-drawer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.theme-studio.buy-bar-visible {
    padding-bottom: calc(156px + env(safe-area-inset-bottom, 0px));
  }
  .buy-bar-inner {
    padding-right: 12px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  .page-checkout main.wrap,
  .page-checkout .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
.payment-element { margin: 8px 0 16px; min-height: 80px; }
.pay-error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }

.footer-disclaimer { margin: 36px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 820px; }
.footer-disclaimer + .footer-note { margin-top: 18px; }
