/* English presentation only. Keep the frozen Chinese demo and shared CSS unchanged. */
:root {
  --bg: #f5f7f4;
  --paper-2: #f5f7f4;
  --ink: #153d3b;
  --muted: #506e6b;
  --line: #cdd7d1;
  --line-strong: #a9c0b3;
  --orange: #153d3b;
  --orange-hover: #27534e;
  --orange-soft: #e6f0e8;
  --green: #28634b;
  --green-soft: #e6f0e8;
  --blue: #315f82;
  --blue-soft: #edf3f7;
  --amber: #835b25;
  --amber-soft: #f5f0e5;
  --radius: 4px;
  font-family: "Helvetica Neue", "Avenir Next", Arial, sans-serif;
  font-synthesis: none;
}

.demo-body { background: var(--bg); -webkit-font-smoothing: antialiased; }
.demo-shell { grid-template-columns: 248px minmax(0, 1fr); min-height: 0; height: 100dvh; }
.demo-main { height: 100dvh; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: #a9c0b380; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #916a2b; outline-offset: 3px; }
h1:focus { outline: none; }
.skip-link { position: fixed; z-index: 50; top: -80px; left: 12px; padding: 14px; color: var(--ink); background: white; }
.skip-link:focus { top: 12px; }
.brand-mark { position: relative; width: 31px; height: 31px; border-radius: 4px 4px 10px 4px; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border: 2px solid var(--bg); border-radius: 2px 2px 6px 2px; transform: rotate(-12deg); }
.brand b { font-size: 23px; letter-spacing: -.8px; }
.brand small { color: var(--muted); font-size: 11px; }
.demo-sidebar { padding: 24px 18px; background: var(--bg); }
.sidebar-meta { border-color: var(--line); border-radius: 4px; color: var(--muted); background: #e6f0e8; }
.sidebar-meta strong { color: var(--ink); font-size: 12px; }
.sidebar-meta span { font-size: 12px; }
.step-link { min-height: 44px; color: var(--muted); }
.step-link .txt { font-size: 13px; }
.step-link .num, .sidebar-footer { color: var(--muted); }
.sidebar-footer { padding-top: 16px; font-size: 12px; }
.step-link:hover:not(:disabled), .ghost-btn:hover { color: var(--ink); background: #dce9e2; }
.step-link.is-done { color: var(--muted); }
.step-link.is-active { color: var(--ink); }
.demo-topbar { flex-shrink: 0; flex-wrap: wrap; gap: 12px; padding-block: 12px; }
.case-title { flex-wrap: wrap; }
.case-title span { color: var(--muted); background: var(--bg); }
.demo-topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.demo-topbar-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.demo-topbar-links a:hover { text-decoration-thickness: 2px; }
.data-badge { color: var(--ink); border-color: var(--line-strong); background: #e6f0e8; font-size: 12px; }
.stage { padding: 32px 0; animation: none; }
.stage-head { align-items: start; gap: 24px; }
.stage-head > div:first-child { flex: 1; min-width: 0; }
.stage h1, .stage h2 { text-wrap: balance; }
.stage-kicker { font-size: 13px; }
.stage-note { flex: 0 1 265px; color: var(--muted); font-size: 12px; }
.stage-sub { font-size: 15px; }
.panel, .candidate-card, .alternative-card, .market-card, .pilot-wrap { border-radius: 4px; box-shadow: none; }
.demo-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.image-panel img, .bom-reference img { height: 100%; object-fit: cover; }
.upload-panel { gap: 24px; padding: 26px; }
.upload-panel .eyebrow { color: var(--muted); font-size: 13px; }
.input-chip { color: var(--muted); background: var(--bg); }
.input-chip.active { color: var(--ink); border-color: var(--line-strong); }
.disclosure, .replacement-note { color: var(--muted); background: #eef3ef; border-color: var(--line); font-size: 12px; text-align: left; }
.action-row { flex-wrap: wrap; }
.primary-btn, .secondary-btn, .ghost-btn, .card-action { min-height: 44px; border-radius: 3px; font-size: 14px; }
.primary-btn { padding: 11px 17px; }
.primary-btn:hover { transform: none; }
.secondary-btn:hover, .card-action:hover { border-color: var(--ink); background: #e6f0e8; }
button:disabled { cursor: default; }
.next-hint, .ghost-btn { color: var(--muted); }
.bom-layout { grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr); }
.bom-row { grid-template-columns: 28px minmax(72px, .65fr) minmax(140px, 1.4fr) 78px 90px; gap: 8px; }
.bom-row input { min-width: 0; min-height: 44px; font-size: 13px; }
.bom-row.header, .summary-field small { color: var(--muted); }
.confidence::before { background: var(--amber); }
.source-pill { font-size: 11px; }
.market-card { padding-bottom: 65px; }
.market-card .city { color: var(--muted); }
.market-card .market-state { color: var(--ink); }
.trace-row { grid-template-columns: 140px minmax(0, 1fr) 170px; }
.trace-row em { color: var(--muted); }
.candidate-card { transition: border-color .15s; }
.candidate-card:hover { border-color: var(--line-strong); box-shadow: none; }
.candidate-top { flex-direction: column; gap: 12px; }
.candidate-top small, .price small { color: var(--muted); }
.candidate-top h3 { font-size: 18px; }
.price small { display: block; margin-top: 3px; }
.inquiry-price { font-size: 18px; }
.demo-ribbon, .alt-heading span { color: var(--ink); background: #e6f0e8; font-size: 11px; }
.spec-list li { color: var(--muted); font-size: 12px; }
.spec-list b { color: var(--ink); }
.price-orb small, .baseline-strip span, .baseline-strip strong { color: var(--muted); }
.saving small { display: block; margin-top: 4px; color: var(--muted); }
.trade-points .better { color: var(--green); }
.trade-points .same { color: var(--blue); }
.trade-points .worse { color: var(--amber); }
.supplier-group-title { flex-wrap: wrap; gap: 8px; color: var(--ink); background: var(--bg); }
.supplier-group-title span, .cart-item p, .cart-qty small, .summary-line, .cart-disclaimer, .request-status small { color: var(--muted); }
.cart-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; }
.cart-thumb { width: 56px; }
.cart-item h3 { line-height: 1.4; }
.summary-line { flex-wrap: wrap; }
.summary-line b { color: var(--ink); }
.form-field { min-width: 0; }
.form-field label { color: var(--muted); font-size: 13px; }
.form-field input, .form-field select { min-width: 0; min-height: 44px; font-size: 16px; }
.form-field textarea { min-width: 0; font-size: 16px; }
.request-status { border-color: var(--line-strong); }
.success-card p { color: var(--muted); }
.pilot-wrap { padding: 32px; }
.pilot-tag { color: var(--ink); font-size: 12px; }
.pilot-sub, .pilot-stat span, .pilot-role p, .pilot-objectives span { color: var(--muted); }
.pilot-role strong { color: var(--ink); }
.pilot-numbers { grid-template-columns: 1fr 1fr 1.4fr; }
.pilot-stat, .pilot-role { background: var(--bg); border-radius: 4px; }
.vision-line { font-size: clamp(24px, 2.6vw, 38px); }
.stage-controls { position: static; z-index: 2; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 12px 24px max(12px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: white; }
.stage-controls .ghost-btn { margin-right: auto; }
.stage-controls .step-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.no-script { position: fixed; z-index: 30; inset: auto 16px 90px; padding: 16px; background: white; border: 1px solid var(--line); }
.no-script a { text-decoration: underline; }

@media (max-width: 1100px) {
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
  .demo-sidebar { display: none; }
  .demo-grid, .request-layout, .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .stage-head { display: block; }
  .stage-note { max-width: none; margin-top: 12px; }
  .pilot-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-role { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .demo-topbar { padding: 8px 16px; gap: 0; }
  .demo-topbar-links { gap: 16px; }
  .data-badge { max-width: none; font-size: 11px; }
  .stage { width: calc(100% - 32px); padding: 24px 0; }
  .stage h1 { font-size: 30px; }
  .image-panel, .image-panel img { min-height: 300px; }
  .upload-panel { min-height: 0; padding: 20px; }
  .upload-panel h2, .cheaper-hero h2 { font-size: 28px; }
  .bom-layout { grid-template-columns: minmax(0, 1fr); }
  .bom-row { grid-template-columns: 28px minmax(0, 1fr); }
  .bom-row.header { display: none; }
  .confidence, .source-pill { width: fit-content; }
  .trace-row { grid-template-columns: 105px minmax(0, 1fr); }
  .trace-row em { grid-column: 2; text-align: left; }
  .market-map, .candidate-grid, .alternative-cards, .pilot-numbers { grid-template-columns: minmax(0, 1fr); }
  .pilot-role { grid-column: auto; }
  .baseline-strip { grid-template-columns: minmax(0, 1fr); }
  .cart-item { grid-template-columns: 48px minmax(0, 1fr); }
  .cart-thumb { width: 48px; }
  .cart-qty { grid-column: 2; text-align: left; }
  .cheaper-hero, .pilot-wrap { padding: 22px; }
  .stage-controls { gap: 6px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); }
  .stage-controls .primary-btn { max-width: 100%; font-size: 13px; }
  .stage-controls .secondary-btn, .stage-controls .ghost-btn { font-size: 13px; padding-inline: 10px; }
}

@media (max-width: 400px) {
  .stage-controls .primary-btn { flex: 1 0 100%; }
}

@media print {
  .demo-body { overflow: visible; }
  .demo-shell { display: block; height: auto; }
  .demo-main { height: auto; }
  .demo-sidebar, .stage-controls, .mobile-progress, .demo-topbar-links, .skip-link { display: none; }
  .stage-wrap { overflow: visible; }
  .stage { min-height: 0; }
}
