/* OLED layer (ui-ux-pro-max: style "Dark Mode (OLED)"): true black #000, near-black surfaces, text at 7:1+,
   1px hairlines, minimal glow, one vivid accent. Motion per emil-design-eng: strong ease-out, buttons press to 0.97.
   Hand-written, not generated. Active on pages whose <html> carries class "oled" (the landing page for now);
   it forces the dark look in both themes, so the theme switch is hidden there. */
.oled, .oled[data-theme] {
  --ground: #000000; --surface: #14202E; --tone: #1A2A3C; --peach: #14202E;
  --ink: #F6F1EA; --ink-2: #B4ADA3; --line: rgba(246, 241, 234, .13);
  --accent: #D9482F; --accent-deep: #E3603F; --accent-ink: #000000;
  --mark: rgba(217, 72, 47, .2); --mark-ink: #FFD3C8;
  --inv: #07090D; --inv-fg: #F6F1EA; --inv-2: #B4ADA3; --inv-tone: #22344B;
  --cta: #000000; --cta-fg: #F6F1EA; --sun: #07090D; --sun-ink: #F6F1EA;
  --float: 0 40px 80px -40px rgba(0, 0, 0, .9);
  --glow: 0 0 0 1px rgba(217, 72, 47, .55), 0 10px 40px -10px rgba(217, 72, 47, .65);
  --hair-hi: inset 0 1px 0 rgba(255, 255, 255, .08);   /* a lit top edge on raised surfaces */
  --oled-ease: cubic-bezier(0.23, 1, 0.32, 1);
  /* chart, status and pastel series in their dark versions (from styles.css's dark theme) */
  --e1: #4FD1AC; --e2: #86AEFF; --e3: #B9A8FF; --e4: #FF9C7E; --e5: #FF9C7E; --e6: #FF9EC2;
  --s1: #1F4A3C; --s2: #24385E; --s3: #4D2A22; --s4: #4D2A22; --mint: #14302A;
  --good: #4FD1AC; --warn: #FF9C7E; --bad: #FF7B98;
  color-scheme: dark;
}
.oled body, .oled html { background: #000; }
.oled .theme-btn { display: none; }

/* Type: large, light-to-medium weight, tight, crisp */
.oled h1, .oled h2 { font-weight: 500; color: var(--ink); }
.oled .lp-hero.hero h1 { font-weight: 500; letter-spacing: -.058em; line-height: .92; }
.oled .lp-hero.hero h1 em { font-style: normal; background: none; color: var(--accent); text-shadow: 0 0 28px rgba(217, 72, 47, .45); }
.oled .eyebrow { color: var(--accent); }
.oled ::selection { background: rgba(217, 72, 47, .35); color: #fff; }

/* Header: black with one hairline */
.oled header.site, .oled header.site.scrolled { background: rgba(0, 0, 0, .92); border-bottom: 1px solid var(--line); }

/* Buttons: coral pill, black label (7.6:1); glow on hover, press to 0.97 */
.oled .btn, .oled .pz-btn { background: var(--accent); color: #000; border: 0; border-radius: 999px; font-weight: 600;
  transition: transform 160ms var(--oled-ease), box-shadow 200ms var(--oled-ease), background-color 150ms ease; }
.oled .btn-ink, .oled .lp-close .btn { background: #F6F1EA; color: #000; }
@media (hover: hover) and (pointer: fine) {
  .oled .btn:hover, .oled .pz-btn:hover { transform: none; background: #E3603F; box-shadow: var(--glow); }
  .oled .btn-ink:hover, .oled .lp-close .btn:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(255, 255, 255, .45); }
}
.oled .btn:active, .oled .pz-btn:active { transform: scale(.97); box-shadow: none; transition-duration: 80ms; }

/* Hero: the chat card as a dark glass panel lit from behind */
.oled .lp-hero { position: relative; isolation: isolate; overflow: clip; }
.oled .lp-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 18%; width: min(70vw, 1000px); aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 72, 47, .22), rgba(217, 72, 47, .06) 55%, transparent 72%); }
.oled .lp-hero .lp-form input { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.oled .lp-hero .lp-form input::placeholder { color: #8D93A0; }
.oled .lp-hero .lp-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.oled .lp-form label { color: var(--ink); }
.oled .ed-mast { border-top: 1px solid rgba(255, 255, 255, .3); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.oled .ed-mast span + span { border-left: 1px solid var(--line); }
.oled .lp-hero .chat-wrap { perspective: 1400px; }
.oled .chat { background: #101A26; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px;
  box-shadow: var(--hair-hi), 0 0 0 1px rgba(0, 0, 0, .6), 0 60px 120px -40px rgba(0, 0, 0, .95), 0 0 140px -30px rgba(217, 72, 47, .45);
  transform: rotateX(6deg) rotateY(-10deg); transform-origin: 50% 60%; transition: transform 600ms var(--oled-ease); }
.oled .chat-top { background: transparent; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.oled .chat .bubble { background: #22344B; color: var(--ink); }
.oled .chat .answer { color: var(--ink); }
.oled .chat .answer mark { background: rgba(217, 72, 47, .18); color: #FFB3A3; border-radius: 6px; padding: 0 .14em; }
.oled .chat .ref { background: var(--accent); color: #000; }
.oled .chat-input { background: #1A2A3C; color: #8D93A0; border: 1px solid var(--line); }
.oled .chat-input .send { background: var(--ink); color: #000; }
.oled .chat-wrap > .note { color: #8D93A0; }
@media (max-width: 900px) { .oled .chat { transform: rotateX(4deg) rotateY(-6deg); } }

/* Marquee: white type on black between hairlines, coral stars, a pause button */
.oled section.ed-marquee { position: relative; background: #000; color: var(--ink); border-block: 1px solid var(--line); }
.oled .ed-track span { font-weight: 400; font-style: normal; color: rgba(246, 241, 234, .92); }
.oled .ed-track i { color: var(--accent); text-shadow: 0 0 18px rgba(217, 72, 47, .7); }
.ed-pause { position: absolute; z-index: 2; right: var(--gutter); top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  background: #14202E; color: #F6F1EA; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; cursor: pointer; }
.ed-pause svg { width: 14px; height: 14px; }
.ed-pause .play { display: none; }
.ed-marquee.is-paused .ed-track { animation-play-state: paused; }
.ed-marquee.is-paused .ed-pause .play { display: block; }
.ed-marquee.is-paused .ed-pause .pause { display: none; }
.ed-marquee:focus-within .ed-track { animation-play-state: paused; }

/* Showcase: both panels dark, one type system */
.oled .pz-card { font-family: var(--f-body); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--hair-hi); }
.oled .pz-a { background: #101A26; color: #F6F1EA; }
.oled .pz-b { background: #14202E; color: #F6F1EA; --st: rgba(255, 255, 255, .55); }
.oled .pz-a { --st: rgba(255, 255, 255, .55); }
.oled .pz .pz-title { font-family: var(--f-display); font-weight: 500; letter-spacing: -.04em; }
.oled .pz-btn.out { background: transparent; color: #F6F1EA; border: 1px solid rgba(255, 255, 255, .3); }

/* Stats: dark panels, the figure in white, the first lit coral */
.oled section.lp-stats { background: #000; }
.oled .lp-stats ul { border-top: 0; gap: 14px; }
.oled .lp-stats li, .oled .lp-stats li + li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem 1.5rem 1.7rem; box-shadow: var(--hair-hi); }
.oled .lp-stats b { font-weight: 500; color: var(--ink); }
/* the glow sits on the whole figure (filter), never per digit: the rolling counter clips each digit in its own box,
   and a text-shadow cut at those edges showed as dark rectangles */
.oled .lp-stats li:first-child b { color: var(--accent); text-shadow: none; filter: drop-shadow(0 0 22px rgba(217, 72, 47, .45)); }
.oled .lp-stats b, .oled .lp-stats b span { text-shadow: none; }
/* figures sized to fit inside their panels */
.oled .lp-stats b { font-size: clamp(2.8rem, 5vw, 5.2rem); }
.oled .lp-stats li { min-width: 0; }
.oled .lp-stats li > span { color: var(--ink-2); }

/* Section heads and report mocks */
.oled .lp-rows .eyebrow, .oled .ed-help .eyebrow, .oled .ed-faq .eyebrow { border-top: 1px solid rgba(255, 255, 255, .3); }
.oled .ed-num { color: var(--ink); }
.oled .lp-mock { background: #101A26; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--hair-hi), 0 50px 100px -50px rgba(0, 0, 0, .9); }
.oled .lp-ticks li { color: var(--ink); }

/* Services index: hairline rows; the row you point at lifts onto a lit surface */
.oled .ed-index { border-top: 1px solid rgba(255, 255, 255, .3); }
.oled .ed-index li { border-bottom: 1px solid var(--line); }
.oled .ed-index a { transition: background-color 200ms ease, color 200ms ease; border-radius: 14px; }
.oled .ed-index a::before { content: none; }
@media (hover: hover) and (pointer: fine) {
  .oled .ed-index a:hover { background: var(--surface); color: var(--ink); }
  .oled .ed-index a:hover .ed-go { color: var(--accent); }
  .oled .ed-index a:hover .ed-n, .oled .ed-index a:hover .ed-short { color: var(--ink-2); }
}

/* Questions */
.oled .ed-faq .faq-wrap { border-top: 1px solid rgba(255, 255, 255, .3); }
.oled .ed-faq details { border-bottom: 1px solid var(--line); background: transparent; }
.oled .ed-faq details[open], .oled .ed-faq details:hover { background: var(--surface); }

/* Close: black with a coral glow rising behind the heading */
.oled .field-cta.lp-close { position: relative; isolation: isolate; overflow: clip; background: #000; color: var(--ink); border-top: 1px solid var(--line); }
.oled .field-cta.lp-close::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(90vw, 1100px); aspect-ratio: 2 / 1; translate: -50% -45%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 72, 47, .28), transparent 70%); }
.oled .lp-close h2 { color: var(--ink); }
.oled .lp-close h2 em { color: var(--accent); font-style: normal; text-shadow: 0 0 28px rgba(217, 72, 47, .45); }
.oled .lp-close .lp-form input { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; }
.oled .lp-close .note, .oled .lp-close .lp-form label { color: var(--ink-2); }
.oled .lp-close .lp-form label { color: var(--ink); }

/* Footer */
.oled .sitefoot { background: #000; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  .oled .btn, .oled .pz-btn, .oled .chat, .oled .ed-index a { transition: none; }
  .ed-pause { display: none; }
}

/* Pricing: a gradient that follows the cursor (coral key light, deep blue counter light) behind frosted plans.
   elevate.js moves --cx/--cy on the one layer element (no children, so no style recalc cascade). */
.oled .cursor-glow { position: relative; isolation: isolate; overflow: clip; }
.cg-layer { position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(520px circle at var(--cx, 68%) var(--cy, 30%), rgba(217, 72, 47, .34), transparent 62%),
    radial-gradient(260px circle at var(--cx, 68%) var(--cy, 30%), rgba(255, 176, 150, .22), transparent 60%),
    radial-gradient(820px circle at calc(100% - var(--cx, 68%)) calc(100% - var(--cy, 30%)), rgba(52, 86, 190, .32), transparent 66%); }
.oled .cursor-glow .plan { background: rgba(20, 32, 46, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }

/* ===== Landing effects (home-fx.js) ===== */
/* Hero: the liquid-glass PBC logo on the right */
.hero-glass { width: 100%; max-width: 560px; aspect-ratio: 1; margin-left: auto; border-radius: 28px; outline-offset: 6px; }
@media (max-width: 900px) { .hero-glass { max-width: 420px; margin: 1rem auto 0; } }
.fx-word { display: inline-block; will-change: transform; }

/* The 3D engines section: a tall scroll track with the scene held on screen */
section.fx-engines { position: relative; height: 260vh; padding: 0; background: #000; }
.fx-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.fx-canvas { position: absolute; inset: 0; }
.fx-canvas canvas { width: 100%; height: 100%; display: block; }
.fx-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.fx-copy > * { max-width: 34rem; }
.fx-copy h2 { font-size: clamp(2.6rem, 5.6vw, 5.4rem); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.fx-copy h2 em { font-style: normal; color: var(--accent); text-shadow: 0 0 28px rgba(217, 72, 47, .45); }
.fx-copy .lede { margin-top: 1.4rem; color: var(--ink-2); }
.fx-steps { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: .9rem; }
.fx-steps li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: baseline; padding-left: 1rem; border-left: 2px solid rgba(255, 255, 255, .14);
  opacity: .35; transition: opacity .5s ease, border-color .5s ease; }
.fx-steps li.is-on { opacity: 1; border-left-color: var(--accent); }
.fx-steps b { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.fx-steps span { color: var(--ink-2); }
.fx-nogl .fx-canvas { background: radial-gradient(circle at 72% 50%, rgba(217, 72, 47, .38), rgba(217, 72, 47, .08) 30%, transparent 55%); }
@media (max-width: 899px) {
  .fx-copy { justify-content: flex-end; padding-bottom: 12vh; }
  .fx-copy::before { content: ""; position: absolute; inset: 35% -24px 0; z-index: -1; background: linear-gradient(transparent, rgba(0, 0, 0, .85) 40%); }
}
@media (prefers-reduced-motion: reduce) { section.fx-engines { height: auto; } .fx-sticky { position: relative; height: 100svh; } .fx-steps li { opacity: 1; } }

/* Tracking: the Peak Chart beside its copy */
.fx-peak-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.fx-peak-copy h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.05em; font-weight: 500; }
.fx-peak-copy h2 em { font-style: normal; color: var(--accent); }
.fx-peak-copy .lede { margin-top: 1.3rem; color: var(--ink-2); }
.fx-peak-copy .note { margin-top: 1rem; color: #8D93A0; font-size: .85rem; }
.fx-peak-card { padding: 60px 120px 40px 40px; }
@media (max-width: 900px) { .fx-peak-grid { grid-template-columns: 1fr; } .fx-peak-card { padding: 30px 0 30px; display: grid; place-items: center; } }
/* the copy stands on a dark fade, so passing cards never cross words being read */
@media (min-width: 900px) { .fx-copy::before { content: ""; position: absolute; z-index: -1; inset: 0 auto 0 -100vw; width: calc(100vw + 40rem); pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0, rgba(0, 0, 0, .92) calc(100vw + 18rem), rgba(0, 0, 0, 0) calc(100vw + 40rem)); } }
/* the chart's glow canvas bleeds past its card by design: the section clips it, so nothing scrolls sideways */
section.fx-peak, .oled .lp-hero { overflow-x: clip; }
@media (max-width: 899px) { .fx-copy::before { inset: 28% -24px 0; } }
