/* pixel8 brand layer for the public PixelBox (box.pixel8.ro), loaded after pixelbox.css.
   Brand book v1.0: Ink / Ivory / Violet / Lime, Arial, square edges, flat surfaces.
   The app's own tokens are re-pointed at the brand; the rest are small overrides. */
:root {
  --font-display: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --bg: #F4F1E9; --row: #FFFFFF; --row-sheet: #FFFFFF; --sheet: #F4F1E9; --bar: #F4F1E9;
  --label: #16151B; --label-2: #4A4852; --label-3: #77747F;
  --sep: #D6D2C6; --fill: rgba(22, 21, 27, .06); --fill-2: rgba(22, 21, 27, .04); --seg-on: #FFFFFF;
  --shadow-sheet: 0 24px 60px -24px rgba(22, 21, 27, .45); --shadow-pop: 0 12px 32px -12px rgba(22, 21, 27, .4);
  --r-xl: 0; --r-lg: 0; --r: 0; --r-sm: 0;
  --mint: #A7FDBF; --ink: #16151B; --ivory: #F4F1E9; --blue: #416DA6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16151B; --row: #201F27; --row-sheet: #201F27; --sheet: #16151B; --bar: #16151B;
    --label: #F4F1E9; --label-2: #B4B0A6; --label-3: #8A8794; --sep: #34323D;
    --fill: rgba(244, 241, 233, .08); --fill-2: rgba(244, 241, 233, .05); --seg-on: #34323D;
  }
}
:root[data-theme="dark"] {
  --bg: #16151B; --row: #201F27; --row-sheet: #201F27; --sheet: #16151B; --bar: #16151B;
  --label: #F4F1E9; --label-2: #B4B0A6; --label-3: #8A8794; --sep: #34323D;
  --fill: rgba(244, 241, 233, .08); --fill-2: rgba(244, 241, 233, .05); --seg-on: #34323D;
}

/* Square edges everywhere — the pixel is the brand. */
*, *::before, *::after { border-radius: 0 !important; }
body { font-family: var(--font); }

/* Header: the pixel8 bar — flat, a rule underneath, mark + name + nav. */
header.bar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--sep); }
.bar-in { max-width: 1120px; gap: 18px; }
.brand { gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand .logo { height: 32px; }
.p8-nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.p8-nav a { color: var(--label); text-decoration: none; font-size: 15px; }
.p8-nav a:hover, .p8-nav a[aria-current="page"] { color: var(--accent-ink); }
@media (max-width: 560px) { .p8-nav { gap: 14px; } .p8-nav a { font-size: 14px; } }

/* Headline and body type from the brand book. */
.large-title { font-family: var(--font); font-weight: 700; font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.p8-eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.subtitle { font-size: 18px; }

/* Controls: violet, bold, square. */
.btn { font-weight: 700; }
.btn-filled { background: var(--blue); }
.composer { border: 2px solid var(--blue) !important; box-shadow: none; }
.quick-btn { border: 1px solid var(--sep); background: var(--row); font-weight: 700; }
.quick-btn:hover { border-color: var(--blue); }
.badge.accent, .badge.orange { background: var(--mint); color: var(--ink); }

/* The ink footer band, as on pixel8.ro. */
.p8-foot { background: #16151B; color: #F4F1E9; margin-top: 64px; }
.p8-foot-in { max-width: 1120px; margin: 0 auto; padding: 24px 16px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
@media (min-width: 720px) { .p8-foot-in { padding-left: 32px; padding-right: 32px; } }
.p8-foot a { color: #F4F1E9; text-underline-offset: 3px; }
.p8-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.p8-foot .p8-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
:root[data-theme="dark"] .p8-foot { border-top: 1px solid var(--sep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .p8-foot { border-top: 1px solid var(--sep); } }

/* "Want to send a file directly?" — a quiet pointer to Beam, not a banner. */
.beam-callout {
  display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 14px 16px;
  background: var(--row); color: var(--label); text-decoration: none; border: 1px solid var(--sep);
}
.beam-callout:hover { text-decoration: none; border-color: var(--accent-ink); }
.bc-tile { flex: none; display: grid; place-items: center; width: 76px; height: 44px; background: #4D82C6; }
.bc-tile img { width: 60px; height: auto; display: block; }
.bc-text { display: grid; gap: 2px; min-width: 0; }
.beam-callout b { font-size: 16px; line-height: 1.3; }
.bc-sub { font-size: 14px; color: var(--label-2); }
.beam-callout .go { font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* Theme switch: square like the other icon buttons (its background is clipped, not rounded). */
.theme-seg::before { clip-path: inset(0 0 0 calc(100% - 40px)); background: var(--row); box-shadow: inset 0 0 0 1px var(--sep); }
.theme-seg.open::before { clip-path: inset(0); box-shadow: inset 0 0 0 1px var(--sep), var(--shadow-pop); }
.theme-seg button[aria-pressed="true"] { box-shadow: none; background: var(--fill); }

/* No orphans: balanced headings, "pretty" paragraphs (never one word alone on the last line). */
h1, h2, h3, .large-title, .hero h1, .panel h2, b.me-name { text-wrap: balance; }
p, li, .subtitle, .card p, .pillars p, .bc-sub, .beam-callout b, .peer-status, .empty p, .footnote, .hint, .field-label, label { text-wrap: pretty; }

/* PixelBox home, laid out like PixelBeam: label with tile, headline left,
   the composer as the highlight card on the right (top level with the headline). */
.box-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.box-eyebrow img { width: 30px; height: 30px; display: block; }
#view-home { max-width: 1120px; }
.composer { position: relative; box-shadow: inset 0 6px 0 var(--mint) !important; padding-top: 6px; }
.composer-label { display: block; padding: 16px 18px 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
@media (min-width: 900px) {
  #view-home { display: grid; grid-template-columns: 1fr 440px; grid-template-rows: auto auto auto 1fr auto auto; column-gap: 48px; row-gap: 18px; }
  #view-home > * { grid-column: 1; margin: 0; }
  #view-home > .p8-eyebrow { grid-row: 1; }
  #view-home > .large-title { grid-row: 2; }
  #view-home > .subtitle { grid-row: 3; }
  #view-home > .quick { grid-row: 4; align-self: start; }
  #view-home > .composer { grid-column: 2; grid-row: 2 / span 3; align-self: start; }
  #view-home > .beam-callout, #view-home > .footnote { grid-column: 1 / -1; }
  #view-home > .beam-callout { grid-row: 5; margin-top: 24px; }
  #view-home > .footnote { grid-row: 6; }
}

/* Same frame as the pixel8 pages (PixelBeam, Terms, Report): 1120px, 32px sides,
   header rule across the content only, same hero spacing. */
header.bar { position: static; border-bottom: 0; }
.bar-in { max-width: 1120px; margin: 0 auto; padding: 18px 16px; border-bottom: 1px solid var(--sep); min-height: 0; }
@media (min-width: 720px) { .bar-in { padding-left: 32px; padding-right: 32px; } header.bar .bar-in { box-shadow: none; } }
@media (min-width: 720px) { .bar-in { padding: 18px 0; margin: 0 32px; } }
@media (min-width: 1184px) { .bar-in { margin: 0 auto; } }
main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { main { padding: 0 32px; } }
.page { max-width: none; padding-left: 0; padding-right: 0; }
#view-home { padding-top: 56px; }
@media (min-width: 900px) { #view-home { row-gap: 12px; } #view-home > .p8-eyebrow { margin-bottom: 0; } }
.brand .logo { height: 40px; }
/* header rule = content width (as .wrap: 1120 max incl. 32px sides), hero start = PixelBeam's */
@media (min-width: 1184px) { .bar-in { max-width: 1056px; } }
#view-home { padding-top: 95px; }
@media (max-width: 899px) { #view-home { padding-top: 40px; } }
.bar-in { padding-top: 24px; padding-bottom: 24px; }
#view-home { padding-top: 58px; }
@media (max-width: 899px) { #view-home { padding-top: 40px; } }
.bar-in { height: auto; }

/* Ko-fi support block (tools/support.py), above the ink footer */
.support-wrap { max-width: 1120px; margin: 56px auto -40px; padding: 0 16px; }
@media (min-width: 720px) { .support-wrap { padding: 0 32px; } }
.support { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 0; padding: 18px 20px;
  background: var(--row); color: var(--label); border: 1px solid var(--sep); }
.support .support-cup { flex: none; width: 46px; height: auto; color: #4D82C6; }
.support p { flex: 1 1 260px; margin: 0; font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.support .support-go { flex: none; display: inline-block; padding: 11px 18px; background: #416DA6; color: #FFFFFF;
  font-weight: 700; font-size: 15px; text-decoration: none; }
.support .support-go:hover { background: #3A6396; text-decoration: none; }

/* how-it-works videos (tools/videos.py) */
.demo-video { margin: 0; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #16151B; border: 1px solid var(--sep); }
.demo-video figcaption { margin-top: 10px; font-size: 15px; line-height: 1.45; color: var(--label-2); text-wrap: pretty; }
.demo-video figcaption b { color: var(--label); }
#view-home > .demo-video { margin-top: 32px; max-width: 760px; }
@media (min-width: 900px) { #view-home > .demo-video { grid-column: 1 / -1; grid-row: 7; } }

/* privacy notice (assets/stats.js): informational, bottom corner, never blocks the page */
.p8-notice { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 400px; padding: 16px 18px;
  background: var(--row); color: var(--label); border: 1px solid var(--sep); box-shadow: inset 0 4px 0 #A7FDBF, 0 12px 32px rgba(0, 0, 0, .25);
  font: 14px/1.45 Arial, "Helvetica Neue", Helvetica, sans-serif; }
.p8-notice p { margin: 4px 0 12px; text-wrap: pretty; }
.p8-notice-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.p8-notice-row a { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }
.p8-notice-row button { font: inherit; font-weight: 700; padding: 8px 16px; border: 0; background: #416DA6; color: #FFFFFF; cursor: pointer; }
.p8-notice-row button:hover { background: #3A6396; }
.p8-notice-row { flex-wrap: wrap; row-gap: 10px; }
.p8-notice-btns { display: flex; gap: 8px; }
.p8-notice-row button.p8-never { background: transparent; color: var(--label); box-shadow: inset 0 0 0 1px var(--sep); font-weight: 400; }
.p8-notice-row button.p8-never:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--label); }
.p8-notice-row button:focus-visible, .p8-notice-row a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
@media (max-width: 480px) { .p8-notice { right: 16px; max-width: none; } }
@media print { .p8-notice { display: none; } }

