/* /platform. Tokens match the concept nine homepage (public/homepage-concepts/nine/nine.css) and /get-started, so the page reads as part of the same site. */
.pf {
    --ground: #f6f7f8;
    --silver: #eef1f4;
    --paper: #ffffff;
    --ink: #191b22;
    --ink-2: #2d323c;
    --muted: #626777;
    --faint: #696d77;
    --line: #e2e6eb;
    --line-2: #d3d9e0;
    --slate: #1d2532;
    --slate-2: #283243;
    --slate-line: #36414f;
    --slate-text: #c5ccd8;
    --green: #286c4c;
    --green-soft: #e8f1ec;
    --shadow-stage: 0 1px 1px #1c1f2a0a, 0 2px 6px #1c1f2a08, 0 40px 90px -36px #1c1f2a4d;
    --shadow-chat: 0 1px 2px #1c1f2a14, 0 22px 50px -16px #1c1f2a59;
    --shadow-mini: 0 1px 2px #1c1f2a0f, 0 14px 30px -20px #1c1f2a47;
    --ease: cubic-bezier(.22, 1, .36, 1);
    color: var(--ink);
    background: var(--ground);
    font-size: 16px;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
}
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
.pf :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
.pf :where(ol, ul) { padding: 0; list-style: none; }
.pf img, .pf video { display: block; max-width: 100%; }
.pf :is(a, button):focus-visible { outline: 2px solid #3b6fd9; outline-offset: 3px; }
.pf-wrap { width: min(1260px, 100%); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

/* Shared type and controls */
.pf h2 { font-size: clamp(34px, 4vw, 56px); font-weight: 600; letter-spacing: -.045em; line-height: 1.03; text-wrap: balance; }
.pf h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.pf-section { padding-block: clamp(76px, 8.5vw, 128px); }
.pf-paper { background: var(--paper); }
.pf-section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 18px 64px; margin-bottom: clamp(36px, 4vw, 56px); }
.pf-section-head p { max-width: 480px; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pf-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff !important; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s var(--ease), border-color .2s; }
.pf-button:hover { background: #2a2d37; transform: translateY(-1px); }
.pf-button-quiet { background: #fff; color: var(--ink) !important; border-color: var(--line-2); box-shadow: 0 1px 2px #1c1f2a0f; }
.pf-button-quiet:hover { background: #fff; border-color: #aeb6c0; }
.pf-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.pf-link:hover { text-decoration-color: currentColor; }
.pf-link-light { color: #fff; text-decoration-color: #5b6677; }
.pf-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; color: var(--ink); }
.pf-icon svg { width: 100%; height: 100%; }
.pf-agent-logos { display: inline-flex; flex: 0 0 auto; }
.pf-agent-logos img { width: 22px; height: 22px; padding: 3px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.pf-agent-logos img + img { margin-left: -6px; }

/* Product window and chat card */
.pf-window { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.pf-window-bar { display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pf-dots { display: inline-flex; gap: 6px; }
.pf-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.pf-window-title { display: inline-flex; align-items: center; gap: 7px; }
.pf-window-title .pf-icon { width: 15px; height: 15px; }
.pf-window > img { width: 100%; height: auto; }
.pf-window-dark { border-color: var(--slate-line); background: var(--slate-2); box-shadow: 0 30px 80px -30px #000a; }
.pf-window-dark .pf-window-bar { border-color: var(--slate-line); background: var(--slate-2); color: var(--slate-text); }
.pf-window-dark .pf-dots i { background: #4a5566; }

.pf-chat { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-chat); }
.pf-chat-head { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pf-chat-head .pf-agent-logos img { width: 20px; height: 20px; padding: 2px; }
.pf-connected { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--green); font-size: 12px; white-space: nowrap; }
.pf-connected::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px var(--green-soft); }
.pf-bubble { justify-self: end; max-width: 94%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--silver); color: var(--ink); font-size: 14px; line-height: 1.5; }
.pf-tool-run { display: grid; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.pf-tool-name { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pf-tool-name .pf-icon { width: 16px; height: 16px; }
.pf-steps { display: grid; gap: 9px; }
.pf-steps li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.45; transition: opacity .3s var(--ease); }
.pf-steps strong { display: block; font-weight: 600; }
.pf-step-detail { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; }
.pf-check { display: inline-grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.pf-check svg { transition: opacity .2s; }
.pf-reply { color: var(--muted); font-size: 14px; line-height: 1.55; transition: opacity .35s var(--ease); }
.pf-chat > .pf-link { font-size: 14px; transition: opacity .35s var(--ease); }

/* Hero */
.pf-hero { padding-block: clamp(44px, 5.5vw, 76px) clamp(80px, 9vw, 128px); border-bottom: 1px solid var(--line); background: radial-gradient(1100px 560px at 50% -8%, #e3e8ef, transparent 72%), var(--ground); }
.pf-hero-head { display: grid; justify-items: center; text-align: center; }
.pf h1 { max-width: 12.5em; font-size: clamp(44px, 5.4vw, 76px); font-weight: 600; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
.pf-lead { max-width: 600px; margin-top: 24px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
.pf-hero .pf-actions { justify-content: center; margin-top: 32px; }
.pf-agents { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--faint); font-size: 14px; line-height: 1.5; text-align: left; }

/* Example switcher */
.pf-demo { margin-top: clamp(40px, 5vw, 64px); padding: clamp(12px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: 28px; background: #fffc; box-shadow: var(--shadow-stage); }
.pf-demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: clamp(12px, 1.6vw, 20px); }
.pf-tabs { display: inline-flex; gap: 4px; max-width: 100%; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; background: var(--silver); scrollbar-width: none; }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.pf-tab .pf-icon { width: 16px; height: 16px; color: inherit; }
.pf-tab:hover { color: var(--ink); }
.pf-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 3px #1c1f2a1f; }
.pf-phases { display: flex; align-items: center; gap: 22px; padding-right: 6px; color: var(--faint); font-size: 13px; font-weight: 500; }
.pf-phases li { position: relative; display: inline-flex; align-items: center; gap: 8px; transition: color .25s; }
.pf-phases li::before { content: ''; width: 9px; height: 9px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; transition: background .25s, border-color .25s; }
.pf-phases li + li::after { content: ''; position: absolute; top: 50%; left: -17px; width: 12px; height: 1.5px; background: var(--line-2); }
.pf-demo[data-phase="ask"] [data-phase="ask"],
.pf-demo[data-phase="act"] [data-phase="act"],
.pf-demo[data-phase="check"] [data-phase="check"] { color: var(--ink); }
.pf-demo[data-phase="ask"] [data-phase="ask"]::before,
.pf-demo[data-phase="act"] [data-phase="act"]::before,
.pf-demo[data-phase="check"] [data-phase="check"]::before { border-color: var(--ink); background: var(--ink); }
.pf-demo:is([data-phase="act"], [data-phase="check"]) [data-phase="ask"]::before,
.pf-demo[data-phase="check"] [data-phase="act"]::before { border-color: var(--green); background: var(--green); }

.pf-panel { display: grid; grid-template-columns: [chat-start] minmax(0, 380px) [window-start] 64px [chat-end] minmax(0, 1fr) [window-end]; align-items: center; }
.pf-panel[hidden] { display: none; }
.pf-panel > .pf-window { grid-row: 1; grid-column: window-start / window-end; }
.pf-panel > .pf-chat { z-index: 1; grid-row: 1; grid-column: chat-start / chat-end; margin-block: 24px; }
.pf-saved { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -10px #1c1f2a80; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pf-saved .pf-check { background: #2c4a3d; color: #8fd3ad; }
.pf-type-rest { visibility: hidden; }

/* Replay states set by marketing-platform.js; the served page is data-state="done". */
/* The caret sits out of the flow at the end of the typed part, so it adds no width and no line break. */
.pf-panel[data-state="ask"] .pf-type-done::after { content: ''; position: absolute; width: 1.5px; height: 1.1em; margin: .2em 0 0 1px; border-radius: 1px; background: currentColor; animation: pf-caret 1s steps(1) infinite; }
/* Waiting steps stay at 4.5:1 or better: .62 of --ink on white is 4.8:1, so their detail line uses --ink while faded. */
.pf-panel:is([data-state="ask"], [data-state="act"]) .pf-steps li:not(.is-done, .is-running) { opacity: .62; }
.pf-panel:is([data-state="ask"], [data-state="act"]) .pf-steps li:not(.is-done, .is-running) .pf-step-detail { color: var(--ink); }
.pf-panel:is([data-state="ask"], [data-state="act"]) .pf-steps li:not(.is-done) .pf-check { background: var(--silver); }
.pf-panel:is([data-state="ask"], [data-state="act"]) .pf-steps li:not(.is-done) .pf-check svg { opacity: 0; }
.pf-steps li.is-running .pf-check { border: 2px solid var(--line-2); border-top-color: var(--ink); background: transparent; animation: pf-spin .7s linear infinite; }
.pf-panel:not([data-state="done"]) :is(.pf-reply, .pf-chat > .pf-link) { opacity: 0; }
.pf-panel:not([data-state="done"]) .pf-saved { opacity: 0; transform: translateY(8px); }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-caret { 50% { opacity: 0; } }

/* What each part does */
.pf-flow { display: grid; grid-template-columns: minmax(0, 1.55fr) 112px minmax(0, 1.4fr) 112px minmax(0, .95fr); align-items: start; }
.pf-node { display: grid; align-content: start; gap: 10px; }
.pf-node > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pf-node-visual { display: grid; place-items: center; height: 256px; margin-bottom: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--ground); }
.pf-connector { position: relative; height: 256px; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; text-align: center; }
.pf-connector::before { content: ''; position: absolute; top: 50%; right: 10px; left: 10px; border-top: 1.5px dashed #b8c0ca; }
.pf-connector::after { content: ''; position: absolute; top: calc(50% - 4px); right: 10px; width: 8px; height: 8px; border-top: 1.5px solid #b8c0ca; border-right: 1.5px solid #b8c0ca; transform: rotate(45deg); }
.pf-connector span { position: absolute; bottom: calc(50% + 10px); left: 8px; right: 8px; }
.pf-apps { place-items: stretch; align-content: center; gap: 10px; padding-inline: 16px; }
.pf-app-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; }
.pf-app-group + .pf-app-group { padding-top: 10px; border-top: 1px solid var(--line); }
.pf-app-group li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 2px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pf-app-group :is(img, svg) { flex: none; width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.pf-app-group li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); place-items: stretch; align-content: center; gap: 2px 10px; padding-inline: 20px; }
.pf-module { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 2px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pf-module .pf-icon { width: 24px; height: 24px; padding: 5px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.pf-module > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-team { align-content: center; gap: 18px; }
.pf-faces { display: inline-flex; justify-self: center; }
.pf-faces img { width: 40px; height: 40px; border: 2px solid var(--ground); border-radius: 50%; object-fit: cover; }
.pf-faces img + img { margin-left: -10px; }
.pf-record { display: flex; align-items: center; gap: 11px; width: min(100%, 280px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; box-shadow: 0 1px 2px #1c1f2a0d; }
.pf-record-icon { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--silver); }
.pf-record strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.pf-record small { display: block; margin-top: 2px; color: var(--green); font-size: 12px; font-weight: 600; }

/* Agent Operator HQ */
.pf-slate { background: var(--slate); color: #fff; }
.pf-slate .pf-section-head p { color: var(--slate-text); }
.pf-hq { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; }
.pf-hq-side { display: grid; justify-items: start; gap: 22px; }
.pf-hq-side .pf-chat { justify-self: stretch; }
.pf-chat-dark { border-color: var(--slate-line); background: var(--slate-2); box-shadow: none; }
.pf-chat-dark .pf-chat-head { color: var(--slate-text); }
.pf-chat-dark .pf-bubble, .pf-nature .pf-bubble { background: var(--slate-line); color: #fff; }
.pf-chat-dark .pf-steps li, .pf-nature .pf-steps li { color: #fff; }
.pf-chat-dark .pf-check, .pf-nature .pf-check { background: #2c4a3d; color: #8fd3ad; }
.pf-chat-dark .pf-reply, .pf-nature .pf-reply { color: var(--slate-text); }
.pf-nature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: center; margin-top: clamp(48px, 5vw, 72px); padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--slate-line); }
.pf-nature video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--slate-line); border-radius: 14px; background: #0f141c; object-fit: cover; }
.pf-nature-copy { display: grid; gap: 14px; max-width: 460px; }
.pf-nature-copy h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; }
.pf-nature-copy > p:not(.pf-bubble, .pf-reply) { color: var(--slate-text); font-size: 16px; line-height: 1.6; }
.pf-nature .pf-bubble { justify-self: start; border-radius: 16px 16px 16px 4px; }

/* Controls */
.pf-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
/* Each card takes two rows of the bento through subgrid, so the cards in one row share the picture height and their dividers line up. */
.pf-feature { display: grid; grid-column: span 4; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.pf-feature-wide { grid-column: span 7; }
.pf-feature-mid { grid-column: span 5; }
.pf-ui { display: grid; place-items: center; min-height: 268px; padding: 28px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--silver), #f8f9fb); }
.pf-feature-copy { display: grid; align-content: start; gap: 10px; padding: 22px 26px 26px; }
.pf-feature-copy p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pf-feature-copy .pf-link { margin-top: 4px; font-size: 14px; }
.pf-mini { width: min(100%, 340px); padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.4; text-align: left; box-shadow: var(--shadow-mini); }
.pf-mini-muted { color: var(--muted); font-size: 12px; }
.pf-mini-strong { margin-top: 2px; font-weight: 600; }
.pf-mini-label { margin: 14px 0 8px; font-weight: 600; }
.pf-mini-label.pf-mini-first { margin-top: 0; }
.pf-mini-list { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.pf-mini-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-weight: 500; }
.pf-mini-list li + li { border-top: 1px solid var(--line); }
.pf-mini-button { display: block; margin-top: 14px; padding: 9px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; text-align: center; }
.pf-box { display: inline-grid; flex: 0 0 auto; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; color: #fff; }
.pf-box.is-on { border-color: var(--ink); background: var(--ink); }
.pf-box svg { width: 10px; height: 10px; }
.pf-org { display: inline-grid; flex: 0 0 auto; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--silver); color: var(--ink-2); }
.pf-scopes { width: 100%; margin-top: 12px; border-collapse: collapse; }
.pf-scopes th { padding: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 500; text-align: left; }
.pf-scopes :is(th, td):not(:first-child) { width: 48px; text-align: center; }
.pf-scopes td { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 500; }
.pf-scopes td .pf-box { vertical-align: middle; }
.pf-mini-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.pf-mini-rows li + li { border-top: 1px solid var(--line); }
.pf-mini-pill { flex: 0 0 auto; padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; font-weight: 600; }
.pf-mini-quiet { color: var(--muted); }
.pf-mini-quiet > span:last-child { flex: 0 0 auto; font-size: 12px; }
.pf-segment { display: flex; padding: 3px; border-radius: 9px; background: var(--silver); }
.pf-segment span { flex: 1; padding: 6px 0; border-radius: 7px; color: var(--muted); font-weight: 600; text-align: center; }
.pf-segment .is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px #1c1f2a1a; }
.pf-mini-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; font-weight: 600; }
.pf-toggle { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--line-2); }
.pf-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #1c1f2a33; }
.pf-radios { display: grid; gap: 6px; }
.pf-radios li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.pf-radios li.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pf-radio { width: 15px; height: 15px; border: 1.5px solid var(--line-2); border-radius: 50%; }
.pf-radios li.is-on .pf-radio { border: 4.5px solid var(--ink); }
.pf-hosting { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--muted); font-size: 15px; line-height: 1.55; }
.pf-hosting > span:nth-child(2) { flex: 1 1 420px; }
.pf-hosting strong { color: var(--ink); font-weight: 600; }
.pf-hosting .pf-org { width: 34px; height: 34px; border-radius: 10px; }

/* Closing call to action */
.pf-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: clamp(36px, 5vw, 80px); }
.pf-cta-copy { display: grid; justify-items: start; gap: 18px; }
.pf-cta-copy p { max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.pf-cta-copy .pf-actions { margin-top: 8px; }
.pf-handoff { box-shadow: var(--shadow-stage); }
.pf-handoff .pf-bubble { max-width: 100%; }
.pf-handoff-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 4px; }
.pf-handoff-status { color: var(--muted); font-size: 13px; }
.pf-copy { min-height: 42px; padding: 0 18px; font-size: 14px; }

@media (max-width: 1100px) {
    .pf-panel { grid-template-columns: [chat-start] minmax(0, 340px) [window-start] 48px [chat-end] minmax(0, 1fr) [window-end]; }
    .pf-flow { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
    .pf-connector { height: 72px; }
    .pf-connector::before { top: 8px; right: auto; bottom: 8px; left: 50%; border-top: 0; border-left: 1.5px dashed #b8c0ca; }
    .pf-connector::after { top: auto; right: auto; bottom: 8px; left: calc(50% - 3.5px); transform: rotate(135deg); }
    .pf-connector span { top: 50%; bottom: auto; left: calc(50% + 16px); right: auto; transform: translateY(-50%); white-space: nowrap; }
    .pf-node-visual { height: auto; min-height: 220px; }
    .pf-hq { grid-template-columns: minmax(0, 1fr); }
    .pf-feature, .pf-feature-wide, .pf-feature-mid { grid-column: span 6; }
    .pf-cta-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
    .pf-section-head { grid-template-columns: minmax(0, 1fr); }
    .pf-phases { display: none; }
    .pf-panel { grid-template-columns: minmax(0, 1fr); }
    .pf-panel > .pf-window { grid-row: 1; grid-column: 1; }
    .pf-panel > .pf-chat { grid-row: 2; grid-column: 1; margin: -36px 10px 0; }
    .pf-saved { right: 10px; bottom: 46px; }
    .pf-feature, .pf-feature-wide, .pf-feature-mid { grid-column: 1 / -1; }
    .pf-nature { grid-template-columns: minmax(0, 1fr); }
}

/* Below about 575px the four example tabs no longer fit on one line; two rows keep every example visible instead of cutting one off mid-word. */
@media (max-width: 600px) {
    .pf-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; overflow: visible; border-radius: 22px; }
    .pf-tab { justify-content: center; gap: 7px; padding: 0 8px; border-radius: 18px; }
    .pf-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
    .pf-tab { font-size: 13px; }
    /* "Raq.com connected" and the connector captions wrap rather than run off a 320px screen. */
    .pf-chat-head { flex-wrap: wrap; row-gap: 6px; }
    .pf-connector span { right: 0; text-align: left; white-space: normal; }
}

@media (max-width: 560px) {
    .pf-demo { border-radius: 22px; }
    .pf-panel > .pf-chat { margin-inline: 4px; }
    .pf-chat-head { gap: 8px; }
    .pf-connected { font-size: 11.5px; }
    .pf-saved { display: none; }
    .pf-agents { align-items: flex-start; }
    .pf-hero .pf-button, .pf-cta-copy .pf-actions, .pf-cta-copy .pf-button { width: 100%; }
    .pf-ui { min-height: 0; padding: 22px 16px; }
    .pf-feature-copy { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-button, .pf-link, .pf-tab, .pf-steps li, .pf-reply, .pf-saved { transition: none; }
    .pf-button:hover { transform: none; }
}
