/* Gaard Audio website. Colours follow the VariBlend plugin skin (Source/ui/Widgets.h). */

:root {
  --bg: #1f2023;
  --bg-raised: #2a2b2f;
  --header: #252629;
  --panel: #323337;
  --panel-border: #46474c;
  --control: #242528;
  --control-border: #4b4c52;
  --divider: rgba(255, 255, 255, 0.12);
  --text: #ece8e2;
  --text-dim: #b7b3ad;
  --text-faint: #8a8782;
  --text-dark: #2a2624;
  --accent: #bfe3a6;
  --accent-hover: #d2edbf;
  --segment-light: #d8ccbf;
  --led-on: #9fcf76;
  --led-warm: #e2c463;
  --led-hot: #e5644f;
  --error: #e5644f;

  /* Effect sections: panel / accent */
  --drive: #7a5046;   --drive-accent: #e9a07a;
  --cab: #3d5266;     --cab-accent: #8db3d3;
  --comp: #55644e;    --comp-accent: #b8d29c;
  --delay: #3c5a5b;   --delay-accent: #86c2bd;
  --reverb: #5c4457;  --reverb-accent: #cc92b4;
  --neutral-accent: #d9d5cf;

  --radius: 10px;
  --radius-small: 6px;
  --page-width: 1160px;
  --gutter: 16px;
  --font: system-ui, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::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: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--page-width) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--text-dim); max-width: 38em; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.small { font-size: 0.9rem; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--text-dark); padding: 8px 14px; border-radius: var(--radius-small); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 46px;
  padding: 0.6em 1.4em;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: #38393e;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button:hover { background: #424349; color: var(--text); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--text-dark); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--text-dark); }
.button-ghost { background: transparent; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(37, 38, 41, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--text); }
/* Wide logo (1000 x 593): 24 px tall gives about the same visual weight as the old 30 px square mark. */
.brand-mark { width: auto; height: 24px; flex-shrink: 0; }
.brand-name { font-weight: 700; letter-spacing: 0.2em; font-size: 1.02rem; }
.brand-name span { font-weight: 400; color: var(--text-dim); margin-left: 0.35em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-small);
  font-size: 0.98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.site-nav .button { margin-left: 8px; min-height: 40px; padding: 0.4em 1.1em; color: var(--text-dark); }
.site-nav .button:hover { background: var(--accent-hover); color: var(--text-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-small);
  background: var(--control);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 20px;
    background: var(--header);
    border-bottom: 1px solid var(--divider);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; font-size: 1.05rem; }
  .site-nav .button { margin: 8px 0 0; min-height: 46px; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 112px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* ---------- Hero ---------- */

.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background:
    radial-gradient(40% 55% at 20% 30%, rgba(233, 160, 122, 0.13), transparent 70%),
    radial-gradient(35% 50% at 55% 20%, rgba(134, 194, 189, 0.11), transparent 70%),
    radial-gradient(35% 50% at 85% 35%, rgba(204, 146, 180, 0.11), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero h1 { max-width: 14em; }
.hero .lead { margin-bottom: 1.8rem; }

.price-tag { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text-dim); font-size: 0.95rem; }
.price-tag strong { color: var(--text); font-size: 1.5rem; font-weight: 650; }

.screenshot {
  margin-top: clamp(40px, 6vw, 64px);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4);
  background: var(--bg-raised);
}
.screenshot img { width: 100%; height: auto; }

/* ---------- Brand home ---------- */

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  overflow: hidden;
}
.product-card .screenshot { margin-top: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
@media (max-width: 860px) { .product-card { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  color: var(--text-dim);
}
.tag-accent { border-color: rgba(191, 227, 166, 0.5); color: var(--accent); }

.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.story-word { font-size: clamp(2.6rem, 7vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 0.3em; }
.pronunciation { display: flex; align-items: baseline; gap: 14px; margin-bottom: 0.6em; }
.ipa { font-family: "Segoe UI", "Lucida Sans Unicode", "Arial Unicode MS", "Noto Sans", sans-serif; color: var(--text); font-size: 1.25rem; letter-spacing: 0.02em; }
.dim .ipa { font-size: inherit; color: inherit; }
.pos { font-style: italic; color: var(--text-faint); }

/* ---------- How it works ---------- */

.steps { counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-swatch { width: 40px; height: 4px; border-radius: 2px; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; }
.step p { color: var(--text-dim); margin: 0; }

/* Dynamics Map demo */
.map-demo { margin-top: clamp(36px, 5vw, 56px); padding: 0; overflow: hidden; }
.map-demo-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  padding: 18px clamp(18px, 3vw, 28px);
  border-bottom: 1px solid var(--divider);
}
.map-demo-head h3 { margin: 0; font-size: 1.15rem; }
.map-demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; }
@media (max-width: 760px) { .map-demo-body { grid-template-columns: 1fr; } }
.map-canvas-wrap { position: relative; padding: clamp(14px, 2.5vw, 24px); min-width: 0; }
.map-canvas-wrap canvas { width: 100%; height: auto; aspect-ratio: 16 / 7; }
@media (max-width: 600px) { .map-canvas-wrap canvas { aspect-ratio: 4 / 3; } }
.map-amounts { border-left: 1px solid var(--divider); padding: clamp(18px, 3vw, 24px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
@media (max-width: 760px) { .map-amounts { border-left: 0; border-top: 1px solid var(--divider); flex-direction: row; flex-wrap: wrap; } .map-amounts > * { flex: 1 1 140px; } }
.amount-label { display: flex; justify-content: space-between; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.amount-label span:last-child { color: var(--text-dim); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.amount-bar { height: 8px; border-radius: 4px; background: var(--control); overflow: hidden; border: 1px solid var(--control-border); }
.amount-bar i { display: block; height: 100%; width: 0; border-radius: 4px; }
.map-caption { min-height: 1.6em; color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.map-toggle { min-height: 36px; padding: 0.3em 1em; font-size: 0.9rem; }

/* ---------- Demos ---------- */

.demo-card { display: flex; flex-direction: column; gap: 14px; }
.demo-card h3 { margin: 0; }
.demo-card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }
.player { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.play-button {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--control-border);
  background: var(--control);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
}
.play-button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.play-button[disabled] { opacity: 0.45; cursor: not-allowed; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--control); border: 1px solid var(--control-border); cursor: pointer; position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.time { font-size: 0.85rem; color: var(--text-faint); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }

.segmented { display: inline-flex; background: var(--control); border: 1px solid var(--control-border); border-radius: var(--radius-small); padding: 2px; align-self: flex-start; }
.segmented button {
  font: inherit; font-size: 0.88rem; font-weight: 600;
  padding: 6px 14px;
  border: 0; border-radius: 4px;
  background: transparent; color: var(--text-dim);
  cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--segment-light); color: var(--text-dark); }
.segmented button[disabled] { cursor: not-allowed; }
.coming-soon { font-size: 0.85rem; color: var(--text-faint); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background:
    radial-gradient(60% 80% at 30% 40%, rgba(233, 160, 122, 0.16), transparent 70%),
    radial-gradient(60% 80% at 75% 60%, rgba(134, 194, 189, 0.14), transparent 70%),
    var(--panel);
  margin-bottom: 20px;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  border: 0; background: transparent; color: var(--text);
  font: inherit; text-align: center; padding: 20px;
  cursor: pointer;
}
.video-facade[disabled] { cursor: default; }
.video-facade .play-circle { width: 76px; height: 76px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.25); display: grid; place-items: center; }
.video-facade:hover:not([disabled]) .play-circle { background: var(--accent); color: var(--text-dark); }
.video-facade small { color: var(--text-dim); max-width: 32em; }

/* ---------- Feature modules ---------- */

.module {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  background: var(--panel);
}
.module h3 { font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.8em; display: flex; align-items: center; gap: 10px; }
.module h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--neutral-accent)); box-shadow: 0 0 10px var(--dot, transparent); }
.module p { color: var(--text-dim); margin: 0 0 0.8em; }
.module ul { margin: 0; padding-left: 1.1em; color: var(--text-dim); font-size: 0.95rem; }
.module li { margin-bottom: 0.25em; }
.module-drive  { background: linear-gradient(160deg, var(--drive), #5a3d36);   --dot: var(--drive-accent); }
.module-cab    { background: linear-gradient(160deg, var(--cab), #2f3f4f);     --dot: var(--cab-accent); }
.module-comp   { background: linear-gradient(160deg, var(--comp), #414d3c);    --dot: var(--comp-accent); }
.module-delay  { background: linear-gradient(160deg, var(--delay), #2d4546);   --dot: var(--delay-accent); }
.module-reverb { background: linear-gradient(160deg, var(--reverb), #463443);  --dot: var(--reverb-accent); }
.module-detector, .module-output, .module-curves { --dot: var(--accent); }

.chain {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 6px;
  margin-bottom: 32px;
  font-size: 0.9rem;
}
.chain span { padding: 5px 12px; border-radius: var(--radius-small); background: #38393e; border: 1px solid var(--control-border); white-space: nowrap; }
.chain b { color: var(--text-faint); font-weight: 400; }
.chain .c-drive { background: var(--drive); border-color: transparent; }
.chain .c-cab { background: var(--cab); border-color: transparent; }
.chain .c-comp { background: var(--comp); border-color: transparent; }
.chain .c-delay { background: var(--delay); border-color: transparent; }
.chain .c-reverb { background: var(--reverb); border-color: transparent; }

/* ---------- Specs, pricing, FAQ ---------- */

.specs { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.specs th { color: var(--text-faint); font-weight: 500; width: 40%; padding-right: 16px; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.buy-box { text-align: center; max-width: 560px; margin: 0 auto; }
.buy-box .price { font-size: clamp(3rem, 8vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 8px 0; }
.buy-box .price small { font-size: 1rem; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.checklist { list-style: none; padding: 0; margin: 24px 0 28px; text-align: left; display: inline-block; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 8px; color: var(--text-dim); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.buy-note { margin: 14px 0 12px; font-size: 0.95rem; color: var(--led-warm); min-height: 1.4em; }

.faq details { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--text-faint); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--text-dim); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--control);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-small);
  padding: 11px 12px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(191, 227, 166, 0.18); }
.field-hint { font-size: 0.85rem; color: var(--text-faint); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-size: 0.95rem; }
.form-status.ok { color: var(--accent); }
.form-status.error { color: var(--error); }

/* ---------- Legal pages ---------- */

.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-dim); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.3em; }
.legal .updated { color: var(--text-faint); font-size: 0.95rem; }
.legal .placeholder { background: rgba(226, 196, 99, 0.18); color: var(--led-warm); padding: 0 4px; border-radius: 3px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0 1.5em; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--divider); vertical-align: top; color: var(--text-dim); min-width: 140px; }
.legal th { color: var(--text); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--divider); background: var(--header); padding: 48px 0 32px; font-size: 0.93rem; color: var(--text-dim); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-faint); font-size: 0.85rem; }
.footer-legal p { margin: 0; }

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 600px) {
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal thead { display: none; }
  .legal tr { border-bottom: 1px solid var(--divider); padding: 10px 0; }
  .legal td { border: 0; padding: 4px 0; min-width: 0; }
  .legal td::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
  .legal td:first-child { color: var(--text); font-weight: 600; }
}
