/* Supporting pages — layouts built only from theme tokens (theme.css). */
.ph-hero-short { padding: 168px 0 72px; }
.ph-hero-solo { grid-template-columns: 1fr; max-width: 900px; }

/* about */
.ph-video-sec { padding-top: 0; }
.ph-video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--hair); background: var(--raised); }
.ph-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph-story { max-width: 760px; margin-left: auto; display: grid; gap: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.ph-story p { margin: 0; }
.ph-story-big { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px) !important; letter-spacing: -.04em; line-height: 1.25 !important; color: var(--ink) !important; }
.ph-team img { width: 96px; height: 96px; object-fit: cover; filter: grayscale(1); border: 1px solid var(--hair); margin-bottom: 20px; display: block; }

/* security cert panel */
.ph-cert { width: 100%; border: 1px solid var(--hair); background: var(--raised); }
.ph-cert-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ph-cert-row span { color: var(--ink-3); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ph-cert-badge { display: flex; justify-content: space-between; align-items: center; padding: 20px; }
.ph-cert-badge span { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #000; background: var(--accent); padding: 5px 8px; }
.ph-cert-badge b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.04em; }
.ph-inline { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }

/* forms */
.ph-form-card { width: 100%; border: 1px solid var(--hair); background: var(--raised); padding: 28px; }
.ph-form { display: grid; gap: 16px; }
.ph-form label { display: grid; gap: 8px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ph-form label small { text-transform: none; letter-spacing: 0; }
.ph-form input, .ph-form textarea { font: 400 15px var(--sans); color: var(--ink); background: var(--ground); border: 1px solid var(--hair-2); padding: 12px 14px; outline: 0; resize: vertical; text-transform: none; letter-spacing: 0; }
.ph-form input:focus, .ph-form textarea:focus { border-color: var(--ink); }
.ph-form .ph-btn { justify-self: start; }
.ph-form-err { color: var(--ink); font-size: 14px; margin: 0; }
.ph-form-foot { margin: 0; font-size: 13px; color: var(--ink-3); } .ph-form-foot a { color: var(--ink); }
.ph-form-done b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.04em; }
.ph-form-done p { color: var(--ink-2); }

/* book a demo */
.ph-book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.ph-book .ph-ledger { margin-top: 8px; }
.ph-ledger li b { color: var(--ink); font-weight: 500; }
.ph-cal { border: 1px solid var(--hair); background: var(--raised); min-height: 660px; }
.ph-cal-embed { min-height: 660px; width: 100%; }

/* pricing */
.ph-segs { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 28px; }
.ph-seg { display: inline-flex; border: 1px solid var(--hair-2); }
.ph-seg button { font: 500 12px var(--mono); padding: 9px 14px; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; }
.ph-seg button.on { background: var(--ink); color: var(--ground); }
.ph-plan { display: flex; flex-direction: column; gap: 10px; }
.ph-plan[hidden] { display: none; }
.ph-plan-top { display: flex; justify-content: space-between; align-items: center; }
.ph-plan-top h3 { margin: 0 !important; font-family: var(--display) !important; font-weight: 400 !important; font-size: 24px !important; letter-spacing: -.04em !important; }
.ph-tag { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: #000; padding: 4px 7px; }
.ph-plan > p { margin: 0 !important; }
.ph-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.ph-price b { font-family: var(--display); font-weight: 400; font-size: 44px; letter-spacing: -.05em; }
.ph-price span { font: 400 12px var(--mono); color: var(--ink-3); }
.ph-plan .ph-btn { justify-content: center; margin: 8px 0 4px; }
.ph-plan .ph-ledger { margin-top: 8px; }
.ph-plan .ph-ledger li { font-size: 13px; padding: 9px 0 9px 20px; }
.ph-table-wrap { overflow-x: auto; border: 1px solid var(--hair); }
.ph-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.ph-table th, .ph-table td { padding: 12px 14px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.ph-table thead th { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--raised); position: sticky; top: 0; }
.ph-table tbody th { font-weight: 400; color: var(--ink-2); width: 26%; }
.ph-table td { color: var(--ink); }
.ph-table tr.g th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); background: var(--ground); padding-top: 22px; }
.ph-yes { color: var(--accent-ink); } .ph-no { color: var(--ink-3); }

/* sign up */
.ph-signup { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.ph-signup-main { display: grid; gap: 20px; }
.ph-opts { display: grid; gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); margin-bottom: 20px; }
.ph-opts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ph-opt { position: relative; display: grid; gap: 4px; padding: 20px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); cursor: pointer; transition: background .2s; }
.ph-opt:hover { background: var(--lift); }
.ph-opt input { position: absolute; opacity: 0; }
.ph-opt b { font-weight: 500; font-size: 16px; }
.ph-opt small { color: var(--ink-3); font-size: 13px; }
.ph-opt em { font-style: normal; font-family: var(--display); font-size: 24px; letter-spacing: -.04em; margin-top: 6px; } .ph-opt em i { font: 400 11px var(--mono); color: var(--ink-3); letter-spacing: 0; }
.ph-opt:has(input:checked) { background: var(--lift); box-shadow: inset 0 0 0 1px var(--ink); }
.ph-opt:has(input:checked)::after { content: ""; position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; background: var(--accent); }
.ph-opt.off { opacity: .4; cursor: not-allowed; }
.ph-sum { border: 1px solid var(--hair); position: sticky; top: 100px; display: grid; gap: 14px; }
.ph-sum h3 { margin: 0 !important; }
.ph-sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); } .ph-sum-row b { color: var(--ink); font-weight: 500; }
.ph-sum .ph-btn { justify-content: center; }
.ph-sum .ph-ledger li { font-size: 13px; }

/* blog + article */
.ph-post-cell { display: flex; flex-direction: column; color: inherit; }
.ph-post-cell .sub { margin: 0 0 6px !important; text-transform: uppercase; letter-spacing: .08em; font-size: 11px !important; }
.ph-post-cell h3 { font-size: 20px !important; line-height: 1.3; }
.ph-post-cell .ph-link { margin-top: auto !important; padding-top: 22px; }
.ph-article-head { max-width: 860px; display: grid; gap: 22px; }
.ph-back::after { content: none; } .ph-back::before { content: "← "; }
.ph-byline { display: flex; gap: 12px; align-items: baseline; font-size: 14px; } .ph-byline span { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }
.ph-article { max-width: 720px; margin: 0 auto; color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.ph-article h2, .ph-article h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.04em; color: var(--ink); margin: 48px 0 14px; line-height: 1.2; }
.ph-article h2 { font-size: 30px; } .ph-article h3 { font-size: 22px; }
.ph-article p { margin: 0 0 18px; }
.ph-article a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 3px; }
.ph-article ul, .ph-article ol { padding-left: 22px; margin: 0 0 18px; } .ph-article li { margin: 6px 0; }
.ph-article code { font: 400 .88em var(--mono); background: var(--raised); border: 1px solid var(--hair); padding: 1px 5px; color: var(--ink); }
.ph-article pre { background: var(--raised); border: 1px solid var(--hair); padding: 16px; overflow-x: auto; font: 400 13px/1.6 var(--mono); }
.ph-article blockquote { margin: 28px 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--accent); color: var(--ink); }
.ph-article img, .ph-article figure { max-width: 100%; height: auto; margin: 24px 0; }
.ph-article table { width: 100%; border-collapse: collapse; font-size: 14px; } .ph-article td, .ph-article th { border-bottom: 1px solid var(--hair); padding: 10px 8px; text-align: left; }
.ph-legal h2 { font-size: 24px; }
.ph-next { color: inherit; } .ph-next .ph-link { margin-top: 18px; }

@media (max-width: 1000px) {
  .ph-book, .ph-signup { grid-template-columns: 1fr; }
  .ph-sum { position: static; }
  .ph-opts.c3 { grid-template-columns: 1fr; }
  .ph-cells.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .ph-cells.c5 { grid-template-columns: 1fr; } }
/* ledger list (shared) */
.ph-ledger { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--hair); }
.ph-ledger li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--hair); color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ph-ledger li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 7px; height: 7px; background: var(--ink); }
ol.ph-ledger { counter-reset: l; } ol.ph-ledger li::before { counter-increment: l; content: counter(l, decimal-leading-zero); width: auto; height: auto; background: none; top: 12px; left: 0; font: 400 11px var(--mono); color: var(--ink-3); }
ol.ph-ledger li { padding-left: 30px; }
.ph-price b:only-child, .ph-plan .ph-price b:not([data-m]) { font-size: 30px; white-space: nowrap; }
.ph-price { flex-wrap: wrap; }
.ph-article ul { list-style: square; } .ph-article ol { list-style: decimal; } .ph-article li::marker { color: var(--ink-3); }
/* xbow illustration components */
.ph-xart { position: relative; width: 100%; }
.ph-xart > * { width: 100%; }
/* product hero variants */
.ph-hero-c { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 900px; margin: 0 auto; }
.ph-hero-c .ph-hero-copy { justify-items: center; }
.ph-hero-c .ph-lede { margin-inline: auto; }
.ph-hero-c .ph-eyebrow { justify-content: center; }
.ph-hero-orbit { padding: 0; height: 800px; display: flex; align-items: center; overflow: hidden; } /* frame hugs the nav; copy centred inside it, as on xbow */
.ph-hero-orbit > .ph-wrap { margin-top: 60px; }
.ph-hero-orbit > .ph-wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); }
.ph-orbit-bg { position: absolute; left: 0; right: 0; top: 2px; height: 860px; z-index: 0; pointer-events: none; }
.ph-orbit-bg .ph-xart, .ph-orbit-bg .ph-xart > *, .ph-orbit-bg [class*="hero-orbit__root"] { width: 100%; height: 100%; }
.ph-hero-orbit .ph-wrap { z-index: 1; }
.ph-hero-flow { padding: 220px 0 160px; overflow: hidden; }
.ph-flow-layer { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ph-flow-layer > div { top: 58% !important; }
.ph-hero-flow .ph-wrap { z-index: 1; }
.ph-hero-flow .ph-hero-copy { background: radial-gradient(closest-side, var(--ground) 60%, transparent); padding: 20px 40px; }
.ph-hero-center { padding-bottom: 96px; }
.ph-hero-under { max-width: 720px; margin: 56px auto 0; container-type: inline-size; }
.ph-showcase .ph-xart { max-width: 1100px; margin: 0 auto; }
.ph-art-wide { min-height: 0; }
.ph-art-wide .ph-xart { max-width: 900px !important; }
.ph-art .ph-xart { max-width: 560px; margin: 0 auto; }
/* flowing hero tiles: the animated icon tiles, in xbow green */
.ph-flow-layer [class*="flow-hero-module__61m4_G__tile"] { color: #2bb5cb; border-color: color-mix(in srgb, #2bb5cb 45%, #232325) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, #2bb5cb 20%, transparent), 0 0 24px -4px color-mix(in srgb, #2bb5cb 45%, transparent), inset 0 0 12px -6px #2bb5cb; }
.ph-flow-layer [class*="flow-hero-module__61m4_G__tile"] span { color: #2bb5cb !important; }
.ph-flow-layer [class*="flow-hero-module__61m4_G__tile"] svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px color-mix(in srgb, #2bb5cb 60%, transparent)); }
.ph-showcase .ph-xart-term { max-width: 760px; }

/* ---------- composer mock (Phyllis chat composer) ---------- */
.phc { --app: #0e0f11; --app-2: #16171a; --app-3: #1e1f23; --app-line: #232428; --app-ink: #ececee; --app-mute: #9a9ba1; --app-dim: #6b6c72;
  max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; text-align: left; font-family: var(--sans); background: var(--app); color: var(--app-ink);
  border: 1px solid var(--app-line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 100px -50px #000; }
.phc svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* window header, as in the app */
.phc-top { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--app-line); }
.phc-title { font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phc-sp { flex: 1; }
.phc-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--app-line); border-radius: 7px; font-size: 12px; color: var(--app-mute); white-space: nowrap; }
.phc-pill b { color: var(--app-ink); font-weight: 600; } .phc-pill svg { width: 13px; height: 13px; }
.phc-pill.live { border-color: #2f6b3a; color: var(--app-ink); } .phc-pill.live i { width: 6px; height: 6px; border-radius: 50%; background: #3ecf5a; }
.phc-ico { width: 26px; height: 26px; display: grid; place-items: center; color: var(--app-mute); } .phc-ico svg { width: 15px; height: 15px; }
/* conversation */
.phc-main { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 16px 10px; }
.phc-thread { display: flex; flex-direction: column; gap: 16px; max-height: 0; overflow: hidden; transition: max-height .6s ease; }
.phc.sent .phc-thread { max-height: 900px; padding-top: 18px; }
.phc-user { align-self: flex-end; max-width: 80%; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.phc-user span { display: block; background: var(--app-3); padding: 9px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.phc.sent .phc-user { opacity: 1; transform: none; }
.phc-reply { padding: 0 4px; opacity: 0; transition: opacity .3s; } .phc.sent .phc-reply { opacity: 1; }
.phc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.phc-step { position: relative; padding-left: 18px; }
.phc-step::before { content: ""; position: absolute; left: 5px; top: .68em; width: 4px; height: 4px; border-radius: 50%; background: var(--app-ink); }
.phc-step { font-size: 14px; line-height: 1.55; color: var(--app-mute); max-height: 0; overflow: hidden; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s, max-height .4s, margin .4s; }
.phc-step b { color: var(--app-ink); font-weight: 600; }
.phc-step.on { max-height: 70px; margin-top: 7px; opacity: 1; transform: none; } .phc-step.on:first-child { margin-top: 0; }
.phc-meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--app-dim); opacity: 0; transition: opacity .35s; }
.phc-meta svg { width: 14px; height: 14px; } .phc.done .phc-meta { opacity: 1; }
.phc-final:not(:is(.phc.done *)) { display: none !important; }
.phc-final { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--app-2); border: 1px solid var(--app-line); border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; transition: opacity .35s; }
.phc.done .phc-final { opacity: 1; }
.phc-btns { display: flex; gap: 6px; } .phc-btns i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--app-line); color: var(--app-ink); }
.phc-btns .yes { background: var(--app-ink); color: var(--app); border-color: var(--app-ink); }
/* composer */
.phc-box { position: relative; margin-top: 16px; background: var(--app-2); border: 1px solid var(--app-line); border-radius: 14px; padding: 10px 10px 8px; }
.phc-ring { position: absolute; top: 12px; right: 14px; display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--app-mute); }
.phc-ring em { font-style: normal; } .phc-ring i { width: 15px; height: 15px; border-radius: 50%; background: conic-gradient(var(--app-mute) 0 25%, var(--app-3) 25% 100%); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.phc-input { position: relative; min-height: 64px; padding: 4px 60px 8px 6px; font-size: 14.5px; line-height: 1.6; }
.phc-ph { position: absolute; left: 6px; top: 4px; color: var(--app-dim); pointer-events: none; }
.phc.typing .phc-ph, .phc.has .phc-ph { display: none; }
.phc-caret { display: inline-block; width: 1.5px; height: 1.1em; vertical-align: -2px; background: var(--app-ink); margin-left: 1px; animation: phc-blink 1s steps(1) infinite; }
@keyframes phc-blink { 50% { opacity: 0; } }
.phc-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.phc-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--app-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.phc-chip svg { width: 15px; height: 15px; } .phc-chip svg.v { width: 12px; height: 12px; color: var(--app-dim); }
.phc-live { width: 8px; height: 8px; border-radius: 50%; background: #3ecf5a; }
.phc-acts { display: flex; align-items: center; gap: 4px; }
.phc-clip, .phc-send { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--app-mute); }
.phc-send { border: 1px solid var(--app-line); transition: background .2s, color .2s; }
.phc.has .phc-send { background: var(--app-ink); color: var(--app); border-color: var(--app-ink); }
.phc-clip svg, .phc-send svg { width: 16px; height: 16px; }
.phc-note { margin: 8px 0 0; text-align: center; font-size: 11.5px; color: var(--app-dim); }
@media (max-width: 640px) { .phc-chip:nth-child(3), .phc-ico, .phc-pill:not(.live) { display: none; } }
/* horizon hero (xbow AtmosphereCanvas) */
.ph-hero-horizon { padding: 210px 0 140px; overflow: hidden; }
.ph-hero-horizon.has-under { padding-bottom: 96px; }
.ph-horizon-bg { position: absolute; left: 0; right: 0; top: 0; height: 1400px; z-index: 0; pointer-events: none; }
.ph-horizon-bg canvas { display: block; width: 100%; height: 100%; }
.ph-hero-horizon > .ph-wrap { z-index: 1; }
.ph-hero-rise { position: relative; max-width: 980px; margin: 72px auto 0; container-type: inline-size; }
.ph-hero-rise .ph-cardart { width: min(100%, 760px); margin: 0 auto; }
.ph-hero-rise .ph-cells { background: transparent; }
/* split hero with xbow art (Develop) */
.ph-hero-artgrid { grid-template-columns: 1fr 1fr; }
.ph-hero-xart { position: relative; }
.ph-hero-xart .ph-xart { max-width: 600px; margin-left: auto; }
@media (max-width: 1000px) { .ph-hero-artgrid { grid-template-columns: 1fr; } }
/* book a demo (xbow /demo pattern: copy left, form card right; calendar appears after the form) */
.ph-book-sec { padding: 176px 0 96px; }
.ph-book { grid-template-columns: minmax(0, 1.05fr) minmax(400px, 560px); gap: 64px; }
.ph-book .ph-ledger { margin-top: 28px; }
.ph-demo-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ph-demo-trust span { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--hair-2); padding: 6px 9px; }
.ph-demo-card { border: 1px solid var(--hair-2); background: var(--raised); padding: 28px; box-shadow: 0 30px 80px -40px #000; }
.ph-demo-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.ph-demo-h b { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.04em; }
.ph-demo-h span { font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ph-form-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
.ph-form-grid .w { grid-column: 1 / -1; }
.ph-form select { font: 400 15px var(--sans); color: var(--ink); background: var(--ground); border: 1px solid var(--hair-2); padding: 12px 14px; outline: 0; text-transform: none; letter-spacing: 0; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ph-form .ph-btn.w { justify-content: center; height: 44px; }
.ph-demo-step2 { display: none; }
.ph-demo-card.booked .ph-demo-step1 { display: none; }
.ph-demo-card.booked .ph-demo-step2 { display: block; }
#ph-demo-cal { min-height: 560px; }
@media (max-width: 1000px) { .ph-book { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ph-form-grid { grid-template-columns: 1fr; } }

/* legal: sticky contents beside the prose */
.ph-article.ph-legal { max-width: 1040px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
.ph-legal .ed-toc { position: sticky; top: 112px; display: flex; flex-direction: column; border-left: 1px solid var(--hair); }
.ph-legal .ed-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 13px; line-height: 1.4; color: var(--ink-3); text-decoration: none; transition: color .2s, border-color .2s; }
.ph-legal .ed-toc a:hover, .ph-legal .ed-toc a.on { color: var(--ink); border-left-color: var(--ink); }
.ph-legal .ed-prose > section:first-child h2 { margin-top: 0; }
.ph-legal section { scroll-margin-top: 110px; }
@media (max-width: 900px) {
  .ph-article.ph-legal { grid-template-columns: 1fr; gap: 32px; }
  .ph-legal .ed-toc { position: static; }
}

/* book: Cal.com inline */
.ph-demo-cal { padding: 24px 20px 12px; }
.ph-demo-cal #my-cal-inline-phyllis-ai-demo { min-height: 520px; width: 100%; overflow: auto; }

/* horizon heroes with nothing rising: show the whole arc (dark planet below) instead of cutting at the band */
.ph-hero-horizon:not(.has-under) { padding-bottom: 230px; }
.ph-hero-horizon:not(.has-under) .ph-horizon-bg { top: -90px; }
.ph-hero-horizon:not(.has-under)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ground) 92%); }

/* homepage hero: the composer, cycling through the lifecycle */
.ph-hero-art-comp { align-self: stretch; display: flex; }
.ph-hero-comp { position: relative; width: 100%; height: 540px; display: flex; flex-direction: column; gap: 18px; }
.ph-hero-comp .phc { width: 100%; max-width: none; margin: 0; flex: 1; min-height: 0; }
.ph-hero-comp .phc-main { justify-content: flex-end; }
.ph-hero-comp .phc-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.phc-tabs span { position: relative; padding-top: 12px; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); transition: color .3s; }
.phc-tabs span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair-2); }
.phc-tabs span::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0; background: var(--accent); }
.phc-tabs span.past { color: var(--ink-2); } .phc-tabs span.past::after { width: 100%; background: var(--ink-3); }
.phc-tabs span.on { color: var(--ink); } .phc-tabs span.on::after { animation: phc-tab var(--dur, 9s) linear forwards; }
@keyframes phc-tab { to { width: 100%; } }
@media (max-width: 1000px) { .ph-hero-comp { height: 470px; } }
@media (max-width: 600px) { .phc-tabs span { font-size: 9px; letter-spacing: .04em; } .ph-hero-comp { height: 500px; } }
@media (max-width: 1000px) { .ph-hero-art-comp { margin-bottom: 40px; } }
@media (max-width: 1000px) { .ph-hero-comp { margin-bottom: 40px; } }

/* the app's composer on its own (homepage hero) — servicenow-mcp thread.tsx empty-state Composer, dark ui-v2 tokens */
.phx { --pop: #131416; --bd: #1a1c1f; --acc: #1d1e21; --mut: #1f2024; --fg: #eeeff1; --mf: #8d8e91; width: 100%; font-family: var(--sans); text-align: left; }
.phx svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phx-box { position: relative; display: flex; flex-direction: column; border: 1px solid var(--bd); background: var(--pop); border-radius: 12px; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.02), 0 40px 120px -40px #000; }
.phx-ring { position: absolute; right: 12px; top: 10px; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 0 4px; font-size: 11px; font-variant-numeric: tabular-nums; color: var(--mf); }
.phx-ring svg { width: 14px; height: 14px; transform: rotate(-90deg); } .phx-ring .arc { stroke-linecap: round; }
.phx-editor { position: relative; min-height: 104px; padding: 8px 12px; font-size: 14px; line-height: 24px; color: var(--fg); }
.phx-ph { position: absolute; left: 12px; top: 8px; color: var(--mf); pointer-events: none; }
.phx.has .phx-ph { display: none; }
.phx-caret { display: inline-block; width: 1.5px; height: 16px; vertical-align: -3px; background: var(--fg); margin-left: 1px; animation: phc-blink 1s steps(1) infinite; }
.phx:not(.typing) .phx-caret { opacity: 0; animation: none; }
.phx-bar { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
.phx-left { display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.phx-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.phx-chip { display: flex; height: 28px; flex-shrink: 0; align-items: center; gap: 6px; white-space: nowrap; border-radius: 6px; border: 1px solid rgba(26,28,31,.6); background: var(--acc); padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--fg); }
.phx-chip > svg:not(.phx-chev) { width: 14px; height: 14px; }
.phx-chev { width: 12px; height: 12px; color: var(--mf); }
.phx-locked { opacity: .8; }
.phx-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.phx-attach { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; color: var(--mf); }
.phx-attach svg { width: 16px; height: 16px; }
.phx-send { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; background: var(--fg); color: rgba(12,13,15,.6); transition: color .2s, transform .15s; }
.phx-send svg { width: 16px; height: 16px; stroke-width: 2.5; }
.phx.has .phx-send { color: #0c0d0f; }
.phx.sending .phx-send { transform: scale(.88); }
.ph-hero-comp:has(.phx) { height: auto; justify-content: center; gap: 22px; }
.ph-hero-art-comp:has(.phx) { align-items: center; }
@media (max-width: 640px) { .phx-chip:nth-child(3) { display: none; } }
.ph-hero-art.ph-hero-art-comp:has(.phx) { min-height: 0; height: auto; aspect-ratio: auto; }
@media (max-width: 1000px) { .ph-hero-comp:has(.phx) { margin-bottom: 0; } .ph-hero-art-comp:has(.phx) { margin-bottom: 0; } }

/* ---- homepage hero, keygraph.io: centred copy, ribbons through ribbed glass, product in a frame ---- */
.ph-kghero-sec { padding: 168px 0 0; overflow: hidden; }
.ph-kghero-sec > .ph-wrap { z-index: 1; }
.ph-kghero-sec .ph-rails { display: none; }
.ph-crt-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ph-crt-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; animation: ph-crt-in 1.6s ease both; }
.ph-crt-scrim { position: absolute; inset: 0; background:
  radial-gradient(56% 44% at 50% 30%, rgba(6,6,6,.82), rgba(6,6,6,0) 74%),
  linear-gradient(180deg, rgba(6,6,6,.55) 0%, rgba(6,6,6,0) 22%, rgba(6,6,6,0) 58%, #060606 92%); }
@keyframes ph-crt-in { from { opacity: 0; } }
.ph-kghero { max-width: 880px; margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: 22px; }
.ph-kghero .ph-h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: 1.02; }
.ph-kghero .ph-lede { max-width: 620px; margin: 0; font-size: 18px; }
.ph-kgcta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.ph-kgcta .ph-btn { border-radius: 999px; padding-inline: 22px; }
.ph-kgpill { display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 20px; border-radius: 999px; background: rgba(32,34,36,.8); border: 1px solid #2a2c2e; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; backdrop-filter: blur(6px); }
.ph-kgpill i { width: 1px; align-self: stretch; background: #34363a; }
.ph-kgpill b { font-weight: 600; color: var(--accent); }
.ph-kgstage { position: relative; max-width: 1200px; margin: 64px auto 0; }
.ph-kgframe { border: 1px solid #23262a; border-bottom: 0; border-radius: 14px 14px 0 0; background: #121416; overflow: hidden; box-shadow: 0 -30px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); }
.ph-kgbar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 16px; background: #0a0b0c; border-bottom: 1px solid #1d2023; font: 700 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: #8d8e91; }
.ph-kglights { display: flex; gap: 6px; } .ph-kglights i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d40; }
.ph-kglive { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.ph-kglive::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: ph-live 1.6s ease-in-out infinite; }
@keyframes ph-live { 50% { opacity: .35; } }
.ph-kgwin { padding: 56px 12% 72px; background: radial-gradient(70% 90% at 50% 0%, #17191c, #0c0d0f 70%); }
.ph-kgwin .ph-hero-comp { height: auto; margin: 0; }
@media (max-width: 800px) { .ph-kghero-sec { padding-top: 132px; } .ph-kgwin { padding: 32px 14px 40px; } .ph-kgstage { margin-top: 44px; } }
/* hero CTA pair: one height, one typeface, one border */
.ph-kgcta { align-items: center; }
.ph-kgcta .ph-btn, .ph-kgpill { box-sizing: border-box; height: 44px; border-width: 1px; border-style: solid; font: 500 14px/1 var(--mono); letter-spacing: 0; }
.ph-kgcta .ph-btn { padding: 0 22px; }
.ph-kgpill { gap: 0; padding: 0; overflow: hidden; }
.ph-kgpill span, .ph-kgpill b { display: flex; align-items: center; height: 100%; padding: 0 18px; font: inherit; }
.ph-kgpill i { width: 1px; height: 100%; background: #34363a; }
