/* PHASMID FX — site styles
   One stylesheet for every page. Colours are taken from the PUNK LAB interface. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-400i.woff") format("woff"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.woff") format("woff"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-400.woff") format("woff"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-500.woff") format("woff"); }

:root {
  --bg: #0c0d0c;
  --bg-2: #121311;
  --panel: #1b1c19;
  --panel-2: #22231f;
  --line: #33342e;
  --line-soft: #292a25;
  --rust: #6e1d19;
  --rust-dim: #4a1714;
  --red: #b8342b;
  --red-hi: #d4473b;
  --bone: #e6e1d2;
  --bone-2: #c9c4b4;
  --dim: #9c9888;
  --faint: #6f6c60;
  --ok: #8a9a6a;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  /* fine grain + a faint warm bloom at the top, like dust on a dark enclosure */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .88 0 0 0 0 .8 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 520px at 50% -120px, rgba(110, 29, 25, .22), transparent 70%);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--bone); text-decoration-color: var(--red); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; text-decoration-color: var(--red-hi); }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--rust); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bone); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.02; margin: 0 0 .5em; color: var(--bone); }
h1 { font-size: clamp(44px, 8vw, 92px); letter-spacing: .01em; }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 24px; letter-spacing: .03em; }
h4 { font-size: 19px; letter-spacing: .05em; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--bone-2); max-width: 40em; }
.muted { color: var(--dim); }
small, .small { font-size: 14px; }
code, .mono { font-family: var(--mono); font-size: .88em; }

/* document-style labels: the "recovered manual" layer */
.tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); display: inline-flex; align-items: center; gap: .6em;
}
.tag::before { content: ""; width: 18px; height: 2px; background: var(--red); display: inline-block; }
.tag.plain::before { display: none; }
.stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-hi); border: 1px solid var(--rust); padding: 3px 8px 2px; border-radius: 2px; display: inline-block;
  background: rgba(110, 29, 25, .12);
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line-soft); background: rgba(12, 13, 12, .88); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand img { width: 38px; height: 38px; border-radius: 3px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .08em; line-height: 1; }
.brand-name span { color: var(--red-hi); }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-family: var(--display); font-weight: 600; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--bone-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); border-bottom-color: var(--red); }
@media (max-width: 520px) { .brand-name { display: none; } .nav { font-size: 15px; gap: 16px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 22px 12px; border-radius: var(--radius); text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(#2a2b26, #1f201c); color: var(--bone);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .6);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #4a4b43; color: #fff; }
.btn-buy { background: linear-gradient(#c23a30, #97271f); border-color: #d4473b; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn-buy:hover { background: linear-gradient(#d4473b, #a82c23); border-color: #e0584b; }
.btn[aria-disabled="true"] { background: #2a2b26; border-color: var(--line); color: var(--dim); cursor: not-allowed; text-shadow: none; }
.btn-lg { font-size: 22px; padding: 16px 28px 15px; }
.btn-block { width: 100%; }
.btn .price-inline { font-family: var(--mono); font-weight: 500; font-size: .8em; letter-spacing: 0; }

/* ---------- panels (modelled on the plugin's module frames) ---------- */
.panel {
  position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-top: 2px solid var(--rust); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 12px 30px -18px rgba(0, 0, 0, .9);
}
.panel-pad { padding: clamp(18px, 3vw, 28px); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 16px; }
.panel-head h3, .panel-head h4 { margin: 0; }

/* screw heads in the corners, the way the plugin's chassis has them */
.screws { position: relative; }
.screws::before, .screws::after {
  content: ""; position: absolute; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4a4a44, #1d1d1a 70%); box-shadow: 0 0 0 1px #0b0b0a;
  pointer-events: none;
}
.screws::before { left: 8px; }
.screws::after { right: 8px; }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 46em; }
.section-head .tag { margin-bottom: 12px; }

/* ---------- home hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.hero h1 { margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--red-hi); }
.hero-mark { width: min(100%, 420px); margin: 0 auto; aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(110, 29, 25, .45), 0 0 0 8px var(--bg-2), 0 0 0 9px var(--line-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- product feature card on home ---------- */
.unit { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.unit-shot { background: #0a0a09; border-bottom: 1px solid var(--line); padding: clamp(8px, 1.6vw, 16px); display: block; }
.unit-shot img { border-radius: 3px; border: 1px solid #000; width: 100%; }
.unit-body { padding: clamp(20px, 3vw, 34px); display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 860px) { .unit-body { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }
.unit-body > div:first-child { display: grid; gap: 12px; }
.unit-body p { margin: 0; color: var(--bone-2); max-width: 36em; }
.unit-buy { display: grid; gap: 14px; }
.unit-buy .actions { margin-top: 0; }
.unit-body h3 { font-size: clamp(34px, 4vw, 46px); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-2); border: 1px solid var(--line); padding: 3px 8px 2px; border-radius: 2px; background: var(--bg-2); }

/* ---------- price ---------- */
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-now { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; color: #fff; }
.price-was { font-family: var(--mono); font-size: 17px; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--red); }
.price-note { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-hi); }
.price-was[hidden], .price-note[hidden] { display: none; }
.assurances { list-style: none; padding: 0; margin: 4px 0 0; font-size: 15px; color: var(--bone-2); display: grid; gap: 4px; }
.assurances li { display: flex; gap: 10px; align-items: baseline; }
.assurances li::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.buy-soon { font-size: 14px; color: var(--dim); margin: 0; }
.buy-soon[hidden] { display: none; }

/* ---------- how buying works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 13px; color: var(--red-hi); letter-spacing: .1em; display: block; margin-bottom: 6px; }
.steps h3 { font-size: 21px; margin-bottom: .3em; }
.steps p { margin: 0; color: var(--bone-2); font-size: 16px; }

/* ---------- catalog ---------- */
.catalog { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .15s; }
.cat-card:hover { border-color: #4a4b43; color: inherit; }
.cat-card img { border-bottom: 1px solid var(--line); background: #0a0a09; }
.cat-card .cat-body { padding: 18px 20px 20px; display: grid; gap: 8px; }
.cat-card h3 { margin: 0; font-size: 30px; }
.cat-card p { margin: 0; color: var(--bone-2); font-size: 16px; }
.cat-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.cat-meta strong { color: var(--bone); font-weight: 500; font-size: 15px; }

/* ---------- about ---------- */
.two-col { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* ---------- product page ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--bone); }
.p-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); }
.p-hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .p-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } }
.p-hero h1 { margin-bottom: .15em; }
.p-sub { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); letter-spacing: .06em; text-transform: uppercase; color: var(--bone-2); margin-bottom: 18px; }
.buybox { padding: 22px; display: grid; gap: 16px; }
@media (min-width: 980px) { .buybox { position: sticky; top: 84px; } }
.buybox .meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-family: var(--mono); font-size: 13px; margin: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.buybox .meta dt { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.buybox .meta dd { margin: 0; color: var(--bone); }

.shot-frame { margin: 28px 0 0; padding: clamp(8px, 1.4vw, 14px); background: #070707; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1), 0 0 0 1px #000; }
.shot-frame img { border-radius: 3px; width: 100%; }
.shot-caption { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 10px; letter-spacing: .05em; }

.in-page-nav { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.in-page-nav ul { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: var(--wrap); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.in-page-nav ul::-webkit-scrollbar { display: none; }
.in-page-nav a { display: block; white-space: nowrap; padding: 13px 0 11px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-decoration: none; border-bottom: 2px solid transparent; }
.in-page-nav a:hover { color: var(--bone); border-bottom-color: var(--red); }

.modules { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.module { overflow: hidden; display: flex; flex-direction: column; }
.module figure { margin: 0; background: #0b0b0a; border-bottom: 1px solid var(--line); }
.module figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 10px; }
.module .m-body { padding: 16px 18px 18px; }
.module h3 { font-size: 22px; margin-bottom: .1em; }
.module .role { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 8px; }
.module p { margin: 0; font-size: 16px; color: var(--bone-2); }
.module .controls { font-family: var(--mono); font-size: 12.5px; color: var(--dim); margin-top: 10px; line-height: 1.5; }

.featlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line); }
.featlist li { padding: 14px 4px 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 16.5px; color: var(--bone-2); }
.featlist li strong { color: var(--bone); font-weight: 600; }
.featlist li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 12px; height: 2px; background: var(--red); }
@media (min-width: 700px) { .featlist { column-gap: 32px; } }

.presets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); counter-reset: preset; }
.preset { padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--rust); border-radius: var(--radius); background: var(--bg-2); counter-increment: preset; }
.preset h3 { font-size: 22px; margin-bottom: .25em; display: flex; justify-content: space-between; gap: 12px; }
.preset h3::after { content: "F-0" counter(preset); font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.preset p { margin: 0; font-size: 16px; color: var(--bone-2); }

.demo-slots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.demo-slot { border: 1px dashed #3d3e37; border-radius: var(--radius); padding: 18px 20px; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, .012) 10px 20px); }
.demo-slot h3 { font-size: 19px; margin-bottom: 6px; }
.demo-slot .rows { display: grid; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.demo-slot .rows span { display: flex; align-items: center; gap: 10px; }
.demo-slot .rows span::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, #3a3b35 0 3px, transparent 3px 7px); }
.demo-slot audio { width: 100%; margin-top: 6px; }

.spec { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec th, .spec td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); width: 34%; }
.spec td { color: var(--bone); }
@media (max-width: 560px) { .spec th, .spec td { display: block; width: auto; padding: 4px 0; border: 0; } .spec tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); } }

.install { list-style: none; counter-reset: inst; padding: 0; margin: 0; display: grid; gap: 0; }
.install > li { counter-increment: inst; position: relative; padding: 18px 0 18px 58px; border-bottom: 1px solid var(--line); }
.install > li:first-child { border-top: 1px solid var(--line); }
.install > li::before { content: counter(inst); position: absolute; left: 0; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--bone); background: radial-gradient(circle at 40% 35%, #34352f, #1a1b18 70%); border: 1px solid #45463f; }
.install h3 { font-size: 21px; margin-bottom: .2em; }
.install p { margin: 0; color: var(--bone-2); }
.path { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 0; margin-top: 10px; max-width: 100%; }
.path code { font-size: 14.5px; background: #0a0a09; border: 1px solid var(--line); border-right: 0; border-radius: 3px 0 0 3px; padding: 9px 12px; color: var(--bone); overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }
.path button { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line); background: var(--panel-2); color: var(--bone-2); border-radius: 0 3px 3px 0; padding: 0 14px; cursor: pointer; }
.path button:hover { color: #fff; border-color: #4a4b43; }

.changelog { display: grid; gap: 14px; }
.release .panel-head .stamp { flex: none; }
.release p { color: var(--bone-2); margin: 0; }
.release ul { margin: 8px 0 0; padding-left: 20px; color: var(--bone-2); }
.release li { margin: 4px 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-family: var(--mono); font-size: 22px; color: var(--red-hi); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 18px; color: var(--bone-2); max-width: 46em; }
.faq details > div p:last-child { margin-bottom: 0; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--bg-2); padding: 16px 18px; border-radius: var(--radius); color: var(--bone-2); }
.callout strong { color: var(--bone); }

.buy-band { display: grid; gap: 20px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: clamp(22px, 4vw, 36px); }
@media (min-width: 820px) { .buy-band { grid-template-columns: minmax(0, 1fr) auto; } }
.buy-band h2 { margin: 0 0 6px; }
.buy-band p { margin: 0; color: var(--bone-2); }
.buy-band .price { justify-content: flex-start; margin-bottom: 10px; }

/* ---------- prose pages (support, legal) ---------- */
.prose { max-width: 46em; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.page-head { padding: clamp(40px, 7vw, 80px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(40px, 7vw, 72px); }
.email-big { font-family: var(--mono); font-size: clamp(17px, 3vw, 24px); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #090a09; padding: 40px 0 32px; margin-top: 0; font-size: 15px; color: var(--dim); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-size: 15px; color: var(--bone-2); letter-spacing: .14em; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--bone); }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.foot-brand img { width: 30px; height: 30px; border-radius: 2px; }
.foot-brand strong { font-family: var(--display); font-size: 18px; letter-spacing: .1em; color: var(--bone); }
.foot-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.buy-q { margin-top: 14px; text-align: center; }
@media (max-width: 899px) { .hero-mark { width: min(62%, 260px); order: -1; margin: 0; } .hero-grid { gap: 28px; } }
.page-head + .section-tight { padding-top: 0; }
[id] { scroll-margin-top: 76px; }

/* ---------- before/after demo player ---------- */
.demos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.demo { border: 1px solid var(--line); border-top: 2px solid var(--rust); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.demo-head h3 { margin: 0; font-size: 23px; }
.demo-len { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .08em; }
.demo-desc { margin: 0 0 auto; font-size: 15.5px; color: var(--bone-2); }
.demo-native audio { width: 100%; height: 36px; }
.demo-native p { margin: 6px 0 2px; }
.demo-player { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "play wave" "ab ab"; gap: 12px 14px; align-items: center; margin-top: 6px; }
.demo-player[hidden], .demo-native[hidden] { display: none; }
.demo-player { grid-template-columns: minmax(0, 1fr); grid-template-areas: "play" "wave" "ab"; }
.demo-play { grid-area: play; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  background: linear-gradient(#c23a30, #97271f); border: 1px solid #d4473b; border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 0 #000; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.demo-play:hover { background: linear-gradient(#d4473b, #a82c23); }
.demo-play svg { width: 22px; height: 22px; flex: none; }
.demo-play .i-pause { display: none; }
.is-playing .demo-play { background: linear-gradient(#2a2b26, #1f201c); border-color: #4a4b43; color: var(--bone); }
.is-playing .demo-play .i-play { display: none; }
.is-playing .demo-play .i-pause { display: block; color: var(--red-hi); }
.demo-wave { grid-area: wave; position: relative; height: 52px; cursor: pointer; background: #0b0b0a; border: 1px solid var(--line); border-radius: 3px; padding: 5px 6px; }
.demo-wave .wave-base, .demo-wave .wave-fill { position: absolute; inset: 5px 6px; }
.demo-wave svg { width: 100%; height: 100%; display: block; }
.wave-base rect { fill: #3d3e37; }
.wave-fill { clip-path: inset(0 100% 0 0); }
.wave-fill rect { fill: var(--red-hi); }
[data-active="before"] .wave-fill rect { fill: var(--bone-2); }
.ab { grid-area: ab; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.ab button { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; padding: 9px 10px 8px; cursor: pointer; border: 0; background: var(--bg-2); color: var(--dim); }
.ab button + button { border-left: 1px solid var(--line); }
.ab button:hover { color: var(--bone); }
.ab button[aria-pressed="true"] { background: var(--panel-2); color: var(--bone); box-shadow: inset 0 -2px 0 var(--red); }
.ab button[data-src="before"][aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--bone-2); }
.demo-note { margin-top: 14px; }
