/* The public site's own design system - the landing page and the shared nav/footer, plus the typography the
   guide pages need. Plain CSS, not part of the Tailwind build (no @apply here) - a static file so Razor's
   own @ parsing never has to be worked around inside a <style> block.

   Two rules keep this safe next to Tailwind, which every page here also loads:
     - Page-level rules (body, links, headings) are scoped to body.ph-site, which only the landing page has.
       The guide pages keep their Tailwind look and borrow only the chrome and the tokens.
     - Component classes avoid Tailwind's utility names. The one real collision is .grid, so the layout
       helpers here are .tiles / .t2 / .t3 / .t4 instead. */

:root {
    --ph-bg: #ffffff;
    --ph-bg-2: #f6f7fb;
    --ph-panel: #ffffff;
    --ph-line: rgba(19, 22, 45, .12);
    --ph-line-2: rgba(19, 22, 45, .085);
    --ph-ink: #15161d;
    --ph-ink-2: #555b70;
    --ph-ink-3: #666c81;
    --ph-violet: #5b43f0;
    --ph-violet-2: #4f2fd6;
    --ph-mint: #0f9d6e;
    --ph-amber: #b8790a;
    --ph-r: 16px;
    --ph-edge: clamp(20px, 5vw, 64px);
    --ph-font-d: "Space Grotesk", system-ui, sans-serif;
    --ph-font-b: "Manrope", system-ui, sans-serif;
    --ph-font-m: "JetBrains Mono", ui-monospace, monospace;
}

/* ---- page shell (landing page only) ---------------------------------------------------------------- */
body.ph-site {
    margin: 0;
    background: var(--ph-bg);
    color: var(--ph-ink);
    font-family: var(--ph-font-b);
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
}
/* The whole page sits on one soft wash rather than a dark hero block - it is what makes the white read as
   deliberate instead of empty. Fixed, so it does not scroll away. */
body.ph-site::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 520px at 18% -8%, rgba(124, 92, 255, .14), transparent 70%),
        radial-gradient(760px 480px at 92% 2%, rgba(61, 220, 151, .09), transparent 70%),
        linear-gradient(180deg, #fbfbfe, #ffffff 40%);
}
body.ph-site h1,
body.ph-site h2,
body.ph-site h3,
body.ph-site h4 { font-family: var(--ph-font-d); font-weight: 600; letter-spacing: -.02em; margin: 0; }
body.ph-site p { margin: 0; }
/* Buttons and the wordmark carry their own colour, so this rule skips them - it would otherwise outrank
   theirs and paint violet text onto the violet CTA. :where() keeps the exclusion free, so the nav and
   footer link colours still win over it. */
.ph-site a:not(:where(.btn, .brand)) { color: var(--ph-violet-2); text-decoration: none; }
.ph-site a:not(:where(.btn, .brand)):hover { color: #3a1fbd; }
body.ph-site ::selection { background: rgba(124, 92, 255, .22); }

.ph-site a:focus-visible,
.ph-site button:focus-visible,
.ph-site summary:focus-visible { outline: 2px solid var(--ph-violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--ph-edge); position: relative; z-index: 1; }
.ph-site section { position: relative; z-index: 1; }
.sec { padding: clamp(64px, 8vw, 110px) 0; }
.eyebrow { display: block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-violet-2); font-weight: 600; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; margin-top: 14px; }
.lede { color: var(--ph-ink-2); font-size: 16.5px; max-width: 60ch; margin-top: 14px; }

/* ---- chrome: shared with the guide pages ----------------------------------------------------------- */
.ph-nav {
    position: sticky; top: 0; z-index: 30;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid var(--ph-line-2);
    transition: box-shadow .25s ease, background .25s ease;
}
.ph-nav.scrolled { box-shadow: 0 12px 28px -24px rgba(19, 22, 45, .55); background: rgba(255, 255, 255, .93); }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 12px var(--ph-edge); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--ph-font-d); font-weight: 600; font-size: 17px; color: var(--ph-ink); text-decoration: none; }
.brand:hover { color: var(--ph-ink); }
.brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; }
.brand .pj { color: var(--ph-ink); }
.brand .hm { color: #dc2626; }
.nav-links { display: flex; gap: 20px; margin-left: 8px; }
.ph-nav .nav-links a { color: var(--ph-ink-2); font-size: 14.5px; text-decoration: none; }
.ph-nav .nav-links a:hover { color: var(--ph-ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (max-width: 960px) { .nav-links { display: none; } }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    font-family: var(--ph-font-b); font-weight: 600; font-size: 14.5px; line-height: 1;
    padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; transition: .16s ease;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn-primary { background: linear-gradient(140deg, #6d51f7, #4f2fd6); color: #fff; box-shadow: 0 10px 22px -12px rgba(91, 67, 240, .7); }
.btn-primary:hover { background: linear-gradient(140deg, #7c62ff, #5c3ce8); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn-ghost { background: #fff; border-color: var(--ph-line); color: var(--ph-ink); }
.btn-ghost:hover { background: #f5f4ff; border-color: rgba(91, 67, 240, .4); color: var(--ph-violet-2); }
.btn-quiet { background: transparent; color: var(--ph-ink-2); padding: 10px 12px; }
.btn-quiet:hover { color: var(--ph-ink); }
.btn-lg { padding: 15px 24px; font-size: 15.5px; }
@media (max-width: 640px) { .btn-hide-sm { display: none; } }

/* ---- hero ------------------------------------------------------------------------------------------ */
.hero { padding: clamp(52px, 6.5vw, 86px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.hero-copy { max-width: 880px; margin: 0 auto; }
.hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.04; margin-top: 22px; }
.hero h1 .g { background: linear-gradient(100deg, #15161d 18%, var(--ph-violet) 58%, #0f9d6e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--ph-ink-2); font-size: 17.5px; max-width: 62ch; margin: 20px auto 0; }
.hero p.fine { color: var(--ph-ink-3); font-size: 14.5px; max-width: 60ch; margin: 14px auto 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; justify-content: center; }

.pill {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px;
    border: 1px solid var(--ph-line); background: #fff; box-shadow: 0 1px 2px rgba(19, 22, 45, .05);
    font-size: 13px; color: var(--ph-ink-2); letter-spacing: .01em;
}
.pill b { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-violet-2); font-weight: 600; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-mint); box-shadow: 0 0 0 4px rgba(61, 220, 151, .16); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; justify-content: center; align-items: center; }
.stack .label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink-3); margin-right: 4px; }
.chip { font-family: var(--ph-font-m); font-size: 12px; color: var(--ph-ink-2); padding: 6px 11px; border-radius: 8px; border: 1px solid var(--ph-line); background: #fff; }


/* ---- cards and grids ------------------------------------------------------------------------------- */
.tiles { display: grid; gap: 18px; margin-top: 44px; }
.t4 { grid-template-columns: repeat(4, 1fr); }
.t3 { grid-template-columns: repeat(3, 1fr); }
.t2 { grid-template-columns: repeat(2, 1fr); }

.card {
    border: 1px solid var(--ph-line); border-radius: var(--ph-r); padding: 24px; background: var(--ph-panel);
    box-shadow: 0 1px 2px rgba(19, 22, 45, .04); transition: .18s ease;
}
.card:hover { border-color: rgba(91, 67, 240, .45); background: #fbfaff; transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(91, 67, 240, .45); }
.card .ico {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
    background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .28); color: var(--ph-violet-2);
    transition: transform .35s cubic-bezier(.22, .7, .28, 1), background .25s ease;
}
.card .ico svg { width: 19px; height: 19px; }
.card:hover .ico { transform: translateY(-2px) rotate(-6deg) scale(1.06); background: rgba(109, 81, 247, .2); }
.card h3 { font-size: 17.5px; }
.card p { color: var(--ph-ink-2); font-size: 14.5px; margin-top: 9px; }
.card > :first-child { margin-top: 0; }
.card .kicker { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink-3); font-weight: 600; }
.card .figure { font-family: var(--ph-font-d); font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 10px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.card .figure small { font-size: 14px; color: var(--ph-ink-3); font-weight: 500; font-family: var(--ph-font-b); }

.step {
    border: 1px solid var(--ph-line); border-radius: var(--ph-r); padding: 24px; background: var(--ph-panel);
    position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(19, 22, 45, .04);
}
.step .n { font-family: var(--ph-font-m); font-size: 12.5px; color: var(--ph-violet-2); letter-spacing: .1em; }
.step h3 { font-size: 18px; margin-top: 14px; }
.step p { color: var(--ph-ink-2); font-size: 14.5px; margin-top: 9px; }
.step::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .12), transparent 70%);
}

.conn {
    display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--ph-line); border-radius: 14px;
    padding: 18px; background: var(--ph-panel); transition: .18s ease; box-shadow: 0 1px 2px rgba(19, 22, 45, .04);
}
.conn:hover { border-color: rgba(91, 67, 240, .42); background: #fbfaff; }
.conn .ico {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: rgba(19, 22, 45, .05); border: 1px solid var(--ph-line-2); color: var(--ph-ink-2);
    transition: transform .3s ease;
}
.conn .ico svg { width: 17px; height: 17px; }
.conn:hover .ico { transform: translateY(-2px); }
.conn h3 { font-size: 15.5px; }
.conn p { color: var(--ph-ink-2); font-size: 13.8px; margin-top: 5px; }
/* The connectors keep the colour each one had before - the tint is how you tell them apart at a glance. */
.ico.tint-violet { background: rgba(124, 92, 255, .13); border-color: rgba(124, 92, 255, .26); color: #6d51f7; }
.ico.tint-sky { background: rgba(14, 165, 233, .11); border-color: rgba(14, 165, 233, .24); color: #0284c7; }
.ico.tint-amber { background: rgba(217, 119, 6, .12); border-color: rgba(217, 119, 6, .24); color: #b8790a; }
.ico.tint-mint { background: rgba(15, 157, 110, .12); border-color: rgba(15, 157, 110, .26); color: #0f9d6e; }
.ico.tint-rose { background: rgba(225, 29, 72, .1); border-color: rgba(225, 29, 72, .22); color: #e11d48; }
.ico.tint-indigo { background: rgba(79, 70, 229, .12); border-color: rgba(79, 70, 229, .25); color: #4f46e5; }
.ico.tint-cyan { background: rgba(6, 182, 212, .12); border-color: rgba(6, 182, 212, .25); color: #0891b2; }

/* ---- split section --------------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* ---- pricing --------------------------------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.plan { border: 1px solid var(--ph-line); border-radius: var(--ph-r); padding: 26px; background: var(--ph-panel); display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(19, 22, 45, .04); }
.plan.feat { border-color: rgba(91, 67, 240, .45); background: linear-gradient(180deg, #f4f1ff, #fdfcff); box-shadow: 0 26px 54px -36px rgba(91, 67, 240, .5); }
.plan .tagline { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink-3); font-weight: 600; }
.plan.feat .tagline { color: var(--ph-violet-2); }
.plan .price { font-family: var(--ph-font-d); font-size: 34px; font-weight: 600; letter-spacing: -.025em; margin-top: 14px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; color: var(--ph-ink-3); font-weight: 500; font-family: var(--ph-font-b); }
.plan .credits { color: var(--ph-ink-2); font-size: 14.5px; margin-top: 6px; }
.note { color: var(--ph-ink-2); font-size: 14.5px; margin-top: 22px; max-width: 76ch; }

/* ---- closing band ---------------------------------------------------------------------------------- */
.cta-band {
    border: 1px solid rgba(91, 67, 240, .28); border-radius: 24px; padding: clamp(30px, 4.4vw, 56px);
    background: radial-gradient(700px 300px at 50% -20%, rgba(124, 92, 255, .16), transparent 70%), #fbfaff;
    box-shadow: 0 40px 80px -56px rgba(91, 67, 240, .55); position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; inset: -40%;
    background: conic-gradient(from 0deg, transparent, rgba(109, 81, 247, .16), transparent 40%);
    /* Paused until the band is actually on screen - a conic gradient this size repaints continuously, and
       there is no reason to pay for that while the visitor is four sections above it. */
    animation: ph-spin 14s linear infinite paused;
}
.cta-band.spin::before { animation-play-state: running; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; }
.cta-band .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
@keyframes ph-spin { to { transform: rotate(360deg); } }

.mailcard {
    display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--ph-line); background: #fff; transition: .18s ease;
}
.mailcard:hover { border-color: rgba(91, 67, 240, .45); background: #fbfaff; }
.mailcard .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(124, 92, 255, .13); border: 1px solid rgba(124, 92, 255, .26); color: var(--ph-violet-2); }
.mailcard .ico svg { width: 17px; height: 17px; }
.mailcard b { display: block; font-size: 14.5px; color: var(--ph-ink); font-weight: 600; }
.mailcard span { display: block; font-size: 12.5px; color: var(--ph-ink-3); }

/* ---- footer: shared with the guide pages ----------------------------------------------------------- */
.ph-foot { border-top: 1px solid var(--ph-line-2); margin-top: clamp(50px, 7vw, 90px); padding: 56px 0 36px; background: #fff; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.15fr; gap: 36px; }
.foot-main { display: flex; flex-direction: column; }
.foot-brands { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.foot-desc { color: var(--ph-ink-2); font-size: 13.5px; line-height: 1.65; max-width: 44ch; margin-top: 14px; }
.foot-corp { font-size: 12px; color: var(--ph-ink-3); line-height: 1.7; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ph-line-2); }
.foot-corp strong { color: var(--ph-ink-2); font-weight: 600; }
.foot h4 { font-family: var(--ph-font-d); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-ink); font-weight: 700; margin: 0; }
.foot ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.ph-foot .foot ul a { color: var(--ph-ink-2); font-size: 14px; text-decoration: none; transition: color .15s ease; }
.ph-foot .foot ul a:hover { color: var(--ph-violet-2); }
.foot-link-feat { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ph-violet-2) !important; }
.foot-arrow { font-size: 12px; color: var(--ph-violet-2); }
.foot-sub { font-size: 12px; color: var(--ph-ink-3); }
.foot-by { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ph-ink-3); }
.foot-by img { height: 20px; object-fit: contain; }
.foot-base {
    display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center;
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--ph-line-2); color: var(--ph-ink-3); font-size: 13px;
}
.foot-base a { color: var(--ph-ink-2); text-decoration: none; font-weight: 500; }
.foot-base a:hover { color: var(--ph-violet-2); }
.foot-base-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* ---- responsive ------------------------------------------------------------------------------------ */
@media (max-width: 1060px) {
    .split { grid-template-columns: 1fr; }
    .t4 { grid-template-columns: repeat(2, 1fr); }
    .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .t3, .t2, .t4, .plans, .foot { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(32px, 9vw, 40px); }
}

/* ---- motion ---------------------------------------------------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; background: linear-gradient(90deg, #6d51f7, #4f2fd6 60%, #0f9d6e); }
.orb { position: fixed; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; opacity: .55; }
.orb.a { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(109, 81, 247, .45), transparent 65%); }
.orb.b { width: 380px; height: 380px; right: -100px; top: 180px; background: radial-gradient(circle, rgba(15, 157, 110, .32), transparent 65%); }
.orb.c { width: 520px; height: 520px; left: 38%; top: 62%; background: radial-gradient(circle, rgba(109, 81, 247, .22), transparent 65%); }

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
    opacity: 1; transform: none;
    transition: opacity .65s cubic-bezier(.22, .7, .28, 1), transform .65s cubic-bezier(.22, .7, .28, 1);
    transition-delay: var(--d, 0ms);
}
.w { display: inline-block; opacity: 0; transform: translateY(22px) rotate(1.2deg); filter: blur(6px); }
.w.in {
    opacity: 1; transform: none; filter: none;
    transition: opacity .62s cubic-bezier(.2, .75, .25, 1), transform .62s cubic-bezier(.2, .75, .25, 1), filter .62s ease;
    transition-delay: var(--wd, 0ms);
}
.tilt { transition: transform .35s cubic-bezier(.22, .7, .28, 1), box-shadow .35s ease, border-color .2s ease, background .2s ease; }
.tilt.hot { transform: translateY(-4px) scale(1.012); }

@media (prefers-reduced-motion: reduce) {
    .ph-site *, .ph-site *::before, .ph-site *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .w { opacity: 1; transform: none; filter: none; }
    .orb, .progress, .cta-band::before { display: none; }
}

/* ---- the film, in the hero's screen ---------------------------------------------------------------- */
.monitor { width: 100%; max-width: 1120px; margin: clamp(40px, 5vw, 68px) auto 0; animation: ph-rise .8s cubic-bezier(.22, .7, .28, 1) both .15s; }
.screen {
    border: 1px solid rgba(19, 22, 45, .16); border-radius: 18px; padding: 12px;
    background: linear-gradient(180deg, #f3f4fa, #e7e9f3);
    box-shadow: 0 40px 80px -46px rgba(19, 22, 45, .55), 0 2px 0 rgba(255, 255, 255, .7) inset;
}
.bezel { position: relative; border-radius: 10px; overflow: hidden; background: #fff;
         border: 1px solid rgba(19, 22, 45, .1); aspect-ratio: 16 / 9; }
.stand { width: 170px; height: 16px; margin: 0 auto; background: linear-gradient(180deg, #e7e9f3, #d7dae7); clip-path: polygon(16% 0, 84% 0, 96% 100%, 4% 100%); }
.stand-base { width: 250px; height: 9px; margin: 0 auto; border-radius: 0 0 9px 9px; background: linear-gradient(180deg, #d7dae7, #c7cbdc); box-shadow: 0 14px 26px -18px rgba(19, 22, 45, .7); }

/* The width and height attributes give these their aspect ratio, so the hero reserves the right space
   before a single byte of film has arrived and nothing shifts when it does. */
.reel { display: block; width: 100%; height: auto; background: #fff; }
/* A phone gets the vertical cut; the widescreen one at 380px is unreadable. */
.reel-phone { display: none; max-width: 380px; margin: clamp(34px, 5vw, 54px) auto 0; animation: ph-rise .8s cubic-bezier(.22, .7, .28, 1) both .15s; }
.reel-phone .reel { border: 1px solid var(--ph-line); border-radius: 20px; box-shadow: 0 34px 70px -42px rgba(19, 22, 45, .45); }
@media (max-width: 800px) {
    .monitor { display: none; }
    .reel-phone { display: block; }
}

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

/* ---- the workspace drawn in markup: what the hero shows until the film arrives --------------------- */
.builder { position: absolute; inset: 0; overflow: hidden; background: #fff; transition: opacity .7s ease; }
.fit { position: absolute; top: 0; left: 0; width: 1180px; height: 663.75px; transform-origin: 0 0; display: flex; flex-direction: column; }

.bw-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--ph-line-2); background: #fafaff; }
.bw-app { display: flex; align-items: center; gap: 8px; font-family: var(--ph-font-d); font-weight: 600; font-size: 13.5px; }
.bw-app .sq { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(140deg, #6d51f7, #4c2fd6); display: grid; place-items: center; font-size: 9px; color: #fff; }
.bw-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ph-mint); border: 1px solid rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .1); border-radius: 999px; padding: 2px 9px; }
.bw-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--ph-mint); animation: ph-pop 1.8s ease-in-out infinite alternate; }
.bw-right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ph-ink-3); font-family: var(--ph-font-m); }
.bw-pub { border: 1px solid rgba(61, 220, 151, .3); background: rgba(61, 220, 151, .1); color: var(--ph-mint); border-radius: 8px; padding: 3px 9px; font-family: var(--ph-font-b); font-weight: 600; }
.bw-body { display: grid; grid-template-columns: 320px minmax(0, 1fr); flex: 1 1 auto; min-height: 0; overflow: hidden; }

.bw-chat { border-right: 1px solid var(--ph-line-2); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fdfdff; min-height: 0; overflow: hidden; }
.bw-log { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; justify-content: flex-end; }
.bw-log .msg { flex: 0 0 auto; animation: ph-rise .55s cubic-bezier(.22, .7, .28, 1) both; }
.bw-log .msg.out { opacity: 0; transform: translateY(-8px); transition: opacity .4s ease, transform .4s ease; }
.msg.me { align-self: flex-end; max-width: 96%; background: linear-gradient(140deg, #6d51f7, #5233dd); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; box-shadow: 0 10px 20px -12px rgba(91, 67, 240, .55); }
.msg.ai { max-width: 100%; font-size: 14px; color: var(--ph-ink-2); display: flex; gap: 9px; }
.msg.ai .bolt { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; background: rgba(124, 92, 255, .16); border: 1px solid rgba(124, 92, 255, .3); color: var(--ph-violet-2); }
.msg.ai b { color: var(--ph-ink); font-weight: 600; }
.msg .steplabel { display: block; font-size: 11.5px; color: var(--ph-ink-3); margin-bottom: 4px; font-family: var(--ph-font-m); }
.designcard { border: 1px solid var(--ph-line-2); border-radius: 11px; background: rgba(19, 22, 45, .03); margin-top: 10px; overflow: hidden; }
.designcard .dh { display: flex; justify-content: space-between; align-items: center; padding: 8px 11px; border-bottom: 1px solid var(--ph-line-2); font-family: var(--ph-font-m); font-size: 10.5px; letter-spacing: .1em; color: var(--ph-ink-3); }
.designcard .applied { color: var(--ph-mint); letter-spacing: .02em; font-family: var(--ph-font-b); font-weight: 600; font-size: 11.5px; animation: ph-pop .45s cubic-bezier(.22, .7, .28, 1) both .35s; }
.designcard .line { display: block; padding: 9px 11px; font-family: var(--ph-font-m); font-size: 12px; word-break: break-word; color: var(--ph-mint); }
.designcard .dc-foot { display: block; padding: 8px 11px; border-top: 1px solid var(--ph-line-2); font-size: 11.5px; color: var(--ph-ink-3); }
.credit { display: block; font-size: 11px; color: var(--ph-ink-3); font-family: var(--ph-font-m); margin-top: 6px; }

.bw-input { flex: 0 0 auto; margin-top: auto; border: 1px solid var(--ph-line-2); border-radius: 12px; background: rgba(19, 22, 45, .03); padding: 11px 12px; }
.bw-input.armed { border-color: rgba(91, 67, 240, .45); box-shadow: 0 0 0 3px rgba(91, 67, 240, .1); }
.bw-input .ph { font-size: 13.5px; color: var(--ph-ink-3); min-height: 19px; }
.bw-input .phd { color: var(--ph-ink-3); }
.bw-input .car { display: inline-block; width: 1px; height: 1em; background: var(--ph-violet-2); vertical-align: -2px; margin-left: 2px; animation: ph-caret 1.1s steps(1) infinite; }
.bw-input .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.bw-input .row2 small { font-size: 11px; color: var(--ph-ink-3); }
.bw-input .send { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; color: #fff; background: linear-gradient(140deg, #6d51f7, #4f2fd6); transition: transform .18s ease, filter .18s ease; }
.bw-input .send.fire { transform: scale(.86); filter: brightness(1.25); }

.bw-prev { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: hidden; }
.bw-prev.busy .bw-app-mock { opacity: .72; transition: opacity .25s ease; }
.bw-prev .rebuild {
    position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); opacity: 0; pointer-events: none; z-index: 2;
    font-size: 11px; font-family: var(--ph-font-m); color: var(--ph-violet-2); background: #fff; border: 1px solid rgba(91, 67, 240, .3);
    border-radius: 999px; padding: 5px 12px; box-shadow: 0 10px 22px -14px rgba(19, 22, 45, .5); transition: opacity .25s ease;
}
.bw-prev.busy .rebuild { opacity: 1; }
.bw-url { font-family: var(--ph-font-m); font-size: 12.5px; color: var(--ph-ink-3); background: rgba(19, 22, 45, .04); border: 1px solid var(--ph-line-2); border-radius: 8px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-app-mock { flex: 1; border: 1px solid var(--ph-line-2); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 190px 1fr; background: rgba(19, 22, 45, .02); }

.bw-nav { border-right: 1px solid var(--ph-line-2); padding: 12px 10px; display: grid; gap: 4px; align-content: start; background: #fbfbfe; }
.bw-brand { display: flex; align-items: center; gap: 8px; font-family: var(--ph-font-d); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.bw-brand .sq2 { width: 21px; height: 21px; border-radius: 6px; background: linear-gradient(140deg, #6d51f7, #4c2fd6); color: #fff; display: grid; place-items: center; font-size: 7.5px; }
.nv { font-size: 13px; color: var(--ph-ink-2); padding: 5px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv.grp { color: var(--ph-ink); font-weight: 600; }
.nv.sub { padding-left: 18px; position: relative; font-size: 12.5px; }
.nv.sub::before { content: ""; position: absolute; left: 8px; top: 11px; width: 3px; height: 3px; border-radius: 50%; background: var(--ph-ink-3); }
.nv.on { background: #efeaff; color: var(--ph-violet-2); font-weight: 600; }
.nv.on::before { background: var(--ph-violet); }

.bw-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: hidden; }
.crumb { font-size: 12.5px; color: var(--ph-violet-2); }
.crumb span { color: var(--ph-ink-3); margin: 0 5px; }
.ptitle { font-family: var(--ph-font-d); font-size: 19px; font-weight: 600; }
.toolbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tb { font-size: 12px; padding: 7px 12px; border-radius: 6px; border: 1px solid var(--ph-line); color: var(--ph-ink-2); background: #fff; white-space: nowrap; }
.tb.primary { background: linear-gradient(140deg, #6d51f7, #4f2fd6); border-color: transparent; color: #fff; font-weight: 600; }
.tb.search { margin-left: auto; color: var(--ph-ink-3); min-width: 150px; }
.gridtbl { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.gridtbl th { text-align: left; font-family: var(--ph-font-b); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ph-ink-3); padding: 8px 7px; border-bottom: 1px solid var(--ph-line); }
.gridtbl td { padding: 9px 7px; border-bottom: 1px solid var(--ph-line-2); color: var(--ph-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gridtbl td.lnk { color: var(--ph-violet-2); font-weight: 600; }
.gridtbl .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.gridtbl .act { text-align: right; color: var(--ph-ink-3); font-size: 11.5px; }
.gridtbl .act em { font-style: normal; color: #c0392b; text-decoration: underline; }
.gridtbl th.new, .gridtbl td.new { animation: ph-colin .5s cubic-bezier(.22, .7, .28, 1) both; }
.gridtbl th.hot, .gridtbl td.hot { background: #f5f2ff; }
.gridtbl td.hot { color: var(--ph-violet-2); font-weight: 600; }
.rowsnote { font-size: 11.5px; color: var(--ph-ink-3); }

@keyframes ph-pop { 0% { opacity: 0; transform: scale(.9); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ph-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes ph-colin { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* The film sits exactly over the animation and fades in when it is genuinely playing. */
.bezel.film-ready .builder { opacity: 0; }
.bezel .reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.bezel.film-ready .reel { opacity: 1; }

/* ---- Guide pages -------------------------------------------------------------
   The reading column on the public guide pages. Typography only: the guides use
   the same chrome and tokens as the landing page, and only need the vertical
   rhythm that long-form prose has and marketing sections don't. */

/* Subtle dot-grid texture behind a section. */
.bg-dots {
    background-image: radial-gradient(circle, rgba(79, 70, 229, 0.16) 1px, transparent 1px);
    background-size: 22px 22px;
}

.guide-body > * + * { margin-top: 1.25rem; }
.guide-body h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.guide-body h3 {
  margin-top: 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
}
.guide-body p,
.guide-body li { color: #52525b; line-height: 1.75; }
.guide-body ul { padding-left: 1.125rem; list-style: disc; }
.guide-body ul > li + li { margin-top: 0.5rem; }
/* Scoped to prose, so a card or button inside the column is not underlined by it. */
.guide-body p a, .guide-body li a { color: var(--accent, #4f46e5); text-decoration: underline; text-underline-offset: 2px; }
.guide-body p a:hover, .guide-body li a:hover { text-decoration-thickness: 2px; }
.guide-body strong { color: #18181b; font-weight: 600; }
.guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125em;
  background: #f4f4f5;
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
}
