/* SPDX-License-Identifier: GPL-3.0-or-later. PushFPS Native's website: the PushFPS look (graphite, the logo's
   green, Barlow). */
@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-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-ExtraBoldItalic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }

:root {
  --ink: #0e1013;
  --panel: #161a20;
  --panel-2: #1c2129;
  --line: #262b33;
  --line-2: #323844;
  --text: #eceff3;
  --muted: #9aa3ae;
  --green: #8df237;
  --green-hi: #b2f752;
  --green-ink: #0b1400;
  --amber: #ffbd54;
  --real: #f2f4f7;
  --wrap: 1140px;
  --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: 76px; -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(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-hi); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
code { font: 500 0.88em ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0.1em 0.38em; }
::selection { background: var(--green); color: var(--green-ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--green); color: var(--green-ink); padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--display); font-weight: 800; font-style: italic; letter-spacing: -0.01em; line-height: 1.02; margin: 0 0 18px; }
h1 { font-size: clamp(42px, 5.6vw, 72px); max-width: 13ch; }
h2 { font-size: clamp(32px, 3.6vw, 46px); }
h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 10px; }
p { margin: 0 0 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--green-ink); font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 10px; border: 1px solid var(--green); transition: background 0.15s; }
.btn:hover { background: var(--green-hi); color: var(--green-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); color: var(--text); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(14, 16, 19, 0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 italic 22px var(--display); }
.brand b { color: var(--green); font-weight: 800; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-logo { width: 300px; margin: 0 0 26px -6px; }
.lede { font-size: 19px; color: #cfd5dc; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.fine { color: var(--muted); font-size: 15px; max-width: 34em; }

.demo { margin: 0; }
.frame { position: relative; padding: 22px; }
.frame canvas { display: block; width: 100%; height: auto; border-radius: 10px; background: #0a0c0f; }
.corner { position: absolute; width: 46px; height: 46px; border-color: var(--real); border-style: solid; border-width: 0; }
.corner.tl { top: 0; left: 0; border-top-width: 6px; border-left-width: 6px; }
.corner.tr { top: 0; right: 0; border-top-width: 6px; border-right-width: 6px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 6px; border-left-width: 6px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 6px; border-right-width: 6px; }
.tag { position: absolute; right: 36px; top: 34px; background: rgba(10, 12, 15, 0.8); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 10px; font: 600 15px var(--display); color: var(--green); }
.timeline { margin: 6px 22px 0; height: 34px; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
#ticks { position: absolute; inset: 0; }
#ticks i { position: absolute; bottom: 0; width: 4px; border-radius: 2px 2px 0 0; }
#ticks i.r { height: 26px; background: var(--real); }
#ticks i.m { height: 16px; background: var(--green); }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 22px 0; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { font: 600 15px var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 7px; padding: 6px 14px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--green); color: var(--green-ink); }
.legend { margin: 0; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 6px 0 12px; vertical-align: -1px; }
.legend i.real { background: var(--real); margin-left: 0; }
.legend i.made { background: var(--green); }
.demo figcaption { margin: 10px 22px 0; color: var(--muted); font-size: 14px; }

/* Safety */
.safety { background: linear-gradient(180deg, #17140e, #121009); border-top: 1px solid #3a3020; border-bottom: 1px solid #3a3020; padding: 56px 0; }
.safety h2 { color: var(--amber); }
.safety-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.safety p { color: #e6dfd2; }
.strong { font-weight: 600; color: var(--text) !important; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.checks li { position: relative; padding-left: 30px; color: #e6dfd2; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg); }

/* Features */
.features, .menu-shot, .install, .how, .hdr, .faq { padding: 84px 0 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 8px 0 0; }
.feature-list > div { border-top: 1px solid var(--line); padding: 20px 0 22px; }
.feature-list dt { font: 600 22px var(--display); margin-bottom: 6px; }
.feature-list dd { margin: 0; color: #c9cfd6; }
.note { color: var(--muted); margin-top: 14px; max-width: 46em; }

.lede-small { color: #c9cfd6; max-width: 46em; }
.menu-tabs { flex-wrap: wrap; margin-top: 18px; }
/* On a phone the picture is cut to the menu itself, which would otherwise be too small to read. */
@media (max-width: 640px) { .menu-shot img { aspect-ratio: 15 / 16; object-fit: cover; object-position: 50% 50%; } }
.menu-shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); margin-top: 14px; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.steps { margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 52px; color: #c9cfd6; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--green); font: 800 italic 19px/32px var(--display); text-align: center; }
.steps b { color: var(--text); }
.needs { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; }
.needs ul { margin: 0 0 22px; padding-left: 18px; color: #c9cfd6; }
.needs li { margin-bottom: 6px; }
.needs p { color: #c9cfd6; margin: 0; }

/* How */
.pipeline { width: 100%; height: auto; margin: 10px 0 30px; }
.pipeline rect { fill: var(--panel); stroke: var(--line-2); stroke-width: 2; }
.pipeline .pf rect { stroke: var(--real); }
.pipeline .mid rect { stroke: var(--green); stroke-dasharray: 8 6; }
.pipeline text { fill: var(--muted); font: 500 16px var(--body); }
.pipeline .obj { fill: var(--real); }
.pipeline .obj.made { fill: var(--green); }
.pipeline .vec line { stroke: var(--green); stroke-width: 3; }
.pipeline .vec polygon { fill: var(--green); }
.how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; color: #c9cfd6; }
.how-grid ul { margin: 0; padding-left: 18px; }
.how-grid li { margin-bottom: 8px; }

/* HDR */
.hdr-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hdr p { color: #c9cfd6; }
.sliders { display: grid; gap: 14px; margin-top: 22px; max-width: 420px; }
.sliders label { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-weight: 500; }
.sliders output { color: var(--green); font-variant-numeric: tabular-nums; }
.sliders input { grid-column: 1 / -1; accent-color: var(--green); width: 100%; }
.curve { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 12px; }
.curve svg { width: 100%; height: auto; }
.curve figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
#curve .axis { stroke: var(--line-2); stroke-width: 1; }
#curve .grid { stroke: var(--line); stroke-width: 1; }
#curve .label { fill: var(--muted); font: 500 13px var(--body); }
#curve .sdr { fill: none; stroke: #6c7480; stroke-width: 2; stroke-dasharray: 6 5; }
#curve .hdrline { fill: none; stroke: var(--green); stroke-width: 3; }
#curve .knee { fill: var(--green); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 20px var(--display); list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: -2px; color: var(--green); font: 600 24px var(--body); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: #c9cfd6; margin: 10px 0 0; }

/* Footer */
.footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer img { margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

@media (max-width: 980px) {
  .hero-grid, .safety-grid, .install-grid, .how-grid, .hdr-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-list { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav-row { justify-content: space-between; }
  .hero { padding-top: 40px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .frame { padding: 14px; }
  .corner { width: 30px; height: 30px; }
  .tag { right: 24px; top: 24px; font-size: 13px; }
  .demo-controls, .timeline, .demo figcaption { margin-left: 14px; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
