/* Layout: a navy "rack header" and hero holding the plugin window, then the
   signal chain as one vertical line of stages on the plugin's own sage green. */
:root {
  color-scheme: light;
  --navy: #222c45;
  --navy-soft: #36415e;
  --sage: #c9dbc0;
  --pad: #dfecd5;
  --pad-edge: #a9c09e;
  --cream: #f7edd0;
  --orange: #f07a1c;
  --teal: #1c8c9b;
  --violet: #8f7ee6;
  --ink-soft: #46516b;

  --display: "Unbounded", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sage);
  color: var(--navy);
  font: 500 1.0625rem/1.6 var(--body);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2 { font-family: var(--display); font-weight: 700; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.9rem); line-height: 1.15; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.25; }
h3 { font: 700 1.25rem/1.2 var(--body); }

/* ---- Header ---- */
.top { background: var(--navy); color: var(--cream); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; font-size: 0.95rem; font-weight: 600; }
.nav a { text-decoration: none; opacity: 0.85; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---- Hero ---- */
.hero { background: linear-gradient(var(--navy) 0, var(--navy) calc(100% - 7rem), var(--sage) calc(100% - 7rem)); color: var(--cream); overflow: hidden; }
.hero-text { max-width: 46rem; padding-block: 3rem 2.5rem; display: grid; gap: 1.25rem; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; font: 700 1rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; }
.badge { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--orange); color: var(--cream); font: 700 0.8rem/1 var(--body); letter-spacing: 0.04em; }
.lede { font-size: 1.15rem; max-width: 38rem; color: #e6dfc8; }
.formats { font: 400 0.85rem/1.4 var(--mono); color: #b9c3d6; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; }
.btn-buy { background: var(--orange); color: var(--navy); box-shadow: 0 3px 0 #b85a10; }
a.btn-buy:hover { background: #ff8a2c; }
a.btn-buy:active { transform: translateY(2px); box-shadow: 0 1px 0 #b85a10; }
.btn-buy.is-soon { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; opacity: 0.8; cursor: default; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: rgba(247, 237, 208, 0.12); }

.hero-shot { position: relative; }
.hero-shot img { position: relative; border-radius: clamp(10px, 2vw, 22px); box-shadow: 0 24px 50px rgba(20, 26, 44, 0.45); }
.ring { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 3.4; max-width: none; border: 3px solid rgba(247, 237, 208, 0.28); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); pointer-events: none; }

/* ---- Signal chain ---- */
.chain { padding-block: 4.5rem 3.5rem; }
.section-intro { margin-top: 0.75rem; max-width: 38rem; color: var(--ink-soft); }
.stages { margin-top: 2.5rem; display: grid; gap: 1rem; }
.stage { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2rem; padding: 1.6rem 1.75rem; background: var(--pad); border: 1px solid var(--pad-edge); border-radius: 20px; position: relative; }
.stage + .stage::before { content: ""; position: absolute; left: 2.35rem; top: -1rem; height: 1rem; border-left: 3px solid var(--navy); margin-top: -1px; }
.stage-name { display: flex; align-items: center; gap: 0.7rem; align-self: start; }
.dot { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--dot); border: 3px solid var(--navy); }
.stage-body { display: grid; gap: 1rem; min-width: 0; }
.stage-body p { max-width: 40rem; }

.values { display: flex; flex-wrap: wrap; gap: 0.5rem; font: 400 0.84rem/1.3 var(--mono); }
.values li { padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--navy); color: var(--cream); }
.values b { font-weight: 500; color: #ffb877; margin-right: 0.35em; }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.4rem 1.5rem; font-size: 0.98rem; color: var(--ink-soft); }
.types li { position: relative; padding-left: 1.4rem; }
.types li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c); border: 2px solid var(--navy); }
.types b { display: block; color: var(--navy); }

/* ---- Listen ---- */
.listen { padding-block: 1rem 3.5rem; }
.clips { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.clip { padding: 1.25rem; background: var(--pad); border: 1px solid var(--pad-edge); border-radius: 20px; display: grid; gap: 0.75rem; }
.clip-row { display: grid; gap: 0.3rem; }
.clip-label { font: 500 0.8rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }
.clip audio { width: 100%; }

/* ---- Specs ---- */
.specs { padding-block: 1rem 4rem; }
.spec-list { margin-top: 1.5rem; border-top: 2px solid var(--navy); }
.spec-list > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0.25rem 2rem; padding-block: 0.9rem; border-bottom: 1px solid var(--pad-edge); }
.spec-list dt { font: 500 0.84rem/1.9 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); }

/* ---- Buy + footer ---- */
.buy { background: var(--navy); color: var(--cream); padding-block: 3rem; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.buy p { margin-top: 0.5rem; color: #b9c3d6; }

.foot { background: var(--navy); color: #b9c3d6; border-top: 1px solid var(--navy-soft); padding-block: 1.75rem 2.5rem; font-size: 0.9rem; }
.foot-row { display: grid; gap: 0.6rem; }
.fine { font-size: 0.78rem; max-width: 46rem; opacity: 0.8; }

@media (max-width: 640px) {
  .stage, .spec-list > div { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 1.3rem 1.15rem; }
  .stage + .stage::before { left: 1.75rem; }
  .hero { background: linear-gradient(var(--navy) 0, var(--navy) calc(100% - 3rem), var(--sage) calc(100% - 3rem)); }
  .hero-text { padding-block: 2rem; }
  .nav { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---- Home page: one clickable product image ---- */
.home { padding-block: 3rem 4rem; }
.product { display: grid; gap: 1.1rem; max-width: 52rem; margin-inline: auto; text-decoration: none; }
.product img { border-radius: clamp(10px, 2vw, 22px); box-shadow: 0 16px 36px rgba(34, 44, 69, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.product:hover img { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(34, 44, 69, 0.34); }
.product-name { display: flex; align-items: center; justify-content: center; gap: 0.7rem; font: 700 1rem/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .product img { transition: none; } .product:hover img { transform: none; } }
