/* ============================================================
   VRS — site UI kit (v3) · themeable product mockups + components
   ============================================================ */

/* ───── browser frame ───── */
.bframe { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop); overflow: hidden; }
.bframe-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--hairline); }
.bframe-bar .tl { display: flex; gap: 7px; }
.bframe-bar .tl i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.bframe-bar .url { margin: 0 auto; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 7px; padding: 5px 14px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.bframe-bar .url svg { width: 11px; height: 11px; color: var(--green); }

/* ───── admin console ───── */
.admin { display: grid; grid-template-columns: 208px 1fr; background: var(--surface); }
.ad-side { background: color-mix(in oklab, var(--surface) 80%, var(--bg)); border-right: 1px solid var(--hairline); padding: 14px 12px; }
.ad-brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; }
.ad-brand .mk { width: 26px; height: 26px; border-radius: 7px; background: #fff; padding: 2px; }
.ad-brand .nm { font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.ad-brand .tag { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; }
.ad-group { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); padding: 13px 8px 6px; }
.ad-nav { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: default; }
.ad-nav svg { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.ad-nav.on { background: var(--green-wash); color: var(--accent-text); font-weight: 600; }
.ad-nav.on svg { color: var(--accent-text); }
.ad-nav .b { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 600; background: var(--text); color: var(--bg); border-radius: 999px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 5px; }
.ad-nav .b.red { background: #D83A2F; color: #fff; }

.ad-main { display: flex; flex-direction: column; min-width: 0; }
.ad-top { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--hairline); }
.ad-crumb { font-size: 13px; color: var(--text-2); font-weight: 600; }
.ad-search { margin-left: 4px; flex: 1; max-width: 320px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 7px 12px; font-size: 12.5px; color: var(--text-3); }
.ad-search svg { width: 13px; height: 13px; }
.ad-search .kbd { margin-left: auto; font-family: var(--mono); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.ad-top .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ad-top .icobtn { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); position: relative; }
.ad-top .icobtn svg { width: 15px; height: 15px; }
.ad-top .icobtn .dot { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ad-top .ava { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--green-l), var(--green-d)); color: var(--on-green); display: grid; place-items: center; font-size: 11px; font-weight: 700; }

.ad-body { padding: 22px; }
.ad-date { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-3); text-transform: uppercase; }
.ad-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 6px 0 4px; }
.ad-title .n { font-family: var(--disp); font-weight: 600; color: var(--accent-text); }
.ad-title .n.warn { color: var(--pill-amber-tx); }
.ad-sub { font-size: 13px; color: var(--text-2); }
.ad-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ad-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.ad-btn svg { width: 13px; height: 13px; }
.ad-btn.primary { background: var(--green); color: var(--on-green); border-color: var(--green); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.kpi { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 15px; background: var(--surface); position: relative; overflow: hidden; }
.kpi::after { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background: var(--green); opacity:.0; transition: opacity .3s; }
.kpi.live::after { opacity:.9; }
.kpi .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kpi .v { font-family: var(--disp); font-weight: 600; font-size: 40px; line-height: 0.95; color: var(--accent-text); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .v.warn { color: var(--pill-amber-tx); }
.kpi .v.red { color: #E5564A; }
.kpi .v .u { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--text-2); margin-left: 5px; letter-spacing: 0; }
.kpi .sub { font-size: 11px; color: var(--text-3); margin-top: 6px; }
.kpi .sub .up { color: var(--accent-text); }

.ad-split { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; margin-top: 18px; }
.panel { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--hairline); }
.panel-head .t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; }
.panel-head .t .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1;box-shadow:0 0 0 0 var(--glow)} 50%{opacity:.4;box-shadow:0 0 0 5px transparent} }
.panel-head .more { font-size: 11.5px; color: var(--accent-text); font-weight: 600; }

.row-th, .live-row { display: grid; grid-template-columns: 1.5fr 0.9fr 1.2fr; gap: 8px; align-items: center; }
.row-th { padding: 8px 15px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.live-row { padding: 10px 15px; border-top: 1px solid var(--hairline); }
.who { display: flex; align-items: center; gap: 9px; }
.who .av { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.who .nm { font-size: 12.5px; font-weight: 600; }
.who .ro { font-size: 10.5px; color: var(--text-3); }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-block; }
.pill.green { background: var(--green-wash); color: var(--accent-text); }
.pill.amber { background: var(--pill-amber-bg); color: var(--pill-amber-tx); }
.pill.blue { background: var(--pill-blue-bg); color: var(--pill-blue-tx); }
.act { font-size: 12px; color: var(--text); }
.act .s { color: var(--text-3); font-size: 11px; }

.waiting { padding: 6px; }
.wait-item { display: flex; gap: 10px; padding: 11px 10px; border-radius: 10px; align-items: flex-start; }
.wait-item .ck { width: 26px; height: 26px; border-radius: 7px; flex: none; background: var(--green-wash); color: var(--accent-text); display: grid; place-items: center; }
.wait-item .ck svg { width: 13px; height: 13px; }
.wait-item .tx { flex: 1; min-width: 0; }
.wait-item .tx .a { font-size: 12.5px; font-weight: 600; }
.wait-item .tx .b { font-size: 11px; color: var(--text-3); }
.wait-item .tm { font-family: var(--mono); font-size: 10px; color: var(--text-3); white-space: nowrap; }

.ad-warn { display: flex; gap: 11px; align-items: flex-start; background: var(--warn-bg); border: 1px solid var(--warn-brd); border-radius: 10px; padding: 12px 14px; }
.ad-warn .ic { color: var(--pill-amber-tx); flex: none; }
.ad-warn .ic svg { width: 16px; height: 16px; }
.ad-warn p { font-size: 12.5px; color: var(--warn-tx); }
.ad-warn p b { color: var(--text); }
.ad-warn a { color: var(--pill-amber-tx); font-weight: 600; }

/* ───── interactive tab viewer ───── */
.tabviewer { margin-top: 56px; }
.tabbar { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tabbtn { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; cursor: pointer; transition: all .2s ease; }
.tabbtn svg { width: 16px; height: 16px; color: var(--text-3); transition: color .2s; }
.tabbtn:hover { color: var(--text); border-color: var(--text-3); }
.tabbtn.on { background: var(--green); border-color: var(--green); color: var(--on-green); box-shadow: 0 10px 26px -10px var(--glow); }
.tabbtn.on svg { color: #fff; }
/* Roadmap chip — marks demo surfaces that are vision, not yet shipped (DEC-003).
   Mirrors the real console's built:false gating in shell/nav.tsx. */
.soon-chip { font-family: var(--mono); font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--pill-amber-tx); background: var(--pill-amber-bg); border-radius: 999px; padding: 2px 7px; text-transform: uppercase; flex: none; }
.tabbtn .soon-chip { margin-left: 2px; }
.tabbtn.on .soon-chip { background: rgba(0,0,0,0.22); color: var(--on-green); }
.ad-nav.dim { opacity: .55; }
.ad-nav .soon-chip { margin-left: auto; }
.ad-nav .b + .soon-chip { margin-left: 6px; }
/* Timesheets demo panel — mirrors the real console day-timeline (Time page) */
.ts-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 2px 2px 12px; font-size: 12px; color: var(--text-2); }
.ts-toolbar .seg { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 10px; color: var(--text-3); }
.ts-toolbar .seg.on { background: var(--surface-3); color: var(--text); border-color: var(--text-3); }
.ts-toolbar .date { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.ts-row { display: grid; grid-template-columns: 148px 1fr; gap: 10px; align-items: center; padding: 7px 2px; border-top: 1px solid var(--hairline); }
.ts-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ts-row .who .nm { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-row .who .ro { font-family: var(--mono); font-size: 9px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.ts-track { position: relative; height: 26px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.ts-block { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; display: flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
.ts-block.reg { background: var(--green); color: var(--on-green); }
.ts-block.prog { background: var(--green-d); outline: 1px dashed rgba(255,255,255,0.55); outline-offset: -3px; }
.ts-block.gap { background: repeating-linear-gradient(135deg, rgba(216,58,47,0.24) 0 6px, rgba(216,58,47,0.38) 6px 12px); color: #D83A2F; }
.ts-block.leave { background: var(--pill-blue-bg); color: var(--pill-blue-tx); border: 1px dashed var(--pill-blue-tx); }
.ts-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 2px 0; border-top: 1px solid var(--hairline); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.ts-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* Narrow time blocks degrade gracefully: the full "07:00–14:30" range needs
   ~63px at 10px/700 (measured), so below a 66px CONTENT box (container queries
   measure the content box, i.e. block width minus horizontal padding) drop the
   "–end" span (.ts-t2 in markup) and keep the start time whole. Per-block, any
   viewport; engines without container queries keep today's clip as fallback. */
.ts-block { container-type: inline-size; }
@container (max-width: 66px) { .ts-t2 { display: none; } }
/* Mobile: the 148px who-column leaves the timeline ~170px on a 390px phone —
   time labels can never fit ("07:00–14:3", "15:0"). Stack who ABOVE a
   full-width track instead, and centre labels with tighter padding so short
   blocks ("Gap") stay whole too. */
@media (max-width: 600px){
  .ts-row { grid-template-columns: 1fr; gap: 6px; padding: 9px 2px 10px; }
  .ts-track { height: 30px; }
  .ts-block { padding: 0 5px; justify-content: center; }
}
.tabstage { position: relative; min-height: 460px; }
.tabpanel { display: none; }
.tabpanel.on { display: block; animation: panelIn .55s cubic-bezier(.2,.7,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(.99); } to { opacity: 1; transform: none; } }
.tab-cap { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--text-2); max-width: 60ch; margin-left:auto;margin-right:auto; }
.tab-cap b { color: var(--text); }

/* ───── small product cards (feature visuals) ───── */
.uicard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.uicard-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.uicard-head .t { font-weight: 700; font-size: 14px; }
.uicard-head .t .s { font-weight: 400; color: var(--text-3); }
.uicard-head .pill { margin-left: auto; }
.uicard-tabs { display: flex; gap: 4px; padding: 10px 14px 0; border-bottom: 1px solid var(--hairline); }
.uicard-tab { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 7px 11px 11px; border-bottom: 2px solid transparent; }
.uicard-tab.on { color: var(--accent-text); border-bottom-color: var(--green); }
.uicard-body { padding: 14px 16px; }

.cap-row { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr auto; gap: 10px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--hairline); }
.cap-row:first-child { border-top: 0; }
.cap-week { display: flex; gap: 4px; }
.cap-week i { width: 13px; height: 18px; border-radius: 3px; background: var(--surface-2); }
.cap-week i.on { background: #E8722C; }
.cap-week i.g { background: var(--green); }
.cap-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tg { font-family: var(--mono); font-size: 9px; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.tg.warn { background: var(--pill-amber-bg); color: var(--pill-amber-tx); }
.mono-v { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent-text); }
.mono-v .d { color: var(--text-3); }

.res-line { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--hairline); }
.res-line:first-child { border-top: 0; }
.res-line .lic { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.res-line .ltx { flex: 1; }
.res-line .ltx .a { font-size: 13px; font-weight: 600; }
.res-line .ltx .b { font-size: 11px; color: var(--text-3); }
.res-line .lv { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.res-line .lv.g { color: var(--accent-text); }

.cert-row { display: flex; align-items: center; gap: 11px; padding: 11px 8px; border-top: 1px solid var(--hairline); }
.cert-row:first-child { border-top: 0; }
.cert-row .st { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.cert-row .st.ok { background: var(--green); } .cert-row .st.warn { background: #E89A2C; } .cert-row .st.red { background: #E5564A; }
.cert-row .nm { font-size: 12.5px; font-weight: 600; flex: 1; }
.cert-row .meta { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }

/* ───── hero pipeline animation ───── */
.pipeline { display: flex; align-items: stretch; gap: 0; margin-top: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); position: relative; }
.pipe-stage { flex: 1; padding: 34px 16px 18px; position: relative; border-right: 1px solid var(--hairline); min-width: 0; }
.pipe-stage:last-child { border-right: 0; }
.pipe-stage .ic { width: 32px; height: 32px; border-radius: 9px; background: var(--green-wash); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 12px; }
.pipe-stage .ic svg { width: 17px; height: 17px; }
.pipe-stage .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.pipe-stage .ttl { font-size: 14px; font-weight: 700; margin-top: 3px; letter-spacing: -0.01em; }
.pipe-stage .meta { font-size: 11.5px; color: var(--text-2); margin-top: 5px; min-height: 28px; }
.pipe-stage.active .ic { background: var(--green); color: var(--on-green); box-shadow: 0 0 0 5px var(--glow); }
.pipe-stage .bar { height: 3px; border-radius: 2px; background: var(--surface-2); margin-top: 12px; overflow: hidden; }
.pipe-stage .bar > i { display: block; height: 100%; width: 100%; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .6s ease; }
.pipe-stage.active .bar > i, .pipe-stage.done .bar > i { transform: scaleX(1); }
.pipe-token { position: absolute; top: 11px; width: 14px; height: 14px; border-radius: 4px; background: var(--green); box-shadow: 0 0 14px var(--glow); z-index: 4; }

/* ───── metric band ───── */
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hairline); margin-top: 48px; }
.metric { padding: 28px 26px 8px; border-right: 1px solid var(--hairline); }
.metric:last-child { border-right: 0; }
.metric .v { font-family: var(--disp); font-weight: 600; font-size: clamp(54px, 6vw, 86px); line-height: 0.9; color: var(--accent-text); }
.metric .v.white { color: var(--text); }
.metric .k { font-size: 14px; color: var(--text-2); margin-top: 10px; max-width: 26ch; }

/* ───── feature rows ───── */
.feature { padding: 64px 0; border-top: 1px solid var(--hairline); }
.feat-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.feature.rev .feat-grid { grid-template-columns: 1.1fr 1fr; }
.feature.rev .feat-copy { order: 2; }
.feat-copy .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent-text); }
.feat-copy h3 { font-size: clamp(26px, 3vw, 38px); margin: 14px 0 0; letter-spacing: -0.028em; }
.feat-copy .lede { margin-top: 16px; max-width: 46ch; }
.feat-points { margin-top: 24px; display: grid; gap: 14px; }
.feat-point { display: flex; gap: 13px; align-items: flex-start; }
.feat-point .ic { width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--green-wash); color: var(--accent-text); display: grid; place-items: center; }
.feat-point .ic svg { width: 16px; height: 16px; }
.feat-point .tx h2, .feat-point .tx h3, .feat-point .tx h4 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.feat-point .tx p { font-size: 14px; color: var(--text-2); margin-top: 2px; max-width: 42ch; }
.feat-cta { margin-top: 24px; }

/* ───── AI card ───── */
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.ai-head .mk { width: 26px; height: 26px; border-radius: 8px; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ai-head .t { font-size: 13px; font-weight: 700; }
.ai-head .t .s { font-weight: 400; color: var(--text-3); }
.ai-head .conf { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--accent-text); background: var(--green-wash); padding: 4px 9px; border-radius: 999px; }
.ai-body { padding: 16px 18px; }
.ai-l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--text-3); }
.ai-t { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.ai-d { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.ai-box { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px; }
.ai-box .prop { font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.ai-acts { display: flex; gap: 8px; margin-top: 14px; }
.ai-acts .a { font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ai-acts .a svg { width: 12px; height: 12px; }
.ai-acts .a.y { background: var(--green); color: var(--on-green); }
.ai-acts .a.n { border: 1px solid var(--line); color: var(--text-2); }

/* ───── phone ───── */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone { width: 300px; aspect-ratio: 300/620; background: #05080530; border-radius: 44px; padding: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); position: relative; background: linear-gradient(160deg, var(--surface-3), var(--surface)); }
.phone .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 118px; height: 27px; background: var(--bg); border-radius: 0 0 16px 16px; z-index: 6; }
.phscreen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); position: relative; border: 1px solid var(--hairline); }
.ph-stat { display: flex; justify-content: space-between; padding: 15px 22px 4px; font-size: 12px; font-weight: 600; color: var(--text); }
.ph-head { padding: 6px 18px 4px; }
.ph-head .date { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ph-head .greet { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.ph-head .greet h4 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.ph-head .greet .tools { display: flex; gap: 7px; align-items: center; }
.ph-head .greet .spor { font-family: var(--mono); font-size: 9px; font-weight: 600; color: var(--pill-blue-tx); background: var(--pill-blue-bg); border-radius: 999px; padding: 4px 9px; }
.ph-head .greet .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); border: 1px solid var(--hairline); }
.ph-head .greet .ico svg { width: 14px; height: 14px; }
.ph-seg { display: flex; gap: 4px; margin: 14px 14px 0; background: var(--surface-2); border-radius: 12px; padding: 4px; }
.ph-seg .s { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; }
.ph-seg .s .a { font-size: 12px; font-weight: 700; color: var(--text-2); }
.ph-seg .s .b { font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; color: var(--text-3); margin-top: 2px; }
.ph-seg .s.on { background: var(--green); box-shadow: 0 4px 12px -4px var(--glow); }
.ph-seg .s.on .a, .ph-seg .s.on .b { color: #fff; }
.ph-task { margin: 12px 14px 0; border: 1px solid var(--hairline); border-radius: 16px; padding: 15px; background: var(--surface); box-shadow: var(--shadow-card); }
.ph-task .chip { font-family: var(--mono); font-size: 9px; font-weight: 600; color: var(--pill-blue-tx); background: var(--pill-blue-bg); border-radius: 999px; padding: 4px 9px; display: inline-block; }
.ph-task h5 { font-size: 17px; font-weight: 700; margin: 11px 0 3px; }
.ph-task .meta { font-size: 12px; color: var(--text-3); }
.ph-task .after { margin-top: 12px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.ph-task .after .l { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ph-task .after .v { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.ph-task .acts { display: flex; gap: 9px; margin-top: 13px; }
.ph-task .start { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--green); color: var(--on-green); font-size: 14px; font-weight: 700; padding: 12px; border-radius: 12px; box-shadow: 0 8px 18px -8px var(--glow); }
.ph-task .start svg { width: 13px; height: 13px; }
.ph-task .plan { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 600; }
.ph-tabbar { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 10px 8px 16px; background: var(--nav-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--hairline); }
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--text-3); }
.ph-tab svg { width: 19px; height: 19px; }
.ph-tab.on { color: var(--accent-text); }
.float-tag { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 10px; z-index: 5; }
.float-tag .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.float-tag .ic svg { width: 15px; height: 15px; }
.float-tag .tx .a { font-size: 12px; font-weight: 700; white-space: nowrap; }
.float-tag .tx .b { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }

/* ───── integrations / cards / quotes ───── */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px,1fr)); gap: 16px; margin-top: 48px; }
.integ-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.integ-card:hover { transform: translateY(-3px); }
.integ-card .glyph { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 14px; }
.integ-card .ilogo { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; overflow: hidden; }
.integ-card .ilogo svg { width: 36px; height: 36px; }
.integ-card .nm { font-weight: 700; font-size: 15px; }
.integ-card .ty { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 3px; }

.cardgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.icard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-card); transition: transform .25s, border-color .25s; }
.icard:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--green) 40%, var(--line)); }
/* icon sits beside the heading, not stacked above it */
.icard .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--green-wash); color: var(--accent-text); display: inline-grid; place-items: center; vertical-align: middle; margin: 0 11px 0 0; }
.icard .ic svg { width: 19px; height: 19px; }
.icard h2, .icard h3, .icard h4 { font-size: 18px; display: inline; vertical-align: middle; line-height: 1.25; }
.icard p { font-size: 14.5px; color: var(--text-2); margin-top: 12px; }

/* Editorial numbered list — "why switch" section */
.switch-list { margin-top: 44px; border-top: 1px solid var(--line); }
.switch-row { display: grid; grid-template-columns: 64px 260px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.switch-row .no { font-family: var(--mono); font-size: 13px; color: var(--accent-text); letter-spacing: 0.08em; }
.switch-row h3 { font-size: 19px; letter-spacing: -0.01em; }
.switch-row .tx { font-size: 15px; color: var(--text-2); line-height: 1.65; max-width: 62ch; }
.switch-row .tx p + p { margin-top: 10px; }
.switch-row .tx .sub { font-size: 13.5px; color: var(--text-3); margin-top: 10px; font-family: var(--mono); letter-spacing: 0.02em; }
@media (max-width: 900px){
  .switch-row { grid-template-columns: 44px 1fr; }
  .switch-row .tx { grid-column: 2; }
}
@media (max-width: 560px){
  .switch-row { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .switch-row .tx { grid-column: 1; }
}

.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.quote.big { grid-column: span 3; background: linear-gradient(140deg, var(--surface-2), var(--surface)); padding: 44px; }
.quote .mark { font-family: var(--disp); font-size: 60px; line-height: 0.5; color: var(--green); height: 22px; }
.quote blockquote { font-size: 16px; line-height: 1.5; margin: 18px 0 22px; letter-spacing: -0.01em; }
.quote.big blockquote { font-size: clamp(22px,2.6vw,30px); font-weight: 600; letter-spacing: -0.02em; max-width: 24ch; }
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--on-green); background: linear-gradient(135deg, var(--green-l), var(--green-d)); }
.quote .by .nm { font-size: 14px; font-weight: 700; }
.quote .by .ro { font-size: 12.5px; color: var(--text-3); }
.quote .mtag { font-family: var(--mono); font-size: 11px; color: var(--accent-text); background: var(--green-wash); padding: 4px 10px; border-radius: 999px; align-self: flex-start; margin-bottom: 16px; }

/* ───── final CTA ───── */
.cta { padding: 120px 0; text-align: center; position: relative; }
.cta::before { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(760px 380px at 50% 0%, var(--glow), transparent 62%); }
.cta h2 { font-size: clamp(34px,5vw,62px); max-width: 18ch; margin: 18px auto 0; letter-spacing: -0.03em; }
.cta .lede { margin: 20px auto 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.cta-fine { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ───── pricing (sub-page) ───── */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); position: relative; }
.price.feat { border-color: var(--green); box-shadow: 0 30px 70px -34px var(--glow), var(--shadow-card); }
.price .tagrec { position: absolute; top: -12px; left: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--green); color: var(--on-green); padding: 5px 11px; border-radius: 999px; }
.price .pname { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.price .pdesc { font-size: 13.5px; color: var(--text-2); margin-top: 8px; min-height: 40px; }
.price .pcost { display: flex; align-items: flex-end; gap: 8px; margin: 18px 0 4px; }
.price .pcost .amt { font-family: var(--disp); font-weight: 600; font-size: 58px; line-height: 0.82; }
.price .pcost .per { font-size: 13px; color: var(--text-3); padding-bottom: 9px; white-space: nowrap; }
.price ul { list-style: none; display: grid; gap: 11px; margin: 22px 0; }
.price li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.price li .ck { width: 18px; height: 18px; border-radius: 50%; background: var(--green-wash); color: var(--accent-text); display: grid; place-items: center; flex: none; margin-top: 1px; }
.price li .ck svg { width: 11px; height: 11px; }
.price .btn { justify-content: center; margin-top: auto; }

/* ───── page hero (sub-pages) ───── */
.phero { padding: 70px 0 40px; }
.phero .crumbs { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.phero .crumbs a { color: var(--accent-text); }
.phero h1 { font-size: clamp(36px,5vw,64px); letter-spacing: -0.035em; margin: 18px 0 0; max-width: 16ch; }
.phero .lede { margin-top: 20px; max-width: 56ch; }

/* spec table (sub-page) */
.spec { width: 100%; border-collapse: collapse; margin-top: 30px; }
.spec th, .spec td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--hairline); font-size: 14px; }
.spec th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.spec td:first-child { font-weight: 600; }
.spec td .badge { font-family: var(--mono); font-size: 10px; padding: 3px 8px; border-radius: 999px; }
.spec .v1 { background: var(--green-wash); color: var(--accent-text); }
.spec .v2 { background: var(--pill-blue-bg); color: var(--pill-blue-tx); }

@media (max-width: 1000px){
  .ad-split{grid-template-columns:1fr}
  .feat-grid,.feature.rev .feat-grid{grid-template-columns:1fr;gap:40px}
  .feature.rev .feat-copy{order:0}
  .metric-row{grid-template-columns:1fr 1fr}
  .quote.big{grid-column:1}
  .pipeline{flex-wrap:wrap}
  .pipe-stage{flex:1 1 40%;border-right:0;border-bottom:1px solid var(--hairline)}
  .pipe-token{display:none}
}
@media (max-width: 760px){
  .admin{grid-template-columns:1fr}
  .ad-side{display:none}
  .kpi-row{grid-template-columns:1fr 1fr}
  .ad-search{display:none}
  .float-tag{display:none}
  .metric-row{grid-template-columns:1fr}
  .metric{border-right:0;border-bottom:1px solid var(--hairline)}
}

/* Module / quotes / pricing grids — responsive (override inline repeat(4,1fr)) */
@media (max-width: 900px){
  .cardgrid,.quotes,.price-grid{grid-template-columns:repeat(2,1fr) !important;}
  .quote.big{grid-column:span 2;}
  /* full-span fifth card: collapse to 2-col span on tablet */
  .cardgrid .icard[style*="grid-column:1/-1"]{grid-column:1/-1 !important;flex-direction:column !important;}
}
@media (max-width: 600px){
  .cardgrid,.quotes,.price-grid{grid-template-columns:1fr !important;}
  .quote.big{grid-column:1;}
  .icard{padding:20px;}
  /* full-span fifth card: stack vertically on mobile */
  .cardgrid .icard[style*="grid-column:1/-1"]{grid-column:1 !important;flex-direction:column !important;}
}

/* Inline two-column grids (AI "For managers/workers", Stories metrics, etc.)
   collapse to one column on mobile — inline style needs !important to lose.
   CRITICAL: site.js snap() writes el.style.* on .reveal elements, which makes
   the browser RE-SERIALIZE the style attribute with spaces after colons/commas
   ("grid-template-columns: 1fr 1fr"). Match BOTH serializations or the rule
   silently stops applying ~1s after load. */
@media (max-width: 760px){
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"]{grid-template-columns:1fr !important;}
  /* Inline 3/4-col KPI rows inside demo uicards (Features HR lifecycle, index
     overview tiles): 2-up on mobile so numbers/avatars keep breathing room. */
  .ov-row[style*="repeat(3,1fr)"],
  .ov-row[style*="repeat(3, 1fr)"],
  .ov-row[style*="repeat(4,1fr)"],
  .ov-row[style*="repeat(4, 1fr)"]{grid-template-columns:1fr 1fr !important;}
}

/* Demo-card tab strips: never wrap mid-word ("A-melding") — scroll instead.
   CRITICAL: grid/flex children default to min-width:auto, so a nowrap tab strip
   makes the whole uicard/feat-grid column adopt its intrinsic width and blow
   past the viewport (body overflow-x:hidden then CLIPS the right edge instead
   of scrolling). min-width:0 down the chain keeps the card at column width so
   the overflow happens INSIDE .uicard-tabs where it can scroll. */
.feat-grid > *{min-width:0;}
.uicard{max-width:100%;min-width:0;}
@media (max-width: 760px){
  .uicard-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;min-width:0;
    /* Edge fades: the strip scrolls, but without these the last tab cuts
       mid-glyph at the card border and looks broken rather than scrollable. */
    -webkit-mask-image:linear-gradient(to right,transparent,#000 14px,#000 calc(100% - 36px),transparent);
    mask-image:linear-gradient(to right,transparent,#000 14px,#000 calc(100% - 36px),transparent);
    padding-right:18px;}
  .uicard-tabs::-webkit-scrollbar{display:none;}
  .uicard-tab{white-space:nowrap;flex:none;}
  .uicard-head{flex-wrap:wrap;row-gap:2px;}
  .uicard-head .t{min-width:0;}
  .uicard-head .t .s{display:block;font-size:11.5px;}
  .uicard-body{min-width:0;}
}

/* Module spec table: translated labels (NO/DE) widen the intrinsic table width
   past narrow viewports — let the table scroll horizontally instead of pushing
   the document wider. */
@media (max-width: 760px){
  .spec{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;}
}

/* Pipeline stages: full-width stack on small phones (2-up 40% tiles cramp <480px) */
@media (max-width: 480px){
  .pipe-stage{flex:1 1 100%;}
}
