/* DLaaS Partner additions, on top of the customer site's site.css + motion.css.
   Same tokens; green is reserved for "online / accept / money in". */

.brand-tag { font-style: normal; font-weight: 500; color: var(--violet); font-variation-settings: "wdth" 85; }
#site-header.on-stage .brand-tag { color: #B8A9FF; }
.eyebrow { font-size: .9rem; font-weight: 650; color: #B8A9FF; margin-bottom: 18px; letter-spacing: .01em; }
.eyebrow-ink { font-size: .9rem; font-weight: 650; color: var(--violet); margin-bottom: 10px; }
.h-sm { font-size: 1.2rem; letter-spacing: -0.015em; }
.btn.ghost.on-dark { --b: #F4F2FC; color: #F4F2FC; border-color: rgba(255,255,255,.28); }
.btn.ghost.on-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- Online switch (header) ---------- */
.presence { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.presence-knob { width: 34px; height: 22px; border-radius: 999px; background: var(--sunk); position: relative; flex: none; transition: background .2s; }
.presence-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .2s, background .2s; }
.presence.on { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 40%, transparent); color: var(--green); }
.presence.on .presence-knob { background: var(--green); }
.presence.on .presence-knob::after { transform: translateX(12px); background: #fff; }
.presence:hover { border-color: var(--green); }
#site-header.on-stage .presence:not(.on) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--stage-ink-2); }
@media (max-width: 520px) { .presence > span:last-child { display: none; } .presence { padding: 0 6px; } }

/* ---------- Home ---------- */
.hero-facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 600px; }
.hero-facts li { border-top: 1px solid var(--stage-line); padding-top: 14px; }
.hero-facts b { display: block; font-size: 1.6rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-facts span { color: var(--stage-ink-2); font-size: .88rem; line-height: 1.35; display: block; margin-top: 2px; }
@media (max-width: 520px) { .hero-facts { grid-template-columns: 1fr; gap: 12px; } }

.req-demo { display: grid; gap: 14px; max-width: 460px; justify-self: center; width: 100%; }
.req-switch { display: flex; align-items: center; gap: 12px; color: var(--stage-ink-2); font-size: .88rem; }
.req-switch .presence { pointer-events: none; }
.req-card, .req-earn { background: linear-gradient(180deg, #221A45, #19133A); border: 1px solid var(--stage-line); border-radius: 26px; padding: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); position: relative; overflow: hidden; }
.req-card { border-color: rgba(60, 203, 142, .4); animation: rise .5s ease-out; }
.req-head { display: flex; gap: 12px; align-items: center; }
.req-head .pop-av { background: #12945F; color: #fff; animation: ringGreen 1.4s infinite; }
.req-head b { display: block; font-size: 1.02rem; }
.req-head small { color: var(--stage-ink-2); font-size: .85rem; }
.req-note { font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; margin: 16px 0 18px; color: var(--stage-ink); }
.req-actions { display: flex; gap: 8px; }
.req-actions .btn.quiet { background: rgba(255,255,255,.1); color: #F4F2FC; }
.req-ring { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.req-ring i { display: block; height: 100%; background: #3CCB8E; animation: drain 9s linear infinite; transform-origin: left; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.req-earn { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; }
.req-earn small { display: block; color: var(--stage-ink-2); font-size: .8rem; }
.req-earn b { font-size: 1.25rem; letter-spacing: -0.02em; }
.req-earn > div:first-child b { color: #3CCB8E; }

.calc { display: grid; gap: 22px; }
.calc .field > span { display: flex; justify-content: space-between; }
.calc .field > span b { color: var(--violet); }
input[type="range"] { width: 100%; accent-color: var(--violet); height: 28px; }
.calc-out { display: grid; gap: 2px; padding: 20px; border-radius: var(--r-md); background: var(--sunk); }
.calc-out b { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1.05; font-variation-settings: "wdth" 80; color: var(--ink); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-grid .tile { padding: 24px; }
.feature-grid .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); margin-bottom: 16px; }
.feature-grid h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature-grid p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Forms: chips, rates, uploads ---------- */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { font-size: .9rem; font-weight: 600; padding: 0; margin-bottom: 4px; }
.f-err { color: var(--red) !important; }
.f-err:empty { display: none; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pick-chip { position: relative; cursor: pointer; }
.pick-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: .93rem; transition: background .15s, border-color .15s, color .15s; }
.pick-chip:hover span { border-color: var(--violet); }
.pick-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick-chip input:checked + span::before { content: "✓"; margin-right: 6px; font-size: .85em; }
.pick-chip input:focus-visible + span { outline: 3px solid var(--violet-brand); outline-offset: 2px; }
.rate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
@media (max-width: 640px) { .rate-grid { grid-template-columns: 1fr; } }
.rate-field { display: grid; gap: 6px; }
.rate-field > span { display: flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.rate-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); padding: 0 12px; }
.rate-input:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 20%, transparent); }
.rate-input > span { color: var(--ink-3); font-weight: 600; }
.rate-input .input { border: 0; box-shadow: none !important; background: transparent; padding: 11px 6px; min-width: 0; font-weight: 650; font-size: 1.05rem; }

.wizard { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wizard li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 3px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: .9rem; }
.wizard li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-size: .8rem; flex: none; }
.wizard li.now { border-color: var(--violet); color: var(--ink); }
.wizard li.now span { background: var(--violet); color: #fff; }
.wizard li.done { border-color: var(--green); color: var(--ink-2); }
.wizard li.done span { background: var(--green); color: #fff; }
@media (max-width: 560px) { .wizard li { font-size: 0; gap: 0; } .wizard li span { font-size: .8rem; } }

.docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.docs:empty { margin: 8px 0 0; }
.doc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; background: var(--sunk); font-size: .9rem; font-weight: 600; }
.doc-chip a { color: inherit; }
.doc-chip .icon-btn { width: 30px; height: 30px; }
.drop { display: grid; justify-items: center; gap: 6px; padding: 30px 20px; border: 2px dashed var(--line); border-radius: var(--r-md); cursor: pointer; color: var(--violet); text-align: center; transition: border-color .15s, background .15s; }
.drop b { color: var(--ink); }
.drop:hover, .drop.over { border-color: var(--violet); background: var(--violet-soft); }
.drop.is-busy { opacity: .6; pointer-events: none; }
.drop:focus-within { outline: 3px solid var(--violet-brand); outline-offset: 2px; }

.status-card { text-align: center; padding-block: clamp(32px, 6vw, 56px); }
.status-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--amber-soft); color: var(--amber); }
.status-card.rejected .status-ic { background: var(--red-soft); color: var(--red); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.dash-side { display: grid; gap: 16px; position: sticky; top: 88px; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } .dash-side { position: static; } }

.avail { border-radius: var(--r-lg); padding: 22px; background: var(--card); border: 1px solid var(--line); transition: background .3s; }
.avail.on { background: linear-gradient(135deg, #12945F, #0E7A55 55%, #1B6E62); border-color: transparent; color: #fff; box-shadow: 0 24px 48px -26px rgba(18, 148, 95, .7); }
.avail-top { display: flex; align-items: center; gap: 14px; }
.avail-top .grow { flex: 1; min-width: 0; }
.avail-top b { display: block; font-size: 1.2rem; }
.avail-top span { color: var(--ink-2); font-size: .92rem; }
.avail.on .avail-top span { color: rgba(255,255,255,.82); }
.avail-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.avail.on .avail-ic { background: rgba(255,255,255,.18); color: #fff; }
.switch { width: 58px; height: 34px; border-radius: 999px; border: 0; background: var(--sunk); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch span { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .2s; }
.switch[aria-checked="true"] { background: rgba(255,255,255,.35); }
.switch[aria-checked="true"] span { transform: translateX(24px); }
.switch.is-busy { opacity: .6; pointer-events: none; }
.avail-modes { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.avail.on .avail-modes { border-top-color: rgba(255,255,255,.22); }
.avail-k { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.avail.on .avail-k { color: rgba(255,255,255,.75); }
.mode-togs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode-tog { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink-3); cursor: pointer; text-align: left; font: inherit; font-weight: 650; font-size: .92rem; transition: background .15s, border-color .15s, color .15s; }
.mode-tog small { display: block; font-weight: 500; font-size: .78rem; }
.mode-tog[aria-pressed="true"] { border-color: var(--violet); color: var(--violet); background: var(--violet-soft); }
.avail.on .mode-tog { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.6); }
.avail.on .mode-tog[aria-pressed="true"] { background: #fff; border-color: #fff; color: #0E7A55; }
.mode-tog[aria-pressed="false"] span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.mode-tog.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 520px) { .mode-tog { padding: 10px; } .mode-tog svg { display: none; } }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.stat > span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .86rem; font-weight: 550; }
.stat > span svg { color: var(--violet); }
.stat b { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.1; }
.stat small { font-size: .8rem; }

.live-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--stage); color: var(--stage-ink); text-decoration: none; border: 1px solid rgba(60, 203, 142, .4); }
.live-banner .grow { flex: 1; min-width: 0; }
.live-banner b { display: block; }
.live-banner .grow span { color: var(--stage-ink-2); font-size: .88rem; }

.req-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--amber); }
.req-row .grow { flex: 1; min-width: 0; color: inherit; text-decoration: none; display: grid; gap: 2px; }
.req-row .sub { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-row-note { font-family: var(--serif); color: var(--ink); font-size: 1rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 640px) { .req-row { flex-wrap: wrap; } .req-row > .row { width: 100%; justify-content: flex-end; } }

.bal-amt { display: block; font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; margin: 4px 0; font-variation-settings: "wdth" 80; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.mini-row:last-child { border-bottom: 0; }
.mini-row .grow { flex: 1; min-width: 0; }
.mini-row .grow b { display: block; font-size: .95rem; }
.mini-row .grow span { color: var(--ink-3); font-size: .82rem; }
.mini-row:hover .grow b { color: var(--violet); }

/* ---------- Consultations ---------- */
.tab-n:not(:empty) { margin-left: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose); color: #fff; font-size: .72rem; display: inline-grid; place-items: center; }
.client-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.client-note b { display: block; font-size: .82rem; color: var(--ink-3); font-weight: 650; margin-bottom: 4px; }
.client-note p { font-family: var(--serif); font-size: 1.02rem; }
.big-note { font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; max-width: 46ch; margin: 24px auto 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--sunk); text-align: left; }
.pop-note { font-family: var(--serif); font-size: .95rem !important; color: #E9E5FA !important; margin-top: 8px !important; }
.call-note { max-width: 640px; margin: 0 auto; padding: 0 24px; text-align: center; color: #B3ACD6; font-size: .9rem; }
.call-note b { color: #F4F2FC; }
.call-overlay { grid-template-rows: auto 1fr auto auto; } /* room for the client's note */
.form-grid > .field { align-content: start; } /* a neighbour's helper text shouldn't stretch the input */
.tabs { overflow-y: hidden; } /* overflow-x: auto would otherwise scroll the -1px tab underline */
.brand > span { white-space: nowrap; }
@media (max-width: 420px) { .nav-end a.icon-btn { display: none; } .nav { column-gap: 12px; } } /* Notifications is in the menu */
