/* ¿Tienes oído? — shared styles for the test app and the website. Mobile first. */

:root {
  --bg: #0f0b16;
  --bg-2: #1d1529;
  --surface: #221a30;
  --surface-2: #2c2240;
  --line: rgba(255, 246, 232, 0.12);
  --text: #fff6e8;
  --muted: #bcb1cf;
  --amber: #ffb347;
  --coral: #ff7a59;
  --green: #4ade80;
  --red: #f87171;
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 17px/1.5 var(--font);
}

a {
  color: var(--amber);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

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

/* Headings receive focus from code when the screen changes: no ring for those. */
[tabindex="-1"]:focus {
  outline: none;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.3em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  color: #1a1020;
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-whatsapp {
  background: #25d366;
  color: #08210f;
}

.btn-xl {
  min-height: 60px;
  padding: 0.8em 2em;
  font-size: 1.15rem;
  width: 100%;
  max-width: 420px;
}

/* ------------------------------------------------------------------ brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: var(--amber);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 4px solid var(--amber);
  background: radial-gradient(circle, #2a2036 0%, #09070d 70%);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.25);
}

/* -------------------------------------------------------------------- app */

.app {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 24px;
}

.screen-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 12px;
}

.intro-title {
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 800;
}

.lead {
  color: var(--muted);
  margin: 0;
  max-width: 34em;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.skill-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skill-list strong {
  color: var(--amber);
}

.skill-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.challenge-banner {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.18), rgba(255, 122, 89, 0.18));
  border: 1px solid rgba(255, 179, 71, 0.45);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.challenge-line {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.challenge-q {
  margin: 4px 0 0;
  color: var(--text);
}

.best {
  color: var(--muted);
  margin: 0;
}

.error {
  color: var(--red);
  margin: 0;
}

/* -------------------------------------------------------------- questions */

.screen-question {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--amber), var(--coral));
  transition: width 0.3s ease;
}

.q-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.q-skill {
  margin: 6px 0 0;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.q-prompt {
  font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  margin: 0;
}

.q-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-play {
  align-self: flex-start;
  background: var(--surface-2);
  border-color: rgba(255, 179, 71, 0.5);
  color: var(--text);
}

.play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--amber);
}

.btn-play.is-playing .play-icon {
  width: 13px;
  height: 14px;
  border: 0;
  background: linear-gradient(90deg, var(--amber) 0 35%, transparent 35% 65%, var(--amber) 65%);
  animation: pulse 0.8s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

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

.options-tab,
.options-rhythm {
  grid-template-columns: 1fr;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 14px 12px 34px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: 700 1.05rem/1.25 var(--font);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.option:hover:not(:disabled) {
  border-color: rgba(255, 179, 71, 0.6);
}

.option:active:not(:disabled) {
  transform: scale(0.98);
}

.option:disabled {
  cursor: default;
}

.option-key {
  position: absolute;
  left: 10px;
  top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}

.option.is-correct {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.16);
}

.option.is-wrong {
  border-color: var(--red);
  background: rgba(248, 113, 113, 0.16);
}

.tab {
  font: 700 1.2rem/1.2 var(--mono);
  letter-spacing: 0.02em;
  white-space: pre;
}

.strum {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  width: 100%;
  max-width: 420px;
  gap: 4px;
}

.strum-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font: 800 1.25rem/1 var(--font);
}

.strum-cell.is-hit.is-down {
  background: rgba(255, 179, 71, 0.2);
  color: var(--amber);
}

.strum-cell.is-hit.is-up {
  background: rgba(255, 122, 89, 0.2);
  color: var(--coral);
}

.strum-count {
  padding: 0 14px 0 34px;
  display: flex;
  justify-content: center;
}

.strum-count .strum-cell {
  height: 20px;
  background: none;
  font: 600 0.8rem/1 var(--font);
}

.feedback {
  min-height: 1.5em;
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.feedback.is-ok {
  color: var(--green);
}

.feedback.is-bad {
  color: var(--red);
}

/* ---------------------------------------------------------------- results */

.screen-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.eyebrow {
  margin: 0;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

.level-ring {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 10px solid var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 179, 71, 0.18), inset 0 0 40px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% 40%, #2a2036, #09070d 75%);
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 26px;
}

.level-num {
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
}

.level-max {
  font-size: 1.4rem;
  color: var(--muted);
  font-weight: 700;
}

.r-title {
  font-size: clamp(1.7rem, 6.5vw, 2.3rem);
  color: var(--coral);
  margin: 0;
}

.r-percentile {
  margin: 0;
  color: var(--amber);
  font-weight: 800;
}

.social-proof {
  margin: 12px 0 0;
  color: var(--amber);
  font-weight: 700;
}

.r-progress {
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.r-sub,
.r-band,
.r-weak {
  margin: 0;
  color: var(--muted);
}

.r-sub {
  color: var(--text);
  font-weight: 600;
}

.bars {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.bar-head strong {
  color: var(--amber);
}

.bar-track {
  height: 12px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 4px;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.share-top {
  margin: 4px 0 6px;
}

.box.daily {
  text-align: center;
  border-color: rgba(255, 179, 71, 0.45);
}

.daily-grid {
  margin: 6px 0 10px;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font);
  font-size: 1.5rem;
  line-height: 1.35;
  white-space: pre;
}

.install {
  margin-top: 12px;
}

.daily-streak {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--amber);
}

.plan-try {
  width: 100%;
  margin-bottom: 10px;
}

.t-status,
.t-focus {
  margin: 0;
  font-weight: 700;
  color: var(--amber);
}

.t-history {
  width: 100%;
  text-align: left;
}

.t-history-title {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.t-history-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.t-history-bars span {
  flex: 1;
  position: relative;
  min-height: 6px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--amber), var(--coral));
}

.t-history-bars b {
  position: absolute;
  top: -1.3em;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}

.t-compare {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.t-compare-title {
  margin: 0;
  font-weight: 800;
}

.t-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.t-changes {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.t-changes .is-up {
  color: var(--green);
}

.t-changes .is-down {
  color: var(--coral);
}

.t-key {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 8px;
  text-align: left;
  margin-top: 8px;
}

.t-thanks {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid var(--green);
  font-weight: 700;
}

.t-guarantee {
  margin: 10px 0 0;
}

.t-plans {
  width: 100%;
  max-width: 420px;
}

.tip {
  width: 100%;
  text-align: left;
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.tip p {
  margin: 0 0 6px;
}

.tip a {
  font-weight: 700;
}

.check-help {
  max-width: 30em;
  color: var(--text);
}

.compare {
  width: 100%;
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.compare[data-outcome="win"] {
  border-color: var(--green);
}

.compare[data-outcome="lose"] {
  border-color: var(--coral);
}

.compare-text {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 1.15rem;
}

.compare-text::first-letter,
.compare-name::first-letter {
  text-transform: uppercase;
}

.compare-board {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.compare-side {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}

.compare-name {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}

.compare-score {
  font-size: 1.6rem;
  font-weight: 800;
}

.compare-vs {
  color: var(--muted);
  font-weight: 700;
}

.box {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 16px;
  margin-top: 8px;
}

.box h2 {
  font-size: 1.3rem;
}

.box-lead {
  color: var(--muted);
  margin: 0 0 12px;
}

.card-preview {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 4px auto 14px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background: var(--bg-2);
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 1rem var(--font);
}

.field:focus {
  border-color: var(--amber);
  outline: none;
}

.share-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--green);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.copy-helper {
  position: fixed;
  top: 0;
  left: -9999px;
}

.inapp-help {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.lesson-list {
  list-style: none;
  width: 100%;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.lesson {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel, rgba(255, 255, 255, 0.04));
  color: var(--text);
  font: 600 0.98rem/1.25 var(--font);
  text-align: left;
  cursor: pointer;
}

.lesson.is-locked {
  color: var(--muted);
}

.lesson.is-passed {
  border-color: var(--green);
}

.lesson-state {
  flex: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amber);
}

.lesson.is-locked .lesson-state {
  color: var(--muted);
}

.plan-links,
.backup {
  width: 100%;
}

.backup {
  margin-top: 8px;
  text-align: left;
}

.backup summary {
  min-height: 44px;
  padding: 11px 0;
  color: var(--muted);
  cursor: pointer;
}

.backup .btn {
  margin: 8px 8px 0 0;
}

.backup-code {
  width: 100%;
  font: 0.85rem/1.3 monospace;
}

.link-button {
  min-height: 44px;
  padding: 11px 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: 600 0.95rem/1.25 var(--font);
  text-decoration: underline;
  cursor: pointer;
}

.route-answer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 8px;
}

.slot {
  display: inline-flex;
  min-width: 52px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: 700 1rem/1 var(--font);
}

.slot.is-given {
  border-style: solid;
  color: var(--muted);
}

.slot.is-current {
  border-color: var(--amber);
}

.slot.is-correct {
  border: 2px solid var(--green);
}

.slot.is-wrong {
  border: 2px solid var(--red);
}

.slot-undo {
  flex-basis: 100%;
}

.route-board {
  width: 100%;
}

.fretboard {
  display: grid;
  gap: 4px;
  width: 100%;
  --frets: 6;
}

.fret-row {
  display: grid;
  grid-template-columns: 22px repeat(var(--frets), minmax(0, 1fr));
  gap: 3px;
  align-items: center;
}

.fret-number {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.fret-string {
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}

.fret-cell {
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.fret-cell.is-selected {
  background: var(--amber);
}

.fret-cell.is-correct {
  background: var(--green);
}

.fret-cell.is-wrong {
  background: var(--red);
}

.palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
  width: 100%;
}

.palette-chord {
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
}

.strum-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.strum-toggle {
  display: grid;
  min-height: 60px;
  place-items: center;
  padding: 4px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font: 700 1.2rem/1 var(--font);
  cursor: pointer;
}

.strum-toggle small {
  font-size: 0.7rem;
  font-weight: 500;
}

.strum-toggle.is-on {
  background: var(--amber);
  color: #1d1529;
}

.strum-toggle.is-correct {
  outline: 2px solid var(--green);
}

.strum-toggle.is-wrong {
  outline: 2px solid var(--red);
}

.withdraw-form {
  display: grid;
  gap: 8px;
  max-width: 28em;
}

.withdraw-receipt {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.option-frets {
  display: block;
  margin-top: 2px;
  font-size: 0.78em;
  font-weight: 500;
  color: var(--muted);
}

.status.is-error {
  color: var(--red);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 179, 71, 0.18);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

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

.plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font: 1rem var(--font);
}

.plan-btn-best {
  border-color: var(--amber);
}

.plan-price {
  font-weight: 800;
  font-size: 1.1rem;
}

.plan-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.vote-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vote {
  padding: 9px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 600 0.92rem/1.2 var(--font);
  cursor: pointer;
}

.vote.is-voted {
  border-color: var(--green);
  color: var(--green);
}

.vote.is-voted::before {
  content: "✓ ";
}

.end-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 8px;
}

.app-footer {
  text-align: center;
  padding: 12px 16px 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.app-footer a {
  color: var(--muted);
}

/* ------------------------------------------------------------------ modal */

.modal {
  width: min(92vw, 440px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  padding: 22px 18px;
}

.modal::backdrop {
  background: rgba(5, 3, 8, 0.72);
}

.modal-form h2 {
  font-size: 1.35rem;
}

.modal-form p {
  color: var(--muted);
}

.modal-form label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

.modal-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: 1rem var(--font);
}

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

.modal-status {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-weight: 600;
}

.modal-status.is-ok {
  color: var(--green);
}

.modal-status.is-error {
  color: var(--red);
}

.modal-privacy {
  font-size: 0.8rem;
  margin: 12px 0 0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* --------------------------------------------------------------- website */

.site-header,
.site-main,
.site-footer {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 8px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px 0 36px;
}

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero .lead {
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.hero-alt {
  margin: 12px 0 0;
  font-weight: 600;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 800;
}

.mini-quiz {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mini-quiz-q {
  margin: 0 0 10px;
}

.mini-quiz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-option {
  min-height: 48px;
  padding: 8px 18px;
  font-size: 1rem;
}

.mini-quiz-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 0;
}

.mini-quiz-result a {
  font-weight: 700;
}

.hero-figure {
  margin: 0;
}

.hero-figure figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-card {
  justify-self: center;
  width: min(100%, 340px);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.section > p {
  color: var(--muted);
  max-width: 46em;
}

.grid-4 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

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

.feature h3 {
  color: var(--amber);
  font-size: 1.15rem;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  color: var(--muted);
}

.steps li strong {
  color: var(--text);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--amber);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

.cta-band {
  text-align: center;
  padding: 36px 0;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.prose h1 {
  font-size: clamp(1.8rem, 6vw, 2.5rem);
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose strong {
  color: var(--text);
}

.demo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.demo .btn {
  min-height: 42px;
  padding: 0.5em 1em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.site-footer a {
  color: var(--muted);
}

/* Comfortable finger targets, at least 44 px tall. */
.brand {
  padding-block: 8px;
}

.site-header nav a,
.site-footer a,
.app-footer a {
  display: inline-block;
  padding-block: 11px;
}

.tip a {
  display: inline-block;
  padding-block: 11px 5px;
}

.vote {
  min-height: 44px;
}

/* ------------------------------------------------------------- video mode */

.video-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 120px;
  display: flex;
  flex-direction: column;
}

.video-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  font-size: 1.2rem;
}

.video-layer {
  flex: 1;
}

.video-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.video-hook {
  font-size: clamp(2.2rem, 10vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.video-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.3rem;
}

.video-note {
  max-width: 26em;
  color: var(--muted);
}

.video-question {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.video-question .q-prompt {
  font-size: clamp(1.7rem, 7vw, 2.2rem);
}

.video-question .option {
  min-height: 76px;
  font-size: 1.25rem;
  cursor: default;
}

.video-reveal {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 800;
}

.video-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: rgba(15, 11, 22, 0.55);
  color: var(--amber);
  font-size: 9rem;
  font-weight: 800;
}

.video-big {
  margin: 0;
  color: var(--coral);
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 800;
}

.video-cta-q {
  margin: 0;
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 800;
}

.video-cta-url {
  margin: 0;
  color: var(--amber);
  font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  font-weight: 800;
}

.video-end {
  margin-top: 30px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.video-list li {
  margin: 10px 0;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 48px 0 56px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .share-actions {
    grid-template-columns: 1fr 1fr;
  }

  .share-actions #share-native {
    grid-column: 1 / -1;
  }
}

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

@media (max-width: 380px) {
  .skill-list {
    grid-template-columns: 1fr;
  }

  .option {
    font-size: 0.98rem;
  }

  .strum-cell {
    font-size: 1.05rem;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
