/* Plaxico look, loaded after every other stylesheet of the site.
   White ground, black text, one accent (#FF4D1F). No dark theme, no gradients, no glow.
   The engine's stylesheets are written for a dark theme and read their colours from
   variables, so most of the work is the variable block; the rest removes decoration. */
:root {
  color-scheme: light;
  --px-accent: #ff4d1f;
  --px-ink: #111111;
  --px-grey: #f5f5f5;
  /* app.css / studio.css / cabinet.css / legal.css */
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --surface-3: #e9e9e9;
  --line: rgba(17, 17, 17, 0.14);
  --line-2: rgba(17, 17, 17, 0.32);
  --text: #111111;
  --text-2: #3d3d3d;
  --text-3: #6a6a6a;
  --amber: #ff4d1f;
  --amber-2: #111111;
  --amber-ink: #111111;
  --amber-a: rgba(255, 77, 31, 0.08);
  --amber-b: rgba(255, 77, 31, 0.6);
  --teal: #111111;
  --teal-ink: #ffffff;
  --teal-a: #f5f5f5;
  --teal-b: rgba(17, 17, 17, 0.32);
  --danger: #b3261e;
  --danger-a: rgba(179, 38, 30, 0.07);
  --ok: #111111;
  --r-s: 4px;
  --r-m: 6px;
  --r-l: 8px;
  --r-xl: 8px;
  --ff-d: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* pages rendered by the server (guides, models, templates, API docs) */
  --fg: #111111;
  --muted: #6a6a6a;
}

/* ── no glow, no glass, no ornament ─────────────────────────────────────── */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.orn, .orn-wrap, .fr-orn, .strip, .beam, .hero-bg, .hero-orn, .fr-beam, .sweep { display: none !important; }
html, body { background: #fff; }
::selection { background: #ff4d1f; color: #111; }
a { color: var(--px-ink); }
a:hover { color: var(--px-accent); }
em { color: var(--px-accent); }
.eyebrow::before { display: none; }
.eyebrow { color: var(--text-3); }
.display { font-weight: 600; letter-spacing: -0.03em; }

/* ── wordmark: the header name is the logo (text stays for screen readers) ── */
.brand, .lg-brand {
  display: inline-block; flex: none; width: 104px; height: 34px; min-height: 0 !important; overflow: hidden;
  background: url(/assets/logo.svg) left center / contain no-repeat;
  font-size: 0 !important; line-height: 0; color: transparent !important; letter-spacing: 0;
}
.brand > svg, .brand > span, .lg-brand::before { display: none !important; }
.s-top .brand { width: 92px; height: 30px; }
.fr-glyph { opacity: 1; }
.fr-glyph .spot { filter: none; }

/* ── controls ───────────────────────────────────────────────────────────── */
.btn { border-radius: 6px; --b-bd: var(--px-ink); }
.btn:hover { background: var(--px-grey); --b-bd: var(--px-ink); color: var(--px-ink); }
.btn-primary { --b-bg: #111111; --b-fg: #ffffff; --b-bd: #111111; background: #111111; }
.btn-primary:hover { --b-fg: #111111; --b-bd: #ff4d1f; background: #ff4d1f; color: #111111; }
.btn-teal { --b-bg: #fff; --b-fg: #111; --b-bd: #111; }
.btn-teal:hover { background: var(--px-grey); color: #111; }
.btn-danger-solid { --b-fg: #fff; }
.btn-danger-solid:hover { --b-fg: #fff; background: #8f1d17; }
.btn.is-busy::after { border-color: #fff; border-right-color: transparent; }
.btn-ghost.is-busy::after { border-color: #111; border-right-color: transparent; }
.chip { border-radius: 6px; color: var(--text-2); }
.chip:hover { border-color: #111; color: #111; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { color: #fff; border-color: #111; background: #111; }
.seg { border-radius: 6px; background: #fff; border-color: var(--line-2); }
.seg button { border-radius: 4px; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #111; color: #fff; }
.tag { border-radius: 4px; background: var(--px-grey); color: var(--text-2); }
.tag-hot, .tag-new { background: var(--px-grey); color: #111; }
.tag-best { background: #ff4d1f; color: #111; }
.tier i { background: #fff; border: 1px solid var(--line-2); }
.tier i.on { background: #111; border-color: #111; }
.switch .track { background: #fff; }
.switch .track::after { background: var(--text-3); }
.switch input:checked + .track, .switch.teal input:checked + .track { background: #111; border-color: #111; }
.switch input:checked + .track::after, .switch.teal input:checked + .track::after { background: #fff; }
.input, .textarea { background: #fff; }
.input:hover, .textarea:hover { border-color: #111; }
.input:focus, .textarea:focus { border-color: #111; outline: 2px solid #ff4d1f; outline-offset: 1px; background: #fff; }
.skel { background: var(--px-grey); animation: none; }
.spin { border-color: var(--line); border-top-color: #ff4d1f; }
.toast { background: #fff; border-color: #111; border-radius: 6px; }
.toast > svg { color: #111; }
.toast button:hover, .modal-x:hover { background: var(--px-grey); }
dialog.modal { border-color: #111; }
dialog.modal::backdrop { background: rgba(17, 17, 17, 0.45); }
.modal-head h2 { font-weight: 600; }
.alert-box, .notice, .free-note { background: #fff; border: 1px solid var(--line-2); border-left: 3px solid #ff4d1f; color: var(--text); }
.snippet { background: var(--px-grey); }
.snippet .copy { background: #fff; }
.snippet .copy:hover { border-color: #111; }

/* ── header, language list, footer ──────────────────────────────────────── */
.site-header, .site-header.is-stuck { background: #fff; border-bottom: 1px solid var(--line); }
.nav a { border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--px-grey); color: #111; }
.lang-btn { border-radius: 6px; background: #fff; }
.lang-btn:hover { border-color: #111; }
.lang-btn[aria-expanded="true"] { color: #111; border-color: #111; background: var(--px-grey); }
.lang-list { background: #fff; border-color: #111; border-radius: 6px; }
.lang-list li { border-radius: 4px; }
.lang-list li:hover, .lang-list li:focus-visible { background: var(--px-grey); }
.lang-list li[aria-selected="true"] { background: var(--px-grey); color: #111; font-weight: 600; }
.lang-list li[aria-selected="true"] .lc { color: #ff4d1f; }
.acct { border-radius: 6px; background: #fff; }
.acct:hover { border-color: #111; background: var(--px-grey); }
.acct-av, .prof-av { background: #111; color: #fff; border-radius: 4px; }
@media (max-width: 899px) { .nav { background: #fff; border-bottom: 1px solid #111; } }
.site-footer { background: #fff; border-top: 1px solid #111; margin-top: 72px; }
.ft-col a:hover, .ft-seo a:hover { color: #ff4d1f; }
.ft-base > span:last-child { display: none; }
.ns-nav a { color: #111; }

/* ── landing (web/brands/plaxico/public/index.html) ─────────────────────── */
.px h1, .px h2 { font-family: var(--ff-t); font-weight: 600; letter-spacing: -0.03em; }
.px-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 64px); }
.px-hero h1 { font-size: clamp(2.1rem, 1rem + 5.2vw, 4.5rem); line-height: 1.02; max-width: 14ch; overflow-wrap: anywhere; }
.px-lead { margin-top: 20px; max-width: 58ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); color: var(--text-2); }
.px .prompt-box { margin: 30px 0 0; max-width: 860px; background: #fff; border: 1px solid #111; border-radius: 8px; padding: 10px; }
.px .prompt-box:focus-within { border-color: #111; outline: 2px solid #ff4d1f; outline-offset: 2px; }
.px-facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 22px; font-size: 0.9375rem; color: var(--text-2); }
.px-facts li { position: relative; padding-left: 14px; }
.px-facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: #ff4d1f; }
.px-sec { padding: clamp(36px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.px-sec h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.12; max-width: 22ch; }
.px-sec h2 + p, .px-head p { margin-top: 12px; color: var(--text-2); max-width: 64ch; }
.px-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 26px; }
.px-two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 20px clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 859px) { .px-two { grid-template-columns: minmax(0, 1fr); } }
.px-steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 26px; border-top: 1px solid #111; }
.px-steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 18px 24px 4px 0; }
.px-steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.px-steps li::before { content: counter(s, decimal-leading-zero); font: 600 0.8125rem/1 var(--ff-t); letter-spacing: 0.06em; color: #ff4d1f; }
.px-steps b { font-weight: 600; font-size: 1.125rem; }
.px-steps span { color: var(--text-2); }
@media (max-width: 759px) { .px-steps { grid-template-columns: minmax(0, 1fr); } .px-steps li, .px-steps li + li { padding: 16px 0; border-left: 0; } .px-steps li + li { border-top: 1px solid var(--line); } }
.px-pay { display: grid; gap: 0; border-top: 1px solid #111; }
.px-pay li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.px-pay b { font-weight: 600; }
.px-pay span { color: var(--text-3); }
.px-pay:empty { display: none; }
.px-note { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #ff4d1f; background: var(--px-grey); font-size: 0.9375rem; }
.px-more { margin-top: 12px; }
.px-more a { font-weight: 600; }
.px-cta h2 { max-width: none; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3rem); }
.px-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 479px) { .px-row .btn { flex: 1 1 100%; } }

/* ── tables (landing + pricing): hairlines, no boxes ────────────────────── */
.tbl-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
table.tbl { border-top: 1px solid #111; }
.tbl caption { padding: 0 0 14px; font: 600 1.25rem var(--ff-t); }
.tbl th { background: #fff; color: var(--text-3); padding: 12px 16px 12px 0; }
.tbl td { padding: 14px 16px 14px 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tbody th { font: 600 1rem/1.35 var(--ff-t); letter-spacing: 0; text-transform: none; color: #111; white-space: normal; border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; text-align: left; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 1px solid var(--line); }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: #fafafa; }
.tbl tbody th a { color: #111; text-decoration: none; }
.tbl tbody th a:hover { color: #ff4d1f; text-decoration: underline; }
.tbl .sub { font-weight: 400; color: var(--text-3); margin-top: 2px; }
.tbl .cr { color: #111; font-weight: 600; }
.tbl tr.hl td, .tbl tr.hl th, .tbl tr.hl:hover td { background: transparent; }
.tbl tr.hl th { box-shadow: none; }
.tbl-tools { background: #fff; padding: 0 0 14px; border-bottom: 0; }
@media (max-width: 719px) {
  .tbl tbody tr { padding: 14px 0; }
  .tbl tbody th { border-bottom: 0; padding: 0 0 8px; }
  .tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
  .tbl tr.hl { background: transparent; }
  .tbl caption { padding: 0 0 6px; }
  .tbl-tools { padding: 0 0 12px; }
}
/* phones: a model or a template is one line — name on the left, price on the right */
@media (max-width: 719px) {
  #modTbl tbody tr, #tplTbl tbody tr { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; }
  #modTbl tbody th, #tplTbl tbody th { grid-column: 1; grid-row: 1; padding: 0; }
  #modTbl td[data-label]::before, #tplTbl td[data-label]::before { display: none; }
  #modTbl td, #tplTbl td { padding: 0; font-size: 0.8125rem; color: var(--text-3); }
  #modTbl td:nth-of-type(1), #tplTbl td:nth-of-type(1) { grid-column: 1; grid-row: 2; }
  #modTbl td:nth-of-type(2), #tplTbl td:nth-of-type(2) { grid-column: 1; grid-row: 3; }
  #modTbl td.cr, #tplTbl td.cr { grid-column: 2; grid-row: 1; text-align: right !important; font-size: 1rem; color: #111; white-space: nowrap; }
  #modTbl td:last-child, #tplTbl td:last-child { grid-column: 2; grid-row: 2; text-align: right !important; white-space: nowrap; }
}
.fine { color: var(--text-3); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.qa details:first-child { border-top: 1px solid #111; }
.qa summary:hover { color: #ff4d1f; }
.qa details[open] summary svg { color: #ff4d1f; }

/* ── pricing page ───────────────────────────────────────────────────────── */
.page-head { padding-bottom: clamp(20px, 3vw, 32px); }
.page-head h1 { font-weight: 600; }
.s-head h2 { font-family: var(--ff-t); font-weight: 600; }
.get-grid { gap: 0; border-top: 1px solid #111; border-left: 1px solid var(--line); }
.get-card, .get-card.hl { background: #fff; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
.get-cr { color: #111; }
.gv, .gi { background: #111; border-radius: 2px; }
.gv::after { border-left-color: #fff; }
.gi { background: #fff; border: 1.5px solid #111; }
.gi::after { display: none; }
.refund-strip { background: #fff; border: 1px solid var(--line-2); border-left: 3px solid #ff4d1f; border-radius: 0; }
.refund-strip svg { color: #111; }
.pill { border-radius: 6px; background: #fff; }
.how-list li { background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-left: 44px; }
.how-list li::before { left: 0; background: transparent; color: #ff4d1f; border-radius: 0; width: auto; height: auto; top: 18px; font: 600 0.875rem/1.4 var(--ff-t); }
.cta { background: #fff; border: 0; border-top: 1px solid #111; border-radius: 0; text-align: left; padding-inline: 0; }
.cta h2 { font-family: var(--ff-t); font-weight: 600; }
.cta p { margin-inline: 0; }
.cta .row { justify-content: flex-start; }
@media (max-width: 759px) { .m-cta { background: #fff; border-top: 1px solid #111; } }

/* ── payment return page ────────────────────────────────────────────────── */
.done-card, .done-card[data-state="paid"] { background: #fff; border: 1px solid #111; }
.done-card h1 { font-family: var(--ff-t); font-weight: 600; }
.done-credits { color: #111; font-family: var(--ff-t); font-weight: 600; }
.done-visual.ok { background: #ff4d1f; }
.done-visual .ring { border-color: var(--line); border-top-color: #ff4d1f; }

/* ── sign-in card, sheets ───────────────────────────────────────────────── */
.login { background: #fff; border-color: #111; }
.login h2 { font-family: var(--ff-t); font-weight: 600; }
.pk-b, .pv-b, .stat-box { background: #fff; border-color: var(--line-2); }
.pk input:checked + .pk-b, .pv input:checked + .pv-b { background: #fff; border-color: #111; outline: 2px solid #ff4d1f; outline-offset: -1px; }
.pk-p, .stat-box.main b { color: #111; }
.pk-c, .stat-box b { font-family: var(--ff-t); font-weight: 600; }
.pv input:checked + .pv-b .pv-dot { border-color: #111; }
.pv input:checked + .pv-b .pv-dot::after { background: #ff4d1f; }
.tx-d.pos { color: #111; }

/* ── studio ─────────────────────────────────────────────────────────────── */
.s-top { background: #fff; }
.pane-create { background: #fff; }
@media (max-width: 1099px) { .tabbar { background: #fff; border-top: 1px solid #111; } }
.mc input:checked + .mc-body, .tc input:checked + .tc-body { background: #fff; border-color: #111; outline: 2px solid #ff4d1f; outline-offset: -1px; }
.tc-emoji { background: var(--px-grey); border-color: var(--line); }
.frame { background: var(--px-grey); border-color: var(--line-2); }
.frame > video, .frame > img { background: var(--px-grey); }
.stat { background: #fff; border-color: var(--line-2); color: #111; }
.stat.err { color: var(--danger); border-color: var(--danger); }
.composer { background: #fff; border-color: #111; }
.composer:focus-within { border-color: #111; outline: 2px solid #ff4d1f; outline-offset: 2px; }
.composer.drag::after { background: rgba(255, 255, 255, 0.92); color: #111; }
.photo .ld { background: rgba(255, 255, 255, 0.7); }
.cmp-dir { background: var(--px-grey); border-color: var(--line); }
.cmp-dir .seg { background: #fff; }
.plan { background: #fff; border-color: #111; }
.p-step { background: #fff; }
.p-step + .p-step::before { border-left-color: var(--line-2); }
.h-item::after, .w-item::after, .h-item.busy::after, .h-item.bad::after { background: none; }
.h-item.busy, .w-item.off { background: var(--px-grey); animation: none; }
.h-st, .w-st { background: #fff; border-color: var(--line-2); color: #111; }
.h-step { background: #fff; border-color: var(--line-2); color: #111; }
.h-kind, .w-kind { background: #fff; color: #111; }
.tc-cover, .tpl-cover, .step-art { background: var(--px-grey); }

.h-cap, .w-cap { background: #fff; color: #111; border-top: 1px solid var(--line); }
.h-item[aria-current="true"] { border-color: #111; outline: 2px solid #ff4d1f; outline-offset: -1px; }
.h-item, .w-item { border-radius: 6px; }
.burst i, .burst i:nth-child(3n), .burst i:nth-child(3n+1) { background: #ff4d1f; }
.hist-empty svg { color: #111; opacity: 0.35; }

/* The engine's illustrations are drawn for its dark theme (gold light on black),
   so the Plaxico pages go without them: empty states are plain text. */
.frame > img.fr-art, .bal-art, .empty-b > img, .done-visual > img, .tc-cover { display: none !important; }
.done-visual:has(> img) { display: none; }
.fr-center.fr-bottom { place-content: center; padding-bottom: 18px; }
.tc-body { grid-template-columns: minmax(0, 1fr); }
.bal-card .bal-big, .bal-card .bal-sub { max-width: none; }
#tplTbl tbody th > span[aria-hidden="true"] { display: none; }

/* ── cabinet ────────────────────────────────────────────────────────────── */
.cab-nav { background: #fff; }
.cab .card, .card.bal-card { background: #fff; }
.card.bal-card { border-color: #111; }
.sel option { background: #fff; color: #111; }
.w-item img, .w-item video { background: var(--px-grey); }
.w-act a { background: #fff; color: #111; }
.chip-s.paid { background: var(--px-grey); color: #111; }
.k-row.off { background: transparent; }

/* ── legal pages (legal.css) ────────────────────────────────────────────── */
body:has(> .lg-head) { background: #fff; }
.lg-head { background: #fff; border-bottom: 1px solid var(--line); }
.lg-head nav a { border-radius: 4px; }
.lg-head nav a:hover { background: var(--px-grey); color: #111; }
.lg-head nav a[aria-current="page"] { background: #111; color: #fff; }
.lg-doc h1, .lg-doc h2 { font-family: var(--ff-t); font-weight: 600; }
.lg-doc h1::after { background: #ff4d1f; border-radius: 0; height: 3px; }
.lg-doc code { color: #111; }
.lg-doc hr { height: 1px; margin: 2.4em 0; background: var(--line-2); opacity: 1; -webkit-mask: none; mask: none; }
.lg-doc blockquote { background: var(--px-grey); border-radius: 0; }
.lg-doc table { border-radius: 0; }
.lg-doc th { background: #fff; }
.lg-doc li::marker { color: #111; }
.lg-foot { background: #fff; border-top: 1px solid #111; }
.lg-foot a:hover { color: #ff4d1f; }

/* ── pages rendered by the server: guides, models, templates, API docs ──── */
body:has(> header > .langs) > header { border-bottom: 1px solid var(--line); }
body:has(> header > .langs) > header > .brand { width: 98px; height: 32px; }
.langs a { border-radius: 4px; border-color: var(--line-2); color: var(--text-2); }
.langs a[aria-current] { color: #fff; background: #111; border-color: #111; }
body:has(> header > .langs) > main a { color: #111; }
body:has(> header > .langs) > main a:hover { color: #ff4d1f; }
body:has(> header > .langs) > main .btn { background: #111; color: #fff; border-radius: 6px; border: 1px solid #111; text-decoration: none; }
body:has(> header > .langs) > main .btn:hover { background: #ff4d1f; border-color: #ff4d1f; color: #111; }
body:has(> header > .langs) > main .btn.ghost { background: #fff; color: #111; }
body:has(> header > .langs) > main .btn.ghost:hover { background: var(--px-grey); border-color: #111; color: #111; }
body:has(> header > .langs) > main pre { background: var(--px-grey); border-radius: 6px; }
/* (these pages have no class on <body>; they are recognised by their language bar) */
/* the model and template indexes are lists, not card grids */
body:has(> header > .langs) > main .grid { display: block; border-top: 1px solid #111; }
body:has(> header > .langs) > main .grid > .card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; gap: 4px 20px; align-items: baseline; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: #111; }
body:has(> header > .langs) > main .grid > .card:hover b { color: #ff4d1f; }
body:has(> header > .langs) > main .grid > .card em { color: #111; font-weight: 600; white-space: nowrap; }
@media (max-width: 699px) { body:has(> header > .langs) > main .grid > .card { grid-template-columns: minmax(0, 1fr); } }
body:has(> header > .langs) > main details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; margin: 0; }
body:has(> header > .langs) > main .answer { border-left-color: #ff4d1f; }
body:has(> header > .langs) > footer { border-top: 1px solid #111; }
body:has(> header > .langs) > footer a:hover { color: #ff4d1f; }
