/* ============================================================
   SELF-HOSTED FONTS  (no external CDN — privacy-clean, fast,
   works offline). Files live in assets/fonts/. All three are
   under the SIL Open Font License.
   ============================================================ */
@font-face { font-family:"Shrikhand"; src:url("../fonts/shrikhand-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../fonts/hanken-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../fonts/hanken-500.woff2") format("woff2"); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../fonts/hanken-600.woff2") format("woff2"); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:"Hanken Grotesk"; src:url("../fonts/hanken-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:"Space Mono"; src:url("../fonts/space-mono-400.woff2") format("woff2"); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:"Space Mono"; src:url("../fonts/space-mono-700.woff2") format("woff2"); font-weight:700; font-style:normal; font-display:swap; }

/* ============================================================
   DEROGATORY PIG — house style, translated to the web
   Palette + motifs lifted straight from the plugin design
   system (namespace jelly). Edit tokens here; everything
   downstream follows.
   ============================================================ */

:root {
  /* --- palette (hex straight from the plugin code) --- */
  --face:        #EFE8D8;  /* cream faceplate            */
  --face-shade:  #D8CFB8;  /* faceplate shading          */
  --ink:         #3A2C1E;  /* primary text on cream      */
  --ink-soft:    #6E5A44;  /* secondary text / labels    */
  --hardware:    #2A201A;  /* dark hardware / wells      */
  --hardware-hi: #463528;  /* hardware highlights        */
  --amber:       #E0962E;  /* primary accent / neon glow */
  --rust:        #C4582A;  /* secondary accent           */
  --cream-text:  #F2E9D4;  /* text on dark               */
  --scope-bg:    #1C1510;  /* darkest walnut / scope bg  */

  /* --- derived --- */
  --amber-soft:  rgba(224, 150, 46, 0.16);
  --rust-soft:   rgba(196, 88, 42, 0.16);
  --ink-line:    rgba(58, 44, 30, 0.16);
  --cream-line:  rgba(242, 233, 212, 0.14);
  --screw:       radial-gradient(circle at 38% 34%, #5a4a39, #2a2018 70%);

  /* --- type --- */
  --display: "Shrikhand", "Georgia", serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  /* --- scale --- */
  --maxw: 1140px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-sm: 9px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--cream-text);
  background-color: var(--scope-bg);
  /* procedural-ish walnut: layered low-contrast grain over deep brown */
  background-image:
    repeating-linear-gradient(96deg,
      rgba(70, 53, 40, 0.0) 0px,
      rgba(70, 53, 40, 0.05) 2px,
      rgba(20, 14, 10, 0.06) 5px,
      rgba(70, 53, 40, 0.0) 9px),
    repeating-linear-gradient(93deg,
      rgba(90, 66, 46, 0.04) 0px,
      rgba(20, 14, 10, 0.05) 23px,
      rgba(90, 66, 46, 0.03) 60px),
    radial-gradient(120% 80% at 50% -10%, #2c2017 0%, var(--scope-bg) 60%);
  background-attachment: fixed;
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--rust); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
[id] { scroll-margin-top: 86px; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1rem;
}
.eyebrow--ink { color: var(--rust); }

/* ============================================================
   TYPE
   ============================================================ */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; }
.h-display { font-size: clamp(2.6rem, 7vw, 5rem); }
.h-section { font-size: clamp(2rem, 4.5vw, 3rem); }
.h-plugin  { font-size: clamp(2.2rem, 5vw, 3.6rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cream-text); opacity: 0.92; }
.muted { color: rgba(242, 233, 212, 0.6); }
.data { font-family: var(--mono); }
code { font-family: var(--mono); font-size: 0.86em; color: var(--amber); background: rgba(224,150,46,0.08); border: 1px solid rgba(224,150,46,0.18); border-radius: 4px; padding: 0.08em 0.36em; white-space: nowrap; }
.specs-table code { white-space: normal; }

/* ============================================================
   THE SIGNATURE: breathing neon (Shrikhand, amber glow)
   Mirrors the plugins' envelope-driven logo glow.
   ============================================================ */
.neon {
  font-family: var(--display);
  color: #FBE3B0;
  text-shadow:
    0 0 4px rgba(224,150,46,0.55),
    0 0 14px rgba(224,150,46,0.45),
    0 0 34px rgba(224,150,46,0.30),
    0 0 60px rgba(196,88,42,0.22);
  animation: breathe 5.5s ease-in-out infinite;
}
.neon--rust {
  color: #FFD0A6;
  text-shadow:
    0 0 4px rgba(196,88,42,0.6),
    0 0 16px rgba(196,88,42,0.45),
    0 0 40px rgba(196,88,42,0.28);
}
@keyframes breathe {
  0%, 100% { text-shadow:
    0 0 4px rgba(224,150,46,0.45),
    0 0 12px rgba(224,150,46,0.32),
    0 0 28px rgba(224,150,46,0.20),
    0 0 48px rgba(196,88,42,0.14); }
  50% { text-shadow:
    0 0 6px rgba(224,150,46,0.7),
    0 0 20px rgba(224,150,46,0.55),
    0 0 46px rgba(224,150,46,0.38),
    0 0 80px rgba(196,88,42,0.30); }
}

/* ============================================================
   FACEPLATE — the core construction: a cream panel screwed
   onto the walnut, exactly like the plugins.
   ============================================================ */
.faceplate {
  position: relative;
  background:
    linear-gradient(180deg, var(--face) 0%, var(--face-shade) 100%);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 6px rgba(58,44,30,0.18),
    0 18px 40px -18px rgba(0,0,0,0.7);
}
.faceplate h1, .faceplate h2, .faceplate h3 { color: var(--ink); }
.faceplate p { color: var(--ink-soft); }
/* corner screws */
.faceplate::before, .faceplate::after,
.faceplate > .screw-tl, .faceplate > .screw-tr { content: ""; }
.faceplate .screws { position: absolute; inset: 0; pointer-events: none; }
.faceplate .screws span {
  position: absolute; width: 13px; height: 13px; border-radius: 50%;
  background: var(--screw);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.4);
}
.faceplate .screws span::after {
  content: ""; position: absolute; inset: 3px; border-top: 1.5px solid rgba(20,14,10,0.6);
  transform: rotate(35deg);
}
.faceplate .screws span:nth-child(1) { top: 12px; left: 12px; }
.faceplate .screws span:nth-child(2) { top: 12px; right: 12px; }
.faceplate .screws span:nth-child(3) { bottom: 12px; left: 12px; }
.faceplate .screws span:nth-child(4) { bottom: 12px; right: 12px; }

/* ============================================================
   BUTTONS — pill with a pilot lamp, from the plugin UI
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700;
  padding: 0.85em 1.5em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--amber), #c97d1f);
  color: #241a10;
  box-shadow: 0 0 0 1px rgba(255,210,140,0.35) inset, 0 8px 20px -8px rgba(224,150,46,0.7);
}
.btn-primary:hover { color: #241a10; box-shadow: 0 0 22px -2px rgba(224,150,46,0.65), 0 8px 20px -8px rgba(224,150,46,0.8); }
.btn-primary .lamp { box-shadow: 0 0 8px 2px rgba(255,220,150,0.9); background: #fff3d6; }
.btn-ghost {
  background: transparent; color: var(--cream-text);
  border-color: var(--cream-line);
}
.btn-ghost:hover { color: var(--amber); border-color: var(--amber); }
.btn-ink { background: var(--ink); color: var(--cream-text); }
.btn-ink:hover { color: var(--amber); }
/* ghost buttons sitting on a cream faceplate need dark ink, not cream */
.faceplate .btn-ghost { color: var(--ink); border-color: rgba(58,44,30,0.4); }
.faceplate .btn-ghost:hover { color: var(--rust); border-color: var(--rust); background: rgba(58,44,30,0.05); }
.lamp {
  width: 8px; height: 8px; border-radius: 50%; background: var(--amber);
  display: inline-block; flex: none;
  box-shadow: 0 0 6px 1px rgba(224,150,46,0.7);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(28,21,16,0.96), rgba(28,21,16,0.82));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.nav-brand img { height: 40px; width: auto; filter: drop-shadow(0 0 10px rgba(224,150,46,0.25)); }
.nav-brand .wordmark { font-family: var(--display); font-size: 1.15rem; color: var(--cream-text); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cream-text); opacity: 0.78;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--amber); }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream-text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  /* logo dead centre, hamburger hard right */
  .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav-brand { grid-column: 2; justify-self: center; }
  .nav-toggle { grid-column: 3; justify-self: end; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--hardware); border-bottom: 1px solid var(--cream-line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.95rem var(--gutter); width: 100%; border-top: 1px solid var(--cream-line); }
  .nav-brand .wordmark { font-size: 1rem; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.hero-mark { max-width: 500px; margin: 0 auto 1.4rem; }
.hero-mark img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 0 28px rgba(224,150,46,0.16));
}
@media (max-width: 600px) { .hero-mark { max-width: 320px; } }
.hero h1 { margin-bottom: 0.4rem; }
.hero .tagline { font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--amber); margin-bottom: 1.6rem; }
.hero .lede { max-width: 620px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(242,233,212,0.55); margin-top: 1.6rem;
}

/* scope line — ambient 70s waveform under the hero */
.scopeline { width: 100%; height: 90px; margin-top: 2.4rem; opacity: 0.8; }

/* ============================================================
   CONSOLE ROWS — the anti-grid product showcase.
   Each plugin is a full-width band, alternating sides.
   ============================================================ */
.console-row { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--cream-line); }
.console-row .row-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.console-row:nth-child(even) .row-media { order: 2; }
.console-row .row-kicker { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); margin-bottom: 0.7rem; }
.console-row .h-plugin { margin-bottom: 0.8rem; }
.console-row .row-desc { color: rgba(242,233,212,0.82); margin-bottom: 1.3rem; }
.usp-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.55rem; }
.usp-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: rgba(242,233,212,0.85); }
.usp-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 7px rgba(224,150,46,0.6); }
.row-actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.price-tag { font-family: var(--mono); }
.price-tag .now { color: var(--amber); font-size: 1.25rem; font-weight: 700; }
.price-tag .was { color: rgba(242,233,212,0.45); text-decoration: line-through; margin-left: 0.5em; font-size: 0.9rem; }
.price-tag .intro { display: block; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-top: 2px; }

@media (max-width: 760px) {
  .console-row .row-grid { grid-template-columns: 1fr; }
  .console-row:nth-child(even) .row-media { order: 0; }
}

/* ============================================================
   RENDER SLOT — elegant placeholder until real plugin
   screenshots drop in. Swap the inner markup for an <img>.
   ============================================================ */
.render {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #2e2218, var(--scope-bg) 75%);
  border: 1px solid var(--hardware-hi);
  display: block; text-align: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(224,150,46,0.25);
}
.render img { width: 100%; height: auto; display: block; }
.render-ph { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.render .render-ph { padding: 1.5rem; }
.render .render-ph .pname { font-family: var(--display); font-size: clamp(1.6rem,4vw,2.4rem); color: #FBE3B0; text-shadow: 0 0 22px rgba(224,150,46,0.4); }
.render .render-ph .ptype { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(242,233,212,0.5); margin-top: 0.5rem; }
.render .render-ph .note { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-top: 1.4rem; opacity: 0.8; }
/* amber halo comes from the .render box-shadow above */

/* ============================================================
   "WE SHOW OUR WORK" — measurement band
   ============================================================ */
.measure { border-top: 1px solid var(--cream-line); }
.measure-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.spec-readout {
  font-family: var(--mono); font-size: 0.82rem; color: rgba(242,233,212,0.8);
  background: var(--scope-bg); border: 1px solid var(--hardware-hi); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; line-height: 1.9;
}
.spec-readout .k { color: var(--amber); }
.spec-readout .v { color: var(--cream-text); }
.spec-readout .c { color: rgba(242,233,212,0.4); }
@media (max-width: 760px) { .measure-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BUNDLE CALLOUT
   ============================================================ */
.bundle-cta { text-align: center; }
.bundle-cta .h-section { margin-bottom: 0.8rem; }
.bundle-cta .pedals { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); margin-bottom: 1.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--cream-line); padding-block: 3rem 2rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }
.footer-brand img { height: 54px; width: auto; margin-bottom: 0.6rem; }
.footer-brand p { max-width: 280px; font-size: 0.9rem; color: rgba(242,233,212,0.6); }
.footer-col h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0 0 0.9rem; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(242,233,212,0.72); font-size: 0.9rem; }
.footer-col a:hover { color: var(--amber); }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--cream-line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(242,233,212,0.45); }
@media (max-width: 640px) {
  .footer-brand { width: 100%; text-align: center; }
  .footer-brand img { margin-left: auto; margin-right: auto; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem,4vw,3rem); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; }
.product-hero .h-plugin { margin-bottom: 0.5rem; }
.product-hero .ptype-line { font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; color: var(--amber); margin-bottom: 1.3rem; }
@media (max-width: 760px) { .product-hero-grid { grid-template-columns: 1fr; } }

.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature-cards .faceplate { padding: 1.3rem 1.4rem; }
.feature-cards h3 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-cards p { font-size: 0.9rem; margin: 0; }

.specs-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.85rem; }
.specs-table th, .specs-table td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--cream-line); vertical-align: top; }
.specs-table th { color: var(--amber); font-weight: 400; width: 34%; white-space: nowrap; }
.specs-table td { color: rgba(242,233,212,0.85); }

/* under-the-hood disclosure — echoes the plugin's hidden panels */
.under-hood { border: 1px solid var(--hardware-hi); border-radius: var(--radius); overflow: hidden; background: rgba(42,32,26,0.5); }
.under-hood summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); display: flex; align-items: center; gap: 0.7rem; }
.under-hood summary::-webkit-details-marker { display: none; }
.under-hood summary .lamp { transition: box-shadow .2s; }
.under-hood[open] summary { border-bottom: 1px solid var(--hardware-hi); }
.under-hood .hood-body { padding: 1.4rem; color: rgba(242,233,212,0.8); font-size: 0.95rem; }
.faq-stack { display: grid; gap: 0.7rem; }
.faq-stack .under-hood summary { text-transform: none; font-size: 0.92rem; letter-spacing: 0.02em; }
.faq-stack .hood-body p { margin: 0; }

/* audio demo placeholder */
.demo-slot {
  border: 1px dashed var(--hardware-hi); border-radius: var(--radius);
  padding: 1.6rem; text-align: center; background: rgba(28,21,16,0.5);
}
.demo-slot .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.demo-slot p { font-size: 0.85rem; color: rgba(242,233,212,0.6); margin: 0.6rem 0 0; }

/* ============================================================
   UTILITY
   ============================================================ */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--cream-line); border: 0; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
