/* FluxFront — device-trio · sliced verbatim from the original sections.css block (render-identical). See docs/marketing-site-architecture.md for the selector map. */
/* ===================== DEVICE TRIO (Mac light · iPad dark POS · iPhone light) ===================== */
/* The trio is a fixed-size composition that scales to fit any width as ONE unit
   (JS sets --dev-scale), so it never reflows into mismatched stacked sizes. */
/* The trio is a fixed 1168 × 462 composition. js/modules/device-scaler.js sets
   --dev-scale on the frame; .devices renders it as a crisp transform: scale() miniature
   and the frame height is derived from the SAME scale (calc below) so it always matches
   the rendered height exactly — no offsetHeight measurement that could mis-time and clip
   the device tops (the old iOS bug). --trio-h is the constant unscaled height. */
.devices-frame { width: 100%; display: flex; justify-content: center; align-items: flex-start;
  overflow: hidden; --trio-h: 462px; height: calc(var(--trio-h) * var(--dev-scale, 1)); }
.devices { position: relative; display: flex; align-items: flex-end; justify-content: center;
  flex-wrap: nowrap; gap: 22px; width: 1168px; flex: none; padding: 24px 0 12px;
  transform: scale(var(--dev-scale, 1)); transform-origin: top center; }
/* Phones fallback: if the scaler JS hasn't run, 0.24 keeps the whole 1168px trio inside
   even the narrowest (~320px) phone so the side devices can never be cut off. The JS
   overrides --dev-scale inline (on the frame) to fill the width exactly. */
@media (max-width: 760px) { .devices-frame { --dev-scale: 0.24; } }
.devices > div { transition: transform var(--d-4) var(--e-out); }
.dv-pad { order: 1; width: 440px; z-index: 2; }
.dv-mac { order: 2; width: 560px; z-index: 3; }
.dv-phone { order: 3; width: 188px; z-index: 5; margin-left: -64px; margin-bottom: -2px;
  transform: scale(0.8); transform-origin: bottom center; }
.devices:hover .dv-mac { transform: translateY(-4px); }
.devices:hover .dv-pad { transform: translateY(-6px); }
.devices:hover .dv-phone { transform: scale(0.8) translateY(-12px); }

/* MacBook */
.dv-mac-screen { background: #0d0f12; border: 8px solid #0d0f12; border-radius: 16px 16px 0 0; padding: 7px; box-shadow: var(--sh-xl); }
.dv-mac-base { height: 13px; background: linear-gradient(#cfd2d7, #a4a8af); border-radius: 0 0 14px 14px; position: relative; box-shadow: 0 10px 18px rgb(30 34 41 / 0.16); }
.dv-mac-base span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 6px; background: #888d95; border-radius: 0 0 7px 7px; }
.ui-dash { background: #f5f6f7; border-radius: 6px; overflow: hidden; display: grid; grid-template-columns: 132px 1fr; height: 364px; }
.ui-side { background: #fff; border-right: 1px solid var(--hairline); padding: 12px 9px; display: grid; gap: 3px; align-content: start; }
.ui-brand { display: flex; align-items: center; gap: 6px; font-size: 0.66rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 9px; padding: 0 4px; }
.ui-brand img { height: 14px; }
.ui-nav { font-size: 0.64rem; color: var(--ink-2); padding: 6px 8px; border-radius: 6px; }
.ui-nav.active { background: var(--teal-wash); color: var(--teal-800); font-weight: 600; }
.ui-dash-main { padding: 14px; overflow: hidden; }
.ui-dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ui-h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.ui-seg { display: inline-flex; gap: 3px; background: #fff; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px; font-size: 0.54rem; }
.ui-seg b { background: var(--teal-wash); color: var(--teal-800); padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.ui-seg i { color: var(--ink-3); padding: 3px 7px; font-style: normal; }
.ui-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 9px; }
.ui-kpi { background: #fff; border: 1px solid var(--hairline); border-radius: 9px; padding: 8px 9px; }
.ui-kl { display: block; font-size: 0.46rem; letter-spacing: 0.06em; color: var(--ink-3); font-family: var(--font-mono); }
.ui-kv { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.ui-kd { display: block; font-size: 0.46rem; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-chart { background: #fff; border: 1px solid var(--hairline); border-radius: 9px; padding: 11px; }
.ui-chart-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ui-chart-v { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.ui-spark { display: block; width: 100%; height: 44px; }
.ui-area { fill: rgb(45 212 191 / 0.14); }
.ui-line { fill: none; stroke: var(--teal-600); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 760; stroke-dashoffset: 760; }
.devices.in .ui-line { transition: stroke-dashoffset 1.3s var(--e-out); stroke-dashoffset: 0; }

/* iPad — DARK POS · landscape */
.dv-pad-screen { background: #0a0c0f; border: 11px solid #1a1c20; border-radius: 26px; overflow: hidden; height: 316px;
  box-shadow: var(--sh-xl); padding: 12px; display: flex; flex-direction: column; }
.ui-pos { display: flex; flex-direction: column; gap: 6px; color: #e7eaee; height: 100%; }
.ui-pos-tabs { display: flex; gap: 5px; overflow: hidden; }
.ui-tab { font-size: 0.54rem; font-weight: 600; color: #8a919d; background: #111418; border: 1px solid #1f242b;
  border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.ui-tab.active { color: #06231f; background: var(--teal); border-color: var(--teal); }
.ui-pos-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ui-pos-insp { display: flex; flex-direction: column; gap: 5px; background: #111418; border: 1px solid #1f242b;
  border-radius: 9px; padding: 8px 10px; min-height: 0; }
.ui-insp-row { display: flex; align-items: center; gap: 8px; }
.ui-insp-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ui-insp-dot.g { background: var(--good); } .ui-insp-dot.y { background: var(--warn); } .ui-insp-dot.r { background: var(--bad); box-shadow: 0 0 0 3px rgb(220 38 38 / 0.18); }
.ui-insp-name { font-size: 0.58rem; color: #c9ced7; flex: 1; }
.ui-insp-val { font-size: 0.54rem; color: #fff; }
.ui-insp-foot { font-size: 0.5rem; color: var(--teal-bright); margin-top: auto; padding-top: 4px; border-top: 1px dashed #1f242b; }
.ui-pos-body { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 9px; flex: 1; min-height: 0; }
.ui-pos-stats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 6px; }
.ui-pos-wos { display: flex; flex-direction: column; gap: 5px; min-height: 0; }
.ui-pos-top { display: flex; align-items: center; justify-content: space-between; }
.ui-pos-top b { display: block; font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: #fff; }
.ui-pos-top span { font-size: 0.54rem; color: #8a919d; white-space: nowrap; }
.ui-walkin { font-size: 0.6rem; font-weight: 700; color: #06231f; background: linear-gradient(90deg, var(--teal), #3aa6ff);
  padding: 7px 12px; border-radius: 999px; }
.ui-pos-stats { }
.ui-pst { background: #111418; border: 1px solid #1f242b; border-radius: 9px; padding: 7px 8px; }
.ui-pst .ui-kl { color: #767d89; }
.ui-pst .ui-kv { color: #fff; font-size: 0.88rem; }
.ui-pos-h { font-size: 0.58rem; font-weight: 700; color: #fff; letter-spacing: 0.03em; }
.ui-wo { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #111418;
  border: 1px solid #1f242b; border-radius: 9px; padding: 5px 9px; }
.ui-wo-l b { display: block; font-family: var(--font-mono); font-size: 0.6rem; color: var(--teal); }
.ui-wo-l span { display: block; font-size: 0.56rem; color: #9098a3; margin-top: 1px; }
.ui-pill { font-size: 0.52rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.ui-pill.prog { color: #34e7cf; background: rgb(45 212 191 / 0.14); }
.ui-pill.est { color: #f0b54a; background: rgb(217 119 6 / 0.18); }
.ui-pill.appr { color: #84a9ff; background: rgb(59 130 246 / 0.18); }

/* iPhone — light */
.dv-phone-screen { background: #fff; border: 6px solid #0c0e11; border-radius: 32px; overflow: hidden; height: 332px;
  box-shadow: var(--sh-xl); display: flex; flex-direction: column; padding: 12px 12px 0; }
.ui-ph-status { display: flex; justify-content: space-between; font-size: 0.52rem; font-weight: 600; color: var(--ink); padding: 2px 4px 8px; }
.ui-ph-sr { color: var(--ink-2); letter-spacing: 1px; }
.ui-ph-h { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; padding: 0 2px 8px; }
.ui-ph-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 9px; }
.ui-ph-kpi { background: #f5f6f7; border: 1px solid var(--hairline); border-radius: 9px; padding: 8px 9px; text-align: left; }
.ui-ph-kpi .ui-kv { font-size: 1.05rem; }
.ui-ph-pay { background: var(--teal-wash); border: 1px solid var(--teal-wash-2); border-radius: 11px; padding: 11px; text-align: center; }
.ui-ph-amt { display: block; font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 3px 0 9px; }
.ui-ph-tap { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--teal); color: var(--ink);
  font-size: 0.66rem; font-weight: 700; padding: 9px; border-radius: 999px; }
.ui-ph-tap svg { width: 15px; height: 15px; }
.ui-ph-push { margin-top: auto; margin-inline: -4px; background: #f5f6f7; border-top: 1px solid var(--hairline);
  padding: 10px; text-align: left; }
.ui-ph-push b { display: block; font-size: 0.58rem; }
.ui-ph-push span { display: block; font-size: 0.52rem; color: var(--ink-3); margin-top: 1px; }

/* The trio scales to fit via --dev-scale (set in app.js); no reflow, no orphaned phone.
   This keeps the exact composition identical at every width and across browsers. */

/* booking step rail — fix label/line overlap: dots+line on top, labels below */
.bk-steps { display: flex; margin-bottom: 22px; }
.bk-step { flex: 1; position: relative; text-align: center; font-size: 0.66rem; color: #6E747F;
  padding-top: 20px; }
.bk-step::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #3A4049; background: var(--ink-panel); z-index: 2; }
.bk-step::after { content: ""; position: absolute; top: 4.5px; left: 50%; width: 100%; height: 1.5px; background: #2E333C; z-index: 1; }
.bk-step:last-child::after { display: none; }
.bk-step.done { color: #A7AEB9; }
.bk-step.done::before { background: var(--teal); border-color: var(--teal); }
.bk-step.done::after { background: var(--teal-600); }
.bk-step.active { color: var(--teal); font-weight: 600; }
.bk-step.active::before { border-color: var(--teal); box-shadow: 0 0 0 3px rgb(45 212 191 / 0.22); }

/* single-plan pricing layout */
.price-grid-one { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
.price-feat-2 { grid-template-columns: 1fr 1fr; gap: 11px 18px; }
@media (max-width: 420px) { .price-feat-2 { grid-template-columns: 1fr; } }

/* SMS AI agent demo */
.sms-sub { font-size: 0.82rem; color: var(--ink-3); margin-top: 16px; line-height: 1.5; max-width: 48ch; }
.sms-agentbar { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.sms-agent-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: #06231f;
  background: var(--surface-2) center/cover no-repeat; background-image: url('/assets/marketing/photos/aria.jpg'); }
.sms-agent-id b { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; }
.sms-agent-badge { font-size: 0.52rem; font-weight: 700; letter-spacing: 0.08em; color: var(--teal-800);
  background: var(--teal-wash); padding: 2px 6px; border-radius: var(--r-xs); }
.sms-agent-id > span { display: block; font-size: 0.66rem; color: var(--ink-3); margin-top: 2px; }
.sms-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sms-skills span { font-size: 0.58rem; font-weight: 600; color: var(--teal-800); background: var(--teal-wash);
  border: 1px solid var(--teal-wash-2); padding: 3px 8px; border-radius: 999px; }

/* Dashboard + phone polish (richer, real-app feel) */
.ui-dash { height: 374px; }
.ui-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.ui-topbar-r { display: flex; align-items: center; gap: 9px; }
.ui-ava { width: 19px; height: 19px; border-radius: 50%; background: var(--ink) center/cover no-repeat; background-image: url('/assets/marketing/photos/mechanic-sm.jpg'); color: #fff; font-size: 0.5rem; font-weight: 700; display: grid; place-items: center; }
.ui-bell { width: 15px; height: 15px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--hairline); position: relative; }
.ui-bell::after { content: ""; position: absolute; top: -1px; right: -1px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
.ui-segchips { display: flex; gap: 4px; margin-bottom: 9px; }
.ui-segchips b, .ui-segchips i { font-size: 0.52rem; font-style: normal; padding: 4px 9px; border-radius: 999px; }
.ui-segchips b { background: var(--teal-wash); color: var(--teal-800); font-weight: 600; }
.ui-segchips i { color: var(--ink-3); border: 1px solid var(--hairline); }
.ui-kpis-mini { grid-template-columns: repeat(4, 1fr); margin-bottom: 9px; }
.ui-kpis-mini .ui-kpi { padding: 7px 9px; }
.ui-kpis-mini .ui-kv { font-size: 0.82rem; }
.ui-side-sec { font-size: 0.44rem; letter-spacing: 0.12em; color: var(--ink-3); margin: 9px 0 2px 5px; font-family: var(--font-mono); }
.ui-dash-2col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 9px; margin-bottom: 9px; }
.ui-srccard { background: #fff; border: 1px solid var(--hairline); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ui-srccard .ui-kl { align-self: flex-start; }
.ui-donut { width: 60px; height: 60px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--teal-600) 0 48%, #3aa6ff 48% 81%, #f0b54a 81% 100%); }
.ui-donut::after { content: ""; position: absolute; inset: 17px; background: #fff; border-radius: 50%; }
.ui-legend { display: grid; gap: 3px; width: 100%; }
.ui-legend span { display: flex; align-items: center; gap: 5px; font-size: 0.5rem; color: var(--ink-2); }
.ui-legend i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.ui-upcoming { background: #fff; border: 1px solid var(--hairline); border-radius: 9px; padding: 9px 11px; }
.ui-up-h { font-size: 0.46rem; letter-spacing: 0.08em; color: var(--ink-3); font-family: var(--font-mono); margin-bottom: 6px; }
.ui-up-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.56rem; padding: 5px 0; border-top: 1px dashed var(--hairline); }
.ui-up-row:first-of-type { border-top: none; }
.ui-up-t { color: var(--ink-3); font-family: var(--font-mono); white-space: nowrap; }
.ui-up-n { color: var(--ink); font-weight: 500; text-align: right; }

.dv-phone-screen { height: 428px; position: relative; }
.ui-ph-island { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 56px; height: 15px;
  background: #000; border-radius: 999px; z-index: 6; }
.ui-ph-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 2px 11px; }
.ui-ph-hello { display: block; font-size: 0.5rem; color: var(--ink-3); }
.ui-ph-title { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.ui-ph-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink) center/cover no-repeat; background-image: url('/assets/marketing/photos/mechanic-sm.jpg'); color: #fff; font-size: 0.6rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.ui-ph-queue { margin-bottom: 10px; }
.ui-ph-qh { font-size: 0.5rem; letter-spacing: 0.08em; color: var(--ink-3); font-family: var(--font-mono); margin: 2px 0 7px; }
.ui-ph-qrow { display: flex; align-items: center; gap: 9px; padding: 8px 9px; background: #f5f6f7; border: 1px solid var(--hairline); border-radius: 10px; margin-bottom: 6px; }
.ui-ph-qt { font-size: 0.56rem; color: var(--ink-2); width: 28px; flex: none; }
.ui-ph-qn { flex: 1; min-width: 0; }
.ui-ph-qn b { display: block; font-size: 0.62rem; font-weight: 600; }
.ui-ph-qn span { display: block; font-size: 0.5rem; color: var(--ink-3); margin-top: 1px; }
.ui-ph-qdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ui-ph-qdot.prog { background: var(--teal); } .ui-ph-qdot.est { background: #f0b54a; }
.ui-ph-paybtn { display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--teal); color: var(--ink);
  font-size: 0.66rem; font-weight: 700; padding: 11px; border-radius: 12px; }
.ui-ph-paybtn svg { width: 15px; height: 15px; }
.ui-ph-tabs { display: flex; margin: auto -12px 0; border-top: 1px solid var(--hairline); background: #fff; }
.ui-ph-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 11px; font-size: 0.46rem; color: var(--ink-3); }
.ui-ph-tab svg { width: 15px; height: 15px; }
.ui-ph-tab.active { color: var(--teal-700); }
/* phone quick actions */
.ui-ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.ui-ph-act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 10px;
  background: #f5f6f7; border: 1px solid var(--hairline); font-size: 0.5rem; font-weight: 600; color: var(--ink-2); }
.ui-ph-act svg { width: 15px; height: 15px; color: var(--teal-700); }

/* scheduler card: status flash when moved to a new bay */
.ro.moved { animation: roMoved 0.55s var(--e-out); }
@keyframes roMoved { 0% { box-shadow: 0 0 0 2px var(--teal); } 60% { box-shadow: 0 0 0 2px var(--teal); } 100% { box-shadow: var(--sh-xs); } }

