/* Zensia Council page (/council; first built as the Advisory partner page, hence the file and class names).
   A full-screen page with no site header or footer; "Back to site" in the top bar is the way out.
   One soft panel fills the screen and holds the whole conversation: the guide's greeting, the question
   as the headline, cards, and a pill-shaped answer box. The applicant's profile fills in beside it on wide screens
   and sits behind the avatar in the top bar on small ones; at the end it moves to the centre.
   .ad-*  page sections        .pc-*  the conversation and profile (static/js/partner-chat.js),
   written so another partner page can reuse them. */

.ad-page {
    --ad-ink: #0f172a;
    --ad-body: #475569;
    --ad-mute: #5b6475;
    --ad-line: #e2e8f0;
    --ad-teal: #00A896;
    --ad-teal-dark: #0f766e;
    --ad-tint: #e6f7f4;
    --ad-lav: #e7e5fb;
    --ad-gutter: clamp(20px, 3.2vw, 56px);
    position: relative;
    background: #f8fafc;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ad-ink);
}
.ad-page, .ad-page * { box-sizing: border-box; }
.pc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ad-noscript { margin: 0; padding: 16px; text-align: center; color: var(--ad-body); }

/* ── The panel: edge to edge, one full screen ── */
.pc-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);   /* bar, question, cards, answer box, spare height */
    column-gap: 24px;
    min-height: 100vh;
    min-height: 100svh;
    padding: 18px var(--ad-gutter) clamp(28px, 6vh, 64px);
    background:
        radial-gradient(900px 420px at 8% 0, rgba(0, 168, 150, .10), transparent 70%),
        radial-gradient(760px 40% at 100% 42%, rgba(129, 140, 248, .12), transparent 70%),   /* fades out before the bottom edge, so the section below joins without a seam */
        linear-gradient(180deg, #fbf7fb 0%, #f3f1fd 48%, #e9e8fc 100%);
}

/* top bar */
.pc-bar { grid-column: 1 / -1; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.pc-bar-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pc-exit {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px;
    border-radius: 999px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .1), 0 10px 22px -18px rgba(60, 60, 120, .6);
    font-size: .86rem; font-weight: 600; color: var(--ad-ink); text-decoration: none; white-space: nowrap;
    transition: background .15s, transform .15s;
}
.pc-exit svg { width: 16px; height: 16px; transition: transform .15s; }
.pc-exit:hover { background: #fff; }
.pc-exit:hover svg { transform: translateX(-2px); }
.pc-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; padding-left: 16px; border-left: 1px solid rgba(15, 23, 42, .1); }
.pc-orb {
    flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--ad-ink);
    display: grid; place-items: center;
}
.pc-orb::before {
    content: ''; width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #9af5e4, #00A896 60%, #0f766e);
    box-shadow: 0 0 0 4px rgba(0, 168, 150, .22);
}
/* with Echo's animated orb drawn in: the tile goes clear and the orb sits a little larger than it */
.pc-orb.has-orb { position: relative; width: 40px; height: 40px; background: transparent; border-radius: 50%; }
.pc-orb.has-orb::before { display: none; }
.pc-orb-canvas {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    border-radius: 50%; pointer-events: none;
    filter: drop-shadow(0 3px 6px rgba(73, 22, 168, .28));
    animation: pc-orb-in .4s ease both;
}
@keyframes pc-orb-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
.pc-brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pc-brand-text b { font-size: 1.02rem; font-weight: 500; letter-spacing: -.01em; }
.pc-brand-text small { font-size: .74rem; color: var(--ad-mute); }
.pc-me { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 999px; }
.pc-count { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .95); font-size: .76rem; font-weight: 600; color: var(--ad-body); white-space: nowrap; }
.pc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 99px; background: rgba(15, 23, 42, .06); overflow: hidden; }
.pc-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ad-teal); transition: width .5s cubic-bezier(.2, .7, .2, 1); }

.pc-avatar {
    flex: none; width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .8); border: 1.5px dashed #c3c9d9; color: #94a3b8;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em;
}
.pc-avatar svg { width: 24px; height: 24px; }
.pc-avatar--sm { width: 40px; height: 40px; font-size: .9rem; }
.pc-avatar--sm svg { width: 19px; height: 19px; }
.pc-avatar.is-set { border: 0; color: #fff; background: linear-gradient(140deg, #2dd4bf, #00A896 55%, #0f766e); box-shadow: 0 10px 22px -10px rgba(0, 168, 150, .7); }
.pc-avatar.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.pc-avatar.is-new { animation: pc-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes pc-pop { 0% { transform: scale(.6); } 100% { transform: none; } }

/* question + cards + answer box. Transparent to the layout here; a centring box on phones (see the end) */
.pc-main { display: contents; }
/* the profile's pane on desktop (see "Desktop: two parts"); transparent to the layout elsewhere */
.pc-side { display: contents; }
.pc-side-note { display: none; }
/* between questions the cards and the answer box fade with the question, so nothing jumps on its own */
.pc-cards, .pc-foot { transition: opacity .2s ease; }
.ad-app.is-swapping .pc-cards, .ad-app.is-swapping .pc-foot { opacity: 0; }
.pc-if-touch { display: none; }
@media (hover: none) { .pc-if-mouse { display: none; } .pc-if-touch { display: inline; } }

/* the question */
.pc-stage {
    grid-column: 2; grid-row: 2; align-self: start; text-align: center;
    padding-top: clamp(28px, 17vh, 200px);
    transition: opacity .2s ease, transform .2s ease;
}
.pc-stage.is-out { opacity: 0; transform: translateY(8px); }
.pc-hello { margin: 0; min-height: 1.5em; font-size: clamp(1.1rem, 1.9vw, 1.45rem); font-weight: 400; letter-spacing: -.01em; color: var(--ad-mute); }
.pc-question {
    margin: 6px 0 0;
    font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 600;
    font-size: clamp(1.7rem, 3.3vw, 2.45rem); line-height: 1.12; letter-spacing: -.03em;
    text-wrap: balance;
}
.pc-help { margin: 12px auto 0; max-width: 27rem; min-height: 1.6em; font-size: .98rem; line-height: 1.6; color: var(--ad-mute); }
.pc-help.is-error { color: #b4234a; font-weight: 500; }

/* cards: what this means, or the choices */
/* the min-height keeps the answer box a comfortable step below the question when there are no cards */
.pc-cards { grid-column: 2; grid-row: 3; margin-top: 28px; min-height: 34px; }
.pc-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pc-info[hidden] { display: none; }
.pc-info-card, .pc-opt {
    border-radius: 16px;
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .08), 0 12px 26px -20px rgba(60, 60, 120, .5);
}
.pc-info-card { display: flex; flex-direction: column; padding: 14px 14px 16px; animation: pc-rise .35s ease both; }
.pc-info-card:nth-child(2) { animation-delay: .06s; }
.pc-info-card:nth-child(3) { animation-delay: .12s; }
.pc-info-card svg { width: 18px; height: 18px; color: var(--ad-body); }
.pc-info-card b { margin-top: 10px; font-size: .82rem; font-weight: 600; line-height: 1.35; }
.pc-info-card span { margin-top: 4px; font-size: .78rem; line-height: 1.45; color: var(--ad-mute); }

.pc-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-opts[data-count="many"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-opts:empty { display: none; }
.pc-opt {
    position: relative; padding: 13px 34px 13px 14px; text-align: left; cursor: pointer;
    font: inherit; font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--ad-ink);
    transition: background .15s, box-shadow .15s, transform .15s, color .15s;
    animation: pc-rise .3s ease both;
}
.pc-opt::after {
    content: ''; position: absolute; top: 50%; right: 12px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
    border: 1.5px solid #c3c9d9; background: rgba(255, 255, 255, .7); transition: background .15s, border-color .15s, box-shadow .15s;
}
.pc-opt:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .85); }
.pc-opt[aria-pressed="true"] { background: #fff; color: var(--ad-teal-dark); box-shadow: 0 0 0 2px var(--ad-teal), 0 14px 28px -18px rgba(0, 168, 150, .6); }
.pc-opt[aria-pressed="true"]::after { border-color: var(--ad-teal); background: var(--ad-teal); box-shadow: inset 0 0 0 3px #fff; }
/* the photo question: a round preview with "Upload a photo" and "Take a photo"; a photo can also
   be dropped on the box. pc-cam is the live camera view that replaces the box on a computer. */
.pc-photo[hidden], .pc-photo-drop[hidden], .pc-cam[hidden] { display: none; }
.pc-photo-drop, .pc-cam {
    display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px;
    background: rgba(255, 255, 255, .58); border: 1.5px dashed #b9bfe0;
    transition: background .15s, border-color .15s; animation: pc-rise .3s ease both;
}
.pc-photo-drop.is-over { background: rgba(255, 255, 255, .9); border-color: var(--ad-teal); }
.pc-photo-preview {
    flex: none; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
    background: #fff center / cover no-repeat; color: #a3acc2; box-shadow: 0 0 0 1px rgba(99, 102, 241, .14);
}
.pc-photo-preview svg { width: 34px; height: 34px; }
.pc-photo-preview.is-set { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ad-teal), 0 14px 26px -14px rgba(0, 168, 150, .7); animation: pc-pop .45s cubic-bezier(.2, .9, .3, 1.4); }
.pc-photo-text, .pc-cam-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left; }
.pc-photo-text b, .pc-cam-side b { font-size: .98rem; font-weight: 600; }
.pc-photo-text small, .pc-cam-side small { font-size: .8rem; line-height: 1.45; color: var(--ad-mute); }
.pc-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-photo-act {
    display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; cursor: pointer;
    background: #fff; border: 1px solid #dfe3f0; box-shadow: 0 6px 14px -10px rgba(60, 60, 120, .5);
    font: inherit; font-size: .84rem; font-weight: 600; color: var(--ad-ink); white-space: nowrap;
    transition: border-color .15s, background .15s, transform .15s;
}
.pc-photo-act svg { width: 15px; height: 15px; color: var(--ad-body); }
.pc-photo-act:hover { border-color: var(--ad-teal); transform: translateY(-1px); }
.pc-photo-act:focus-visible, .pc-photo-act:focus-within { outline: 3px solid rgba(0, 168, 150, .5); outline-offset: 2px; }
.pc-photo-act--main { background: var(--ad-ink); border-color: var(--ad-ink); color: #fff; }
.pc-photo-act--main svg { color: #fff; }
.pc-photo-act--main:hover { background: #1e293b; border-color: #1e293b; }
.pc-cam { border-style: solid; border-color: rgba(0, 168, 150, .45); background: rgba(255, 255, 255, .8); }
.pc-cam-view { flex: none; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: #0f172a; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ad-teal); }
.pc-cam-view video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }      /* mirrored, like a mirror; the saved photo is not */

/* a tick box under the answer box (this number is also on WhatsApp) */
.pc-tick { margin: 14px 0 0; align-items: center; justify-content: center; font-size: .9rem; color: var(--ad-body); }
.pc-tick[hidden] { display: none; }
.pc-tick input { width: 17px; height: 17px; margin: 0; }
.pc-foot[data-mode="wait"] .pc-tick { opacity: .6; pointer-events: none; }
.pc-foot[data-mode="final"] .pc-tick, .pc-foot[data-mode="sent"] .pc-tick { display: none; }

@keyframes pc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the answer box: data-mode = wait | text | single | multi | photo | final | sent */
.pc-foot { grid-column: 2; grid-row: 4; margin-top: 22px; display: flex; flex-direction: column; align-items: center; }
.pc-pill {
    width: 100%; display: flex; align-items: flex-end; gap: 8px; padding: 6px;
    background: #fff; border-radius: 26px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .65), 0 18px 34px -22px rgba(60, 60, 120, .55);
    transition: box-shadow .15s, opacity .15s;
}
.pc-pill:focus-within { box-shadow: 0 0 0 3px rgba(0, 168, 150, .28), 0 18px 34px -22px rgba(60, 60, 120, .55); }
.pc-back, .pc-send { flex: none; height: 40px; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ad-ink); transition: background .15s, opacity .15s, transform .15s; }
.pc-back { width: 40px; border-radius: 50%; background: #eef0fb; color: var(--ad-body); }
.pc-back svg { width: 16px; height: 16px; }
.pc-send { width: 56px; border-radius: 999px; background: var(--ad-lav); }
.pc-send svg { width: 18px; height: 18px; }
.pc-back:hover:not(:disabled), .pc-send:hover:not(:disabled) { background: #d9d6f8; }
.pc-send:hover:not(:disabled) { transform: translateX(1px); }
.pc-back:disabled, .pc-send:disabled { opacity: .45; cursor: default; }
.pc-input {
    flex: 1 1 auto; min-width: 0; resize: none; border: 0; outline: 0; background: none;
    font: inherit; font-size: 1rem; line-height: 1.45; color: var(--ad-ink);
    padding: 9px 8px; max-height: 120px;
}
.pc-input::placeholder { color: #9aa3b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-pill-hint { display: none; flex: 1 1 auto; min-width: 0; align-self: center; padding: 0 8px; font-size: .92rem; color: var(--ad-mute); }
.pc-skip { margin-top: 12px; padding: 4px 8px; border: 0; background: none; font: inherit; font-size: .86rem; font-weight: 500; color: var(--ad-mute); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(91, 100, 117, .4); border-radius: 8px; }
.pc-skip:hover { color: var(--ad-ink); }
.pc-skip[hidden] { display: none; }

.pc-foot[data-mode="wait"] .pc-pill { opacity: .6; pointer-events: none; }
.pc-foot[data-mode="single"] .pc-input, .pc-foot[data-mode="multi"] .pc-input, .pc-foot[data-mode="photo"] .pc-input { display: none; }
.pc-foot[data-mode="single"] .pc-pill-hint, .pc-foot[data-mode="multi"] .pc-pill-hint, .pc-foot[data-mode="photo"] .pc-pill-hint { display: block; }
.pc-foot[data-mode="final"] .pc-pill, .pc-foot[data-mode="sent"] .pc-pill,
.pc-foot[data-mode="final"] .pc-skip, .pc-foot[data-mode="sent"] .pc-skip { display: none; }
.pc-foot[data-mode="sent"] { display: none; }

.pc-final { width: 100%; text-align: center; }
.pc-final[hidden] { display: none; }
/* what sending means: shown on the website if selected */
.pc-publish {
    display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; text-align: left;
    border-radius: 14px; background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(0, 168, 150, .28); font-size: .88rem; line-height: 1.5; color: var(--ad-ink);
}
.pc-publish svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--ad-teal-dark); }
.pc-optin { margin: 0 0 14px; justify-content: center; text-align: left; }
.pc-submit {
    width: 100%; height: 54px; border: 0; border-radius: 999px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--ad-ink); color: #fff; font: inherit; font-size: 1rem; font-weight: 600;
    box-shadow: 0 16px 34px -16px rgba(11, 16, 32, .6);
    transition: background .15s, transform .15s;
}
.pc-submit:hover { background: #1e293b; transform: translateY(-1px); }
.pc-submit svg { width: 17px; height: 17px; }
.pc-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.pc-error { margin: 12px 0 0; padding: 9px 12px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .86rem; }
.pc-error[hidden] { display: none; }
.pc-notice { margin: 12px 0 0; font-size: .8rem; line-height: 1.5; color: var(--ad-mute); }

.pc-opt:focus-visible, .pc-submit:focus-visible, .pc-send:focus-visible,
.pc-back:focus-visible, .pc-skip:focus-visible, .pc-me:focus-visible, .pc-exit:focus-visible { outline: 3px solid rgba(0, 168, 150, .5); outline-offset: 2px; }

/* ── The profile card ──
   White card: a sky cover with the status pill, the photo over the cover's edge with a completeness
   meter beside it, name / role / why, a row of figures, tags, and link + email in a tinted bottom strip.
   Every part is a button that reopens its question. */
.pc-profile {
    grid-column: 3; grid-row: 2 / -1; align-self: center; justify-self: end;
    width: 100%; max-width: 336px; padding: 6px;
    background: #fff; border-radius: 28px;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .08), 0 34px 64px -36px rgba(60, 60, 120, .6);
    overflow: hidden;
}
/* :where() keeps this reset weaker than the part styles below */
:where(.pc-profile button) { font: inherit; color: inherit; }
.pc-cover {
    position: relative; height: 104px; border-radius: 22px 22px 14px 14px;
    background:
        radial-gradient(64px 26px at 20% 66%, rgba(255, 255, 255, .95), transparent 72%),
        radial-gradient(96px 36px at 40% 50%, rgba(255, 255, 255, .92), transparent 72%),
        radial-gradient(74px 28px at 63% 64%, rgba(255, 255, 255, .85), transparent 72%),
        radial-gradient(56px 20px at 86% 34%, rgba(255, 255, 255, .6), transparent 72%),
        linear-gradient(180deg, #a6c2e6 0%, #c3d4ee 55%, #dde2f6 100%);
}
.pc-kind { position: absolute; left: 13px; top: 13px; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(15, 23, 42, .62); }
.pc-status {
    position: absolute; right: 9px; top: 9px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
    border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 8px 16px -10px rgba(15, 23, 42, .55);
    font-size: .7rem; font-weight: 600; color: var(--ad-ink); white-space: nowrap;
}
.pc-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.pc-status[data-state="review"]::before { background: var(--ad-teal); box-shadow: 0 0 0 3px rgba(0, 168, 150, .2); }
.pc-status[data-state="sent"] { background: var(--ad-ink); color: #fff; }
.pc-status[data-state="sent"]::before { background: #5eead4; }

.pc-head { position: relative; display: flex; align-items: flex-end; gap: 12px; margin-top: -42px; padding: 0 14px; }
.pc-photo-btn { flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.pc-profile .pc-avatar {
    width: 84px; height: 84px; font-size: 1.7rem; border: 0; background: #eef0fb; color: #a3acc2;
    box-shadow: 0 0 0 4px #fff, 0 12px 22px -14px rgba(15, 23, 42, .55);
}
.pc-profile .pc-avatar svg { width: 32px; height: 32px; }
.pc-profile .pc-avatar.is-set { color: #fff; background: linear-gradient(140deg, #2dd4bf, #00A896 55%, #0f766e); box-shadow: 0 0 0 4px #fff, 0 12px 22px -14px rgba(15, 23, 42, .55); }
.pc-profile .pc-avatar.has-photo { background-size: cover; background-position: center; }
.pc-meter { display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 10px; font-size: .72rem; color: var(--ad-mute); }
.pc-ticks { display: flex; gap: 2px; }
.pc-ticks i { width: 2px; height: 11px; border-radius: 2px; background: #e2e6ef; transition: background .35s ease; }
.pc-ticks i.is-on { background: var(--tick, var(--ad-teal)); }
.pc-ticks i.is-skip { background: #c3c9d9; }
.pc-ticks i[hidden] { display: none; }

.pc-about { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px 14px 16px; }
.pc-name, .pc-headline, .pc-bio { max-width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 8px; overflow-wrap: anywhere; }
.pc-name { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pc-headline { font-size: .9rem; font-weight: 500; line-height: 1.4; color: var(--ad-ink); }
.pc-bio { width: 100%; margin-top: 2px; font-size: .84rem; line-height: 1.5; color: var(--ad-mute); }
.pc-bio > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pc-name.is-empty, .pc-headline.is-empty { color: #aab3c5; font-weight: 500; cursor: default; }
.pc-bio.is-empty { cursor: default; }
.pc-skel { display: block; width: 100%; height: 8px; margin-top: 6px; border-radius: 99px; background: rgba(15, 23, 42, .07); }
.pc-skel--short { width: 55%; }

.pc-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid #eef0f4; }
.pc-stats:empty { display: none; }
.pc-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 13px 6px 12px; border: 0; background: none; cursor: pointer; transition: background .15s; }
.pc-stat + .pc-stat { box-shadow: -1px 0 0 #eef0f4; }
.pc-stat b { font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-size: 1.14rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.pc-stat small { font-size: .72rem; color: var(--ad-mute); white-space: nowrap; }
.pc-stat.is-empty { cursor: default; }
.pc-stat.is-empty b { color: #cbd2e0; }
.pc-stat:not(.is-empty):hover, .pc-contact:not(.is-empty):hover { background: rgba(15, 23, 42, .035); }

.pc-tags { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px 14px; border-top: 1px solid #eef0f4; }
.pc-tags:empty { display: none; }
.pc-taggroup { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; }
.pc-taggroup em { font-style: normal; padding: 3px 9px; border-radius: 99px; background: var(--ad-tint); color: var(--ad-teal-dark); font-size: .72rem; font-weight: 600; line-height: 1.5; }
.pc-taggroup:nth-child(even) em { background: #eeecfd; color: #4b449e; }
.pc-taggroup em.is-more { background: #f1f5f9; color: var(--ad-mute); }

/* plain rows: only for answers a page gives no place on the card */
.pc-rows { display: flex; flex-direction: column; padding: 6px; border-top: 1px solid #eef0f4; }
.pc-rows:empty { display: none; }
.pc-row {
    display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; align-items: start;
    width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none;
    text-align: left; cursor: pointer; transition: background .15s;
}
.pc-row + .pc-row { box-shadow: 0 -1px 0 rgba(15, 23, 42, .05); }
.pc-row:hover { background: rgba(15, 23, 42, .035); }
.pc-row.is-empty { cursor: default; }
.pc-row.is-empty:hover { background: none; }
.pc-row-label { font-size: .74rem; font-weight: 600; color: var(--ad-mute); padding-top: 2px; }
.pc-row-value { display: flex; flex-wrap: wrap; gap: 5px; font-size: .84rem; line-height: 1.5; color: var(--ad-ink); overflow-wrap: anywhere; min-width: 0; }
.pc-row-value em { font-style: normal; padding: 2px 8px; border-radius: 99px; background: var(--ad-tint); color: var(--ad-teal-dark); font-size: .72rem; font-weight: 600; }
.pc-row-value--quote { color: var(--ad-body); font-style: italic; }
.pc-row.is-skipped .pc-row-value { color: #94a3b8; }

.pc-contacts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid #eef0f4; border-radius: 0 0 22px 22px; background: #f6f7fb; overflow: hidden; }
.pc-contacts:empty { display: none; }
.pc-contact { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 13px 10px; border: 0; background: none; cursor: pointer; font-size: .76rem; transition: background .15s; }
.pc-contact + .pc-contact { box-shadow: -1px 0 0 #e7e9f2; }
.pc-contact svg { flex: none; width: 15px; height: 15px; color: var(--ad-body); }
.pc-contact span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-contact.is-empty { color: #a3acc2; cursor: default; }
.pc-contact.is-empty svg { color: #b6bdcf; }
/* while the questions run the strip is icons only: grey until answered, then teal */
.ad-app[data-state="chat"] .pc-contact span { display: none; }
.ad-app[data-state="chat"] .pc-contact svg { width: 17px; height: 17px; }
.ad-app[data-state="chat"] .pc-contact:not(.is-empty) svg { color: var(--ad-teal-dark); }

.pc-headline.is-new, .pc-bio.is-new, .pc-stat.is-new, .pc-contact.is-new, .pc-taggroup.is-new, .pc-row.is-new { animation: pc-flash 1.1s ease; }
@keyframes pc-flash { 0% { background-color: rgba(0, 168, 150, .24); } 100% { background-color: transparent; } }
.pc-profile.is-locked button { cursor: default; pointer-events: none; }
.pc-profile button:focus-visible { outline: 3px solid rgba(0, 168, 150, .5); outline-offset: 2px; }

/* up for review, or sent: everything in full. The why is no longer cut short, link and email get a line each */
.ad-app[data-state="review"] .pc-bio > span, .ad-app[data-state="sent"] .pc-bio > span { display: block; }
.ad-app[data-state="review"] .pc-contacts, .ad-app[data-state="sent"] .pc-contacts { grid-auto-flow: row; }
.ad-app[data-state="review"] .pc-contact, .ad-app[data-state="sent"] .pc-contact { justify-content: flex-start; padding: 11px 14px; }
.ad-app[data-state="review"] .pc-contact + .pc-contact, .ad-app[data-state="sent"] .pc-contact + .pc-contact { box-shadow: 0 -1px 0 #e7e9f2; }
.ad-app[data-state="review"] .pc-contact span, .ad-app[data-state="sent"] .pc-contact span { white-space: normal; overflow-wrap: anywhere; text-align: left; }

/* ── Desktop: two parts ──
   Left, 60%: the conversation (question, cards, answer box), one column centred in its part and
   a little above the middle. Right, 40%: the profile card, centred in its part.
   The same holds at the review step: headline and send button on the left, the finished card on the right. */
@media (min-width: 1240px) {
    .pc-panel {
        grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
        grid-template-rows: auto minmax(0, 1fr);
        column-gap: clamp(24px, 3vw, 56px);
    }
    .pc-main {
        grid-column: 1; grid-row: 2; justify-self: center;
        display: flex; flex-direction: column; width: 100%; max-width: 620px;
    }
    .pc-main::before { content: ''; flex: 1 1 0; min-height: 24px; }
    .pc-main::after { content: ''; flex: 1.3 1 0; min-height: 24px; }
    .pc-stage { padding-top: 0; align-self: stretch; }
    .ad-app[data-state="review"] .pc-foot { margin-top: 30px; }

    .pc-side {
        grid-column: 2; grid-row: 2;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
        padding: 12px 0;                                   /* no box of its own: the card sits straight on the page */
    }
    .pc-profile { max-width: 360px; }
    .ad-app[data-state="review"] .pc-profile { box-shadow: 0 0 0 2px rgba(0, 168, 150, .45), 0 34px 64px -34px rgba(0, 120, 110, .55); }
    .pc-side-note { display: block; max-width: 300px; margin: 0; text-align: center; font-size: .8rem; line-height: 1.5; color: var(--ad-mute); }
    .pc-side-note[hidden] { display: none; }
    /* at the end the card is at its tallest and the headline already says it can be changed */
    .ad-app[data-state="review"] .pc-side-note, .ad-app[data-state="sent"] .pc-side-note { display: none; }
    /* a short screen (a 720px laptop): at the end the contacts sit two to a line so the card still fits */
    @media (max-height: 820px) {
        .ad-app[data-state="review"] .pc-contacts, .ad-app[data-state="sent"] .pc-contacts { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .ad-app[data-state="review"] .pc-contact span, .ad-app[data-state="sent"] .pc-contact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ad-app[data-state="review"] .pc-contact:nth-child(even), .ad-app[data-state="sent"] .pc-contact:nth-child(even) { box-shadow: -1px 0 0 #e7e9f2, 0 -1px 0 #e7e9f2; }
    }
    /* the card is always in view here, so the avatar in the top bar is not a button */
    .pc-me { pointer-events: none; cursor: default; }
}

/* narrower screens: the profile opens from the avatar in the top bar */
@media (max-width: 1239px) {
    .pc-profile {
        position: absolute; z-index: 5; top: 72px; right: var(--ad-gutter);
        width: min(340px, calc(100% - 40px)); max-width: none; max-height: calc(100% - 96px); overflow-y: auto;
        display: none;
        box-shadow: 0 0 0 1px rgba(99, 102, 241, .1), 0 30px 60px -24px rgba(40, 40, 90, .55);
    }
    .pc-profile.is-open { display: block; animation: pc-rise .2s ease both; }
    .pc-me .pc-avatar { transition: transform .15s; }
    .pc-me:hover .pc-avatar { transform: scale(1.06); }
}

/* the end. Desktop keeps its two parts (above). Narrower screens: the profile moves into the centre. */
.ad-app[data-state="review"] .pc-cards, .ad-app[data-state="sent"] .pc-cards { display: none; }
.ad-app[data-state="review"] .pc-me, .ad-app[data-state="sent"] .pc-me { pointer-events: none; }
@media (max-width: 1239px) {
    .ad-app[data-state="review"] .pc-profile, .ad-app[data-state="sent"] .pc-profile {
        position: static; display: block; grid-column: 2; grid-row: 3; align-self: start; justify-self: center;
        width: 100%; max-width: 400px; max-height: none; margin-top: 22px;
        animation: pc-rise .35s ease both;
    }
    .ad-app[data-state="review"] .pc-stage, .ad-app[data-state="sent"] .pc-stage { padding-top: clamp(10px, 3vh, 28px); }
}

/* ── Terms: below the first screen, carrying on from the panel's last colour ── */
.ad-terms { padding: clamp(56px, 9vh, 96px) 1.5rem clamp(64px, 10vh, 112px); background: linear-gradient(180deg, #e9e8fc 0, #f8fafc 300px); }
.ad-terms-in { max-width: 1160px; margin: 0 auto; }
.ad-terms-head { text-align: center; margin-bottom: 32px; }
.ad-eyebrow { display: inline-block; margin-bottom: 12px; color: var(--ad-teal); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ad-h2 { margin: 0; font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 500; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; }
.ad-terms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ad-term { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--ad-line); }
.ad-term-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 168, 150, .1); color: var(--ad-teal); }
.ad-term-icon svg { width: 20px; height: 20px; }
.ad-term h3 { margin: 16px 0 8px; font-family: 'Inter Tight', 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; }
.ad-term p { margin: 0; font-size: .94rem; line-height: 1.65; color: var(--ad-body); }

/* ── Tablets and phones ── */
@media (max-width: 900px) {
    .ad-terms-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 720px) {
    .ad-page { --ad-gutter: 14px; }
    .ad-terms { padding-left: .75rem; padding-right: .75rem; }
    .pc-panel { grid-template-columns: minmax(0, 1fr); column-gap: 0; padding: 12px var(--ad-gutter) 22px; }
    .pc-bar-left { gap: 10px; }
    .pc-exit { height: 38px; padding: 0 13px 0 10px; font-size: .82rem; }
    .pc-brand { padding-left: 10px; }
    .pc-stage, .pc-cards, .pc-foot { grid-column: 1; }
    .ad-app[data-state="review"] .pc-profile, .ad-app[data-state="sent"] .pc-profile { grid-column: 1; }
    .pc-bar { padding-bottom: 14px; }
    .pc-brand-text small { display: none; }
    .pc-stage { padding-top: clamp(10px, 3vh, 28px); }
    .pc-cards { min-height: 8px; }
    .pc-profile { top: 62px; right: var(--ad-gutter); width: calc(100% - 2 * var(--ad-gutter)); }
    .pc-info { grid-template-columns: 1fr; gap: 8px; }
    .pc-info-card { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; padding: 12px 14px; }
    .pc-info-card svg { grid-row: 1 / 3; margin-top: 2px; }
    .pc-info-card b, .pc-info-card span { margin-top: 0; }
    .pc-opts[data-count="many"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pc-opt { padding: 12px 30px 12px 12px; font-size: .84rem; }
    .pc-cards { margin-top: 22px; }
    .ad-term { padding: 22px; border-radius: 18px; }
}
/* ── Phones, while the questions run ──
   Question, cards and answer box form one group, centred a little above the middle of the VISIBLE
   screen. --pc-vvh is that visible height (partner-chat.js keeps it current): with the keyboard open
   it is the area above the keyboard, so the question and the box stay together in view. */
@media (max-width: 720px) {
    .ad-app[data-state="chat"] .pc-main {
        grid-column: 1; grid-row: 2 / -1; align-self: start;      /* its own height, not the panel's: see min-height */
        display: flex; flex-direction: column;
        min-height: calc(var(--pc-vvh, 100svh) - 88px);          /* minus the top bar and the panel's bottom padding */
    }
    .ad-app[data-state="chat"] .pc-main::before { content: ''; flex: 1 1 0; min-height: 14px; }
    .ad-app[data-state="chat"] .pc-main::after { content: ''; flex: 1.35 1 0; }
    .ad-app[data-state="chat"] .pc-stage { padding-top: 0; align-self: stretch; }   /* full width, so the lines stay centred */
    /* keyboard open: only the question and the box, nothing that pushes them apart */
    .ad-app[data-state="chat"].is-typing .pc-info { display: none; }
    .ad-app[data-state="chat"].is-typing .pc-main::before { min-height: 8px; }
    .ad-app[data-state="chat"].is-typing .pc-main::after { flex-grow: 1; }
    .pc-photo-drop, .pc-cam { gap: 14px; padding: 16px; }
    .pc-photo-preview { width: 72px; height: 72px; }
    .pc-cam { flex-direction: column; text-align: center; }
    .pc-cam-side { align-items: center; text-align: center; }
    .pc-pill { border-radius: 28px; }
    .pc-back, .pc-send { height: 44px; }                         /* comfortable thumb targets */
    .pc-back { width: 44px; }
    .pc-input { padding: 11px 8px; }
}
@media (max-width: 480px) {
    .pc-brand-text { display: none; }            /* the mark stays; room for "Back to site" and the counter */
}
@media (max-width: 339px) {
    .pc-opts, .pc-opts[data-count="many"] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-stage, .pc-progress i { transition: none; }
    .pc-info-card, .pc-opt, .pc-cam, .pc-avatar.is-new, .pc-row.is-new, .pc-headline.is-new, .pc-bio.is-new, .pc-stat.is-new, .pc-contact.is-new, .pc-taggroup.is-new, .pc-profile, .pc-orb-canvas, .pc-photo-drop, .pc-photo-preview { animation: none !important; }
}
