/* RiffCatch site. Every color, size and radius lives in :root, so a restyle
   starts and mostly ends here. System fonts only, no external requests. */

:root {
  color-scheme: light dark;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #0f1115;
  --ink-2: #555a65;
  --line: #e0e3e8;
  --string: #a3a8b1;
  --accent: #d63a2c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-hero: clamp(44px, 10.4vw, 84px);
  --t-title: clamp(32px, 6vw, 44px);
  --t-lead: 20px;
  --t-body: 17px;
  --t-small: 15px;

  --radius: 20px;
  --wrap: 1080px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e10;
    --surface: #17191c;
    --ink: #f2f3f5;
    --ink-2: #a2a7b0;
    --line: #2a2d32;
    --string: #4b5058;
    --accent: #ff5443;
  }
}

@media (min-width: 760px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: var(--t-body)/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.top nav { display: flex; gap: 4px; margin-right: -10px; }

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: var(--t-small);
  color: var(--ink-2);
  text-decoration: none;
}

.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Hero */

.hero { padding-top: 48px; }

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 11ch;
}

.lede {
  margin: 24px 0 0;
  max-width: 34em;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

.lede strong { color: var(--ink); font-weight: 600; }

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 32px 0 0;
  font-size: var(--t-small);
  color: var(--ink-2);
}

.status strong { color: var(--ink); font-weight: 600; }

/* Six strings, high E on top. The A string is the plucked one. */

.strings {
  display: block;
  width: 100%;
  height: 112px;
  margin: 56px 0 0;
}

.strings line, .strings path { fill: none; stroke: var(--string); }
.strings .plucked { stroke: var(--accent); stroke-width: 2.5; }

@media (min-width: 760px) {
  .hero { padding-top: 96px; }
  .strings { height: 160px; margin-top: 72px; }
}

/* Sections */

.section { padding-top: 72px; }

/* The strings already separate the hero from the features. */
.strings + .section { padding-top: 40px; }

.section > h2, .section-head h2 {
  font-size: var(--t-title);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .section { padding-top: 112px; }
  .strings + .section { padding-top: 56px; }
}

/* Features */

.features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature svg .fill { fill: var(--accent); stroke: none; }

.feature h3 {
  margin: 20px 0 8px;
  font-size: var(--t-lead);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.feature p { margin: 0; }

.feature .meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feature { padding: 32px; }
}

/* Pro */

.pro {
  display: grid;
  gap: 32px;
}

.plans {
  display: grid;
  gap: 12px;
}

.plan {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-lead);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.plan h3 span {
  font-family: var(--font);
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
}

.plan ul { margin: 16px 0 0; padding: 0; list-style: none; }

.plan li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-top: 1px solid var(--line);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.section-head .fine {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: var(--t-small);
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 16px; }
  .plan { padding: 32px; }
}

@media (min-width: 1000px) {
  .pro { grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .pro .section-head { position: sticky; top: 32px; }
}

/* Privacy band */

.privacy-band { display: grid; gap: 24px; }

/* Plain labels, not buttons: a struck-through dot marks each "No …". */
.nos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.nos li { display: inline-flex; align-items: center; gap: 8px; }

.nos li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
  background: linear-gradient(135deg, transparent 44%, var(--ink-2) 44%, var(--ink-2) 56%, transparent 56%);
}

.more { margin: 0; font-weight: 600; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }

/* Long-form pages: privacy, support, 404 */

.doc { max-width: 680px; padding-top: 48px; }

.doc h1 {
  font-size: var(--t-title);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.doc .lede { font-size: var(--t-lead); }

.doc h2 {
  margin: 48px 0 8px;
  font-size: var(--t-lead);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.doc p { margin: 12px 0 0; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin: 6px 0; }

.summary {
  margin: 32px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.summary p:first-child { margin-top: 0; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin: 24px 0 0;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { opacity: 0.88; }

.doc .strings { height: 112px; margin-top: 40px; }

@media (min-width: 760px) {
  .doc { padding-top: 80px; }
}

/* Footer */

.foot {
  display: grid;
  gap: 16px;
  margin-top: 96px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  color: var(--ink-2);
}

.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .foot { grid-template-columns: 1fr auto; align-items: center; margin-top: 128px; }
}
