:root {
  --bg: #111111;
  --surface: #1c1c1c;
  --ink: #f2f2f2;
  --muted: #a6a6a6;
  --accent: #ffcc06;
  --accent-ink: #111111;
  --paper: #efefec;
  --paper-ink: #151515;
  --paper-soft: #5c5c58;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);

  --m: clamp(20px, 2.3vw, 32px);
  --gap: 24px;
  --section: clamp(96px, 10vw, 160px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "TikTok Sans", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 10; padding: 10px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
button, .btn { touch-action: manipulation; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--m); }
.wide, .hero__word, .how__text h2, .about h2, .faq__head h2 { font-stretch: 150%; font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: -0.01em; }

/* Buttons: square corners, one flat fill */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--small { min-height: 40px; padding: 0 18px; }
.link { text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: text-decoration-color .25s var(--ease); }
.link:focus-visible { text-decoration-color: currentColor; }

/* ---------- Top bar ---------- */
.bar { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--m); z-index: 3; }
.bar__mark img { height: 46px; width: auto; }
.bar nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.bar nav a:not(.btn) { text-decoration: none; transition: color .2s; }

/* ---------- Hero: the counter ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 120px var(--m) 72px; text-align: center; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: drift 18s ease-out both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 10, 10, .6); }
@keyframes drift { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__inner { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1100px; min-width: 0; }
.hero__date { margin-top: 10px; font-size: var(--step-lead); font-weight: 600; color: var(--accent); }
.hero__word { font-size: clamp(2rem, 7.4vw, 7.6rem); letter-spacing: .06em; margin-right: -.06em; white-space: nowrap; }
.hero__statement { margin-top: 18px; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.hero__sub { margin-top: 12px; max-width: 46ch; color: #e2e2e2; }
.clock { margin-top: 40px; }
.clock__label { font-size: 15px; color: #cfcfcf; margin-bottom: 12px; }
.clock__cells { display: flex; gap: 8px; justify-content: center; }
.clock__cell { display: grid; place-items: center; width: clamp(80px, 8vw, 116px); padding: 16px 8px 12px; background: rgba(17, 17, 17, .82); }
.clock__cell b { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1; font-weight: 700; font-stretch: 125%; letter-spacing: -.02em; }
.clock__cell small { margin-top: 8px; font-size: 13px; color: var(--muted); }
.clock__cell:last-child b { color: var(--accent); }
.clock__cell b { display: grid; overflow: hidden; }
.clock__cell b > span { grid-area: 1 / 1; }
.clock__cell b > .is-out { animation: digitOut .32s var(--ease) both; }
.clock__cell b > .is-in { animation: digitIn .32s var(--ease) both; }
@keyframes digitOut { to { transform: translateY(-55%); opacity: 0; filter: blur(4px); } }
@keyframes digitIn { from { transform: translateY(55%); opacity: 0; filter: blur(4px); } }
.hero__actions { margin-top: 36px; display: flex; gap: 28px; align-items: center; }
.hero__link { font-size: 15px; font-weight: 600; }

/* ---------- Oferta formativa: the catalogue ---------- */
.offer { background: var(--surface); padding-block: var(--section); align-items: start; }
.offer__side { grid-column: 1 / 5; position: sticky; top: 32px; }
.offer__side h2 { font-size: var(--step-head); line-height: 1; letter-spacing: -.02em; font-weight: 700; }
.offer__side > p { margin-top: 20px; max-width: 34ch; }
.basket { margin-top: 40px; background: var(--bg); padding: 28px; }
.basket h3 { font-size: var(--step-lead); font-weight: 600; }
.basket__empty { margin-top: 8px; color: var(--muted); }
.basket ul { margin-top: 16px; display: grid; gap: 10px; font-size: 16px; }
.basket li { display: flex; justify-content: space-between; gap: 16px; }
.basket li a { text-decoration: none; min-width: 0; }
.basket__total { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: var(--step-lead); }
.basket__total dt { color: var(--muted); font-size: var(--step-body); align-self: baseline; }
.basket__total dd { font-weight: 700; text-align: right; }
.basket__total dd:first-of-type { color: var(--accent); }
.basket .btn { margin-top: 24px; width: 100%; }

.offer__main { grid-column: 5 / 13; padding-left: clamp(0px, 2vw, 32px); }
.tabs { display: flex; gap: 4px; }
.tab { flex: 1 1 auto; min-height: 52px; padding: 0 20px; background: #262626; color: var(--ink); border: 0; border-radius: 0; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.tab span { margin-left: 6px; color: var(--muted); font-weight: 500; transition: color .2s; }
.tab[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tab[aria-pressed="true"] span { color: #4d3d00; }
.filters__row { margin-top: 8px; display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 8px; }
.filters__q, .filters__area { min-height: 52px; padding: 0 16px; background: #262626; color: var(--ink); border: 2px solid transparent; border-radius: 0; font-size: 16px; transition: border-color .2s; }
.filters__q::placeholder { color: #9a9a9a; }
.filters__q:focus, .filters__area:focus { outline: none; border-color: var(--accent); }
.offer__count { margin-top: 28px; font-size: 15px; color: var(--muted); }
.courses { margin-top: 12px; display: grid; gap: 2px; }
.course { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 28px; align-items: center; padding: 22px 24px; background: var(--bg); transition: background-color .2s var(--ease); }
.course.is-on { background: #1f1b09; }
.course__name { font-size: 19px; font-weight: 600; line-height: 1.3; }
.course__name a { text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.course__name a:focus-visible { text-decoration-color: var(--accent); }
.course__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.course__price { text-align: right; white-space: nowrap; }
.course__price strong { display: block; font-size: 22px; line-height: 1.1; color: var(--accent); }
.course__price s { font-size: 14px; color: var(--muted); }
.course__add { min-width: 124px; min-height: 44px; padding: 0 16px; background: transparent; color: var(--ink); border: 2px solid #3a3a3a; border-radius: 0; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s, transform .2s var(--ease); }
.course__add:active { transform: scale(.97); }
.course__add[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.offer__more { margin-top: 20px; width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid #3a3a3a; }
.offer__empty { padding: 32px 24px; background: var(--bg); color: var(--ink); }

/* ---------- How: steps and bank details ---------- */
.how { padding-block: var(--section); align-items: start; }
.how__text { grid-column: 1 / 6; }
.how__text h2 { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
.how__text p { margin-top: 28px; max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }
.how__photo { margin-top: 40px; width: min(100%, 380px); aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.how__main { grid-column: 7 / 13; }
.steps { counter-reset: step; display: grid; gap: 36px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; }
.steps > li::before { content: counter(step); grid-row: span 2; font-size: 44px; line-height: .9; font-weight: 800; font-stretch: 125%; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.steps p { margin-top: 6px; max-width: 46ch; color: #d6d6d6; }
.steps a { text-underline-offset: 3px; }
.picked { grid-column: 2; margin-top: 16px; display: grid; gap: 2px; }
.picked li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 12px 12px 12px 16px; background: var(--surface); }
.picked__name { font-weight: 600; line-height: 1.3; }
.price-pair { display: grid; justify-items: end; align-content: start; white-space: nowrap; line-height: 1.25; }
.price-pair strong { font-weight: 700; color: var(--accent); }
.price-pair s { font-size: 13px; color: var(--muted); }
.bank { margin-top: 48px; background: var(--accent); color: var(--accent-ink); padding: 32px 36px; }
.bank h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.bank dl div { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding-block: 8px; }
.bank dt { font-size: 15px; color: #4d3d00; }
.bank dd { font-size: 18px; font-weight: 700; }
.bank__copy { min-height: 40px; padding: 0 14px; background: var(--accent-ink); color: var(--accent); border: 0; border-radius: 0; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.bank__copy:active { transform: scale(.96); }

/* ---------- About: the statement ---------- */
.about { background: var(--surface); padding: var(--section) var(--m); }
.about h2 { font-size: var(--step-head); margin-bottom: 48px; }
.about__text { columns: 2; column-gap: 48px; font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.25; color: #d4d4d4; }
.about__text b { color: var(--ink); font-weight: 600; }
/* Multi-column text with highlights: fade only. A transform or filter on it can paint the highlights out of step with the words. */
.js .about__text.rv { transform: none; filter: none; transition-property: opacity; }
.hl { box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .1em; color: var(--accent-ink); }
.hl--a { background: var(--accent); }
.hl--p { background: var(--paper); }
.about__close { background: var(--ink); color: var(--accent-ink); padding: 0 .12em; text-decoration: none; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background-color .25s; }

/* ---------- FAQ: a band per question ---------- */
.faq__head { background: var(--accent); color: var(--accent-ink); min-height: 40svh; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--gap); padding: 56px var(--m); }
.faq__photo { width: min(20vw, 280px); aspect-ratio: 4 / 5; object-fit: cover; }

.faq__head h2 { font-size: clamp(3rem, 7vw, 7rem); line-height: .95; }
.band { padding-block: 56px; }
.band:nth-child(odd) { background: var(--surface); }
.band h3 { grid-column: 1 / 6; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.15; font-weight: 700; }
.band p { grid-column: 7 / 13; font-size: 18px; line-height: 1.5; max-width: 58ch; }

/* ---------- CTA: pick a course, go enrol ---------- */
.cta { padding-block: var(--section); align-items: center; }
.cta__text { grid-column: 1 / 7; }
.cta__text h2 { font-size: var(--step-head); line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.cta__text > p { margin-top: 20px; max-width: 44ch; font-size: var(--step-lead); line-height: 1.35; }
.cta__facts { margin-top: 32px; display: grid; gap: 12px; }
.cta__facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: baseline; color: #d6d6d6; }
.cta__facts li::before { content: ""; width: 10px; height: 10px; background: var(--accent); transform: translateY(-1px); }
.cta__panel { grid-column: 8 / 13; background: var(--surface); padding: 36px; }
.field { display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.field + .field { margin-top: 16px; }
.field select { width: 100%; min-height: 52px; padding: 0 14px; background: #262626; border: 2px solid transparent; border-radius: 0; color: var(--ink); font-size: 16px; transition: border-color .2s; }
.field select:focus { border-color: var(--accent); outline: none; }
.cta__meta { margin-top: 6px; font-size: 15px; color: var(--muted); }
.cta__price { margin-top: 24px; font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.1; font-weight: 700; color: var(--accent); }
.cta__price s { color: var(--muted); font-weight: 400; font-size: var(--step-body); margin-left: 12px; }
.cta .btn { margin-top: 24px; width: 100%; white-space: normal; text-align: center; }

/* ---------- Footer: contact as the headline ---------- */
.foot { background: var(--accent); color: var(--accent-ink); min-height: 90svh; display: flex; flex-direction: column; padding: 40px var(--m) 32px; }
.foot__top { display: flex; justify-content: space-between; gap: 32px; font-size: 15px; }
.foot__notes { display: flex; gap: 48px; align-items: flex-start; }
.foot__notes strong { display: block; }
.foot__logo { height: 52px; width: auto; }
.foot__contact { margin-top: auto; padding-top: 64px; }
.foot__contact h2 { font-size: var(--step-lead); font-weight: 600; margin-bottom: 28px; }
.foot__mail { display: block; font-size: clamp(2.6rem, 9.4vw, 9.5rem); line-height: 1; font-weight: 700; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.foot__mail span { display: inline-block; transition: transform .45s var(--ease); }
.foot__tels { margin-top: 18px; display: flex; gap: 32px; font-size: var(--step-lead); font-weight: 600; }
.heart { display: inline-block; vertical-align: -1px; margin-inline: 1px; }
.foot__meta { margin-top: 48px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; font-size: 14px; }
.foot__meta > :last-child { justify-self: end; }

/* ---------- Credits dialog ---------- */
.credits { width: min(640px, calc(100% - 2 * var(--m))); max-height: min(80svh, 720px); padding: 32px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .5); overscroll-behavior: contain; } /* taste-skill-ignore: a modal dialog really floats */
.credits::backdrop { background: rgba(0, 0, 0, .7); }
.credits[open] { animation: creditsIn .28s var(--ease); }
@keyframes creditsIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.credits__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.credits h2 { font-size: var(--step-lead); font-weight: 700; }
.credits h3 { margin-top: 24px; font-size: 15px; font-weight: 700; color: var(--accent); }
.credits ul { margin-top: 8px; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: #d6d6d6; }
.credits strong { color: var(--ink); font-weight: 600; }
.credits a { color: var(--ink); text-underline-offset: 3px; }
.credits__note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.credits__close { min-height: 40px; padding: 0 14px; background: #262626; color: var(--ink); border: 0; border-radius: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.credits__close:active { transform: scale(.97); }

/* Hover only where a pointer can hover: no sticky hover on touch */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink); }
  .link:hover { text-decoration-color: currentColor; }
  .bar nav a:not(.btn):hover { color: var(--accent); }
  .basket li a:hover { color: var(--accent); }
  .tab:hover { background: #303030; }
  .course:hover { background: #0c0c0c; }
  .course__name a:hover { text-decoration-color: var(--accent); }
  .course__add:hover { border-color: var(--accent); }
  .btn--ghost:hover { background: transparent; border-color: var(--accent); }
  .bank__copy:hover { background: #2a2a2a; }
  .credits__close:hover { background: #303030; }
  .about__close:hover { background: var(--accent); }
  .foot__mail:hover span { transform: translateX(12px); }
}

/* ---------- Motion ---------- */
.js .rv { opacity: 0; transform: translateY(12px); filter: blur(4px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .rv.in { opacity: 1; transform: none; filter: none; }
.js .hero .rv { transition-duration: .9s; transition-delay: calc(120ms + var(--i, 0) * 90ms); }
.course.is-new { animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--n, 0) * 35ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }
.bump { animation: bump .3s var(--ease); }
@keyframes bump { from { transform: translateY(-6px); opacity: .3; } }
.course__add, .bank__copy { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { transform: none; filter: none; transition: opacity .3s linear; }
  .hero__bg, .clock__cell b > span, .course.is-new, .bump, .credits[open] { animation: none !important; }
  .btn, .course, .course__add, .tab, .foot__mail span { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .offer__side { grid-column: 1 / 13; position: static; }
  .offer__side > p { max-width: 52ch; }
  .offer__main { grid-column: 1 / 13; margin-top: 40px; padding-left: 0; }
  .basket { display: none; }
  .basket.has-items { display: block; position: fixed; inset: auto 0 0 0; margin: 0; padding: 14px var(--m); z-index: 5; }
  .basket.has-items h3, .basket.has-items ul, .basket.has-items .basket__empty { display: none; }
  .basket.has-items .basket__total { margin: 0; font-size: 17px; }
  .basket.has-items .btn { margin-top: 10px; min-height: 44px; }
  .how__text { grid-column: 1 / 13; }
  .how__main { grid-column: 1 / 13; margin-top: 56px; }
  .cta__text, .cta__panel { grid-column: 1 / 13; }
  .cta__panel { margin-top: 40px; max-width: 560px; }
  .how__photo { width: 100%; aspect-ratio: 16 / 9; object-position: 50% 25%; }
  .band h3, .band p { grid-column: 1 / 13; }
  .foot { min-height: 64svh; }
  .band p { margin-top: 16px; }
}
@media (max-width: 760px) {
  .bar nav a:not(.btn) { display: none; }
  .bar__mark img { height: 38px; }
  .hero { padding: 104px var(--m) 48px; }
  .hero__bg { object-position: 60% 40%; }
  .hero__date { font-size: 16px; }
  .hero__word { font-size: 8.4vw; letter-spacing: 0; margin-right: 0; }
  
  .hero__statement { font-size: 5.4vw; }
  .clock { margin-top: 28px; width: 100%; }
  .clock__cells { gap: 6px; }
  .clock__cell { flex: 1; min-width: 0; width: auto; padding: 12px 4px 10px; }
  .clock__cell b { font-size: 8vw; }
  .hero__actions { flex-direction: column; gap: 16px; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .tabs { flex-direction: column; }
  .tab { text-align: left; }
  .filters__row { grid-template-columns: 1fr; }
  .course { grid-template-columns: minmax(0, 1fr) auto; padding: 18px; gap: 12px 16px; }
  .course__name { font-size: 17px; }
  .course__add { grid-column: 1 / -1; width: 100%; }
  .steps > li { grid-template-columns: 44px 1fr; }
  .steps > li::before { font-size: 34px; }
  .bank { padding: 24px 20px; }
  .picked li { grid-template-columns: minmax(0, 1fr) auto; }
  .picked li .btn { grid-column: 1 / -1; width: 100%; }
  .bank dl div { grid-template-columns: 64px 1fr; }
  .bank__copy { grid-column: 2; justify-self: start; }
  .about__text { columns: 1; font-size: 20px; line-height: 1.3; }
  .faq__head { min-height: 0; flex-direction: column-reverse; align-items: flex-start; gap: 28px; padding-block: 32px 40px; }
  .faq__photo { width: 100%; aspect-ratio: 16 / 9; object-position: 50% 30%; }
  .faq__head h2 { font-size: 10.6vw; }
  .band { padding-block: 32px; }
  .band h3 { font-size: 22px; }
  .band p { font-size: 17px; }
  .foot__top, .foot__notes { flex-direction: column; gap: 16px; }
  .foot__mail { font-size: 9.6vw; }
  .foot__tels { flex-direction: column; gap: 6px; }
  .foot__meta { grid-template-columns: 1fr; gap: 6px; font-size: 13px; }
  .foot__meta > :last-child { justify-self: start; }
}
