:root {
  --bg: #111317;
  --header: #0a0b0d;
  --panel: #1a1d22;
  --edge: #2a2f37;
  --accent: #e3a65a;
  --text: #e9ebee;
  --body: #c5cad1;
  --muted: #8a919b;
  --control: #22262c;
  --track: #3a4048;
  --max: 1180px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
html.auth-pending body { visibility: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 12% -10%, rgba(227, 166, 90, 0.07), transparent 55%),
    radial-gradient(900px 420px at 90% 8%, rgba(90, 130, 180, 0.05), transparent 50%),
    var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--header);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}
.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.7rem 1.25rem;
  background: rgba(10, 11, 13, 0.94);
  border-bottom: 1px solid var(--edge);
}
.header-start {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand { display: flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.brand img { height: 36px; width: auto; }
.header-user {
  display: flex;
  align-items: center;
  gap: 0.55rem 0.75rem;
  min-width: 0;
}
.header-user[hidden] { display: none !important; }
.user-menu { position: relative; min-width: 0; }
.header-user .nav-email {
  max-width: min(18rem, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.header-user .nav-email:hover,
.header-user .nav-email[aria-expanded="true"] { color: var(--accent); }
.user-menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 30;
  min-width: 12rem;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 0.3rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.user-menu-panel[hidden] { display: none !important; }
.user-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.user-menu-panel button:hover { background: rgba(227, 166, 90, 0.12); color: var(--accent); }
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.pw-gate[hidden] { display: none !important; }
.pw-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(6, 7, 9, 0.72);
  cursor: pointer;
}
.pw-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pw-card h2 { margin: 0 0 0.45rem; font-size: 1.45rem; color: var(--text); }
.pw-card p { margin: 0 0 1.1rem; color: var(--muted); font-size: 0.98rem; }
.pw-card .field { display: grid; gap: 0.35rem; margin: 0 0 0.9rem; }
.pw-card .field span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.pw-card .field input {
  width: 100%;
  background: var(--control);
  border: 1px solid var(--edge);
  border-radius: 4px;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}
.pw-card .field input:focus { outline: none; border-color: var(--accent); }
.pw-card .pw-error { margin: 0 0 0.7rem; color: #ff6b57; font-size: 0.92rem; }
.pw-card .pw-ok { margin: 0 0 0.7rem; color: var(--accent); font-size: 0.92rem; }
.pw-submit { width: 100%; text-align: center; }
body.pw-open { overflow: hidden; }
.btn-text {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn-text:hover { color: var(--text); }
nav { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; align-items: center; min-width: 0; max-width: 100%; flex: 0 1 auto; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav .nav-account {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--header);
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #f0c07a; color: var(--header); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--edge);
}
.btn.ghost:hover { border-color: var(--accent); }
.btn.small { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
main { padding-bottom: 3rem; }
.hero { padding: 3.4rem 0 1.6rem; }
.hero-brand {
  display: block;
  height: clamp(52px, 8vw, 72px);
  width: auto;
  margin: 0 0 1.4rem;
  animation: rise 0.7s ease;
}
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 2.8rem 0 2.2rem;
}
.hero-copy h1,
.hero-copy .lede,
.hero-copy .actions { animation: rise 0.75s ease; }
.hero-copy h1 { animation-delay: 0.06s; }
.hero-copy .lede { animation-delay: 0.12s; }
.hero-copy .actions { animation-delay: 0.18s; }
.hero-visual {
  animation: rise 0.9s ease;
  animation-delay: 0.1s;
}
.hero-visual .forge {
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes soft-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}
.coming-soon-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1000px 480px at 50% -15%, rgba(227, 166, 90, 0.14), transparent 55%),
    radial-gradient(700px 360px at 80% 90%, rgba(90, 130, 180, 0.06), transparent 50%),
    var(--bg);
}
.coming-soon {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 1.35rem;
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}
.coming-soon-logo {
  height: clamp(56px, 10vw, 88px);
  width: auto;
  animation: rise 0.85s ease both;
}
.coming-soon-msg {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  animation: rise 0.9s ease both 0.12s, soft-pulse 3.6s ease-in-out 1.1s infinite;
}
.gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.gate[hidden] { display: none !important; }
.gate-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(6, 7, 9, 0.72);
  cursor: pointer;
  animation: rise 0.35s ease both;
}
.gate .auth-card {
  position: relative;
  z-index: 1;
  animation: rise 0.4s ease both;
}
body.gate-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .hero-brand, .hero-copy .kicker, .hero-copy h1, .hero-copy .lede, .hero-copy .actions, .hero-visual,
  .ui-canvas > *, .coming-soon-logo, .coming-soon-msg, .gate-backdrop, .gate .auth-card {
    animation: none !important;
  }
}
.kicker {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--display); color: var(--text); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin: 0 0 0.9rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.35rem; letter-spacing: 0; font-family: var(--font); }
.lede { font-size: 1.15rem; max-width: 40rem; margin: 0 0 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.55rem 0.7rem; margin: 0 0 0.4rem; }
.price s { color: var(--muted); font-size: 1.05rem; }
.price strong { color: var(--text); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.tag {
  background: var(--accent);
  color: var(--header);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.42rem;
  border-radius: 3px;
}
.fine { color: var(--muted); font-size: 0.92rem; margin: 0.2rem 0 0; }

section { padding: 2.4rem 0; }
.rule { border-top: 1px solid var(--edge); }

.offer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: end;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.panel p { margin: 0.35rem 0 0; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.facts h3 { margin-bottom: 0.3rem; }
.facts p { margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps article {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; }

.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td {
  text-align: left;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid var(--edge);
  vertical-align: top;
}
.specs th { color: var(--text); font-weight: 650; width: 34%; }

/* Catalog split: list | detail (matches the app product line) */
.catalog {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  min-height: 640px;
}
.catalog-list {
  border-right: 1px solid var(--edge);
  background: #14171c;
  max-height: 78vh;
  overflow: auto;
}
.catalog-list h2 {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 0.85rem 1rem 0.55rem;
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: #14171c;
  border-bottom: 1px solid transparent;
}
.catalog-list h2:not(:first-child) {
  margin-top: 0.35rem;
  border-top: 1px solid var(--edge);
}
.plist {
  list-style: none;
  margin: 0;
  padding: 0 0 0.6rem;
}
.plist button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(42, 47, 55, 0.55);
  color: var(--body);
  padding: 0.75rem 1rem;
  cursor: pointer;
  display: grid;
  gap: 0.15rem;
}
.plist button:hover { background: rgba(227, 166, 90, 0.06); }
.plist button[aria-current="true"] {
  background: rgba(227, 166, 90, 0.12);
  box-shadow: inset 3px 0 0 var(--accent);
}
.plist .name { color: var(--text); font-weight: 700; font-size: 0.98rem; }
.plist .meta { color: var(--muted); font-size: 0.82rem; }

.catalog-detail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}
.ui-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  background: var(--bg);
}
.ui-chrome {
  height: 64px;
  flex: 0 0 64px;
  background: var(--header);
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.1rem;
}
.ui-chrome img { height: 34px; width: auto; }
.ui-chrome .cat {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ui-chrome .title {
  margin: 0.1rem 0 0;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}
.ui-canvas {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 1.4rem 1rem 1rem;
  overflow: auto;
  background:
    radial-gradient(600px 280px at 50% 20%, rgba(227, 166, 90, 0.07), transparent 60%),
    var(--bg);
}
.ui-canvas > * {
  animation: rise 0.45s ease;
}
.detail-bar {
  border-top: 1px solid var(--edge);
  padding: 1rem 1.2rem 1.15rem;
  background: #14171c;
  display: grid;
  gap: 0.55rem;
}
.detail-bar .blurb { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 46rem; }
.detail-bar .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  align-items: center;
  justify-content: space-between;
}
.detail-bar .price strong { font-size: 1.45rem; }
.bundle-note { color: var(--accent); font-size: 0.82rem; font-weight: 700; }

/* Signal Forge: real editor renders (SignalForgeTemplates --site), one per tab. */
.forge-shot {
  position: relative;
  width: 100%;
  max-width: 1180px;
  aspect-ratio: var(--forge-ratio, 1180 / 580);
  border-radius: 6px;
  border: 1px solid var(--edge);
  overflow: hidden;
  background: var(--bg);
}
.owned-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  color: var(--text);
  font-weight: 600;
}
.owned-note::before {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid #e3a65a;
  border-bottom: 2px solid #e3a65a;
  transform: rotate(-45deg) translateY(-0.1rem);
  flex: none;
}
.owned-note[hidden] { display: none; }
.plist .meta.is-owned { color: #e3a65a; }
.forge-preview { width: 100%; max-width: 1180px; justify-self: stretch; }
.forge-hint {
  margin: 0.7rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.forge-hint strong { color: var(--text); font-weight: 600; }
.forge-player-hit { border-radius: 5px; }
.forge-player-hit.is-inviting { box-shadow: 0 0 0 1px rgba(227, 166, 90, 0.55); animation: forge-invite 2.4s ease-in-out infinite; }
@keyframes forge-invite {
  0%, 100% { box-shadow: 0 0 0 1px rgba(227, 166, 90, 0.55), 0 0 0 0 rgba(227, 166, 90, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(227, 166, 90, 0.8), 0 0 0 5px rgba(227, 166, 90, 0); }
}
@media (prefers-reduced-motion: reduce) { .forge-player-hit.is-inviting { animation: none; } }
.forge-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
}
.forge-shot img[hidden] { display: none; }
.forge-shot.is-static { pointer-events: none; }
.forge-hits { position: absolute; inset: 0; pointer-events: none; }
.forge-hit {
  position: absolute;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.forge-hit:hover { background: rgba(255, 255, 255, 0.04); }
.forge-hit:focus-visible { outline: 2px solid rgba(227, 166, 90, 0.7); outline-offset: -2px; }
.ui-canvas .forge-shot { justify-self: stretch; align-self: center; }
.product-stage:has(.forge-shot), .product-stage:has(.plugin-shot) { height: auto; min-height: 0; max-height: none; padding: 0.8rem; }

/* Every other product: the app's own window for that plugin (SignalForgeTemplates --site). */
.plugin-shot { display: grid; place-items: center; max-width: 100%; }
.plugin-shot img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(60vh, 500px);
  aspect-ratio: var(--ratio);
  border-radius: 6px;
  border: 1px solid var(--edge);
  background: var(--bg);
  pointer-events: none;
  user-select: none;
}

.product-top { padding: 1.1rem 0 0; }
.product-stage {
  height: 52vh;
  min-height: 380px;
  max-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(227, 166, 90, 0.08), transparent 60%),
    var(--bg);
  overflow: hidden;
}

.creed {
  margin: 0.85rem 0 0;
  max-width: 40rem;
  color: var(--text);
  font-size: 1.02rem;
}

.ask {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #14171c;
  display: grid;
  gap: 0.45rem;
}
.ask h2 { margin: 0; font-size: 1.25rem; }
.ask p { margin: 0; color: var(--muted); }
.ask form, .review-form { display: grid; gap: 0.65rem; }
.ask textarea, .review-form textarea, .review-form input[name="display"] {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0.7rem 0.8rem;
}
.ask textarea:focus, .review-form textarea:focus, .review-form input[name="display"]:focus {
  outline: 2px solid rgba(227, 166, 90, 0.45);
  border-color: var(--accent);
}
.reviews {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.35rem;
}
.reviews-score, .review-top, .review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}
.reviews-score strong { color: var(--text); font-size: 1.15rem; }
.reviews-score span, .reviews-empty { color: var(--muted); }
.stars, .star-pick { display: inline-flex; gap: 2px; align-items: center; }
.star, .star-pick button {
  width: 16px;
  height: 16px;
  color: #3a4048;
  display: inline-flex;
}
.star svg, .star-pick svg { width: 16px; height: 16px; fill: currentColor; }
.star.on, .star-pick button.on { color: var(--accent); }
.star-pick button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.star-pick svg { width: 22px; height: 22px; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.review-list li {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(42, 47, 55, 0.7);
}
.review-list p { margin: 0.35rem 0 0; color: var(--body); }
.review-list .who, .review-top time, .review-label, .review-error { color: var(--muted); font-size: 0.82rem; }
.review-error { color: #e07a5f; }
.plist .rating { color: var(--accent); }

footer {
  border-top: 1px solid var(--edge);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }

.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: 0 0 0.5rem; }

@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-visual { order: -1; }
}
@media (max-width: 860px) {
  .offer, .facts, .steps { grid-template-columns: 1fr 1fr; }
  .catalog {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .catalog-list {
    border-right: 0;
    border-bottom: 1px solid var(--edge);
    max-height: 240px;
  }
  .bundle-preview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bundle-preview .pedal { height: auto; aspect-ratio: 300 / 460; min-height: 0; }
}
@media (max-width: 720px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; }
  nav .btn { margin-top: 0.15rem; }
  .offer, .facts, .steps { grid-template-columns: 1fr; }
  .specs, .specs tbody, .specs tr, .specs th, .specs td { display: block; width: auto; }
  .specs th { padding-bottom: 0; }
  .ui-chrome { height: auto; flex-wrap: wrap; padding: 0.7rem 1rem; }
  .bundle-preview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bundle-preview .pedal { min-height: 0; }
}
