/*
 * jayscorpmusic.com
 * Pure black base, purple for what can be clicked (and the award), green
 * for small details such as ticks, numbers and the active section.
 * Type: Archivo, one family playing with its width axis: very wide for the
 * brand, normal for reading, condensed for data.
 */
:root {
  /* Black base, purple to click, green for small details. */
  --bg: #000;
  --surface: #120d1b;
  --surface-2: #1c1529;
  --line: #33284a;
  --muted: #9d93b3;
  --fg-soft: #ece8f3;
  --fg: #fff;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-bright: #4ade80;
  --accent-light: #86efac;
  --on-accent: #fff;

  --width: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;

  --fs-1: clamp(2.2rem, 5.6vw, 4rem);
  --fs-2: clamp(1.6rem, 3.4vw, 2.4rem);
  --fs-3: 1.25rem;
  --fs-base: 1.0625rem;
  --fs-small: 0.875rem;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-light); text-underline-offset: 0.18em; }
a:hover { color: var(--fg); }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; z-index: 50; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container { max-width: var(--width); margin-inline: auto; padding-inline: var(--gutter); }
.data { font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

/* --- Buttons ------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.7rem 1.35rem; border-radius: var(--radius);
  border: 1.5px solid var(--fg); background: transparent; color: var(--fg);
  font: inherit; font-weight: 700; font-variation-settings: "wdth" 108; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.button:hover { background: var(--fg); color: var(--bg); }
.button--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button--accent:hover { background: var(--accent-hover, var(--accent-bright)); border-color: var(--accent-hover, var(--accent-bright)); color: var(--on-accent); }
.button--dark { background: var(--bg); border-color: var(--bg); }
.button--dark:hover { background: var(--surface-2); border-color: var(--surface-2); color: var(--fg); }
.button--small { min-height: 2.3rem; padding: 0.4rem 0.9rem; font-size: var(--fs-small); }

.play {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--fg); color: var(--bg);
}
.play:hover { background: var(--accent); color: var(--on-accent); }
.play[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.play-icon { width: 0; height: 0; border-left: 0.75rem solid currentColor; border-top: 0.45rem solid transparent; border-bottom: 0.45rem solid transparent; margin-left: 0.2rem; }
[aria-pressed="true"] .play-icon, .player--playing .player__button .play-icon {
  width: 0.7rem; height: 0.8rem; border: 0; margin: 0;
  background: linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65%);
}

/* --- Header -------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-2);
}
.header__brand { display: flex; align-items: center; gap: 0.65rem; color: var(--fg); text-decoration: none; }
.header__logo { border-radius: 50%; }
.header__name { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.02em; }
.header__toggle { position: absolute; opacity: 0; pointer-events: none; }
.header__burger { display: none; }
.nav { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; margin-left: auto; }
.nav__link { color: var(--fg-soft); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--fg); border-bottom-color: var(--accent); }
/* The section in view (or the current page) lights up in green. */
.nav__link--current { color: var(--fg); border-bottom-color: var(--accent-bright); }
.nav__cta { margin-left: 0.5rem; }

@media (max-width: 60rem) {
  .header__burger { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; order: 2; }
  .header__brand { margin-right: auto; }
  .header__account { order: 1; }
  .header__burger span, .header__burger span::before, .header__burger span::after {
    display: block; width: 1.4rem; height: 2px; background: var(--fg); position: relative; content: "";
  }
  .header__burger span::before { position: absolute; top: -7px; }
  .header__burger span::after { position: absolute; top: 7px; }
  .header__toggle:focus-visible + .header__burger { outline: 3px solid var(--accent-bright); }
  .nav {
    display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); padding: 0.5rem var(--gutter) 1.5rem; border-bottom: 1px solid var(--surface-2);
  }
  .header__toggle:checked ~ .nav { display: flex; }
  .nav__link { padding: 0.8rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--surface-2); }
  .nav__cta { margin: 1rem 0 0; }
}

/* --- Notices ---------------------------------------------------------------- */
.notice { max-width: var(--width); margin: 1rem auto; padding: 0.85rem 1.1rem; border-radius: var(--radius); background: var(--surface-2); border-left: 4px solid var(--accent); }
.notice--error { border-left-color: #ff6b6b; }
main > .notice { margin-inline: var(--gutter); }
@media (min-width: 80rem) { main > .notice { margin-inline: auto; } }

/* --- Hero -------------------------------------------------------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero .container { container-type: inline-size; }
.hero__place { color: var(--muted); font-size: var(--fs-base); margin-bottom: 0.75rem; }
.hero__brand {
  /* Fills exactly the container width on any screen. */
  margin: 0; font-size: 13.4cqi; line-height: 0.82; font-weight: 900;
  font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: -0.035em;
  margin-left: -0.04em; white-space: nowrap;
}
.hero__tagline { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 500; max-width: 34ch; margin: 1.5rem 0 0; line-height: 1.3; color: var(--fg-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Waveform of the featured beat: the line that splits the hero. */
.waveform { margin-top: clamp(2rem, 5vw, 3.5rem); display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1rem; align-items: center; }
.waveform__canvas { width: 100%; height: clamp(4.5rem, 10vw, 7.5rem); display: block; cursor: pointer; touch-action: manipulation; }
.waveform__caption { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; align-items: baseline; color: var(--muted); font-size: var(--fs-small); }
.waveform__caption strong { color: var(--fg); font-size: 1rem; }
.waveform .play { width: 3.5rem; height: 3.5rem; grid-row: 1; }

/* --- Award band (blue) -------------------------------------- */
.award { background: var(--accent); color: var(--on-accent); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.award__container { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 52rem) { .award__container { grid-template-columns: 1.4fr 1fr; } }
.award__title { font-size: var(--fs-1); font-variation-settings: "wdth" 115; font-weight: 900; margin: 0; line-height: 0.95; }
.award__text { font-size: 1.15rem; margin: 0 0 1.25rem; }
.award__text cite { font-style: normal; font-weight: 700; }
.award .button { border-color: var(--on-accent); color: var(--on-accent); }
.award .button:hover { background: var(--on-accent); color: var(--accent); }

/* --- Sections ------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--surface { background: var(--surface); }
.section--inverse { background: var(--fg); color: var(--bg); color-scheme: light; }
.section--inverse a { color: var(--accent); }
.section--inverse .button { border-color: var(--bg); color: var(--bg); }
.section--inverse .button:hover { background: var(--bg); color: var(--fg); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__title { font-size: var(--fs-1); font-variation-settings: "wdth" 112; font-weight: 900; margin: 0; }
.section__lead { color: var(--muted); max-width: 46ch; margin: 0.75rem 0 0; font-size: 1.1rem; }
.section--inverse .section__lead { color: color-mix(in srgb, var(--bg) 60%, var(--fg)); }
.page-title { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-title h1 { font-size: var(--fs-1); font-variation-settings: "wdth" 115; font-weight: 900; margin: 0; }
.page-title p { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin: 1rem 0 0; }

/* --- Custom beats: steps and packages --------------------------------------- */
.custom { display: grid; gap: 3rem; }
@media (min-width: 62rem) { .custom { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 2.6rem 1fr; gap: 0 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(paso); grid-row: span 2; font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.6rem; color: var(--accent-bright); line-height: 1; }
.steps strong { font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: 0.97rem; }

.packages { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .packages { grid-template-columns: 1fr 1fr; } }
.package { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.package--featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.package__name { font-size: var(--fs-3); margin: 0 0 0.25rem; }
.package__summary { color: var(--muted); font-size: 0.95rem; }
.package__price { font-size: 2.6rem; font-weight: 900; font-variation-settings: "wdth" 115; line-height: 1; margin: 0.5rem 0 1rem; }
.package__list { list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: 0.95rem; flex: 1; }
.package__list li { padding: 0.4rem 0 0.4rem 1.4rem; position: relative; border-top: 1px solid var(--surface-2); }
.package__list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.95rem; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(-45deg); }
.package__turnaround { color: var(--muted); font-size: var(--fs-small); margin: auto 0 0; padding-top: 1rem; }
/* One contact button under each group of cards. */
.group-cta { margin: 1.75rem 0 0; }

/* --- Beat list -------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter { padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 99px; color: var(--fg-soft); text-decoration: none; font-size: 0.93rem; }
.filter:hover { border-color: var(--fg); color: var(--fg); }
.filter--active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter--active:hover { color: var(--bg); }

.tracks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: auto 3.5rem 1fr auto; gap: 0.25rem 1rem; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid var(--line);
}
.track__cover { width: 3.5rem; height: 3.5rem; }
.track__title { font-weight: 700; font-size: 1.08rem; color: var(--fg); text-decoration: none; display: block; }
.track__title:hover { color: var(--accent-light); }
.track__details { color: var(--muted); font-size: var(--fs-small); display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.track__buy { display: flex; align-items: center; gap: 1rem; }
.track__price { color: var(--fg-soft); font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 40rem) {
  .track { grid-template-columns: auto 1fr auto; }
  .track__cover { display: none; }
  .track__price { display: none; }
}
.empty { padding: 2.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.cover { aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.cover--type { display: grid; place-items: center; position: relative; background: linear-gradient(140deg, var(--surface-2), var(--bg)); border: 1px solid var(--line); overflow: hidden; }
.cover__initials { font-weight: 900; font-variation-settings: "wdth" 125; font-size: 1.15em; color: var(--fg); }
.cover__bpm { position: absolute; bottom: 0.2em; right: 0.35em; font-size: 0.55em; color: var(--accent-light); font-variation-settings: "wdth" 72; }
.track__cover.cover--type { font-size: 1rem; }

/* --- Beat page ---------------------------------------------------- */
.beat-page { display: grid; gap: 2rem 4rem; padding: clamp(2rem, 5vw, 4rem) 0; }
@media (min-width: 56rem) { .beat-page { grid-template-columns: minmax(0, 22rem) 1fr; } }
.beat-page__cover { width: 100%; font-size: 4.5rem; }
.beat-page__title { font-size: var(--fs-1); font-variation-settings: "wdth" 115; font-weight: 900; margin: 0 0 0.75rem; }
.beat-page__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0 0 1.5rem; }
.beat-page__facts div { display: flex; flex-direction: column; }
.beat-page__facts dt { color: var(--muted); font-size: var(--fs-small); }
.beat-page__facts dd { margin: 0; font-weight: 700; font-size: 1.15rem; }

.licenses { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 40rem) { .licenses { grid-template-columns: 1fr 1fr; } }
.license { display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.license--exclusive { border-color: var(--accent); }
.license__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.license__name { font-size: 1.15rem; margin: 0; }
.license__price { font-size: 1.6rem; font-weight: 900; font-variation-settings: "wdth" 110; white-space: nowrap; }
.license__summary { color: var(--muted); font-size: 0.95rem; margin: 0.25rem 0 0.75rem; }
.license .package__list { margin-bottom: 1rem; }

/* --- Credits ------------------------------------------------------------ */
.credits { display: grid; gap: 1.75rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.credit { display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: inherit; }
.credit__image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--fg-soft); }
.credit__image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 0.3s; }
.credit:hover .credit__image img { transform: scale(1.06); }
.credit__song { font-weight: 800; font-size: 1.12rem; line-height: 1.2; color: var(--bg); }
.credit__artist { color: color-mix(in srgb, var(--bg) 60%, var(--fg)); font-size: 0.97rem; }
.credit__role { font-size: var(--fs-small); color: var(--accent); font-weight: 700; }
.credit__note { position: absolute; left: 0.5rem; bottom: 0.5rem; right: 0.5rem; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.55rem; border-radius: 3px; line-height: 1.25; }
.section:not(.section--inverse) .credit__song { color: var(--fg); }
.section:not(.section--inverse) .credit__artist { color: var(--muted); }
.section:not(.section--inverse) .credit__role { color: var(--accent-light); }

/* --- Mixing and mastering ------------------------------------------------- */
.rates { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .rates { grid-template-columns: repeat(3, 1fr); } }

.level-up { display: grid; gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); background: var(--fg); color: var(--bg); margin-top: 3rem; }
@media (min-width: 52rem) { .level-up { grid-template-columns: 1.3fr 1fr auto; } }
.level-up h3 { font-size: var(--fs-2); font-variation-settings: "wdth" 115; font-weight: 900; margin: 0 0 0.35rem; }
.level-up p { margin: 0; color: color-mix(in srgb, var(--bg) 60%, var(--fg)); }
.level-up ul { margin: 0; padding-left: 1.1rem; font-size: 0.97rem; }
.level-up__price { font-size: 2.8rem; font-weight: 900; font-variation-settings: "wdth" 115; line-height: 1; margin-bottom: 0.75rem; }

/* --- Contact and forms -------------------------------------------- */
.contact { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 56rem) { .contact { grid-template-columns: 1fr 1.2fr; } }
.form { display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field small { color: var(--muted); font-size: var(--fs-small); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 2.9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-bright); outline: none; box-shadow: 0 0 0 3px rgb(124 58 237 / 0.45); }
.honeypot { position: absolute; left: -9999px; }
.license-options { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.license-options legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; }
.option { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.option input { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; }
.option span { flex: 1; }
.option small { display: block; color: var(--muted); }

.box { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.box h2, .box h3 { font-size: var(--fs-3); margin-top: 0; }
.section--surface .box { background: var(--surface-2); }
.payments { display: grid; gap: 0.75rem; margin: 1rem 0; }
.payments div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.85rem 1rem; background: var(--bg); border-radius: var(--radius); }
.payments dt { color: var(--muted); }
.payments dd { margin: 0; font-weight: 700; user-select: all; }
.reference { font-size: 2rem; font-weight: 900; font-variation-settings: "wdth" 110; color: var(--accent-light); letter-spacing: 0.03em; }

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-2); margin-top: 2.5rem; }
.prose li { margin-bottom: 0.4rem; }

/* --- Links (for the Instagram and TikTok bio) -------------------- */
.links-page { max-width: 30rem; margin: 0 auto; padding: 3rem var(--gutter) 6rem; text-align: center; }
.links-page img { margin: 0 auto 1rem; border-radius: 50%; }
.links-page h1 { font-variation-settings: "wdth" 125; font-weight: 900; text-transform: uppercase; font-size: 2rem; }
.links-page__list { display: grid; gap: 0.75rem; margin-top: 2rem; }
.links-page__list .button { width: 100%; }

/* --- Footer ------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--surface-2); padding: 3.5rem var(--gutter) 7rem; display: grid; gap: 2rem; max-width: calc(var(--width) + 2 * var(--gutter)); margin: 0 auto; }
@media (min-width: 48rem) { .footer { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer__brand img { border-radius: 50%; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer__column { display: flex; flex-direction: column; gap: 0.45rem; }
.footer__column h2 { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin: 0 0 0.25rem; }
.footer__column a { color: var(--fg-soft); text-decoration: none; }
.footer__column a:hover { color: var(--fg); text-decoration: underline; }
.footer__legal { color: var(--muted); font-size: var(--fs-small); grid-column: 1 / -1; margin: 0; }
.footer__legal a { color: inherit; margin-left: 0.75rem; }

/* --- Sticky player ------------------------------------------------------ */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "button info close" "progress progress progress";
  gap: 0.35rem 0.9rem; align-items: center;
  padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .player { grid-template-columns: auto minmax(10rem, 18rem) 1fr auto; grid-template-areas: "button info progress close"; }
}
.player__button { grid-area: button; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
.player__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; }
.player__title { color: var(--fg); font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__detail { color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__progress { grid-area: progress; display: flex; align-items: center; gap: 0.6rem; }
.player__time { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; min-width: 2.4rem; text-align: center; }
.player__bar { flex: 1; accent-color: var(--accent); min-width: 0; }
.player__close { grid-area: close; background: none; border: 0; color: var(--muted); font-size: 1.6rem; width: 2.5rem; height: 2.5rem; cursor: pointer; }
.player__close:hover { color: var(--fg); }

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

.button--google { background: var(--fg); color: #1f1f1f; border-color: var(--fg); gap: 0.75rem; }
.button--google:hover { background: var(--fg-soft); color: #1f1f1f; }
.link-button { background: none; border: 0; padding: 0; color: var(--accent-light); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.nav__account { color: var(--muted); }

/* --- Theme picker (preview only, until a theme is chosen) ------------- */

.hero__brand-sub { display: block; font-size: 0.42em; letter-spacing: 0.34em; margin-top: 0.12em; color: var(--accent-bright); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* --- TikTok live notice ------------------------------------------------ */
.nav__live { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 99px; background: #fe2c55; color: #fff; font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.nav__live:hover { color: #fff; background: #e0244a; }
.nav__live-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #fff; animation: live-pulse 1.4s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.25; } }

/* --- Courses ------------------------------------------------------------ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.courses { display: grid; gap: 1rem; }
.course-card { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr; gap: 1.25rem 1.75rem; align-items: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.course-card:hover { border-color: var(--accent); }
.course-card .cover { width: 100%; font-size: 2.4rem; }
.course-card__title { font-size: var(--fs-2); font-variation-settings: "wdth" 112; font-weight: 900; margin: 0 0 0.35rem; line-height: 1.05; }
.course-card__summary { color: var(--muted); margin: 0 0 0.75rem; max-width: 60ch; }
.course-card__facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin: 0; color: var(--fg-soft); font-size: 0.95rem; }
.course-card__facts strong { font-size: 1.3rem; color: var(--fg); }
.course-card__soon { color: var(--accent-light); font-weight: 700; }
@media (max-width: 34rem) { .course-card { grid-template-columns: 1fr; } .course-card .cover { max-width: 9rem; } }
.course-lead { font-size: 1.2rem; color: var(--fg-soft); max-width: 55ch; }
.course-cta { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.course-cta p { margin: 0; color: var(--fg-soft); flex: 1 1 18rem; }
.waitlist { display: flex; flex-wrap: wrap; gap: 0.5rem; flex: 1 1 100%; }
.waitlist input[type="email"] { flex: 1 1 14rem; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--fg); font: inherit; }
.waitlist input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.syllabus { margin-top: 1.25rem; }
.syllabus__section { font-size: 1rem; color: var(--muted); margin: 1.5rem 0 0.5rem; font-weight: 700; }
.syllabus__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.syllabus__lesson { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.syllabus__lesson::before { content: attr(data-n); position: absolute; left: 0; color: var(--muted); font-variation-settings: "wdth" 80; }
.syllabus__lesson a { color: var(--fg); font-weight: 700; text-decoration: none; }
.syllabus__lesson a:hover { color: var(--accent-light); }
.syllabus__lesson > span:first-child { color: var(--fg-soft); }
.syllabus__lesson--current { background: var(--surface-2); }
.syllabus__meta { display: flex; gap: 0.6rem; color: var(--muted); font-size: var(--fs-small); white-space: nowrap; align-items: baseline; }
.syllabus__free { color: var(--accent-light); font-weight: 700; }
.syllabus__done { color: var(--fg); font-weight: 700; }

.classroom { display: grid; gap: 2rem 3rem; padding: clamp(1.5rem, 4vw, 3rem) 0 5rem; }
@media (min-width: 62rem) { .classroom { grid-template-columns: minmax(0, 1fr) 20rem; } }
.classroom__video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); display: block; }
.classroom__section { color: var(--muted); margin: 1.25rem 0 0; font-size: var(--fs-small); }
.classroom__title { font-size: var(--fs-2); font-variation-settings: "wdth" 112; font-weight: 900; margin: 0.15rem 0 1rem; }
.classroom__files { padding-left: 1.1rem; }
.classroom__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.classroom__index .syllabus__section:first-of-type { margin-top: 0.5rem; }
.classroom__progress { color: var(--muted); font-size: var(--fs-small); margin: 0.4rem 0 0; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent-bright); border-radius: 3px; }
@media (max-width: 56rem) { .course-page__cover { max-width: 9rem; font-size: 2.6rem; } }

/* --- One-page sections --------------------------------------------------------- */
.section__note { color: var(--muted); margin-top: 1.5rem; max-width: 60ch; }
.faq { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 52rem; }
.faq__title { font-size: var(--fs-3); margin: 0 0 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.4rem; color: var(--accent-bright); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; color: var(--fg-soft); max-width: 65ch; }
#cursos .faq__title { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.about__lead { font-size: 1.3rem; color: var(--fg-soft); }
.about__socials { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.about__logo { border-radius: 50%; max-width: 22rem; width: 100%; margin-inline: auto; }
#sobre .section__title { margin-bottom: 1.5rem; }

/* --- Buyer account -------------------------------------------------------------- */
.account { padding-bottom: 5rem; }
.account__group { margin-bottom: 3rem; }
.account__group h2 { font-size: var(--fs-2); margin: 0 0 1rem; }
.account__item { grid-template-columns: 3.5rem 1fr auto; }
.account__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
@media (max-width: 40rem) {
  .account__item { grid-template-columns: 3.5rem 1fr; }
  .account__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.account__pending { color: var(--accent-light); }
.account__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.account__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.account__list li div { display: grid; }
.account__list .data { color: var(--muted); font-size: var(--fs-small); }
.account__note { color: var(--muted); font-size: var(--fs-small); margin-top: 0.75rem; }

/* --- Sign in ---------------------------------------------------------------- */
.sign-in h1 { text-transform: none; font-size: var(--fs-2); }
.sign-in__lead { color: var(--muted); }
.sign-in__google { width: 100%; margin-top: 1.5rem; }
.sign-in__or { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: var(--fs-small); margin: 1.75rem 0 1.25rem; }
.sign-in__or::before, .sign-in__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sign-in__form { text-align: left; }
.sign-in__form .button { width: 100%; }
.sign-in__alt { margin-top: 1.5rem; color: var(--muted); }
.sign-in__legal { color: var(--muted); font-size: 0.9rem; margin-top: 2rem; }

/* User icon in the header: sign in, or "Mi cuenta" once signed in. */
.header__account { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--fg); border: 1px solid var(--line); position: relative; flex: none; }
.header__account:hover { border-color: var(--accent); color: var(--fg); }
.header__account--in::after { content: ""; position: absolute; right: 0.15rem; top: 0.15rem; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent-bright); border: 2px solid var(--bg); }
.header__tools { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 26rem) { .header__name { font-size: 0.9rem; white-space: nowrap; } }
.account__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.account__head h2 { margin: 0; }
.account__profile { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .account__profile { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.field__hint { display: block; color: var(--muted); font-size: var(--fs-small); margin-top: 0.35rem; }

/* Signed-in menu under the photo in the header. */
.account-menu { position: relative; order: 1; flex: none; }
.account-menu > summary { list-style: none; cursor: pointer; overflow: hidden; padding: 0; }
.account-menu > summary::-webkit-details-marker { display: none; }
.header__avatar { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.header__initial { font-weight: 900; }
.account-menu__panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 30; min-width: 15rem; padding: 0.4rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / 0.55); }
.account-menu__who { margin: 0.4rem 0.65rem 0.6rem; display: grid; }
.account-menu__who small { color: var(--muted); font-size: var(--fs-small); overflow: hidden; text-overflow: ellipsis; }
.account-menu__form { margin: 0; }
.account-menu__item { display: block; width: 100%; padding: 0.55rem 0.65rem; border: 0; border-radius: 8px; background: none; color: var(--fg-soft); font: inherit; font-size: 0.95rem; text-align: left; text-decoration: none; cursor: pointer; }
.account-menu__item:hover { background: var(--surface-2); color: var(--fg); }
.account-menu__item--office { color: var(--accent-light); font-weight: 700; }
