/* ENGSHP-1289: the landing page redesign (preview), styles for / only. The rest of the site keeps
   styles.css. Archivo is self-hosted (the app's own file, ENGSHP-1088), so no page asks a third
   party for a font; the label face falls back to the system's monospace.
   Archivo: (c) The Archivo Project Authors, SIL Open Font License 1.1. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
}
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 30; background: var(--surface); padding: 8px 12px; }
/* Layout: headline row, then a full-width illustrated cutaway of a working shop (conveyor, techs, crane,
   trucks, the customer's phone), then The idea, Features, Pricing, Get started. Ink & Spark palette. */
:root {
  --bg: #F5F5F2; --surface: #FFFFFF; --ink: #16181B; --muted: #5E636B; --line: #E3E3DE;
  --accent: #FF5A1F; --on-accent: #16181B; --accent-soft: #FFE6DA;
  /* The scene stays a dark shop interior in both themes. */
  --wall: #1A1D21; --wall-2: #20242A; --outside: #0E1013; --floor: #26292E; --floor-line: #33373D;
  --steel: #3B4048; --steel-2: #4C525B; --steel-3: #6B727C; --scene-ink: #F2F3F4; --scene-muted: #9DA3AB;
  --skin: #E8B996; --skin-2: #A8714E; --overall: #2F5D8A; --overall-2: #3E6F9E;
  --paper: #F4F4F0; --paper-ink: #16181B; --part: #C98A3A; --ok: #1E8A4A; --glass: #2A3038;
  --m1: #FF5A1F; --m2: #8FB3E0; --m3: #D9C7A0; --m4: #B7E07A;
  /* Icon tiles: the shop's dark steel with light line work and one spark of accent. */
  --tile: #16181B; --tile-ink: #F2F3F4;
  /* Trade art: flat ink silhouettes on a quiet panel. */
  --panel: #ECECE7; --detail: #6B6F76;
  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315; --surface: #1B1D20; --ink: #ECEDEE; --muted: #A2A7AE; --line: #2E3136; --accent-soft: #3A2116;
    --tile: #2A2E34; --tile-ink: #F2F3F4; --panel: #24272B; --detail: #9097A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315; --surface: #1B1D20; --ink: #ECEDEE; --muted: #A2A7AE; --line: #2E3136; --accent-soft: #3A2116;
  --tile: #2A2E34; --tile-ink: #F2F3F4; --panel: #24272B; --detail: #9097A0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.label { font-family: var(--font-label); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.draft { display: inline-block; font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); }

.preview { background: var(--surface); border-bottom: 1px solid var(--line); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.preview .wrap { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding-block: 10px; }
.preview span { color: var(--muted); }

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; color: var(--ink); }
.brand-logo { height: 26px; width: auto; display: block; }
/* ENGSHP-1398 (David, 2026-10-28): the tagline sits just under the logo. */
.brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-nav a { white-space: nowrap; }
@media (max-width: 520px) { .brand-tagline { font-size: 10px; letter-spacing: .04em; } }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 720px) { .site-nav .nav-section { display: none; } }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-decoration: none; border-radius: 6px; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: var(--ink); }

.hero-top .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 48px; align-items: end; padding-block: 24px 28px; }
@media (max-width: 900px) { .hero-top .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-top h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1; font-weight: 800; letter-spacing: -0.035em; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.lede { font-size: 19px; color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

.scene { margin: 0; background: var(--wall); border-radius: 12px; overflow: hidden; position: relative; }
.scene svg { display: block; width: 100%; height: auto; }
.scene-bar { position: absolute; top: 10px; left: 10px; }
.motion-btn { font: 600 13px/1 var(--font-label); color: var(--scene-ink); background: rgba(14,16,19,.7); border: 1.5px solid var(--steel-3); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 36px; }
.scene-caption { font-size: 14px; color: var(--muted); margin-top: 12px; max-width: 60em; }

/* Scene parts */
.s-label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .1em; fill: var(--scene-muted); text-anchor: middle; }
.s-board { font-family: var(--font-label); fill: var(--scene-ink); font-variant-numeric: tabular-nums; }
.s-phone { font-family: var(--font-body); }

section.block .wrap { padding-block: 56px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.block-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 46em; }
/* ENGSHP-1398: the main menu jumps to each section's heading; keep a little room above it. */
.block-head h2 { scroll-margin-top: 24px; }
.block h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.idea-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; }
@media (max-width: 860px) { .idea-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.idea-story { display: flex; flex-direction: column; gap: 16px; font-size: 19px; max-width: 36em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature h3 { font-size: 20px; line-height: 1.2; font-weight: 800; }
.feature p { color: var(--muted); font-size: 16px; }
.feature .label { color: var(--accent); }
.trial { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.trial strong { font-family: var(--font-display); font-size: 20px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tier h3 { font-size: 22px; font-weight: 800; }
.tier.featured { outline: 3px solid var(--accent); outline-offset: -3px; }
.price { font-family: var(--font-display); font-size: 34px; font-weight: 800; }
.price span { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
@media (max-width: 700px) { .extras { grid-template-columns: minmax(0, 1fr); } }
.extra { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.extra h3 { font-size: 19px; font-weight: 800; }
.extra p { color: var(--muted); }
.start { background: #16181B; color: #F2F3F4; }
.start .wrap { padding-block: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
@media (max-width: 760px) { .start .wrap { grid-template-columns: minmax(0, 1fr); } }
.start h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.start p { color: #A9ADB3; margin-top: 10px; font-size: 18px; }
.start .btn-ghost { color: #F2F3F4; }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer .brand-logo { height: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* v5: Who it's for, tier lists, add-ons, questions */
.ic { width: 48px; height: 48px; flex: none; border-radius: 10px; background: var(--tile); color: var(--tile-ink); display: grid; place-items: center; }
.ic svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ic .a { fill: var(--accent); stroke: none; }
.ic .k { stroke: var(--tile); stroke-width: 2.6; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top h3 { min-width: 0; }
.card-top .trade-tag, .card-top .label { margin: 0; }
.illo { width: 100%; height: auto; display: block; }
.illo .paper { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.illo .rule-l { stroke: var(--line); stroke-width: 2; }
.illo .hand { fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.illo .strike { stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.illo .ring { fill: none; stroke: var(--line); stroke-width: 3; }
.illo .dev { fill: var(--tile); }
.illo .scr { fill: #F5F5F2; }
.illo .acc { fill: var(--accent); }
.illo .ok { fill: #1E8A4A; }
.illo .ln { fill: #D9DAD5; }
.illo .arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 6 6; }
.illo .arrow-h { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.idea-art { margin-top: 26px; max-width: 380px; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 28px; }
.head-row .block-head { margin-bottom: 0; }
.faq-art { width: 260px; max-width: 100%; }
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .trades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trades { grid-template-columns: minmax(0, 1fr); } }
.trade { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Style C: each machine in a small bay of Bob's shop, in the animation's colors. */
.trade-art { position: relative; width: 72px; height: 52px; flex: none; border-radius: 10px; overflow: hidden; background: linear-gradient(transparent 0 78%, var(--floor) 78%), var(--wall); display: grid; place-items: end center; }
.trade-art::after { content: ""; position: absolute; left: 0; right: 0; top: 78%; height: 1.5px; background: var(--floor-line); }
.trade-art svg { position: relative; z-index: 1; width: 56px; height: 37px; margin-bottom: 5px; display: block; }
.trade-art .b { fill: var(--body); } .trade-art .d { fill: var(--steel); } .trade-art .x { fill: var(--spark); }
.trade-art .w { fill: #0F1114; } .trade-art .h { fill: var(--steel-3); } .trade-art .scr { fill: #F2F3F4; }
.trade-art .s { fill: none; stroke: var(--body); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.trade-art .ring { fill: none; stroke: #0F1114; stroke-width: 6; }
.trade h3 { font-size: 19px; line-height: 1.2; font-weight: 800; }
.trade p { color: var(--muted); font-size: 15.5px; }
.trade.home { border-color: var(--ink); }
.trade-tag { font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fields { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fields li { font-family: var(--font-label); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); }
.trade-foot { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--muted); }
.trade-foot b { color: var(--ink); font-weight: 700; }
.trades-note { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 52em; }
.idea-sign { font-family: var(--font-label); font-size: 14px; color: var(--muted); }
.tier .who { font-size: 15px; color: var(--muted); }
.tier ul { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 15.5px; }
.tier li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.tier li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: translateY(-1px); }
.tier li.plus { font-weight: 700; }
.tier li.plus::before { background: var(--ink); }
.tier .fee { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.tier .badge { align-self: flex-start; font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.addons { margin-top: 20px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.addons h3 { font-size: 19px; font-weight: 800; }
.addon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 24px; margin: 0; }
.addon-list div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.addon-list dt { font-weight: 700; }
.addon-list dd { margin: 0; font-size: 15px; color: var(--muted); }
.addon-list dd b { color: var(--ink); font-variant-numeric: tabular-nums; }
.price-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 800px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; min-width: 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style-position: outside; }
.faq details p { margin-top: 8px; color: var(--muted); max-width: 40em; }

/* ---- The stage: Bob's phone, the shop, Pat's phone ---- */
.wrap.wide { max-width: 1560px; }
.stage .wrap { padding-block: 16px 12px; }
/* ENGSHP-1398 (David, 2026-10-28): the shop's name sits above the scene, between the phones. */
.stage-center { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
/* Side by side, the name starts just under the phone captions rather than centered beside the phones. */
@media (min-width: 1181px) { .stage-center { align-self: start; padding-top: 15px; } }
.shop-name { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; text-align: center; }
.stage-grid { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr) 236px; gap: 22px; align-items: center; }
@media (max-width: 1120px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "scene scene" "owner customer"; gap: 20px 16px; align-items: start; }
  .stage-grid .stage-center { grid-area: scene; }
  .stage-grid .owner { grid-area: owner; }
  .stage-grid .customer { grid-area: customer; }
}
.phone-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; position: relative; z-index: 2; }
.phone-cap { font-size: 13px; color: var(--muted); text-align: center; line-height: 1.35; }
.phone-cap strong { color: var(--ink); }
.device { width: 100%; max-width: 236px; background: #0F1114; border-radius: 30px; padding: 9px; box-shadow: 0 1px 0 #2B2F35 inset, 0 18px 40px rgba(0,0,0,.18); }
.screen { background: #F5F5F2; color: #16181B; border-radius: 22px; height: 452px; overflow: hidden; display: flex; flex-direction: column; font-family: var(--font-body); font-size: 13px; line-height: 1.35; }
.statusbar { display: flex; justify-content: space-between; padding: 8px 16px 2px; font: 600 11px/1 var(--font-body); color: #16181B; font-variant-numeric: tabular-nums; }
.appbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; background: #16181B; color: #FFFFFF; font-weight: 800; font-size: 14px; margin-top: 6px; }
.spark-dot { width: 10px; height: 10px; border-radius: 3px; background: #FF5A1F; }
.rec { background: #FFFFFF; padding: 12px 14px; border-bottom: 1px solid #E3E3DE; display: flex; flex-direction: column; gap: 6px; }
.rec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.rec-title { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.rec-meta { color: #5E636B; font-size: 12px; }
.chip { font: 700 10px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; white-space: nowrap; }
.chip.in { color: #4B5563; background: #ECEDEF; }
.chip.working { color: #1F5FA8; background: #E4EEFA; }
.chip.waiting { color: #7A5000; background: #FFF1CC; }
.chip.ready { color: #17663A; background: #E2F3E7; }
.steps { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.steps li { height: 5px; border-radius: 3px; background: #E3E3DE; position: relative; }
.steps li.done { background: #9DA3AB; }
.steps li.cur { background: #FF5A1F; }
.steps-word { font-size: 11px; color: #5E636B; }
.now { margin: 12px 12px 8px; padding: 12px; background: #FFFFFF; border: 1.5px solid #E3E3DE; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; transition: border-color .3s ease, box-shadow .3s ease; }
.now.flash, .pcard.flash { border-color: #FF5A1F; box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
.now-label { font: 600 10px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: #FF5A1F; }
.now-title { font-weight: 800; font-size: 15px; }
.now-detail { color: #5E636B; font-size: 12.5px; }
.timer { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 600 16px/1 var(--font-label); font-variant-numeric: tabular-nums; color: #1F5FA8; }
.timer[hidden] { display: none; }
.timer .dot { width: 8px; height: 8px; border-radius: 50%; background: #1F5FA8; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.feed { list-style: none; margin: 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feed li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 6px; font-size: 12px; color: #16181B; padding: 6px 0; border-top: 1px solid #ECECE7; }
.feed time { color: #5E636B; font-variant-numeric: tabular-nums; }

.portal-head { padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.portal-shop { font-weight: 800; font-size: 14px; }
.portal-sub { font-size: 12px; color: #5E636B; }
.portal .steps { margin: 4px 14px 2px; }
.portal .steps-word { padding: 6px 14px 0; }
.pcard { margin: 12px; padding: 12px; background: #FFFFFF; border: 1.5px solid #E3E3DE; border-radius: 12px; display: flex; flex-direction: column; gap: 6px; transition: border-color .3s ease, box-shadow .3s ease; }
.pcard[hidden] { display: none; }
.pcard-kind { font: 600 10px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: #5E636B; }
.pcard-amt { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.pbtn { text-align: center; font-weight: 800; font-size: 13px; padding: 9px; border-radius: 8px; background: #FF5A1F; color: #16181B; transition: background-color .2s ease, transform .15s ease; }
.pbtn.done { background: #1E8A4A; color: #FFFFFF; }
.pbtn.tap { transform: scale(.94); }
.msgs { list-style: none; margin: auto 10px 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.msgs li { background: #E9EBEE; border-radius: 14px 14px 14px 4px; padding: 8px 10px; font-size: 12px; max-width: 92%; }
.msgs li .from { display: block; font-size: 10px; font-weight: 700; color: #5E636B; margin-bottom: 2px; }

.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
.link-path { fill: none; stroke: #FF5A1F; stroke-width: 2; stroke-dasharray: 5 5; }
.link-dot { fill: #FF5A1F; }
@media (prefers-reduced-motion: reduce) { .timer .dot { animation: none; } }

/* ---- The two phones: the real screens at real size (375px wide), scaled into the device ---- */
.stage-grid { grid-template-columns: 262px minmax(0, 1fr) 262px; }
@media (max-width: 1180px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "scene scene" "owner customer"; }
  .stage-grid .stage-center { grid-area: scene; }
  .stage-grid .owner { grid-area: owner; }
  .stage-grid .customer { grid-area: customer; }
}
.device { width: 100%; max-width: 262px; background: #0F1114; border-radius: 32px; padding: 9px; box-shadow: 0 1px 0 #2B2F35 inset, 0 18px 40px rgba(0,0,0,.18); }
.screen { position: relative; width: 100%; aspect-ratio: 244 / 500; border-radius: 24px; overflow: hidden; background: #F5F5F2; padding: 0; height: auto; display: block; }
.frame {
  --spark: #FF5A1F; --on-spark: #16181B; --ink: #16181B; --muted: #5E636B;
  --surface-0: #F5F5F2; --surface-1: #FFFFFF; --surface-2: #ECECE7; --line: #E3E3DE; --divider: #EEEEEA;
  --button-border: #D6D6D0; --add-border: #9EA19A;
  --in-fg: #4B5563; --in-bg: #ECEDEF; --in-dot: #7A828C;
  --working-fg: #1F5FA8; --working-bg: #E4EEFA; --working-dot: #2F74C8;
  --waiting-fg: #7A5000; --waiting-bg: #FFF1CC; --waiting-dot: #C98A00;
  --ready-fg: #17663A; --ready-bg: #E2F3E7; --ready-dot: #1E8A4A;
  position: absolute; top: 0; left: 0; width: 375px; height: 768px; transform-origin: 0 0;
  background: var(--surface-0); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-size: 16px; line-height: 22px;
  overflow: hidden;
}
.frame .sbar { display: flex; justify-content: space-between; padding: 14px 26px 6px; font: 700 15px/1 "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.frame .appbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #16181B; color: #fff; font: 800 18px/1 "Archivo", system-ui, sans-serif; }
.frame .mark { width: 14px; height: 14px; border-radius: 4px; background: var(--spark); }
.frame .urlbar { margin: 4px 14px 8px; padding: 9px 14px; border-radius: 12px; background: #E7E7E2; font: 500 14px/1 "Archivo", system-ui, sans-serif; color: #3D4248; text-align: center; }
.frame .view { position: absolute; left: 0; right: 0; bottom: 0; top: 96px; overflow: hidden; }
.frame.app .view { top: 84px; }
.frame .view[hidden] { display: none; }
.frame .vin { padding: 16px; display: flex; flex-direction: column; gap: 12px; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.frame p { margin: 0; }
.frame h1, .frame h2 { margin: 0; font-family: "Archivo", system-ui, sans-serif; }
.bs-page-title { font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -0.5px; }
.bs-record-title { font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -0.4px; }
.bs-section-title { font-size: 17px; line-height: 22px; font-weight: 800; margin-top: 6px !important; }
.frame .bs-meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.bs-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .35s ease, border-color .35s ease; }
.bs-card__head { display: flex; justify-content: space-between; align-items: center; }
.bs-card__title { font-size: 17px; line-height: 22px; font-weight: 800; }
.frame .lit { border-color: var(--spark) !important; box-shadow: 0 0 0 4px rgba(255,90,31,.2); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.row-btns.tight { margin-top: 2px; }
.bs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--button-border); font: 600 15px/20px "Archivo", system-ui, sans-serif; color: var(--ink); transition: transform .15s ease, background-color .2s ease; }
.bs-btn--primary { min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--spark); color: var(--on-spark); font-size: 16px; font-weight: 800; }
.bs-btn--add { border-style: dashed; border-color: var(--add-border); }
.bs-btn--quiet { background: transparent; border-color: transparent; text-decoration: underline; }
.bs-btn.wide { width: 100%; }
.bs-btn.pressed { transform: scale(.93); }
.bs-btn.next { background: var(--spark); border-color: var(--spark); color: var(--on-spark); font-weight: 800; border-style: solid; }
.review { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; }
.review dt { font-size: 14px; color: var(--muted); }
.review dd { margin: 0; font-size: 15px; }
.crumb { font-size: 14px; }
.job-title { font: 800 24px/30px "Archivo", system-ui, sans-serif; letter-spacing: -0.3px; }
.job-person { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-name { font: 700 16px/22px "Archivo", system-ui, sans-serif; }
.job-right { display: inline-flex; align-items: center; gap: 8px; }
.job-num { font: 700 13px/16px "Archivo", system-ui, sans-serif; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.job-meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.job-approval u { font-weight: 600; color: var(--ink); }
.bs-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 700 13px/1 "Archivo", system-ui, sans-serif; }
.bs-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bs-chip--in { color: var(--in-fg); background: var(--in-bg); }
.bs-chip--working { color: var(--working-fg); background: var(--working-bg); }
.bs-chip--waiting { color: var(--waiting-fg); background: var(--waiting-bg); }
.bs-chip--ready { color: var(--ready-fg); background: var(--ready-bg); }
.bs-notice { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14px; line-height: 20px; }
.bs-notice--waiting { background: var(--waiting-bg); color: var(--waiting-fg); }
.bs-notice[hidden], .bs-card[hidden], .timer-row[hidden], .prow[hidden] { display: none; }
.money { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mcell { display: flex; flex-direction: column; gap: 2px; padding: 10px; min-width: 0; }
.mcell + .mcell { border-left: 1px solid var(--divider); }
.mcell.waiting { background: var(--waiting-bg); color: var(--waiting-fg); }
.ml { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mf { font: 800 19px/24px "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.ms { font-size: 12px; color: var(--muted); line-height: 16px; }
.timer-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--working-bg); color: var(--working-fg); }
.timer-row .clock { font: 800 19px/1 "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.timer-row .what { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; line-height: 18px; min-width: 0; }
.timer-row .what b { font-size: 14px; }
.timer-row .stop { min-height: 40px; }
.wi { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wi-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface-0); border-bottom: 1px solid var(--line); }
.wi-num { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font: 800 12px/1 "Archivo", system-ui, sans-serif; }
.wi-title { flex: 1; font: 700 16px/22px "Archivo", system-ui, sans-serif; }
.wi-fig { font: 800 16px/22px "Archivo", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.wi-meter { height: 6px; background: var(--surface-2); margin: 10px 12px 0; border-radius: 999px; overflow: hidden; }
.wi-meter span { display: block; height: 100%; width: 0; background: var(--working-dot); transition: width .6s ease; }
.wi-sub { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 10px; font-size: 13px; color: var(--muted); }
.wchip { height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; background: var(--in-bg); color: var(--in-fg); }
.wchip.waiting { background: var(--waiting-bg); color: var(--waiting-fg); }
.wchip.sent { background: var(--working-bg); color: var(--working-fg); }
.wchip.done { background: var(--ready-bg); color: var(--ready-fg); }
.wi-lines { padding: 0 12px 10px; font-size: 14px; }
.wi-lines div { display: flex; justify-content: space-between; padding: 3px 0; }
.wi-lines div span:last-child { font-variant-numeric: tabular-nums; }
.bell { position: absolute; left: 10px; right: 10px; top: -90px; background: rgba(255,255,255,.97); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 14px; line-height: 19px; display: flex; flex-direction: column; gap: 2px; transition: top .45s cubic-bezier(.3,.7,.2,1); z-index: 5; }
.bell b { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--spark); }
.bell.show { top: 40px; }
.toast { position: absolute; left: 50%; bottom: 26px; transform: translate(-50%, 140px); background: #16181B; color: #fff; padding: 12px 18px; border-radius: 10px; font: 600 15px/20px "Archivo", system-ui, sans-serif; white-space: nowrap; transition: transform .4s cubic-bezier(.3,.7,.2,1); z-index: 5; }
.toast.show { transform: translate(-50%, 0); }

.shop-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.shop-name-pub { font: 800 20px/26px "Archivo", system-ui, sans-serif; }
.plist { background: var(--surface-1); border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.plist .bs-meta { padding: 12px 14px; }
.prow { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.prow-top { display: flex; justify-content: space-between; gap: 10px; }
.prow-title { font-size: 15px; line-height: 20px; font-weight: 500; }
.prow-date { font-size: 13px; color: var(--muted); }
.prow-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.ptag { font: 600 13px/18px "Archivo", system-ui, sans-serif; padding: 2px 8px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.ptag.needs { font-weight: 800; border-color: currentColor; }
.pneeds { padding: 0 !important; font-size: 13px !important; }
.foot { padding: 0 !important; margin-top: 6px !important; }
.stagebar { display: grid; gap: 4px; }
.stagebar .seg-b { height: 6px; border-radius: 999px; background: var(--surface-2); }
.stagebar .seg-b.in { background: var(--in-dot); } .stagebar .seg-b.working { background: var(--working-dot); }
.stagebar .seg-b.waiting { background: var(--waiting-dot); } .stagebar .seg-b.ready { background: var(--ready-dot); }
.stagebar .step { font: 600 12px/16px "Archivo", system-ui, sans-serif; color: var(--muted); }
.stagebar .step.cur { font-weight: 800; color: var(--ink); }
.status-card { gap: 8px; }
.doc-status { font: 700 17px/22px "Archivo", system-ui, sans-serif; }
.doc-desc { font-size: 15px; color: var(--ink); }
.drow { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; }
.drow span:last-child, .dtotal span:last-child { font-variant-numeric: tabular-nums; }
.dtotal { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 18px; }
.ans { display: flex; flex-direction: column; gap: 6px; }
.ans-l { font-size: 15px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--button-border); border-radius: 10px; overflow: hidden; }
.seg > span { text-align: center; padding: 10px; font-size: 15px; font-weight: 600; }
.seg > span + span { border-left: 1px solid var(--button-border); }
.seg-yes.on { background: #16181B; color: #fff; }
.running { font: 800 17px/22px "Archivo", system-ui, sans-serif; }
.field { display: flex; flex-direction: column; gap: 4px; }
.flabel { font-size: 13px; color: var(--muted); font-weight: 600; }
.finput { min-height: 44px; border: 1px solid #8F928B; border-radius: 10px; padding: 11px 12px; font-size: 16px; }
.notif { position: absolute; left: 10px; right: 10px; top: -140px; background: rgba(255,255,255,.97); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22); z-index: 5; transition: top .45s cubic-bezier(.3,.7,.2,1); }
.notif.show { top: 36px; }
.n-app { font: 700 11px/1 "Archivo", system-ui, sans-serif; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.n-body { font-size: 14px; line-height: 19px; }
.n-body b { display: block; font-size: 14px; }
.n-link { color: #1F5FA8; text-decoration: underline; }
.phone-cap { min-height: 2.7em; display: block; text-align: center; }

.money[hidden], .wi[hidden], .stagebar[hidden], .bs-meta[hidden] { display: none !important; }

.site-footer .store-badges { display: flex; gap: 8px; }
.site-footer .copyright { margin: 0; }
