/* Coil site — light cream theme, matching the pedal itself */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --accent: #c65426; --ink: #33424e; --head: #1d3a4a; --paper: #efece5; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--accent); }

.crumbs { max-width: 900px; margin: 0 auto; padding: 18px 20px 0; letter-spacing: .14em; font-size: 13px; opacity: .85; }
.crumbs a { text-decoration: none; color: var(--head); }

main { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
section { margin-bottom: 64px; }
h1 { font-size: 34px; letter-spacing: .02em; color: var(--head); margin-bottom: 14px; }
h2 { font-size: 26px; color: var(--head); margin-bottom: 6px; }
h3 { color: var(--accent); letter-spacing: .12em; margin-bottom: 8px; }
.sub { opacity: .8; margin-bottom: 22px; }

.quickstart { margin: 0 0 22px 20px; opacity: .92; }
.quickstart li { margin-bottom: 6px; }
.quickstart strong { color: var(--head); letter-spacing: .04em; }

/* demo pedal — the photo face + web-only rows below */
.pedal { position: relative; border-radius: 18px; overflow: hidden; background: #ffffff;
         border: 1px solid #1d3a4a1f; box-shadow: 0 8px 28px #1d3a4a14; padding-bottom: 6px; }
#start-overlay {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: #efece5d9; backdrop-filter: blur(3px);
}
#start {
  font-size: 20px; letter-spacing: .2em; padding: 18px 42px; cursor: pointer;
  color: var(--head); background: #ffffffc0; border: 2px solid var(--accent); border-radius: 12px;
}
#start:hover { background: #c6542618; }

/* the face: background photo + positioned children (coil-face.js) */
.coil-face {
  position: relative; width: min(100%, 460px); margin: 0 auto; display: block;
  background: url("assets/background.png") center / contain no-repeat;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer;
}
.coil-face .knob { position: absolute; cursor: ns-resize; }
.coil-face .knob::before {   /* fixed contact shadow under the rotating sprite */
  content: ""; position: absolute; inset: -2%; border-radius: 50%;
  background: radial-gradient(circle at 50% 54%, rgba(0,0,0,.30) 0%, rgba(0,0,0,.16) 55%, rgba(0,0,0,0) 72%);
}
.coil-face .knob img { position: relative; width: 100%; height: 100%; display: block; }
.coil-face .lamp {
  position: absolute; pointer-events: none; opacity: 1; transition: opacity .18s;
  background:
    radial-gradient(circle, rgba(255,200,144,.95) 0%, rgba(255,56,18,.82) 9%, rgba(255,56,18,0) 13%),
    radial-gradient(circle, rgba(255,74,31,.55) 0%, rgba(255,74,31,.20) 26%, rgba(255,74,31,0) 46%);
}
.coil-face.off .lamp { opacity: 0; }
.coil-face .switch { position: absolute; cursor: pointer; }
.coil-face .switch:active { background: radial-gradient(circle, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 62%); }
.coil-face.kick { animation: kick .16s ease-out; }
@keyframes kick { 30% { transform: translateY(2px) rotate(.25deg); } 70% { transform: translateY(-1px); } }

.row { position: relative; z-index: 1; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 8px 14px 4px; }
.row button {
  font-size: 12.5px; letter-spacing: .12em; padding: 9px 14px; cursor: pointer;
  color: #5a4a3e; background: #f6f3ec; border: 1px solid #c654264d; border-radius: 8px;
}
.row button.on { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 2px 12px #c6542655; }
.row button.loading { opacity: .5; }
.clips { padding-top: 14px; }
.vol { font-size: 12px; letter-spacing: .14em; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.vol input { accent-color: var(--accent); width: 120px; }
.hint { position: relative; z-index: 1; font-size: 12.5px; opacity: .65; text-align: center; padding: 10px 14px 12px; }
#mic {
  background: #f6f3ec; color: var(--ink); border: 1px solid #c654264d; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; max-width: 220px;
}

.voices-copy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.features ul { list-style: none; }
.features li { padding: 8px 0 8px 28px; position: relative; }
.features li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 12px; }

footer { text-align: center; padding: 30px 0 40px; opacity: .7; font-size: 14px; }
