/*
 * "Madera", the Guitarrero identity: walnut surfaces, spruce-cream type, brass accents, the song on
 * warm paper. The voice app keeps its own amber palette inside the phone mock.
 */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --night: #110b08;
  --walnut-950: #150e0a;
  --walnut-900: #1b130e;
  --walnut-850: #211710;
  --walnut-800: #2a1d15;
  --walnut-700: #37271c;
  --walnut-600: #4a3425;
  --cedar-400: #a9774f;
  --brass-200: #efdcb4;
  --brass-300: #e3c58c;
  --brass-400: #d3aa63;
  --brass-500: #bb8f45;
  --cream-50: #fbf7ef;
  --cream-100: #f3eadb;
  --sand-300: #cbb79a;
  --sand-400: #a8937a;
  --sand-500: #857260;
  --paper: #f8f1e3;
  --ink: #2b1e15;
  --rosewood-500: #9b4b3a;
  --sage-400: #9fb28a;
  --voice: #4f7a52;

  /* The voice app (Canto). */
  --canto-ink: #14110f;
  --canto-panel: #1f1a17;
  --canto-cream: #f4ece1;
  --canto-muted: #a3978a;
  --canto-amber: #f2a541;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --hairline: rgba(211, 170, 99, 0.15);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background-color: var(--night);
  color: var(--cream-100);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(211, 170, 99, 0.35);
  color: var(--cream-50);
}

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 24px;
  }
}

.wrap-narrow {
  max-width: calc(72rem - 48px);
  margin-inline: auto;
}

/* ---------- Surfaces (same recipes as the Guitarrero app) ---------- */

.wood {
  background-color: var(--walnut-900);
  background-image:
    linear-gradient(180deg, rgba(17, 11, 8, 0) 0%, rgba(17, 11, 8, 0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.56 0 0 0 0 0.36 0.42 0 0 0 -0.14'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 900px 300px;
}

.wood-quiet {
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(169, 119, 79, 0.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.56 0 0 0 0 0.36 0.2 0 0 0 -0.075'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 100% 1200px, 900px 300px;
  background-repeat: no-repeat, repeat;
}

.panel {
  background: linear-gradient(180deg, rgba(55, 39, 28, 0.72), rgba(33, 23, 16, 0.86));
  border: 1px solid rgba(211, 170, 99, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(239, 220, 180, 0.05),
    0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

/* The inlaid strip around a guitar's top, used as a section divider. */
.purfling {
  height: 7px;
  background:
    linear-gradient(90deg, transparent, rgba(211, 170, 99, 0.55) 12%, rgba(211, 170, 99, 0.55) 88%, transparent) top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(169, 119, 79, 0.55) 0 4px, rgba(21, 14, 10, 0.9) 4px 6px, rgba(239, 220, 180, 0.35) 6px 8px, rgba(21, 14, 10, 0.9) 8px 10px) center / 100% 3px no-repeat,
    linear-gradient(90deg, transparent, rgba(211, 170, 99, 0.55) 12%, rgba(211, 170, 99, 0.55) 88%, transparent) bottom / 100% 1px no-repeat;
  opacity: 0.8;
}

.paper {
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.6), transparent 60%);
  color: var(--ink);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 500;
  color: var(--cream-50);
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--brass-300);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-400);
}

.h2 {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.05;
}

.h3 {
  font-size: 2rem;
  line-height: 1.1;
}

.section {
  padding-block: 80px;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 112px;
  }
}

.section-lead {
  max-width: 34rem;
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sand-300);
}

.link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--brass-300);
  transition: color 0.2s;
}

.link:hover {
  color: var(--brass-200);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible,
.waitlist input:focus-visible {
  outline: 2px solid rgba(211, 170, 99, 0.7);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--brass-300), var(--brass-500));
  color: var(--walnut-950);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px -12px rgba(211, 170, 99, 0.7);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--brass-200), var(--brass-400));
}

.btn-secondary {
  border: 1px solid rgba(211, 170, 99, 0.35);
  background: rgba(42, 29, 21, 0.6);
  color: var(--cream-100);
}

.btn-secondary:hover {
  border-color: rgba(211, 170, 99, 0.7);
  background: rgba(55, 39, 28, 0.7);
}

.btn-sm {
  height: 34px;
  padding-inline: 14px;
  font-size: 13px;
}

.btn-lg {
  height: 48px;
  padding-inline: 26px;
  font-size: 15px;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cream-50);
}

.wordmark-sm {
  font-size: 1.1rem;
  gap: 8px;
}

.nav {
  display: none;
  gap: 28px;
  font-size: 14px;
  color: var(--sand-300);
}

.nav a:hover {
  color: var(--cream-50);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 80px;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
    padding-top: 48px;
    padding-bottom: 112px;
  }
}

.hero-title {
  font-size: clamp(2.9rem, 9vw, 4.3rem);
  line-height: 0.98;
}

.lead {
  max-width: 36rem;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--sand-300);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hint {
  margin-top: 16px;
  font-size: 14px;
  color: var(--sand-400);
}

/* The song sheet on its stand. */
.stand {
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  outline: 1px solid rgba(211, 170, 99, 0.2);
}

@media (min-width: 640px) {
  .stand {
    padding: 16px;
  }
}

.sheet {
  border-radius: 14px;
  padding: 18px 20px 14px;
  box-shadow: inset 0 0 0 1px rgba(43, 30, 21, 0.08);
}

.sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sheet-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}

.sheet-meta {
  font-size: 11px;
  font-style: italic;
  color: rgba(43, 30, 21, 0.6);
}

.verse + .verse {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(43, 30, 21, 0.15);
}

.lyric {
  padding-top: 1.35em;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.4vw, 1.85rem);
  line-height: 1.15;
}

/* A chord sits above the syllable where it changes. */
.c {
  position: relative;
}

.c::before {
  content: attr(data-chord);
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 0.05em;
  font-family: var(--sans);
  font-size: 0.5em;
  font-weight: 650;
  color: var(--rosewood-500);
}

.lane {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
}

.lane .target rect {
  fill: rgba(187, 143, 69, 0.38);
}

.lane .voice {
  fill: none;
  stroke: var(--voice);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.lane .voice-head {
  fill: var(--voice);
}

.stand-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(21, 14, 10, 0.8);
  outline: 1px solid rgba(211, 170, 99, 0.15);
}

.play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brass-300), var(--brass-500));
  fill: var(--walnut-950);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--brass-300);
}

.chip-mono {
  border: 1px solid var(--walnut-600);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--cream-50);
}

.chip-voice {
  background: rgba(159, 178, 138, 0.14);
  color: var(--sage-400);
}

.chip-voice i,
.badge-live i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--sage-400);
}

.chip-strum {
  margin-left: auto;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  color: var(--sand-400);
}

figcaption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
  color: var(--sand-400);
}

/* ---------- Two halves ---------- */

.halves {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .halves {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.half {
  border-radius: 20px;
  padding: 28px;
}

.half .h3 {
  margin-top: 18px;
}

.half p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sand-300);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(159, 178, 138, 0.14);
  color: var(--sage-400);
}

.badge-soon {
  border: 1px solid rgba(211, 170, 99, 0.3);
  color: var(--brass-300);
}

/* ---------- Voice / guitar splits ---------- */

.split {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1.25fr 1fr;
    gap: 72px;
  }
  .split-reverse {
    grid-template-columns: 1fr 1fr;
  }
}

.features {
  display: grid;
  gap: 1px;
  margin-top: 40px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(211, 170, 99, 0.1);
}

@media (min-width: 640px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.features article {
  padding: 22px 24px;
  background: rgba(27, 19, 14, 0.95);
}

.features h3,
.principles h3,
.steps h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream-50);
}

.features p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--sand-300);
}

/* The voice app, drawn as a phone. */
.phone-figure {
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.phone {
  position: relative;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #3a2a1f, #120c09);
  box-shadow:
    inset 0 0 0 1px rgba(239, 220, 180, 0.12),
    0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 84px;
  height: 22px;
  margin-left: -42px;
  border-radius: 999px;
  background: #000;
  z-index: 1;
}

.canto {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 34px;
  padding: 52px 14px 18px;
  background: var(--canto-ink);
  color: var(--canto-cream);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

.canto-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.canto-sub {
  margin-top: -8px;
  font-size: 13px;
  color: var(--canto-muted);
}

.canto-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 14px 16px;
}

.canto-card small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.canto-card strong {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.canto-card span {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
  opacity: 0.8;
}

.canto-amber {
  position: relative;
  overflow: hidden;
  background: var(--canto-amber);
  color: var(--canto-ink);
}

.canto-amber::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(239, 111, 83, 0.55) 0%, transparent 70%);
}

.canto-panel {
  background: var(--canto-panel);
}

.canto-panel small,
.canto-panel span {
  color: var(--canto-muted);
  opacity: 1;
}

.canto-ring {
  box-shadow: inset 0 0 0 1px rgba(242, 165, 65, 0.4);
}

.canto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.canto-small {
  gap: 4px;
}

.canto-small b {
  font-size: 18px;
}

.canto-small strong {
  font-size: 13px;
  font-weight: 600;
}

.canto-range > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.canto-range strong {
  font-size: 14px;
  font-weight: 600;
}

.keys {
  width: 100%;
  height: auto;
}

.keys rect {
  fill: #e9dfd2;
}

.keys rect.lit {
  fill: var(--canto-amber);
}

.keys rect.black {
  fill: #2a231f;
}

.keys rect.black.lit {
  fill: #a8661e;
}

/* ---------- Guitar ---------- */

.checklist {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sand-300);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1.5px solid var(--brass-400);
}

.checklist b {
  font-weight: 600;
  color: var(--cream-50);
}

.tab-panel {
  overflow: hidden;
  border-radius: 18px;
}

.tab-dots {
  display: flex;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(211, 170, 99, 0.1);
}

.tab-dots i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--walnut-600);
}

.tab-panel pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--sand-300);
}

.tab-section {
  display: block;
  margin-bottom: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-400);
}

.tab-chords {
  color: var(--brass-300);
}

.tab-lyric {
  color: var(--cream-100);
}

.tab-staff {
  color: var(--sand-500);
}

/* ---------- Together ---------- */

.together {
  border-block: 1px solid var(--hairline);
}

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

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 0;
  }
}

.steps li {
  padding-block: 24px;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .steps li {
    padding-block: 28px 0;
    border-bottom: 0;
    border-top: 1px solid rgba(211, 170, 99, 0.35);
  }
}

.step-n {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(187, 143, 69, 0.85);
}

.steps h3 {
  font-size: 1.75rem;
}

.steps p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sand-300);
}

/* ---------- Principles ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  padding-block: 64px 0;
}

@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.principles h3 {
  font-size: 1.25rem;
}

.principles p {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand-400);
}

/* ---------- Waitlist ---------- */

.closing {
  border-radius: 28px;
  padding: 56px 20px;
  text-align: center;
  outline: 1px solid rgba(211, 170, 99, 0.2);
}

@media (min-width: 640px) {
  .closing {
    padding: 64px 48px;
  }
}

.closing img {
  display: block;
  margin: 0 auto 24px;
}

.closing .h2 {
  max-width: 34rem;
  margin-inline: auto;
}

.closing > p {
  margin-top: 14px;
  color: var(--sand-300);
}

.waitlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 30rem;
  margin: 32px auto 0;
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  height: 48px;
  padding-inline: 20px;
  border: 1px solid rgba(211, 170, 99, 0.3);
  border-radius: 999px;
  background: rgba(17, 11, 8, 0.7);
  color: var(--cream-50);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus. */
}

.waitlist input::placeholder {
  color: var(--sand-500);
}

.waitlist .btn {
  flex: 0 0 auto;
}

@media (max-width: 479px) {
  .waitlist .btn {
    flex-basis: 100%;
  }
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.form-status {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 15px;
  color: var(--sage-400);
}

.form-status.error {
  color: #c2715c;
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 32px 40px;
  border-top: 1px solid rgba(211, 170, 99, 0.1);
  font-size: 14px;
  color: var(--sand-500);
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rise {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

/* The halves lead straight into the voice section, which brings its own top padding. */
#mitades {
  padding-bottom: 0;
}
