/* HouseRig Sound site. Dark, roomy, image-led: big screenshots of the real app, big type, the app's
   teal for anything you can press or that's ours. Pages are written by tools/build_site.py. */

:root {
  --bg: #0b1012;
  --bg2: #0e1518;
  --panel: #121b1f;
  --panel2: #17232a;
  --rule: #22313a;
  --rule2: #2d3f48;
  --paper: #eef6f4;
  --text: #cfdedc;
  --mid: #9cb0ae;
  --dim: #6f8488;
  --accent: #2bb8a6;
  --accent-hover: #5fd3c3;
  --accent-soft: rgba(43, 184, 166, .14);
  --peak: #f07d5b;
  --ink: #06100f;
  --radius: 14px;

  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Consolas, monospace;

  /* names the account and legal pages use */
  --surface: var(--panel);
  --surface2: var(--panel2);
  --border: var(--rule);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); color: var(--paper); margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0 0 16px; }
code { font: 0.88em var(--mono); background: var(--panel2); border: 1px solid var(--rule); border-radius: 6px; padding: 1px 6px; }
.eyebrow, .label {
  font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--mid); max-width: 36em; }
.small, .fine { font-size: 14px; color: var(--dim); }
.fine { margin: 14px 0 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 18, .82); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(34, 49, 58, .7);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
.top .logo img { height: 34px; width: auto; }
.menu { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.menu a { color: var(--mid); text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a.here { color: var(--paper); }
.menu .sep { display: none; }
.top .btn { margin-left: 4px; }

/* ── buttons ── */
.btn {
  display: inline-block; text-align: center; line-height: 1.25;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 600 16px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--paper); border-color: #3e5560; }
.btn.ghost:hover { border-color: var(--mid); color: var(--paper); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ── sections ── */
section { padding: 128px 0; }
section + section { border-top: 1px solid var(--rule); }
.intro { max-width: 40em; margin-bottom: 56px; }
.intro h2 { margin-bottom: 20px; }
.intro p { color: var(--mid); font-size: 19px; }

/* hero */
.hero { padding: 80px 0 0; overflow: hidden; }
.hero h1 { max-width: 17ch; font-size: clamp(40px, 5.4vw, 72px); }
.hero .lede { margin-top: 28px; }
.hero-shot { margin: 64px auto 0; max-width: 1280px; padding: 0 28px; }

/* framed screenshot */
.frame {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--rule2); background: var(--panel);
  box-shadow: 0 50px 120px -40px rgba(43, 184, 166, .32), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.frame img { width: 100%; }
figcaption, .caption { font-size: 14px; color: var(--dim); margin-top: 16px; }
.hero-shot figcaption { text-align: center; }

/* the speed result */
.speed { background: linear-gradient(180deg, var(--bg2), var(--bg)); }
.speed-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.big-stat { font: 700 clamp(64px, 9vw, 120px)/0.95 var(--display); letter-spacing: -0.04em; color: var(--paper); margin: 0 0 18px; }
.big-stat small { display: block; font: 500 20px/1.4 var(--body); letter-spacing: 0; color: var(--mid); margin-top: 10px; }
.speed p { color: var(--mid); }
.bars { display: grid; gap: 26px; }
.bar-row .bar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text); margin-bottom: 9px; }
.bar-row .bar-label .num { color: var(--paper); font-weight: 600; }
.bar-track { height: 14px; border-radius: 99px; background: var(--panel2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); min-width: 6px; }
.bar-row.theirs .bar-fill { background: #50636a; }
.bar-row.ours1 .bar-fill { background: #1f7f73; }
.bars-note { font-size: 14px; color: var(--dim); margin-top: 22px; }

/* feature rows with a large picture */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature + .feature { margin-top: 120px; }
.feature-text h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 18px; }
.feature-text p { color: var(--mid); }
.feature-text ul { padding: 0; margin: 22px 0 0; list-style: none; }
.feature-text li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--text); font-size: 16px; }

/* the rest of the features: a quiet grid of short notes */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.notes > div { padding: 28px 0 8px; border-top: 1px solid var(--rule); }
.notes h3 { margin-bottom: 10px; }
.notes p { color: var(--mid); font-size: 16px; }

/* listen */
.listen { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.listen .intro { margin-bottom: 0; }

/* price */
.price-card {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: 56px;
}
.price { font: 700 clamp(56px, 7vw, 88px)/1 var(--display); letter-spacing: -0.04em; color: var(--paper); }
.price small { font-size: 0.26em; letter-spacing: 0; color: var(--mid); font-weight: 500; margin-left: 8px; }
.price-card ul { margin: 22px 0 0; padding: 0; list-style: none; color: var(--mid); }
.price-card li { padding: 4px 0; }
.price-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin: 0 12px 2px 0; }
.price-card .cta { margin: 0; flex-direction: column; }

/* ── inner pages (download, hear it, purchase, help) ── */
.page { max-width: 860px; margin: 0 auto; padding: 88px 28px 120px; }
.page.wide { max-width: 1180px; }
.page > h1 { font-size: clamp(40px, 5.5vw, 64px); margin-bottom: 22px; }
.page > .lede { margin-bottom: 48px; }
.page h2 { font-size: clamp(26px, 3vw, 34px); margin: 72px 0 18px; }
.page h3 { margin: 40px 0 10px; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }

.version {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 32px; margin: 8px 0 32px;
}
.version b { color: var(--paper); font-size: 19px; }
.version .meta { color: var(--mid); font-size: 15px; }

table.facts { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 16px; }
table.facts td, table.facts th { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.facts th { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
table.facts td:first-child { color: var(--mid); width: 30%; }
table.facts.data td:first-child { width: auto; }
table.facts .num { color: var(--paper); }
table.facts .ours { color: var(--accent); font-weight: 600; }

.faq h3 { margin-top: 48px; }
.faq h3:first-child { margin-top: 0; }
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); padding: 36px; margin: 28px 0; }

/* the sound player (hear.js) */
.player { border: 1px solid var(--rule); background: var(--panel); border-radius: 18px; padding: 32px; margin: 8px 0 18px; }
.row-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font: 15px var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--rule2);
  border-radius: 99px; padding: 8px 16px; cursor: pointer;
}
.chip:hover { border-color: var(--mid); }
.chip.on { color: var(--ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }
[data-riffs] .chip { font-weight: 600; }
.transport { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.progress { flex: 1; min-width: 160px; height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); }
.now { font-size: 14px; color: var(--mid); }
.demo-note { color: var(--mid); margin: 6px 0 0; font-size: 15px; }

/* account, thank you, credits, privacy, terms */
.doc { max-width: 780px; margin: 0 auto; padding: 72px 28px 110px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 20px; }
.doc h2 { font-size: 26px; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--text); }
.doc .note { border: 1px solid var(--accent); border-radius: 10px; padding: 14px 18px; }
.doc .box { border-radius: var(--radius); }
.doc .box input { border-radius: 8px; }

footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--mid); text-decoration: none; }
footer a:hover { color: var(--paper); }

@media (max-width: 980px) {
  .speed-grid, .feature, .feature.flip { grid-template-columns: 1fr; gap: 44px; }
  .feature.flip .feature-text { order: 0; }
  .notes { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: 1fr; padding: 40px; }
  .price-card .cta { flex-direction: row; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .hero-shot { padding: 0 20px; }
  .top .wrap { height: auto; flex-wrap: wrap; gap: 10px 18px; padding-top: 12px; padding-bottom: 10px; }
  .menu { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; padding-bottom: 4px; }
  .top .btn { margin-left: auto; }
  section { padding: 84px 0; }
  .hero { padding-top: 56px; }
  .hero-shot { margin-top: 48px; }
  .notes { grid-template-columns: 1fr; }
  .feature + .feature { margin-top: 84px; }
  .price-card { padding: 30px 24px; }
  .page { padding: 56px 20px 90px; }
  table.facts td:first-child { width: 38%; }
  table.facts.data { font-size: 13px; }
  table.facts.data td, table.facts.data th { padding: 10px 8px 10px 0; }
  table.facts.data th { font-size: 10px; letter-spacing: .05em; }
  table.facts.data td:first-child { width: auto; }
}
