/* ==========================================================================
   The Beekeeper · concept kit (shared by both direction concepts)
   Brand: client's bee emblem, Cinzel wordmark, navy and metallic gold.
   ========================================================================== */
:root {
  --bg: #040C19; --bg-2: #07142A; --panel: #0B1A31; --panel-2: #0F2240; --raise: rgba(255, 255, 255, .04);
  --line: rgba(148, 178, 222, .14); --line-2: rgba(148, 178, 222, .26);
  --text: #EAF0F8; --muted: #8FA1BB; --soft: #C6D3E6;
  --gold: #F2B93F; --gold-2: #C8922E; --ink: #1A1204;
  --gold-metal: linear-gradient(135deg, #FFE7A8 0%, #F2C25A 38%, #C8922E 72%, #FFDB8A 100%);
  --ok: #4ED39A; --warn: #F2B93F; --err: #FF8A7A; --cyan: #4CC3FF; --blue: #1677FF; --wa: #1FAF54; --wa-dark: #0B141A;
  --r: 16px; --gutter: clamp(16px, 4vw, 40px);
  --display: 'Sora', 'Inter', system-ui, sans-serif; --font: 'Inter', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 36px; height: auto; display: block; filter: drop-shadow(0 6px 14px rgba(242, 185, 63, .25)); }
.logo b { display: block; font: 700 .98rem/1 'Cinzel', Georgia, serif; letter-spacing: .08em; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo small { display: block; font: 600 .56rem/1 'Cinzel', Georgia, serif; letter-spacing: .22em; color: var(--soft); margin-top: 5px; }

/* ---------- page shell ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(4, 12, 25, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.top__tag { font: 600 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding: 6px 10px; border: 1px solid rgba(242, 185, 63, .35); border-radius: 999px; white-space: nowrap; }
.views { display: flex; gap: 4px; margin-inline-start: auto; overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.views button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--soft); font-weight: 600; font-size: .86rem; white-space: nowrap; }
.views button:hover { color: var(--text); background: var(--raise); }
.views button[aria-selected="true"] { color: var(--ink); background: var(--gold-metal); }
.views .ico { width: 18px; height: 18px; }
.intro { padding: clamp(28px, 4vw, 48px) 0 20px; }
.intro__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.intro h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -.035em; }
.intro h1 em { font-style: normal; background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro p.lead { margin-top: 14px; color: var(--soft); font-size: 1.02rem; max-width: 60ch; }
.ends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ends button { display: grid; gap: 6px; align-content: start; text-align: start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.ends button:hover, .ends button[aria-selected="true"] { border-color: rgba(242, 185, 63, .55); }
.ends .ico { width: 22px; height: 22px; color: var(--gold); }
.ends b { font-size: .9rem; }
.ends small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.stage { padding: 8px 0 60px; }
.pane { animation: paneIn .45s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
.pane__cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.pane__cap h2 { font-size: 1.25rem; }
.pane__cap p { color: var(--muted); font-size: .9rem; }
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: .84rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- frames ---------- */
.browser { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0A1628; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #23324A; }
.browser__url { flex: 1; max-width: 420px; margin: 0 auto; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); font: 500 .78rem/1 var(--mono); color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phones { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.phone { width: 360px; max-width: 100%; height: 740px; border-radius: 44px; padding: 12px; background: #0A0F18; border: 1px solid #263248; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95), inset 0 0 0 2px #121A28; position: relative; justify-self: center; }
.phone__screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg-2); display: flex; flex-direction: column; }
.phone__status { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 6px; font: 600 .74rem/1 var(--font); }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 999px; background: #000; z-index: 3; }
.phone__body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.phone__body::-webkit-scrollbar { display: none; }
.side { display: grid; gap: 14px; align-content: start; }
.side h3 { font-size: 1.05rem; }
.side p { color: var(--soft); font-size: .92rem; }
.side .note { font-size: .82rem; }

/* ---------- components ---------- */
.btn { --bh: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--bh); padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; transition: transform .15s, filter .15s, background .2s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold-metal); border-color: transparent; color: var(--ink); }
.btn--ok { background: rgba(78, 211, 154, .14); border-color: rgba(78, 211, 154, .5); color: var(--ok); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--danger { background: rgba(255, 138, 122, .1); border-color: rgba(255, 138, 122, .45); color: var(--err); }
.btn--sm { --bh: 36px; padding: 0 12px; font-size: .8rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.card { border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.card__h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card__h h3 { font-size: .98rem; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.card__h h3 .ico { color: var(--gold); width: 19px; height: 19px; }
.card__b { padding: 16px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 700 .68rem/1.2 var(--mono); letter-spacing: .04em; white-space: nowrap; border: 1px solid var(--line-2); color: var(--soft); }
.pill--ok { color: var(--ok); border-color: rgba(78, 211, 154, .4); background: rgba(78, 211, 154, .08); }
.pill--warn { color: var(--gold); border-color: rgba(242, 185, 63, .4); background: rgba(242, 185, 63, .08); }
.pill--err { color: var(--err); border-color: rgba(255, 138, 122, .4); background: rgba(255, 138, 122, .08); }
.pill--info { color: var(--cyan); border-color: rgba(76, 195, 255, .4); background: rgba(76, 195, 255, .08); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot--pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.field { display: grid; gap: 6px; }
.field label { font: 600 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { min-height: 46px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--text); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.field select option { background: #0B1A31; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle__ui { width: 40px; height: 24px; border-radius: 999px; background: #23324A; position: relative; flex: none; transition: background .2s; }
.toggle__ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--ok); }
.toggle input:checked + .toggle__ui::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__ui { outline: 2px solid var(--gold); outline-offset: 2px; }
.toggle b { display: block; font-size: .88rem; }
.toggle small { display: block; color: var(--muted); font-size: .76rem; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { min-height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: none; color: var(--soft); font-weight: 600; font-size: .8rem; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: .84rem; }
.tbl th { text-align: start; font: 600 .68rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; position: relative; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold-metal); transition: width .6s var(--ease); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.kpi small { font: 600 .68rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi b { font: 700 1.5rem/1.1 var(--display); }
.kpi span { font-size: .76rem; color: var(--muted); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: .9rem; display: grid; gap: 8px; justify-items: center; }
.empty .ico { width: 30px; height: 30px; color: var(--gold); }
.note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.note .ico { color: var(--gold); margin-top: 2px; }

/* ---------- WhatsApp chat ---------- */
.wa { background: var(--wa-dark); }
.wa__head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #1F2C34; }
.wa__head img { width: 34px; height: 34px; border-radius: 50%; background: #0B141A; object-fit: contain; padding: 3px; }
.wa__head b { display: block; font-size: .92rem; }
.wa__head small { display: block; font-size: .72rem; color: #8BA0AC; }
.wa__log { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: #0B141A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='46' viewBox='0 0 40 46'%3E%3Cpath d='M20 1 39 12v22L20 45 1 34V12z' fill='none' stroke='%23F2B93F' stroke-opacity='.05'/%3E%3C/svg%3E"); scrollbar-width: none; }
.wa__log::-webkit-scrollbar { display: none; }
.wa__day { align-self: center; font-size: .7rem; color: #8BA0AC; background: #1F2C34; padding: 4px 10px; border-radius: 8px; }
.bub { max-width: 86%; padding: 8px 10px 6px; border-radius: 10px; font-size: .86rem; line-height: 1.5; background: #202C33; align-self: flex-start; position: relative; animation: bubIn .3s var(--ease) both; white-space: pre-line; }
.bub--me { background: #005C4B; align-self: flex-end; }
.bub time { display: block; text-align: end; font-size: .64rem; color: rgba(255, 255, 255, .55); margin-top: 2px; }
@keyframes bubIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.bub__card { margin: 2px 0 6px; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, .25); border-inline-start: 3px solid var(--gold); display: grid; gap: 3px; white-space: normal; }
.bub__card b { font-size: .88rem; }
.bub__btns { display: grid; gap: 1px; margin: 6px -10px -6px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bub__btns button { min-height: 38px; border: 0; background: none; color: #53BDEB; font-weight: 600; font-size: .84rem; }
.bub__btns button + button { border-top: 1px solid rgba(255, 255, 255, .08); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8BA0AC; animation: ty 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 50% { transform: translateY(-4px); opacity: .5; } }
.voice { display: flex; align-items: center; gap: 8px; min-width: 200px; }
.voice .ico { width: 22px; height: 22px; }
.voice__wave { flex: 1; height: 24px; display: flex; align-items: center; gap: 2px; }
.voice__wave i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.wa__bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: #0B141A; }
.wa__bar span { flex: 1; min-height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #1F2C34; color: #8BA0AC; font-size: .84rem; }
.wa__bar i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; }
.script { display: grid; gap: 8px; }
.script button { display: flex; align-items: center; gap: 10px; text-align: start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: .88rem; font-weight: 600; }
.script button:hover { border-color: var(--wa); }
.script button .ico { color: var(--wa); width: 20px; height: 20px; }
.script button small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.pipe { display: grid; gap: 6px; counter-reset: p; }
.pipe li { counter-increment: p; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: border-color .25s, background .25s; }
.pipe li::before { content: counter(p); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .76rem/1 var(--mono); background: rgba(255, 255, 255, .06); color: var(--muted); }
.pipe li b { display: block; font-size: .86rem; }
.pipe li small { display: block; font-size: .74rem; color: var(--muted); }
.pipe li em { font: 600 .72rem/1 var(--mono); font-style: normal; color: var(--muted); }
.pipe li.is-on { border-color: rgba(242, 185, 63, .6); background: rgba(242, 185, 63, .07); }
.pipe li.is-on::before { background: var(--gold); color: var(--ink); }
.pipe li.is-done::before { content: '✓'; background: var(--ok); color: #04210F; }
.pipe li.is-done em { color: var(--ok); }

/* ---------- node map ---------- */
.map { position: relative; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 60% 30%, rgba(22, 119, 255, .12), transparent 60%), #061226; border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.map .grid path { stroke: rgba(148, 178, 222, .07); }
.map .lane { fill: none; stroke: rgba(242, 185, 63, .35); stroke-width: 1.5; stroke-dasharray: 3 6; animation: lane 2.4s linear infinite; }
@keyframes lane { to { stroke-dashoffset: -36; } }
.map .node circle.halo { fill: rgba(242, 185, 63, .14); transition: r .3s; }
.map .node circle.core { fill: var(--gold); }
.map .node text { fill: var(--soft); font: 600 11px var(--font); }
.map .node.is-on circle.halo { fill: rgba(76, 195, 255, .25); }
.map .node.is-on circle.core { fill: var(--cyan); }

/* ---------- sheet + toast ---------- */
.sheet { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); animation: fade .2s both; }
.sheet__p { width: 100%; padding: 18px 18px 26px; border-radius: 22px 22px 0 0; background: #0F2240; border-top: 1px solid var(--line-2); display: grid; gap: 12px; animation: up .3s var(--ease) both; }
.sheet__p h4 { font-size: 1.05rem; }
.sheet__p p { color: var(--soft); font-size: .86rem; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: #0F2240; border: 1px solid rgba(242, 185, 63, .45); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .8); font-weight: 600; font-size: .88rem; animation: up .3s var(--ease) both; }
.toast .ico { color: var(--gold); }

/* ---------- build notes ---------- */
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.notes > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.notes h4 { font-size: .92rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.notes h4 .ico { color: var(--gold); }
.notes li { position: relative; padding-inline-start: 16px; font-size: .84rem; color: var(--soft); margin-bottom: 6px; }
.notes li::before { content: ''; position: absolute; inset-inline-start: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* ---------- phone app (shared by both concepts) ---------- */
.err { color: var(--err); font-size: .82rem; min-height: 1.2em; }
.err:empty { min-height: 0; }
.tbl .ratio { min-width: 150px; }
.tbl .ratio .bar { width: 110px; display: inline-block; vertical-align: middle; margin-inline-end: 8px; }
.tbl .ratio small { font: 600 .74rem/1 var(--mono); }
.bar--mark::after { content: ''; position: absolute; top: -3px; bottom: -3px; inset-inline-start: 60%; width: 2px; background: #fff; opacity: .7; }
.ap { display: flex; flex-direction: column; min-height: 100%; }
.ap--auth { justify-content: center; gap: 18px; padding: 28px 22px; }
.ap__brand { display: grid; justify-items: center; gap: 6px; text-align: center; margin-bottom: 8px; }
.ap__brand img { width: 64px; }
.ap__brand b { font-size: 1.1rem; }
.ap__brand small { color: var(--muted); }
.ap--auth form { display: grid; gap: 12px; }
.ap__fine { font-size: .76rem; color: var(--muted); text-align: center; }
.ap__data { justify-self: center; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.otp input { min-height: 50px; text-align: center; font: 700 1.2rem/1 var(--mono); border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--text); width: 100%; }
.otp input:focus { outline: 2px solid var(--gold); }
.lnkbtn { border: 0; background: none; color: var(--cyan); font-weight: 600; font-size: .84rem; }
.ap__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; background: rgba(7, 20, 42, .96); border-bottom: 1px solid var(--line); }
.ap__bar .logo img { width: 24px; }
.ap__bar .logo b { font-size: .72rem; }
.ap__bar .logo small { font-size: .5rem; }
.ap__live { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--ok); }
.ap__main { flex: 1; padding: 14px 14px 20px; display: grid; gap: 12px; align-content: start; }
.ap__hi small { display: block; color: var(--muted); font-size: .76rem; }
.ap__hi b { font: 700 1.25rem/1.2 var(--display); }
.ap__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.ap__seg button { min-height: 44px; border: 0; border-radius: 10px; background: none; color: var(--soft); font-weight: 700; font-size: .8rem; }
.ap__seg button[aria-pressed="true"] { background: var(--ok); color: #04210F; }
.ap__hub { display: grid; gap: 8px; justify-items: start; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(242, 185, 63, .14), rgba(242, 185, 63, .03)); border: 1px solid rgba(242, 185, 63, .35); }
.ap__hub small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.ap__hub b { font-size: .98rem; }
.ap__t { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin-top: 4px; }
.ap__t i { font-style: normal; font: 700 .72rem/1 var(--mono); padding: 3px 7px; border-radius: 6px; background: var(--gold); color: var(--ink); }
.ap__load { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ap__lt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ap__load p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; font-size: .92rem; }
.ap__load p small { color: var(--muted); font-weight: 500; }
.ap__pay { font: 700 1.2rem/1.2 var(--display) !important; color: var(--gold); }
.ap__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.ap__btns .btn { --bh: 48px; font-size: .86rem; }
.ap__plan { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ap__plan b { display: block; }
.ap__plan small { color: var(--muted); font-size: .78rem; }
.ap__truck, .ap__alert { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ap__truck > .ico, .ap__alert > .ico { width: 22px; height: 22px; color: var(--gold); }
.ap__truck > span:not(.pill), .ap__alert > span { flex: 1; min-width: 0; display: grid; }
.ap__truck small, .ap__alert small { color: var(--muted); font-size: .76rem; }
.ap__alert time { font: 600 .7rem/1 var(--mono); color: var(--muted); }
.ap__nav { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px 10px; background: rgba(7, 20, 42, .98); border-top: 1px solid var(--line); }
.ap__nav button { position: relative; display: grid; justify-items: center; gap: 3px; min-height: 52px; border: 0; background: none; color: var(--muted); font-size: .7rem; font-weight: 600; }
.ap__nav button .ico { width: 22px; height: 22px; }
.ap__nav button[aria-current="true"] { color: var(--gold); }
.ap__nav button i { position: absolute; top: 4px; inset-inline-end: 22%; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--err); color: #2A0A06; font: 700 .62rem/17px var(--mono); font-style: normal; }
.payb { justify-content: flex-start; }
.payb .ico { color: var(--wa); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.checks li .ico { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; }
.checks b { display: block; color: var(--text); font-size: .9rem; }


/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .intro__in { grid-template-columns: 1fr; }
  .phones { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top__in { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .top__tag { display: none; }
  .views { width: 100%; margin: 0; }
  .views button { flex: 1; justify-content: center; padding: 0 10px; }
  .views button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .intro .ends { display: none; }
  .ends { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .browser { border-radius: 14px; }
  .browser__url { display: none; }
}
@media (max-width: 400px) {
  .phone { height: 700px; padding: 8px; border-radius: 36px; }
  .phone__screen { border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- language + theme toggles ---------- */
.prefs { display: flex; gap: 6px; flex: none; }
.pref { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.pref:hover { border-color: var(--gold); }
.pref--icon { width: 40px; padding: 0; justify-content: center; }
.pref .ico { width: 18px; height: 18px; }
.pref__sun, .pref__moon { display: inline-flex; }
html:not([data-theme="light"]) .pref__moon, html[data-theme="light"] .pref__sun { display: none; }
.top__in > .top__tag + .prefs { margin-inline-start: auto; }
.top__in > .logo { flex: none; }
.logo b, .logo small { white-space: nowrap; }
.top__in:has(.views) .top__tag { display: none; }
@media (min-width: 761px) and (max-width: 1200px) { .views button { padding: 0 10px; font-size: .8rem; } .views .ico { display: none; } }

/* ---------- Urdu (RTL) ---------- */
html[dir="rtl"] .ico.flip { transform: scaleX(-1); }
html[lang="ur"] { --font: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; --display: 'Noto Sans Arabic', 'Sora', system-ui, sans-serif; }
html[lang="ur"] body { line-height: 1.8; }
html[lang="ur"] h1, html[lang="ur"] h2, html[lang="ur"] h3, html[lang="ur"] h4 { letter-spacing: 0; line-height: 1.5; }
html[lang="ur"] .intro h1 { letter-spacing: 0; }
html[lang="ur"] :is(.top__tag, .kicker, .field label, .tbl th, .kpi small, .pill, .ap__hub small, .panel__t, .erp__tabs button, .fx__id small, .life li, .cmp dt) { font-family: var(--font); letter-spacing: 0; text-transform: none; }
/* the mono font has no Urdu glyphs and breaks letter joins, and Urdu must never be letter-spaced */
html[lang="ur"] { --mono: 'Noto Sans Arabic', 'Inter', system-ui, sans-serif; }
html[lang="ur"] body * { letter-spacing: 0; }
html[lang="ur"] .logo b { letter-spacing: .08em; }
html[lang="ur"] .logo small { letter-spacing: .22em; }
html[lang="ur"] svg text { font-family: var(--font) !important; }
/* svg label offsets are drawn for left-to-right anchors */
svg { direction: ltr; }
html[lang="ur"] .bub { line-height: 1.75; }
html[lang="ur"] .views button, html[lang="ur"] .btn { font-weight: 600; }
html[dir="rtl"] .toggle input:checked + .toggle__ui::after { transform: translateX(-16px); }
html[dir="rtl"] .browser__url, html[dir="rtl"] .phone__status { direction: ltr; }

/* ---------- light theme ---------- */
html[data-theme="light"] {
  --bg: #F4F1EA; --bg-2: #FFFFFF; --panel: #FFFFFF; --panel-2: #F6F8FB; --raise: rgba(11, 26, 49, .04);
  --line: rgba(11, 26, 49, .12); --line-2: rgba(11, 26, 49, .22);
  --text: #0B1A31; --muted: #5A6A80; --soft: #2E405A;
  --gold: #A86F0C; --gold-2: #8A5A0B;
  --ok: #0F8A55; --warn: #A86F0C; --err: #C33B2A; --cyan: #0A73B5;
  color-scheme: light;
}
html[data-theme="light"] .logo b, html[data-theme="light"] .intro h1 em { background: linear-gradient(135deg, #C8922E 0%, #8A5A0B 60%, #B07A12 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .logo small { color: var(--soft); }
html[data-theme="light"] .logo img { filter: none; }
html[data-theme="light"] .top { background: rgba(244, 241, 234, .9); }
html[data-theme="light"] .browser { box-shadow: 0 30px 60px -36px rgba(11, 26, 49, .35); }
html[data-theme="light"] .browser__bar { background: #EEF1F5; }
html[data-theme="light"] .browser__dots i { background: #C9D1DC; }
html[data-theme="light"] .browser__url { background: #FFFFFF; }
html[data-theme="light"] .phone { box-shadow: 0 30px 60px -30px rgba(11, 26, 49, .45), inset 0 0 0 2px #121A28; }
html[data-theme="light"] .phone__screen { background: #F6F8FB; }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .otp input { background: #FFFFFF; }
html[data-theme="light"] .field select option { background: #FFFFFF; }
html[data-theme="light"] .toggle__ui { background: #C9D1DC; }
html[data-theme="light"] .seg, html[data-theme="light"] .ap__seg { background: rgba(11, 26, 49, .05); }
html[data-theme="light"] .seg button[aria-pressed="true"], html[data-theme="light"] .seg button[aria-selected="true"] { background: #FFFFFF; }
html[data-theme="light"] .bar { background: rgba(11, 26, 49, .08); }
html[data-theme="light"] .bar--mark::after { background: var(--text); opacity: .5; }
html[data-theme="light"] .pipe li::before { background: rgba(11, 26, 49, .07); }
html[data-theme="light"] .pipe li.is-done::before { color: #fff; }
html[data-theme="light"] .map { background: radial-gradient(circle at 60% 30%, rgba(22, 119, 255, .08), transparent 60%), #EAF0F7; }
html[data-theme="light"] .map .grid path { stroke: rgba(11, 26, 49, .07); }
html[data-theme="light"] .map .lane { stroke: rgba(168, 111, 12, .5); }
html[data-theme="light"] .map .node circle.halo { fill: rgba(168, 111, 12, .16); }
html[data-theme="light"] .sheet__p, html[data-theme="light"] .toast { background: #FFFFFF; }
html[data-theme="light"] .toast { box-shadow: 0 20px 50px -18px rgba(11, 26, 49, .35); }
html[data-theme="light"] .ap__bar { background: rgba(255, 255, 255, .96); }
html[data-theme="light"] .ap__nav { background: rgba(255, 255, 255, .98); }
html[data-theme="light"] .ap__seg button[aria-pressed="true"] { color: #fff; }
html[data-theme="light"] .ap__nav button i, html[data-theme="light"] .pipe li.is-alarm::before { color: #fff; }
/* WhatsApp in its own light colours */
html[data-theme="light"] .wa { background: #EFEAE2; }
html[data-theme="light"] .wa__head { background: #F0F2F5; }
html[data-theme="light"] .wa__head img { background: #FFFFFF; }
html[data-theme="light"] .wa__head small, html[data-theme="light"] .wa__day { color: #667781; }
html[data-theme="light"] .wa__log { background-color: #EFEAE2; }
html[data-theme="light"] .wa__day { background: #FFFFFF; }
html[data-theme="light"] .bub { background: #FFFFFF; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
html[data-theme="light"] .bub--me { background: #D9FDD3; }
html[data-theme="light"] .bub time { color: #667781; }
html[data-theme="light"] .bub__card { background: rgba(11, 26, 49, .05); }
html[data-theme="light"] .bub__btns, html[data-theme="light"] .bub__btns button + button { border-color: rgba(11, 20, 26, .1); }
html[data-theme="light"] .bub__btns button { color: #027EB5; }
html[data-theme="light"] .voice__wave i { background: rgba(11, 20, 26, .4); }
html[data-theme="light"] .wa__bar { background: #EFEAE2; }
html[data-theme="light"] .wa__bar span { background: #FFFFFF; color: #667781; }

@media (max-width: 760px) {
  .prefs { margin-inline-start: auto; order: 1; }
  .top__in .views { order: 2; }
  .pref { min-height: 36px; padding: 0 10px; }
  .pref--icon { width: 36px; }
}
