@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Pedal-shop palette: seafoam bench, ink silkscreen, marigold enamel, and the app's
     three state lights (record red, play green, overdub amber) used only for state. */
  --paper: #dce9e2;
  --paper-deep: #c9ddd3;
  --ink: #14262a;
  --ink-soft: #3d5257;
  --enamel: #edb12e;
  --enamel-edge: #b9850f;
  --steel: #8fa1a5;
  --rec: #e0352b;
  --play: #1f9d58;
  --dub: #f2891b;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --measure: 36rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.75rem;
}
.skip:focus { left: 0.5rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.top-cta {
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 9vw, 7.25rem);
  letter-spacing: -0.01em;
  max-width: 9ch;
}

.lede {
  max-width: var(--measure);
  font-size: 1.1875rem;
  margin: 1.5rem 0 2rem;
  color: var(--ink-soft);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--paper-deep); }
.btn.is-pending {
  border-style: dashed;
  color: var(--ink-soft);
  cursor: default;
}

.fineprint {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- the pedal */

.pedal-wrap {
  margin: 0;
  justify-self: center;
  width: min(100%, 21rem);
}

.pedal {
  position: relative;
  background: var(--enamel);
  border-radius: 1.75rem 1.75rem 2.25rem 2.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow:
    inset 0 -6px 0 var(--enamel-edge),
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 18px 0 -6px var(--paper-deep);
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.pedal-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.led {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: #5c4a1c;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: background-color 120ms linear, box-shadow 120ms linear;
}
.pedal[data-state="recording"] .led { background: var(--rec); box-shadow: 0 0 12px 2px var(--rec); }
.pedal[data-state="playing"] .led { background: var(--play); box-shadow: 0 0 12px 2px var(--play); }
.pedal[data-state="overdubbing"] .led { background: var(--dub); box-shadow: 0 0 12px 2px var(--dub); }

.pedal-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
}

.ring {
  width: 72%;
  height: auto;
  transform: rotate(-90deg);
}
.ring-track {
  fill: rgba(20, 38, 42, 0.08);
  stroke: rgba(20, 38, 42, 0.18);
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke: var(--ink);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.pedal[data-state="empty"] .ring-fill { visibility: hidden; }
.pedal[data-state="recording"] .ring-fill { stroke: var(--rec); }
.pedal[data-state="playing"] .ring-fill { stroke: var(--play); }
.pedal[data-state="overdubbing"] .ring-fill { stroke: var(--dub); }

.pedal-readout {
  margin: -0.25rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  min-height: 1.5rem;
  text-align: center;
}

.layers {
  display: flex;
  gap: 0.4rem;
}
.layers span {
  width: 1.6rem;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(20, 38, 42, 0.2);
}
.layers span.on { background: var(--ink); }

.footswitch {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background:
    radial-gradient(circle at 38% 32%, #ffffff 0 10%, #d8dfe1 22%, #9aa8ab 62%, #6c7b7e 100%);
  box-shadow:
    0 0 0 6px #5f6e71,
    0 0 0 9px var(--enamel-edge),
    0 6px 0 6px rgba(20, 38, 42, 0.35);
  transition: transform 60ms ease-out, box-shadow 60ms ease-out;
}
.footswitch:active,
.footswitch.is-down {
  transform: translateY(3px);
  box-shadow:
    0 0 0 6px #5f6e71,
    0 0 0 9px var(--enamel-edge),
    0 3px 0 6px rgba(20, 38, 42, 0.35);
}

.pedal-wrap figcaption {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  text-align: center;
}

.text-btn {
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  margin-left: 0.25rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.steps {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 1.5rem;
}
.steps > * {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}
.steps h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.steps ol {
  list-style: none;
  padding: 0;
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
  color: #b9cbc4;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--paper);
}
.steps li strong {
  display: block;
  color: var(--paper);
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.dot {
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
}
.dot-red { background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.dot-green { background: var(--play); box-shadow: 0 0 10px var(--play); }
.dot-amber { background: var(--dub); box-shadow: 0 0 10px var(--dub); }
.steps-note {
  margin-top: 2.5rem;
  color: #b9cbc4;
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- features */

.features {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 4rem;
  row-gap: 2.75rem;
}
.features h2 {
  grid-column: 1 / -1;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  max-width: 14ch;
}
.feature h3 {
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.feature p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.feature-lead {
  grid-column: 1 / -1;
  border-left: 6px solid var(--enamel);
  padding-left: 1.5rem;
}
.feature-lead h3 { font-size: clamp(2.2rem, 4vw, 3rem); }
.feature-lead p { font-size: 1.1875rem; max-width: 42rem; }

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

.download {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.download h2 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
.platforms {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.platform {
  background: var(--paper-deep);
  border-radius: 1.25rem;
  padding: 1.75rem;
}
.platform h3 { font-size: 2.25rem; }
.platform-meta {
  margin: 0.35rem 0 1.25rem;
  color: var(--ink-soft);
}
.how {
  margin: 1.1rem 0 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: 30rem;
}

/* ---------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--paper-deep);
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--ink-soft);
}
.foot p { margin: 0; }
.foot-small { font-size: 0.875rem; margin-top: 0.35rem !important; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 1rem; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .features { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; gap: 1.5rem; }
  .top { padding: 1rem; }
  .hero, .features, .download, .foot { padding-left: 1rem; padding-right: 1rem; }
  .steps { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .led, .footswitch { transition: none; }
}

/* ---------------------------------------------------------------- text pages (privacy) */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.doc h1 { max-width: none; font-size: clamp(3rem, 8vw, 5rem); }
.doc h2 { font-size: 1.9rem; margin-top: 2.25rem; }
.doc p { max-width: var(--measure); }
.doc .lede { margin: 1.25rem 0 0; }
.doc-date { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 0.75rem; }
.foot-links { margin-top: 0.35rem !important; }
.foot a, .doc a { color: inherit; }
