/* The phone on hcmnj.com: a small, tappable copy of the real client portal (portal.hcmnj.com, client view).
   Its own tokens so it looks like the portal, not like the marketing site: paper #FAFAF8, portal green, Outfit + Inter. */
.portal-demo { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 44px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 44px 48px; }
.pd-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin-top: 10px; }
.pd-text p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); max-width: 46ch; }
.pd-text p.pd-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 14px; border-radius: 999px; background: var(--moss-soft); color: var(--moss-ink); font-weight: 500; font-size: 0.95rem; }
.pd-text p.pd-hint svg { width: 18px; height: 18px; }

.phone, .desk {
  --p-bg: #FAFAF8; --p-surface: #FFFFFF; --p-surface2: #F4F2EE; --p-border: #E2DDD5; --p-text: #1A1A1A; --p-muted: #6B6866;
  --p-accent: #3D7A5A; --p-accent-ink: #2E5E44; --p-soft: #E8F5EE; --p-orange-soft: #FBEBE1; --p-orange-ink: #9A4220;
  --p-display: "Outfit", "Inter", system-ui, sans-serif; --p-body: "Inter", system-ui, sans-serif;
}
.phone {
  width: 300px; height: 620px; border-radius: 46px; padding: 11px; background: #14161A;
  box-shadow: 0 0 0 1px #2A2D33, 0 30px 70px rgba(15, 30, 47, 0.28); position: relative; flex: none;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #14161A; z-index: 5; }
.ph-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--p-bg); color: var(--p-text); font: 400 13px/1.45 var(--p-body); display: flex; flex-direction: column; }
.ph-status { height: 40px; flex: none; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 24px 4px 28px; font: 600 12px/1 var(--p-body); background: var(--p-surface); }
.ph-status svg { width: 38px; height: 11px; }
.ph-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px; background: var(--p-surface); border-bottom: 1px solid var(--p-border); }
.ph-head img { width: 24px; height: 24px; }
.ph-head b { font: 600 14px/1.1 var(--p-display); }
.ph-ava { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p-accent-ink); font: 600 11px/1 var(--p-body); }
.ph-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 12px 92px; scrollbar-width: none; }
.ph-body::-webkit-scrollbar { display: none; }
.ph-body [hidden] { display: none !important; }
.ph-h1 { font: 600 22px/1.15 var(--p-display); margin: 2px 2px 4px; }
.ph-sub { color: var(--p-muted); margin: 0 2px 12px; }
.ph-h2 { font: 600 15px/1.2 var(--p-display); margin: 18px 2px 4px; }
.ph-card { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; padding: 12px; margin-top: 10px; }
.ph-feature { background: var(--p-soft); border-color: rgba(61, 122, 90, 0.18); padding: 10px; }
.ph-feature-h { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 8px; }
.ph-feature-h b { font: 600 13px/1 var(--p-display); }
.ph-feature-h span { color: var(--p-muted); font-size: 11px; }
.ph-item { background: var(--p-surface); border-radius: 12px; padding: 10px 11px; margin-top: 8px; }
.ph-item:first-of-type { margin-top: 0; }
.ph-item-h { display: flex; gap: 8px; align-items: center; font: 600 13px/1.2 var(--p-display); }
.ph-ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-accent); flex: none; }
.ph-ic svg { width: 14px; height: 14px; }
.ph-item p { color: var(--p-muted); font-size: 12px; margin-top: 4px; }
.ph-progress { display: flex; gap: 4px; margin-top: 8px; }
.ph-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--p-accent); }
.ph-progress i.off { background: #ECE8E1; }
.ph-btn { appearance: none; border: 0; width: 100%; margin-top: 9px; padding: 9px 10px; border-radius: 9px; font: 600 12.5px/1 var(--p-body); cursor: pointer; background: var(--p-soft); color: var(--p-accent-ink); }
.ph-btn.solid { background: var(--p-accent); color: #fff; }
.ph-btn.line { background: var(--p-surface); color: var(--p-text); box-shadow: inset 0 0 0 1px var(--p-border); }
.ph-btn:active { transform: scale(0.98); }
.ph-row { display: flex; gap: 6px; }
.ph-row .ph-btn { flex: 1; }
.ph-allset { display: flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--p-accent-ink); font: 600 13px/1.2 var(--p-display); }
.ph-allset svg { width: 18px; height: 18px; }

.ph-post-top { display: flex; gap: 10px; align-items: center; }
.ph-thumb { width: 54px; height: 70px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(160deg, #6B4A2F, #3B2617); color: rgba(255, 255, 255, 0.85); }
.ph-thumb svg { width: 18px; height: 18px; }
.ph-thumb.photo { background: linear-gradient(135deg, #A86E3C 0 50%, #C9A27E 50% 100%); }
.ph-meta { display: grid; gap: 4px; font-size: 11.5px; color: var(--p-muted); }
.ph-meta b { color: var(--p-text); font-weight: 600; }
.ph-li { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 3px; background: #0A66C2; color: #fff; font: 700 8px/1 var(--p-body); margin-right: 3px; vertical-align: -2px; }
.ph-text { margin-top: 9px; font-size: 12.5px; line-height: 1.45; white-space: pre-line; }
.ph-pill { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 999px; font: 600 11px/1.2 var(--p-body); background: var(--p-soft); color: var(--p-accent-ink); }
.ph-pill.ask { background: var(--p-orange-soft); color: var(--p-orange-ink); }
.ph-note { width: 100%; margin-top: 8px; border: 1px solid var(--p-border); border-radius: 9px; padding: 8px 9px; font: 400 12.5px/1.4 var(--p-body); color: var(--p-text); background: var(--p-surface); resize: none; }

.ph-back { appearance: none; border: 0; background: none; padding: 2px; color: var(--p-accent-ink); font: 600 12.5px/1 var(--p-body); cursor: pointer; }
.ph-q-n { color: var(--p-muted); font-size: 11.5px; margin: 14px 2px 6px; }
.ph-q { font: 600 18px/1.25 var(--p-display); margin: 0 2px; }
/* A question: type, or Record and the words land in the box (the real portal's "Record instead of typing"). */
.ph-ta { display: block; width: 100%; margin-top: 12px; min-height: 104px; border: 1px solid var(--p-border); border-radius: 12px; padding: 10px 11px; font: 400 13.5px/1.45 var(--p-body); color: var(--p-text); background: var(--p-surface); resize: none; }
.ph-ta:focus { outline: none; border-color: var(--p-accent); box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.14); }
.ph-ta::placeholder { color: #9A958F; }
@media (pointer: coarse) { .ph-ta { font-size: 16px; } }   /* under 16px a phone zooms the page on focus */
.ph-vt { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-height: 30px; }
.ph-rec { appearance: none; border: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--p-surface); box-shadow: inset 0 0 0 1px var(--p-border); color: var(--p-text); font: 600 12px/1 var(--p-body); cursor: pointer; white-space: nowrap; }
.ph-rec svg { width: 13px; height: 13px; }
.ph-rec.on { color: #B3261E; box-shadow: inset 0 0 0 1px rgba(179, 38, 30, 0.35); }
.ph-rec.on svg { animation: ph-blink 1s steps(2, start) infinite; }
.ph-rec:disabled { opacity: 0.6; cursor: default; }
@keyframes ph-blink { to { opacity: 0.25; } }
.ph-vt-s { color: var(--p-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.ph-hint { color: var(--p-muted); font-size: 11.5px; margin: 10px 2px 0; }
.ph-btn:disabled { opacity: 0.45; cursor: default; transform: none; }

/* LinkedIn time: the networking session (handshake meter, then one task at a time on a ring timer). */
.ph-net { margin-top: 12px; }
.ph-lwm { display: flex; align-items: center; gap: 12px; padding: 2px 4px; }
.ph-lwm-art { position: relative; flex: 0 0 74px; width: 74px; height: 74px; }
.ph-lwm-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-lwm-art .g { filter: grayscale(1); opacity: 0.28; }
.ph-lwm-art .f { clip-path: inset(var(--empty, 62.6%) 0 0 0); transition: clip-path 1.1s var(--ease, ease); }
.ph-lwm-k { font: 600 11.5px/1.2 var(--p-body); color: var(--p-accent-ink); }
.ph-lwm-n { font: 600 21px/1.1 var(--p-display); margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.ph-lwm-n span { font: 500 12px var(--p-body); color: var(--p-muted); }
.ph-lwm-dots { display: flex; gap: 5px; }
.ph-lwm-dots i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 10.5px/1 var(--p-body); font-style: normal; color: var(--p-accent-ink); background: #fff; border: 1.5px solid #CFE5D8; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.ph-lwm-dots i.on { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
.ph-net-p { color: var(--p-muted); font-size: 12px; margin: 10px 4px 0; }
.ph-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ph-go svg { width: 12px; height: 12px; }
.ph-ring { position: relative; width: 112px; height: 112px; margin: 2px auto 10px; }
.ph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ph-ring circle { fill: none; stroke-width: 7; }
.ph-ring .t { stroke: #CFE5D8; }
.ph-ring .p { stroke: var(--p-accent); stroke-linecap: round; stroke-dasharray: 276.46; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ph-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ph-ring b { font: 600 24px/1 var(--p-display); font-variant-numeric: tabular-nums; }
.ph-ring small { display: block; width: 70px; margin-top: 3px; color: var(--p-muted); font-size: 10px; line-height: 1.2; }
.ph-task-h { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; font: 600 12px/1 var(--p-display); color: var(--p-accent-ink); }
.ph-taskbars { display: flex; gap: 3px; }
.ph-taskbars i { width: 16px; height: 4px; border-radius: 4px; background: #CFE5D8; }
.ph-taskbars i.on { background: var(--p-accent); }
.ph-task { font: 600 14px/1.25 var(--p-display); margin: 8px 4px 0; }
.ph-task-p { color: var(--p-text); font-size: 12px; line-height: 1.45; margin: 5px 4px 0; }
.ph-open { appearance: none; border: 0; background: none; padding: 0; margin: 8px 4px 2px; display: inline-flex; align-items: center; gap: 4px; color: var(--p-accent-ink); font: 600 12.5px/1 var(--p-body); cursor: pointer; }
.ph-open svg { width: 12px; height: 12px; }

.ph-big { font: 600 30px/1 var(--p-display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.ph-bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; margin-top: 14px; padding: 0 2px; }
.ph-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.ph-bars i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: #CFE3D7; }
.ph-bars div:last-child i { background: var(--p-accent); }
.ph-bars span { font-size: 10px; color: var(--p-muted); }
.ph-sample { display: inline-block; font: 600 10px/1 var(--p-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted); background: var(--p-surface2); padding: 4px 7px; border-radius: 6px; }

.ph-lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ph-lib button { appearance: none; border: 0; padding: 0; text-align: left; background: none; cursor: pointer; color: var(--p-text); font: inherit; }
.ph-lib .ph-thumb { width: 100%; height: 104px; }
.ph-lib b { display: block; font: 600 11.5px/1.25 var(--p-body); margin-top: 5px; }
.ph-lib small { color: var(--p-muted); font-size: 10.5px; }

.ph-chat { display: grid; gap: 8px; margin-top: 8px; }
.ph-msg { max-width: 82%; padding: 8px 10px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; background: var(--p-surface); border: 1px solid var(--p-border); justify-self: start; border-bottom-left-radius: 4px; }
.ph-msg.me { justify-self: end; background: var(--p-accent); color: #fff; border-color: transparent; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.ph-msg small { display: block; font-size: 10.5px; color: var(--p-muted); margin-bottom: 2px; font-weight: 600; }
.ph-typing { display: inline-flex; gap: 3px; }
.ph-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--p-muted); animation: ph-dot 1s infinite; }
.ph-typing i:nth-child(2) { animation-delay: 0.15s; } .ph-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ph-dot { 50% { opacity: 0.25; } }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ph-chips button { appearance: none; border: 1px solid var(--p-border); background: var(--p-surface); border-radius: 999px; padding: 7px 10px; font: 500 12px/1 var(--p-body); color: var(--p-text); cursor: pointer; }

.ph-bar { position: absolute; left: 10px; right: 10px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12); border: 1px solid var(--p-border); z-index: 3; }
.ph-bar button { appearance: none; border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 4px 0 3px; color: var(--p-muted); font: 500 9.5px/1.1 var(--p-body); white-space: nowrap; cursor: pointer; }
.ph-bar button span { display: grid; place-items: center; width: 40px; height: 24px; border-radius: 12px; }
.ph-bar button svg { width: 17px; height: 17px; }
.ph-bar button[aria-pressed="true"] { color: var(--p-accent-ink); }
.ph-bar button[aria-pressed="true"] span { background: var(--p-soft); }
.ph-toast { position: absolute; left: 14px; right: 14px; bottom: 80px; padding: 9px 12px; border-radius: 12px; background: #1A1A1A; color: #fff; font-size: 12px; text-align: center; z-index: 4; opacity: 0; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.ph-toast.on { opacity: 1; transform: none; }
.phone button:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }

/* The walk-through (Chris's trackingconstruction.com pattern): the phone plays the week by itself, step by step, with
   our side of the same moment beside it. Tapping the phone hands it to the visitor; Pause and the steps drive it too. */
.pd-stage { display: grid; gap: 22px; justify-items: center; min-width: 0; }
.pd-devices { display: flex; align-items: center; gap: 20px; }
.ph-tap { position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(26, 26, 26, 0.16); border: 2px solid rgba(26, 26, 26, 0.32); pointer-events: none; opacity: 0; z-index: 6; }
.ph-tap.go { animation: ph-tap 0.75s var(--ease, ease); }
@keyframes ph-tap { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
.ph-hl { box-shadow: 0 0 0 2px var(--p-accent), 0 0 0 6px rgba(61, 122, 90, 0.16); transition: box-shadow 0.4s; }

.desk { width: 280px; flex: none; overflow: hidden; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 30, 47, 0.05), 0 20px 50px rgba(15, 30, 47, 0.14); color: var(--p-text); font: 400 12.5px/1.45 var(--p-body); }
.desk-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--p-surface2); border-bottom: 1px solid var(--p-border); }
.desk-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D5CFC6; }
.desk-bar span { flex: 1; margin-right: 26px; text-align: center; font: 600 11.5px/1 var(--p-display); color: var(--p-muted); }
.desk-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.desk-ava { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--p-soft); color: var(--p-accent-ink); font: 600 11px/1 var(--p-body); }
.desk-head b { display: block; font: 600 14px/1.15 var(--p-display); }
.desk-head small { color: var(--p-muted); font-size: 11px; }
.desk-rows { display: grid; gap: 8px; padding: 4px 10px 12px; }
.desk-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 9px; padding: 10px; border-radius: 12px; border: 1px solid var(--p-border); background: var(--p-surface); transition: border-color 0.4s, box-shadow 0.4s; }
.desk-row.focus { border-color: rgba(61, 122, 90, 0.45); box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.12); }
.desk-row.flash { animation: desk-flash 1.4s var(--ease, ease); }
@keyframes desk-flash { from { background: #DDF0E5; } }
.desk-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--p-soft); color: var(--p-accent); }
.desk-ic svg { width: 14px; height: 14px; }
.desk-main b { display: block; font: 600 12.5px/1.25 var(--p-display); }
.desk-main p { margin-top: 2px; color: var(--p-muted); font-size: 11.5px; }
.desk-main .desk-q { margin-top: 6px; padding: 7px 9px; border-radius: 8px; background: var(--p-surface2); color: var(--p-text); }
.desk-main [hidden] { display: none; }
.desk-tag { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--p-surface2); color: var(--p-muted); font: 600 10.5px/1.2 var(--p-body); }
.desk-tag.wait { background: var(--p-orange-soft); color: var(--p-orange-ink); }
.desk-tag.ok, .desk-tag.live { background: var(--p-soft); color: var(--p-accent-ink); }
.desk-tag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p-accent); animation: desk-live 1.2s infinite; }
@keyframes desk-live { 50% { opacity: 0.25; } }

.tour { display: none; }
.js .tour { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 600px; }
.tour-pp { appearance: none; border: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px 9px 13px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 13px/1 var(--body); cursor: pointer; }
.tour-pp svg { width: 14px; height: 14px; }
.tour-pp .i-play, .tour-pp.paused .i-pause { display: none; }
.tour-pp.paused .i-play { display: block; }
.tour-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tour-steps button { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13px/1 var(--body); cursor: pointer; white-space: nowrap; }
.tour-steps button i { font-style: normal; font-weight: 600; }
.tour-steps button:hover { color: var(--ink); }
.tour-steps button[aria-current="step"] { border-color: rgba(63, 96, 48, 0.4); background: var(--moss-soft); color: var(--moss-ink); }
.tour-pp:focus-visible, .tour-steps button:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

@media (max-width: 1180px) {
  .portal-demo { grid-template-columns: 1fr; justify-items: center; padding: 36px 28px; gap: 36px; }
  .pd-text { justify-self: stretch; }
}
@media (max-width: 760px) {
  .portal-demo { padding: 28px 16px 32px; margin-top: 40px; }
  .phone { width: min(300px, 84vw); height: min(620px, calc(84vw * 2.07)); }
  .pd-devices { flex-direction: column; gap: 14px; width: 100%; }
  .desk { width: min(320px, 100%); }
  .desk-row:not(.focus) { display: none; }
  .tour-steps button { padding: 6px 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ph-rec.on svg, .ph-typing i, .desk-tag.live::before, .desk-row.flash, .ph-tap.go { animation: none; } .ph-toast, .ph-lwm-art .f, .ph-ring .p { transition: none; } }
