/*
 * SoundClaw — the site.
 *
 * The look is meant to read as an instrument rather than a brochure: a strict
 * grid, hairline rules, monospace wherever a number or a label appears, and one
 * accent colour used about as often as a record light is on.
 *
 * The palette is the app's own dark theme, one shade deeper for the page
 * background so the panels sit on top of something rather than beside it.
 * Someone who downloads after reading this should recognise what opens.
 */

:root {
  --bg: #0b0c0e;
  --surface: #131417;
  --raised: #1b1d21;
  --line: #24272c;
  --line-soft: #191b1f;
  --text: #ecedef;
  --muted: #9a9ea6;
  --dim: #6b6f76;
  --accent: #e5484d;

  --shell: 1080px;
  --gutter: 24px;

  /* Space Grotesk for anything read as language; JetBrains Mono for anything
     read as data. Keeping that split honest is most of the "technical" feel —
     mono used decoratively just looks like a terminal costume. */
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

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

/* --------------------------------------------------------------------- bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
}

.bar-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bar-nav a:hover {
  color: var(--text);
}

@media (max-width: 620px) {
  .bar-nav a:not(.button) {
    display: none;
  }
}

/* ------------------------------------------------------------------ button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: filter 0.15s, transform 0.05s;
}
.button:hover {
  filter: brightness(1.08);
}
.button:active {
  transform: translateY(1px);
}

.button-small {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 8px;
  color: #fff !important;
}

.button-large {
  padding: 15px 30px;
  font-size: 17px;
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.button-outline:hover {
  filter: none;
  border-color: var(--muted);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.lede {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: 18px;
  color: var(--muted);
}

.cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 34px;
}

.cta-note {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}

/* ------------------------------------------------------------------- scope */

.scope-wrap {
  margin-top: 68px;
}

.scope {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 6.25% 100%,
    var(--surface);
  overflow: hidden;
}

#scope {
  display: block;
  width: 100%;
  height: 200px;
}

.scope-labels {
  position: absolute;
  inset: auto 14px 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  pointer-events: none;
}

/* ------------------------------------------------------------------- bands */

.band {
  /* Tight enough to read as an instrument panel rather than a brochure: the
     sections should feel like parts of one object, not separate pages. */
  padding: 76px 0;
  border-top: 1px solid var(--line-soft);
}

.band:first-of-type {
  border-top: none;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-lede {
  margin: 0 0 40px;
  max-width: 62ch;
  color: var(--muted);
}

.section-lede strong {
  color: var(--text);
  font-weight: 500;
}

/* ------------------------------------------------------------------ claims */

.claims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.claim {
  background: var(--bg);
  padding: 28px 26px;
}

.claim h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 500;
}

.claim p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------------- steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.steps li {
  display: flex;
  gap: 22px;
  background: var(--bg);
  padding: 26px 4px;
}

.step-n {
  flex: none;
  width: 30px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  padding-top: 3px;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 500;
}

.steps p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ------------------------------------------------------------------- specs */

.specs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.specs > div {
  background: var(--bg);
  padding: 20px 24px;
}

.specs dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.specs dd {
  margin: 6px 0 0;
  font-size: 16px;
}

/* ------------------------------------------------------------------- plans */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px 26px;
}

.plan-pro {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface));
}

.plan header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plan h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: 2px;
}

.price {
  margin: 0;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  /* Aligned digits: a price that shifts as it loads reads as unfinished. */
  font-variant-numeric: tabular-nums;
}

.plan ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  flex: 1;
  display: grid;
  gap: 11px;
  font-size: 15px;
  color: var(--muted);
}

.plan li {
  padding-left: 20px;
  position: relative;
}

.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--dim);
}

.plan li strong {
  color: var(--text);
  font-weight: 500;
}

.plan .limit {
  color: var(--dim);
}
.plan .limit::before {
  background: var(--accent);
}

.plan .button {
  margin-top: 24px;
}

.plan-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}

/* ---------------------------------------------------------------- download */

.band-download {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.download-inner .button {
  margin-top: 8px;
}

.fine {
  margin: 22px 0 0;
  max-width: 58ch;
  font-size: 13px;
  color: var(--dim);
}

.fine em {
  font-style: normal;
  font-family: var(--mono);
  color: var(--muted);
}

/* --------------------------------------------------------------------- faq */

.faq {
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  font-size: 17px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 19px;
  font-family: var(--mono);
  color: var(--dim);
}

.faq details[open] summary::after {
  content: '−';
  color: var(--accent);
}

.faq p {
  margin: 0 0 20px;
  max-width: 66ch;
  color: var(--muted);
}

.faq .warn {
  color: var(--dim);
  border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-left: 14px;
}

/* -------------------------------------------------------------------- foot */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  gap: 20px;
}

.foot a {
  color: var(--dim);
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}

/*
 * Which build is on offer. Written by the page from `download.json` rather than
 * typed into the markup, so the version and size are the ones being served.
 */
.build {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}

/*
 * A requirement attached to one Pro feature.
 *
 * In the list rather than only the FAQ on purpose: the list is what someone
 * reads before paying, and per-application capture is the one thing here that
 * an older Windows cannot do. Finding that out afterwards is a refund.
 */
.req {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--dim);
}
