/* Inner pages: product, quotes, driver app, demo */

.page-hero { position: relative; padding: 150px 0 60px; overflow: clip; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(800px 500px at 80% 20%, rgba(61,82,146,0.5), transparent 60%),
  radial-gradient(500px 400px at 10% 100%, rgba(145,175,208,0.12), transparent 60%), var(--night); }
.page-hero .display { max-width: 16ch; font-size: clamp(42px, 6vw, 92px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: end; }
.page-hero .lede { max-width: 56ch; }
.page-hero .acts { margin-top: 10px; }
.page-hero-copy { display: grid; gap: 24px; }
.page-hero-aside { justify-self: end; display: grid; gap: 10px; color: var(--night-ink-2); font-weight: 600; font-size: 15px; }
.page-hero-aside li { display: flex; gap: 10px; align-items: center; }
.page-hero-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.page-hero-aside svg { width: 18px; height: 18px; color: var(--steel); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-aside { justify-self: start; } .page-hero { padding-top: 120px; } }

/* big UI below a hero, overlapping into the next section */
.hero-ui { position: relative; z-index: 2; margin-top: 50px; margin-bottom: -140px; }
.page-hero:has(.hero-ui) + .section { padding-top: 220px; }
@media (max-width: 900px) { .hero-ui { margin-bottom: -60px; } .page-hero:has(.hero-ui) + .section { padding-top: 140px; } }

/* ---------- explorer (tabs) ---------- */
.explorer { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.ex-tabs { display: grid; gap: 4px; position: sticky; top: 100px; }
.ex-tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: transparent; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; transition: background 0.3s, color 0.3s; min-height: 44px; }
.ex-tabs button:hover { background: var(--raised); color: var(--ink); }
.ex-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.ex-tabs button small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-2); }
.ex-tabs button[aria-selected="true"] small { color: rgba(255,255,255,0.92); }
.ex-panel { display: grid; gap: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); min-height: 480px; }
.ex-panel[hidden] { display: none; }
.ex-panel header { display: grid; gap: 10px; max-width: 60ch; }
.ex-panel header p { color: var(--ink-2); }
.ex-panel .ui { box-shadow: 0 30px 60px -30px rgba(31,42,74,0.35); }
.ex-panel .ui-main { padding: 14px; }
.ex-bits { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-bits span { padding: 7px 12px; border-radius: 999px; background: var(--raised); font-size: 13px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } .ex-tabs { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; } .ex-tabs button { white-space: nowrap; width: auto; } .ex-tabs button small { display: none; } }

/* ---------- price composition ---------- */
.price-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.price-bars { display: grid; gap: 10px; align-content: end; background: var(--night); color: var(--night-ink); border-radius: var(--radius-lg); padding: 34px; min-height: 480px; position: relative; overflow: hidden; }
.price-bars::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(61,82,146,0.6), transparent 65%); }
.pb { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--night-line); font-weight: 600; font-size: 15px; transform-origin: 0 50%; }
.pb b { font-weight: 800; font-size: 17px; }
.pb small { display: block; font-weight: 600; color: var(--night-ink-3); font-size: 12px; margin-top: 2px; }
.pb.total { background: var(--amber); color: #1a1203; border-color: transparent; margin-top: 10px; }
.pb.total small { color: rgba(26,18,3,0.65); }
.pb.total b { font-size: 26px; letter-spacing: -0.03em; }
.pb .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--steel); width: var(--w, 40%); border-radius: 2px; }
.price-copy { display: grid; gap: 22px; }
.price-copy .feature-list { gap: 14px; }
@media (max-width: 900px) { .price-stage { grid-template-columns: 1fr; } .price-bars { min-height: 0; } }

/* ---------- feature rows ---------- */
.frow { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 50px; align-items: center; padding-block: clamp(40px, 6vw, 90px); border-top: 1px solid var(--border); }
.frow:first-child { border-top: 0; padding-top: 0; }
.frow.flip > :first-child { order: 2; }
.frow .copy { display: grid; gap: 18px; }
.frow .copy p { color: var(--ink-2); max-width: 54ch; }
.frow .art { display: grid; place-items: center; }
.on-night .frow { border-top-color: var(--night-line); }
.on-night .frow .copy p { color: var(--night-ink-2); }
@media (max-width: 900px) { .frow { grid-template-columns: 1fr; } .frow.flip > :first-child { order: 0; } }

/* roster mini */
.roster { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; font-size: 12px; }
.roster .rh, .roster .rr { display: grid; grid-template-columns: 90px repeat(5, 1fr); align-items: center; }
.roster .rh { background: var(--raised); padding: 10px 12px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; }
.roster .rr { padding: 8px 12px; border-top: 1px solid var(--border); }
.roster .rr b { font-weight: 800; }
.roster .sh { margin: 2px; padding: 6px 4px; border-radius: 6px; text-align: center; font-weight: 700; font-size: 10.5px; background: var(--s-confirmed-bg); color: var(--s-confirmed); }
.roster .sh.off { background: var(--raised); color: var(--ink-2); }
.roster .sh.leave { background: var(--s-today-bg); color: var(--s-today); }

/* chart mini */
.chart { width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: grid; gap: 14px; }
.chart h4 { font-size: 13px; font-weight: 800; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; }
.bars span { display: block; background: var(--navy-light); border-radius: 6px 6px 2px 2px; height: var(--h); position: relative; transform-origin: 50% 100%; }
.bars span::after { content: attr(data-l); position: absolute; left: 0; right: 0; top: 100%; margin-top: 6px; text-align: center; font-size: 10px; font-weight: 700; color: var(--ink-2); }
.bars span.hi { background: var(--navy); }
.chart .csv { justify-self: end; font-size: 11px; font-weight: 700; color: var(--navy); border: 1px solid var(--border); padding: 5px 9px; border-radius: 6px; margin-top: 14px; }

/* command palette + roles */
.control-art { display: grid; gap: 16px; width: 100%; max-width: 620px; }
.palette { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(31,42,74,0.45); font-size: 13px; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.pal-k { font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; background: var(--raised); color: var(--ink-2); }
.pal-q { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; }
.pal-q i { width: 2px; height: 18px; background: var(--navy); margin-left: 2px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.pal-r { display: grid; grid-template-columns: 70px 1fr; align-items: center; column-gap: 12px; padding: 10px 14px; font-weight: 700; border-top: 1px solid var(--border); }
.pal-r:first-of-type { border-top: 0; }
.pal-r small { grid-column: 2; display: block; font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
.pal-r.on { background: var(--navy-light); }
.pal-g { grid-row: span 2; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

/* roles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 620px; }
.roles div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; display: grid; gap: 6px; font-size: 12px; }
.roles b { font-size: 13px; }
.roles span { color: var(--ink-3); font-weight: 600; }
@media (max-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- quotes page ---------- */
.q3d { position: relative; min-height: 560px; border-radius: var(--radius-lg); overflow: clip; background: radial-gradient(600px 400px at 60% 40%, rgba(61,82,146,0.55), transparent 65%), var(--night-2); isolation: isolate; }
.q3d-canvas { position: absolute; inset: 0; }
.q3d-canvas canvas { width: 100% !important; height: 100% !important; }
.q3d-canvas::before { content: ""; position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1.6; transform: translate(-50%, -50%); border-radius: 40%; background: radial-gradient(circle, rgba(145,175,208,0.45), transparent 70%); filter: blur(30px); transition: opacity 1s; }
.q3d-canvas.has-3d::before { opacity: 0; }
.size-switch { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(10,15,34,0.7); border: 1px solid var(--night-line); backdrop-filter: blur(10px); z-index: 2; max-width: calc(100% - 32px); overflow-x: auto; }
.size-switch button { border: 0; background: transparent; color: var(--night-ink-2); font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; min-height: 44px; transition: background 0.3s, color 0.3s; }
.size-switch button:hover { color: #fff; }
.size-switch button[aria-pressed="true"] { background: #fff; color: var(--navy-deep); }
.q3d-price { position: absolute; left: 22px; top: 22px; z-index: 2; background: rgba(255,255,255,0.96); color: var(--ink); border-radius: 16px; padding: 14px 16px; display: grid; gap: 4px; min-width: 190px; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6); }
.q3d-price small { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.q3d-price b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.q3d-price span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.q3d-toast { position: absolute; left: 50%; top: 22px; transform: translate(-50%, -8px); z-index: 3; background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7); opacity: 0; pointer-events: none; transition: opacity 0.4s, transform 0.6s var(--ease-out); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.q3d-toast.on { opacity: 1; transform: translate(-50%, 0); }
.q3d-toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-delivered); }
@media (max-width: 640px) { .q3d-toast { top: auto; bottom: 86px; } .q3d-note { display: none; } }
.q3d-note { position: absolute; right: 22px; top: 22px; z-index: 2; color: var(--night-ink-2); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; max-width: 180px; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--steel), var(--amber)); opacity: 0.5; }
.flow li { list-style: none; position: relative; padding: 0 18px; display: grid; gap: 12px; }
.flow li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: var(--night-2); border: 1px solid var(--night-line); font-weight: 200; font-size: 26px; letter-spacing: -0.04em; color: var(--steel); position: relative; z-index: 1; }
.flow h3 { font-size: 20px; letter-spacing: -0.02em; }
.flow p { color: var(--night-ink-2); font-size: 15px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; gap: 30px; } .flow::before { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* quote page mock (customer-facing) */
.qpage { width: 100%; max-width: 420px; color: var(--ink); background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 50px 100px -40px rgba(31,42,74,0.4); font-size: 13px; }
.qpage .qp-head { background: var(--brand, #1f7a5a); color: #fff; padding: 18px 20px; display: grid; gap: 10px; }
.qpage .qp-head b { font-size: 16px; }
.qpage .qp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.qpage .qp-steps span { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.35); }
.qpage .qp-steps span.on { background: #fff; }
.qpage .qp-body { padding: 18px 20px; display: grid; gap: 12px; }
.qpage .qp-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.qpage .qp-tot { display: flex; justify-content: space-between; align-items: baseline; background: var(--brand, #1f7a5a); color: #fff; border-radius: 12px; padding: 14px 16px; font-weight: 800; }
.qpage .qp-tot b { font-size: 24px; letter-spacing: -0.03em; }
.qpage .qp-tot small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.qpage .qp-alt { display: grid; gap: 6px; }
.qpage .qp-alt small { font-weight: 700; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.qpage .qp-alt div { display: flex; gap: 6px; }
.qpage .qp-alt span { flex: 1; text-align: center; padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px; font-weight: 700; font-size: 12px; }
.qpage .qp-btn { background: var(--ink); color: #fff; text-align: center; padding: 12px; border-radius: 10px; font-weight: 800; }
.brand-swatches { display: flex; gap: 8px; margin-top: 12px; }
.brand-swatches button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.brand-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }

/* embed snippet */
.snippet { background: var(--night); color: var(--night-ink); border-radius: 16px; padding: 22px 24px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; }
.snippet .k { color: var(--steel); } .snippet .s { color: var(--amber); }

/* ---------- driver app page ---------- */
.drv-hero-phone { --w: 290px; justify-self: center; }
.offline-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.offline-stage::before { content: ""; position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(61,82,146,0.5), transparent 65%); filter: blur(24px); }
.queue { position: absolute; z-index: 3; display: grid; gap: 8px; }
.queue.left { left: 0; top: 18%; } .queue.right { right: 0; bottom: 16%; }
.queue span { display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 12px; font-size: 12px; font-weight: 700; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8); opacity: 0; transform: translateX(-12px); }
.queue.right span { transform: translateX(12px); }
.queue span i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.queue span.ok i { background: var(--s-delivered); }
.proof-card { width: 100%; max-width: 360px; background: #fff; color: var(--ink); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 80px -40px rgba(0,0,0,0.5); font-size: 12px; }
.proof-card .ph { aspect-ratio: 4/3; background: linear-gradient(160deg, #2a3558, #0f172a 60%), #0f172a; position: relative; display: grid; place-items: center; color: rgba(255,255,255,0.4); font-weight: 700; }
.proof-card .ph .binshape { width: 56%; aspect-ratio: 2.6; background: var(--navy); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); border-radius: 2px; position: relative; }
.proof-card .ph .binshape::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 10%; background: var(--navy-deep); }
.proof-card .ph .tag { position: absolute; left: 10px; bottom: 10px; background: rgba(10,15,34,0.8); color: #fff; padding: 5px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.proof-card .pb2 { padding: 14px; display: grid; gap: 8px; }
.proof-card .sig { height: 54px; border: 1px dashed var(--border); border-radius: 8px; position: relative; }
.proof-card .sig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.proof-card .sig path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.proof-card.is-in .sig path { animation: sign 1.6s var(--ease-out) 0.4s forwards; }
@keyframes sign { to { stroke-dashoffset: 0; } }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--night-line); font-weight: 700; font-size: 14px; }
.platforms span i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* ---------- demo page ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); color: var(--ink); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form input, .form select, .form textarea { font: inherit; padding: 13px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--canvas); color: var(--ink); min-height: 48px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(61,82,146,0.15); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .form-ok { display: grid; gap: 10px; padding: 10px 0; }
.form .form-ok[hidden] { display: none; }
.form .note, .form .note a { color: var(--ink-2); }
.form .note a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.form .form-ok h3 { font-size: 24px; }
.agenda { display: grid; gap: 14px; }
.agenda li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.agenda li b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(145,175,208,0.12); color: var(--steel); font-weight: 200; font-size: 20px; }
.agenda li p { color: var(--night-ink-2); font-size: 15px; }
.agenda li strong { display: block; margin-bottom: 2px; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } .form .two { grid-template-columns: 1fr; } }

/* ---------- quotes hero v2: the SMS lands, the customer's page opens ---------- */
.qhero { background: var(--night); padding-bottom: 90px; }
.qhero::before { display: none; }
.qhero-plate { position: absolute; inset: -8% 0; z-index: -2; overflow: hidden; }
.qhero-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.34; filter: saturate(0.75); }
.qhero-plate::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,15,34,0.97) 0%, rgba(10,15,34,0.86) 40%, rgba(10,15,34,0.35) 72%, rgba(10,15,34,0.55) 100%),
  linear-gradient(180deg, rgba(10,15,34,0.75) 0%, transparent 35%, transparent 65%, var(--night) 100%); }
.qhero-grid { align-items: center; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.qhero .hero-facts { margin-top: 4px; }
.qstage { position: relative; height: 640px; perspective: 1400px; }
.qs-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 2; pointer-events: none; }
.qs-link path { fill: none; stroke: rgba(145,175,208,0.45); stroke-width: 1.2; stroke-dasharray: 4 6; }
.qs-link .tok { fill: var(--amber); filter: drop-shadow(0 0 6px rgba(245,181,49,0.9)); opacity: 0; }
.qs-phone { --w: 260px; position: absolute; left: 2%; top: 30px; z-index: 3; }
.qs-screen { display: grid; grid-template-rows: auto auto 1fr; background: #fff; }
.qs-from { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13px; }
.qs-from small { display: block; font-weight: 600; color: var(--ink-3); font-size: 11px; }
.qs-from .av { width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.qs-thread { padding: 16px 14px; display: grid; gap: 10px; align-content: start; }
.qs-b { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(0.98); transform-origin: 0 100%; }
.qs-b.in { background: var(--raised); color: var(--ink); border-bottom-left-radius: 4px; justify-self: start; }
.qs-b.out { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; justify-self: end; transform-origin: 100% 100%; }
.qs-b.is-on { opacity: 1; transform: none; transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.qs-b u { text-decoration-color: var(--navy); color: var(--navy); font-weight: 700; }
.qs-typing { display: flex; gap: 4px; padding: 12px 14px; }
.qs-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: qsdot 1s infinite; }
.qs-typing i:nth-child(2) { animation-delay: 0.15s; } .qs-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes qsdot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.qs-page { position: absolute; right: 0; top: 120px; width: min(100%, 380px); z-index: 2; opacity: 0; transform: translateX(40px) rotateY(-10deg); }
.qs-page.is-on { opacity: 1; transform: rotateY(-6deg); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.qs-page .qp-steps span { transition: background 0.4s; }
.qs-page .qp-btn { transition: background 0.4s; }
.q3d-row { margin: 0 0 100px; display: grid; gap: 36px; }
.q3d-row .section-head { margin: 0; }
@media (max-width: 1280px) { .qs-page { width: min(100%, 340px); } .qs-phone { --w: 240px; } }
@media (max-width: 1100px) { .qstage { height: 600px; } }
@media (max-width: 900px) {
  .qhero-grid { grid-template-columns: 1fr; }
  .qstage { height: auto; display: grid; gap: 24px; justify-items: center; perspective: none; }
  .qs-link { display: none; }
  .qs-phone, .qs-page { position: static; transform: none !important; }
  .qs-page { width: min(100%, 420px); }
}
@media (prefers-reduced-motion: reduce) { .qs-b, .qs-page { opacity: 1; transform: none; } .qs-typing { display: none; } }

/* ---------- inner-page hero plates ---------- */
.page-hero.has-plate { background: var(--night); }
.page-hero.has-plate::before { display: none; }
.page-hero .hero-bg { position: absolute; inset: -8% 0; z-index: -2; overflow: hidden; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; filter: saturate(0.75); }
.page-hero .hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,15,34,0.96) 0%, rgba(10,15,34,0.82) 42%, rgba(10,15,34,0.4) 75%, rgba(10,15,34,0.6) 100%),
  linear-gradient(180deg, rgba(10,15,34,0.7) 0%, transparent 35%, transparent 65%, var(--night) 100%); }

/* ---------- features page ---------- */
.fx-hero { padding-bottom: 70px; }
.fx-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fx-toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--night-ink-2); text-decoration: none; font-weight: 700; font-size: 14px; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.fx-toc a:hover { border-color: var(--steel); color: #fff; }
.fx.page-hero { padding-top: clamp(84px, 11vw, 160px); }
.fx .display { font-size: clamp(38px, 4.8vw, 68px); }
.fx-index { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 50; display: grid; gap: 6px; }
.fx-index a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 28px; text-decoration: none; color: var(--night-ink-3); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; transition: color 0.3s; }
.fx-index a span { opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; }
.fx-index a i { width: 6px; height: 6px; border-radius: 50%; background: rgba(145,175,208,0.35); flex: none; transition: transform 0.3s, background 0.3s; }
.fx-index a.on { color: var(--night-ink); }
.fx-index a.on i { background: var(--amber); transform: scale(1.6); }
.fx-index:hover a span, .fx-index a.on span { opacity: 1; transform: none; }
.fx-index.is-light a { color: var(--ink-3); }
.fx-index.is-light a.on { color: var(--ink); }
.fx-index.is-light a i { background: rgba(71,85,105,0.3); }
.fx-index.is-light a.on i { background: var(--navy); }
@media (max-width: 1280px) { .fx-index { display: none; } }
@media (prefers-reduced-motion: reduce) { .fx-index a span, .fx-index a i { transition: none; } }

/* customers */
.cust-hero .lede { max-width: 60ch; }
.cust-logos { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; margin-top: 10px; }
.cust-logos img { height: 58px; width: auto; }
.cust-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.cust-story .stat { margin-top: 8px; }
.cust-card { position: relative; border-radius: var(--radius-lg); padding: 36px; background: var(--night-2); border: 1px solid var(--night-line); display: grid; gap: 18px; overflow: clip; isolation: isolate; }
.cust-card .brand-bar { height: 6px; border-radius: 3px; background: var(--c, var(--navy)); width: 72px; }
.cust-card img { height: 48px; width: auto; justify-self: start; }
.cust-card h3 { font-size: 26px; letter-spacing: -0.02em; color: var(--night-ink); }
.cust-card p { color: var(--night-ink-2); }
.cust-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-card .meta span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-ink-3); border: 1px solid var(--night-line); border-radius: 999px; padding: 6px 10px; }
.cust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .cust-story, .cust-grid { grid-template-columns: 1fr; } }

/* about */
.about-principles { counter-reset: p; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.about-principles li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--night-line); align-items: baseline; }
.about-principles li b { font-size: 38px; font-weight: 200; letter-spacing: -0.05em; color: var(--steel); line-height: 1; }
.about-principles li h3 { font-size: 22px; letter-spacing: -0.02em; }
.about-principles li p { color: var(--night-ink-2); margin-top: 6px; max-width: 56ch; }
.about-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.about-facts div { border-top: 1px solid var(--night-line); padding-top: 18px; }
.about-facts b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.about-facts p { color: var(--night-ink-2); font-size: 15px; }
@media (max-width: 800px) { .about-facts { grid-template-columns: 1fr; } }
