/* PushFPS website. Colours follow the logo: graphite ink, logo green for generated frames, white for real ones. */

@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/Barlow-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/BarlowSemiCondensed-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --ink: #0e1013;
  --ink-2: #12151a;
  --panel: #161a20;
  --panel-2: #1c2129;
  --line: #262b33;
  --line-2: #323844;
  --text: #eceff3;
  --muted: #9aa3ae;
  --faint: #6c7480;
  --green: #8df237;
  --green-hi: #b2f752;
  --green-lo: #6cec06;
  --green-ink: #0b1400;
  --real: #f2f4f7;
  --accent-text: var(--green);
  --accent-rgb: 141, 242, 55;
  --ink-rgb: 14, 16, 19;
  --panel-rgb: 24, 28, 35;
  --tint-rgb: 255, 255, 255;
  --btn-bg: var(--green);
  --btn-bg-hi: var(--green-hi);
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --wrap: 1180px;
  --display: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-hi); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
code { font: 500 0.9em/1 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.12em 0.4em; white-space: nowrap; }
::selection { background: var(--green); color: var(--green-ink); }

/* Background flow field */
#flow { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
body::before {
  /* soft vignette so text keeps contrast over the streaks */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(var(--accent-rgb), 0.07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(var(--accent-rgb), 0.04), transparent 60%);
}

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: var(--green-ink); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { top: 12px; }

/* Wordmark: same split as the app (Push light, FPS green), slanted like the logo */
.wordmark { font: 800 italic 23px/1 var(--display); letter-spacing: 0.01em; color: var(--text); }
.wordmark span { color: var(--accent-text); }

/* Buttons */
.btn {
  --b: var(--btn-bg);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--b); color: var(--green-ink);
  font: 600 16px/1.2 var(--body); text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0);
}
.btn:hover { background: var(--btn-bg-hi); color: var(--green-ink); box-shadow: 0 8px 30px -10px rgba(var(--accent-rgb), .55); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn.big { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.btn.small { padding: 8px 14px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(var(--tint-rgb), .05); border-color: var(--faint); box-shadow: none; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--muted); font: 500 14px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(var(--ink-rgb), .72); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 10px; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 56px; align-items: center; }
.hero-logo { width: min(400px, 82%); margin: 0 0 26px -6px; filter: drop-shadow(0 10px 40px rgba(var(--accent-rgb), .18)); }
h1, h2, h3 { margin: 0; }
h1 {
  font: 800 italic clamp(38px, 4.6vw, 60px)/1.02 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 15ch;
}
.lede { color: var(--muted); font-size: 19px; line-height: 1.55; max-width: 34em; margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--faint); font-size: 14px; line-height: 1.5; margin: 14px 0 0; }

/* Frame lab */
.lab {
  margin: 0; padding: 20px 20px 16px;
  background: linear-gradient(180deg, rgba(var(--panel-rgb), .92), rgba(var(--ink-rgb), .92));
  border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.lab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lab-title { font: 600 15px var(--display); color: var(--muted); letter-spacing: .01em; }
.seg { display: inline-flex; padding: 3px; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--body); padding: 6px 14px; border-radius: 7px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg button[aria-checked="true"] { background: var(--green); color: var(--green-ink); }
.seg button:not([aria-checked="true"]):hover { color: var(--text); }
.lane { margin-bottom: 14px; }
.lane-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; font-size: 14.5px; }
.lane-label b { font: 700 italic 18px var(--display); color: var(--real); }
.lane-label b.green { color: var(--accent-text); }
.lane-label span { color: var(--faint); font-variant-numeric: tabular-nums; }
.lane-view { width: 100%; height: auto; aspect-ratio: 560 / 120; border-radius: 10px; background: #0a0c0f; border: 1px solid var(--line); display: block; }
.tape { width: 100%; height: auto; aspect-ratio: 560 / 18; display: block; margin-top: 6px; }
.lab figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: 14px; }
.lab figcaption .link-btn { margin-left: auto; }
.key { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k-real { background: var(--real); }
.k-gen { background: var(--green); }
.lab-note { margin: 10px 0 0; color: var(--faint); font-size: 13.5px; }

/* Credits strip */
.credits-strip { border-block: 1px solid var(--line); background: rgba(var(--ink-rgb), .6); }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; padding: 18px 0; }
.credit { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); text-decoration: none; font-size: 15.5px; }
.credit b { color: var(--text); font-weight: 600; }
.credit img { opacity: .9; transition: opacity .2s ease; }
.credit:hover { color: var(--text); }
.credit:hover img { opacity: 1; }

/* Sections */
.section { padding: 104px 0 0; }
.section.tight { padding-top: 96px; }
h2 { font: 800 italic clamp(32px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: -0.005em; text-wrap: balance; }
.section-lede { color: var(--muted); font-size: 18.5px; max-width: 40em; margin: 16px 0 0; }
.sub-h { font: 700 italic 26px/1.1 var(--display); margin: 56px 0 0; }

/* Pipeline */
.pipe { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: stretch; }
.pipe-step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.pipe-step h3 { font: 700 italic 21px/1.1 var(--display); margin: 14px 0 6px; }
.pipe-step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pipe-step.accent { border-color: rgba(var(--accent-rgb), .45); background: linear-gradient(180deg, rgba(var(--accent-rgb), .09), rgba(var(--accent-rgb), .02)), var(--panel); }
.pipe-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); display: grid; place-items: center; }
.pipe-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.accent .pipe-icon { background: var(--green); border-color: var(--green); }
.accent .pipe-icon svg { stroke: var(--green-ink); stroke-width: 3.4; }
.pipe-link { position: relative; width: 70px; display: flex; align-items: center; justify-content: center; }
.pipe-link::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 11px); }
.pipe-link::after { content: ""; position: absolute; top: calc(50% - 3px); left: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse-x 2.4s cubic-bezier(.55, 0, .45, 1) infinite; }
.pipe-link:nth-child(4)::after { animation-delay: .8s; }
.pipe-link:nth-child(6)::after { animation-delay: 1.6s; }
.pipe-link span { position: relative; top: -16px; font-size: 12px; color: var(--faint); white-space: nowrap; background: var(--ink); padding: 0 4px; }
@keyframes pulse-x { 0% { left: 6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }

.honest { margin-top: 28px; display: grid; grid-template-columns: 220px 1fr; gap: 8px 32px; padding: 24px 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.honest h3 { font: 700 italic 22px/1.15 var(--display); }
.honest p { margin: 0; color: var(--muted); font-size: 16px; }

/* Feature showcase */
.showcase { margin-top: 44px; display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 28px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 4px; }
.tabs button {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: 12px;
  padding: 13px 16px 13px 18px; color: var(--muted); cursor: pointer; font: inherit; position: relative;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.tabs button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: transparent; transition: background-color .18s ease; }
.tabs button b { display: block; font: 700 italic 19.5px/1.2 var(--display); color: var(--text); }
.tabs button span { display: none; margin-top: 6px; font-size: 15.5px; line-height: 1.5; }
.tabs button:hover { background: rgba(var(--tint-rgb), .03); }
.tabs button[aria-selected="true"] { background: var(--panel); border-color: var(--line); }
.tabs button[aria-selected="true"]::before { background: var(--green); }
.tabs button[aria-selected="true"] span { display: block; }
.show { position: sticky; top: 96px; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); background: var(--ink-2); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
.frame-bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame img { width: 100%; transition: opacity .22s ease; }
.frame img.swap { opacity: 0; }

.more { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 32px; border-top: 1px solid var(--line); padding-top: 36px; }
.more li b { display: block; font: 700 italic 18.5px/1.2 var(--display); margin-bottom: 5px; }
.more li span { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Gallery */
.gallery {
  margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 78vw); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
  padding: 4px max(24px, calc((100vw - var(--wrap)) / 2)) 18px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.shot { scroll-snap-align: start; padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; text-align: left; color: var(--muted); font: 500 15px var(--body); transition: border-color .18s ease, transform .25s ease; }
.shot:hover { border-color: var(--faint); transform: translateY(-3px); }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.shot span { display: block; padding: 11px 14px; }

dialog#lightbox { padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); color: var(--text); max-width: min(1400px, 94vw); max-height: 92vh; overflow: hidden; }
dialog#lightbox::backdrop { background: rgba(5, 6, 8, .82); backdrop-filter: blur(4px); }
dialog#lightbox img { max-height: calc(92vh - 52px); width: auto; margin: 0 auto; }
dialog#lightbox p { margin: 0; padding: 12px 18px; color: var(--muted); font-size: 15px; }
dialog#lightbox .close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb), .85); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
dialog#lightbox[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

/* Tables */
.table-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--panel-rgb), .7); }
.spec { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 640px; }
.spec th, .spec td { padding: 14px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec tbody tr:last-child > * { border-bottom: 0; }
.spec thead th { font: 600 14.5px var(--body); color: var(--faint); background: rgba(var(--tint-rgb), .02); }
.spec tbody th { font-weight: 600; color: var(--text); width: 26%; }
.spec td { color: var(--muted); }
.spec td:last-child { color: var(--text); }
.methods td:last-child { font: 700 italic 20px/1 var(--display); color: var(--accent-text); white-space: nowrap; }
.spec em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; }

/* Download */
.download .dl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; padding: 40px; border-radius: var(--radius-l); background: linear-gradient(115deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .03) 55%), var(--panel); border: 1px solid rgba(var(--accent-rgb), .3); }
.dl-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; max-width: 420px; }
.dl-buttons .fine { flex-basis: 100%; margin: 2px 0 0; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.steps li { counter-increment: s; position: relative; padding-top: 58px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--ink-2); border: 1px solid var(--line-2); font: 800 italic 21px var(--display); color: var(--accent-text); }
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -10px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font: 700 italic 21px/1.15 var(--display); margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.note { margin-top: 32px; padding: 18px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.note p { margin: 0; color: var(--muted); font-size: 15.5px; }
.note p + p { margin-top: 10px; }
.note b { color: var(--text); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font: 600 18px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; border-color: var(--green); }
.faq summary:hover { color: var(--green-hi); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* Credits */
.credit-cards { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.credit-card { display: grid; grid-template-columns: 96px 1fr; gap: 22px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.credit-card img { width: 84px; height: auto; }
/* A plain text mark for ANR (Apex Compute asked us not to use their logo). */
.credit-mark { display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 7px; font: 800 italic 15px/1 var(--display); letter-spacing: .04em; color: var(--text); }
.credit-mark.big { min-width: 84px; height: 44px; margin-top: 16px; font-size: 22px; }
.credit-card h3 { font: 700 italic 23px/1.1 var(--display); margin-bottom: 10px; }
.credit-card p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; }
.credit-card .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-weight: 500; }
.license { margin-top: 28px; color: var(--faint); font-size: 14.5px; max-width: 70em; }
.license p { margin: 0 0 12px; }
.license b { color: var(--muted); }

/* Footer */
.footer { margin-top: 110px; border-top: 1px solid var(--line); background: rgba(var(--ink-rgb), .8); }
.foot-row { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px 40px; padding: 34px 0 40px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--text); }
.foot-row .fine { grid-column: 1 / -1; margin: 0; }

/* Responsive */
@media (max-width: 1060px) {
  .pipe { grid-template-columns: 1fr 1fr; gap: 16px; }
  .pipe-link { display: none; }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 26px; }
  .steps li::after { display: none; }
}
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .nav nav { display: none; }
  .nav-actions { margin-left: auto; }
  .showcase { grid-template-columns: 1fr; }
  .show { position: static; order: -1; }
  .faq-wrap { grid-template-columns: 1fr; gap: 18px; }
  .credit-cards { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; }
  .section { padding-top: 84px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav-actions .ghost { display: none; }
  .pipe { grid-template-columns: 1fr; }
  .more, .steps { grid-template-columns: 1fr; }
  .lab { padding: 16px 14px 12px; }
  .lab-head { flex-direction: column; align-items: flex-start; }
  .download .dl-head { padding: 26px 22px; }
  .credit-card { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .foot-row { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .strip-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pipe-link::after { display: none; }
}

/* Tables become stacked rows on phones, each value labelled with its column. */
@media (max-width: 560px) {
  .spec { min-width: 0; }
  .spec thead { display: none; }
  .spec tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .spec tbody tr:last-child { border-bottom: 0; }
  .spec th, .spec td { display: block; padding: 0; border: 0; width: auto; }
  .spec tbody th { width: auto; margin-bottom: 6px; }
  .spec td { font-size: 15px; margin-top: 4px; }
  .spec td[data-label]:not([data-label=""])::before { content: attr(data-label) ": "; color: var(--faint); }
  .methods td:last-child { font-size: 17px; }
}

/* ------------------------------------------------------------------ themes
   html[data-theme] is set before the first paint by the small script in <head>:
   "sunset" (Sunset City, the default for now), "classic" (graphite and logo green) or "light". */

/* Sunset City: a neon dusk over a palm-lined bay. Hot pink takes the accent's place, gold warms it. */
html[data-theme="sunset"] {
  --ink: #150a28;
  --ink-2: #1a0d33;
  --panel: #211240;
  --panel-2: #2a174f;
  --line: #3a2363;
  --line-2: #4b2f7c;
  --text: #fdf0fa;
  --muted: #d1bcdf;
  --faint: #9a83b3;
  --green: #ff4fa8;
  --green-hi: #ff7cbf;
  --green-lo: #ff2d92;
  --green-ink: #2b0418;
  --real: #fff4e2;
  --gold: #ffc45c;
  --accent-text: #ff8ac6;
  --accent-rgb: 255, 79, 168;
  --ink-rgb: 21, 10, 40;
  --panel-rgb: 33, 18, 64;
  --btn-bg: linear-gradient(100deg, #ff3d9a, #ff7a59 70%, #ffb14e);
  --btn-bg-hi: linear-gradient(100deg, #ff5fae, #ff9068 70%, #ffc260);
}
html[data-theme="sunset"] .wordmark span {
  background: linear-gradient(90deg, #ffc45c, #ff4fa8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="sunset"] .btn { color: #2b0418; }
html[data-theme="sunset"] .btn.ghost { color: var(--text); }
html[data-theme="sunset"] .btn:hover { box-shadow: 0 10px 34px -10px rgba(255, 90, 140, .7); }
html[data-theme="sunset"] body::before {
  background:
    linear-gradient(180deg, transparent 0, transparent 55vh, rgba(21, 10, 40, .35) 85vh, rgba(21, 10, 40, .55) 100vh);
}
html[data-theme="sunset"] .hero-logo { filter: none; }
html[data-theme="sunset"] h1 { text-shadow: 0 2px 30px rgba(21, 10, 40, .7); }

/* Light: paper-white panels, graphite ink, a darker green for text so links stay readable. */
html[data-theme="light"] {
  --ink: #f3f4f6;
  --ink-2: #e9ebef;
  --panel: #ffffff;
  --panel-2: #eef0f3;
  --line: #dadee4;
  --line-2: #c5cbd3;
  --text: #15181d;
  --muted: #47505c;
  --faint: #66707c;
  --green: #8df237;
  --green-hi: #a3f55a;
  --green-ink: #0b1400;
  --accent-text: #387300;
  --real: #2c323b;
  --ink-rgb: 243, 244, 246;
  --panel-rgb: 255, 255, 255;
  --tint-rgb: 0, 0, 0;
  color-scheme: light;
}
html[data-theme="light"] body::before {
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(141, 242, 55, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(141, 242, 55, 0.10), transparent 60%);
}
html[data-theme="light"] :focus-visible { outline-color: #387300; }
html[data-theme="light"] .lab, html[data-theme="light"] .frame { box-shadow: 0 30px 60px -36px rgba(20, 30, 40, .35); }
html[data-theme="light"] .hero-logo { filter: drop-shadow(0 10px 30px rgba(60, 120, 0, .14)); }

/* Each theme shows its own logo. */
.logo-sunset, .logo-light { display: none; }
html[data-theme="sunset"] .logo-classic, html[data-theme="light"] .logo-classic { display: none; }
html[data-theme="sunset"] .logo-sunset, html[data-theme="light"] .logo-light { display: block; }
html[data-theme="sunset"] .hero-logo.logo-sunset { width: min(470px, 96%); margin: -26px 0 6px -34px; }

/* The two backgrounds share the same place; only the active theme's one runs. */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; display: none; }
html[data-theme="sunset"] #sky { display: block; }
html[data-theme="sunset"] #flow { display: none; }

/* Theme switcher: three small buttons in the navigation bar. */
.theme-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(var(--ink-rgb), .5); }
.theme-switch button {
  display: grid; place-items: center; width: 32px; height: 30px; padding: 0;
  border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.theme-switch button:hover { color: var(--text); background: rgba(var(--tint-rgb), .06); }
.theme-switch button[aria-pressed="true"] { color: var(--green-ink); background: var(--green); }
html[data-theme="sunset"] .theme-switch button[aria-pressed="true"] { background: linear-gradient(135deg, #ffc45c, #ff4fa8); color: #2b0418; }
.theme-switch svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) { .theme-switch button { width: 30px; } }
html[data-theme="sunset"] .lede, html[data-theme="sunset"] .hero .fine { text-shadow: 0 1px 12px rgba(21, 10, 40, .9), 0 0 2px rgba(21, 10, 40, .8); color: #ecdcf2; }
@media (max-width: 700px) { html[data-theme="sunset"] .hero-logo.logo-sunset { width: min(420px, 100% + 20px); margin: -14px 0 4px -14px; } }
