/* Zancada (web de ejemplo). One motif: the stadium shape of an athletics track. */
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0d060b;
  --surface: #1b0e17;
  --ink: #fff;
  --muted: #c4b9c1;
  --accent: #ff488b;
  --plum: #470c35;
  --paper: #fff;
  --navy: #101421;
  --m: clamp(16px, 2.2vw, 32px);
  --pill: 999px;
  --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);
  --step-display: clamp(2.4rem, 5.4vw, 6.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body) / 1.5 "Jost", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
h1, h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 { font-size: var(--step-display); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.1; }
.lead { font-size: var(--step-lead); line-height: 1.3; }
.small { font-size: var(--step-small); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: var(--m); top: -80px; z-index: 60; background: var(--accent); color: var(--bg); padding: 12px 20px; border-radius: var(--pill); font-weight: 700; }
.skip:focus { top: 8px; }

/* Buttons: one shape, the stadium */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--pill);
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: var(--step-body); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:hover { background: var(--paper); transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 56px; padding: 0 34px; }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn-ghost { background: var(--plum); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }

/* Nav: a plain bar */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--m);
  background: var(--bg);
}
.mark { font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.03em; text-transform: uppercase; text-decoration: none; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav nav a { text-decoration: none; padding: 8px 0; }
.nav nav a:hover { color: var(--accent); }

/* Hero: the track, enormous, cropped by the viewport */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 64px);
  display: grid; align-items: center;
  padding: 48px var(--m) 72px;
}
.hero-copy { position: relative; z-index: 1; max-width: 54vw; display: grid; gap: 28px; justify-items: start; }
.hero-copy h1 span { display: block; }
.hero-copy .lead { max-width: 30ch; }
.hero-copy .small { color: var(--muted); }
.track { position: absolute; top: 50%; left: 60vw; width: 92vw; height: auto; transform: translateY(-50%); animation: slide 1.4s var(--ease) both; }
@keyframes slide { from { transform: translate(14%, -50%); opacity: 0; } to { transform: translate(0, -50%); opacity: 1; } }

/* Plan: the 12 weeks as a bar chart you can touch */
.plan { background: var(--paper); color: var(--navy); padding: clamp(80px, 12vw, 180px) var(--m); }
.plan-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.plan-head h2 { grid-column: 1 / 8; }
.plan-head p { grid-column: 9 / 13; }
.chart { margin-top: clamp(48px, 6vw, 88px); }
.chart figcaption { font-size: var(--step-small); font-weight: 500; margin-bottom: 16px; }
.bars { display: flex; gap: clamp(4px, 0.8vw, 12px); height: clamp(300px, 34vw, 460px); }
.bars li { flex: 1; min-width: 0; }
.bar {
  appearance: none; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  font: inherit; font-size: var(--step-small); font-weight: 500; color: var(--navy);
}
.bar-min { order: 1; padding-bottom: 6px; }
.bar::after {
  content: ""; order: 2; width: 100%;
  height: max(10px, calc((100% - 64px) * var(--v) / 65));
  background: var(--plum);
  border-radius: var(--pill) var(--pill) 0 0;
  transform-origin: bottom;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.bar-wk { order: 3; padding-top: 8px; height: 34px; }
.bar:hover::after { background: var(--navy); transform: scaleY(1.03); }
.bar[aria-pressed="true"]::after { background: var(--accent); }
.bar[aria-pressed="true"] { font-weight: 700; }
.bar:active::after { transform: scaleY(0.97); }

.picker { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.days { display: none; grid-column: 1 / 5; grid-row: 1; border: 0; min-width: 0; }
.js .days { display: block; }
.days legend { font-weight: 700; font-size: var(--step-lead); margin-bottom: 16px; padding: 0; }
.days label { display: inline-block; margin: 0 8px 8px 0; position: relative; }
.days input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.days span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--pill); background: #ece5ea; font-weight: 500; transition: background-color 0.2s, transform 0.2s var(--ease); }
.days input:hover + span { background: #dccfd8; }
.days input:checked + span { background: var(--plum); color: var(--paper); }
.days input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.days input:active + span { transform: scale(0.96); }
.weeks { grid-column: 5 / 13; grid-row: 1; display: grid; gap: 48px; }
.js .week { display: none; }
.js .week.on { display: block; animation: swap 0.5s var(--ease) both; }
@keyframes swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.week h3 { font-size: var(--step-head); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; }
.week-sum { margin-top: 12px; font-size: var(--step-lead); line-height: 1.3; }
.sessions { margin-top: 24px; display: grid; gap: 12px; max-width: 56ch; }
.sessions li, .tile li { position: relative; padding-left: 36px; }
.sessions li::before, .tile li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 22px; height: 11px;
  border-radius: var(--pill); background: var(--accent);
}
.weeks[data-days="2"] [data-d] { display: none; }
.weeks[data-days="3"] [data-d="4"] { display: none; }

/* About: inset plum panel, photographs inside the stadium shape */
.about { padding: 0 var(--m); }
.about-in {
  position: relative; overflow: hidden;
  background: var(--plum);
  min-height: clamp(660px, 100svh, 940px);
  padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; gap: 0 24px;
}
.about h2 { grid-column: 1 / 8; grid-row: 1; }
.about-photo {
  grid-column: 1 / 7; grid-row: 2; align-self: end;
  position: relative; width: min(100%, 38vw); aspect-ratio: 16 / 10;
  margin: 48px 0 -10%;
  border-radius: var(--pill); overflow: hidden;
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 24s infinite both; }
.about-photo img:first-child { opacity: 1; }
.about-photo img:nth-child(1) { animation-delay: -1.6s; }
.about-photo img:nth-child(2) { animation-delay: 4.4s; }
.about-photo img:nth-child(3) { animation-delay: 10.4s; }
.about-photo img:nth-child(4) { animation-delay: 16.4s; }
@keyframes fade { 0% { opacity: 0; } 6.7% { opacity: 1; } 25% { opacity: 1; } 31.7% { opacity: 0; } 100% { opacity: 0; } }
.about-text { grid-column: 8 / 13; grid-row: 1 / 3; padding-top: clamp(8px, 2vw, 24px); display: grid; gap: 48px; align-content: start; justify-items: start; }
.about-text > div { max-width: 40ch; display: grid; gap: 12px; }

/* Pricing: three tiles that step up like bars */
.price { background: var(--paper); color: var(--navy); margin-top: clamp(80px, 12vw, 180px); padding: clamp(80px, 12vw, 180px) var(--m); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.tile-col { display: grid; gap: 24px; align-content: end; }
.tile-col h2 { margin-bottom: 0; }
.price-note { max-width: 30ch; }
.tile {
  position: relative; display: grid; align-content: start; gap: 20px;
  padding: 28px 28px 92px; color: var(--ink);
}
.t1 .tile { background: var(--plum); min-height: 360px; }
.t2 .tile { background: var(--navy); min-height: 450px; }
.t3 .tile { background: var(--bg); min-height: 540px; }
.amount { font-size: var(--step-head); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.tile ul { display: grid; gap: 12px; }
.strip {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  display: flex; align-items: center; padding: 0 28px;
  background: var(--accent); color: var(--bg);
  font-weight: 700; text-decoration: none;
  transition: background-color 0.2s, padding-left 0.2s var(--ease);
}
.strip:hover { background: var(--paper); padding-left: 40px; }
.price-fine { margin-top: 32px; max-width: 60ch; font-size: var(--step-body); }

/* FAQ: index cards with tabs, one open at a time */
.faq { padding: clamp(80px, 12vw, 180px) var(--m); }
.faq h2, .cards { margin-left: 16.667%; max-width: 880px; }
.cards { margin-top: 48px; }
.cards details {
  --c: var(--plum); --ci: var(--ink); --o: calc(var(--i) * 150px);
  position: relative; padding-top: 40px;
  background: var(--c); color: var(--ci);
  clip-path: polygon(0 40px, var(--o) 40px, calc(var(--o) + 12px) 0, calc(var(--o) + 188px) 0, calc(var(--o) + 200px) 40px, 100% 40px, 100% 100%, 0 100%);
}
.cards details.c2 { --c: var(--paper); --ci: var(--navy); }
.cards details.c3 { --c: var(--surface); }
.tab { position: absolute; top: 0; left: var(--o); width: 200px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: var(--step-body); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  min-height: 56px; padding: 8px 24px;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.2;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; margin-left: auto; flex: none; width: 30px; height: 14px; border-radius: var(--pill); background: currentColor; transition: width 0.3s var(--ease); }
details[open] summary::after { width: 14px; }
summary:hover .q { text-decoration: underline; text-underline-offset: 4px; }
summary:focus-visible { outline-offset: -6px; }
details p { padding: 4px 24px 32px; max-width: 54ch; }

/* Footer: the mark built from blocks */
.foot { background: var(--plum); padding: clamp(48px, 6vw, 88px) var(--m) 28px; }
.word { display: flex; align-items: flex-end; gap: 4px; height: clamp(150px, 34svh, 360px); }
.word span {
  flex: 1; min-width: 0; height: var(--h);
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: var(--accent); color: var(--plum);
  font-weight: 700; font-size: clamp(3.4rem, 15vw, 20rem); line-height: 0.8; padding-bottom: 0.06em;
}
.word span:nth-child(even) { background: var(--paper); }
.foot-links { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.foot-links nav { grid-column: 1 / 9; display: flex; flex-wrap: wrap; gap: 12px 40px; align-content: start; }
.foot-links nav a { padding: 8px 0; text-decoration: none; }
.foot-links nav a:hover, .foot-links p a { color: var(--accent); }
.foot-links p { grid-column: 9 / 13; }
.foot-last { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.foot-last .small { max-width: 70ch; color: var(--muted); }

/* Example dialog, opened by the fake checkout buttons (no script needed) */
.demo { display: none; position: fixed; inset: 0; z-index: 50; background: var(--bg); place-items: center; padding: var(--m); overflow: auto; }
.demo:target { display: grid; }
.demo-in { max-width: 720px; display: grid; gap: 28px; justify-items: start; }
.demo-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* Motion: content rises in once; without script everything is visible */
.js .rv { opacity: 0; transform: translateY(24px); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
.js .chart .bar::after { transform: scaleY(0); }
.js .chart.in .bar::after { transform: scaleY(1); transition: transform 0.8s var(--ease) calc(var(--i, 0) * 60ms), background-color 0.2s; }
.js .chart.in .bar:hover::after { transform: scaleY(1.03); transition: background-color 0.2s, transform 0.2s var(--ease); }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; padding-top: 0; min-height: 0; }
  .hero-copy { max-width: none; order: 2; }
  .track { position: static; order: 1; transform: none; width: 125vw; margin-left: -4vw; animation-name: slide-m; }
  @keyframes slide-m { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
  .plan-head h2, .plan-head p { grid-column: 1 / -1; }
  .days, .weeks { grid-column: 1 / -1; grid-row: auto; }
  .about-in { display: flex; flex-direction: column; gap: 32px; min-height: 0; padding-bottom: 0; }
  .about-text { order: 2; gap: 32px; }
  .about-photo { order: 3; width: 86%; align-self: center; margin: 16px 0 -12%; flex: none; }
  .tiles { grid-template-columns: 1fr; }
  .tile-col { align-content: start; }
  .tile-col:not(.t1) { margin-top: 0; }
  .t1 .tile, .t2 .tile, .t3 .tile { min-height: 0; }
  .faq h2, .cards { margin-left: 0; }
  .cards details { --o: calc(var(--i) * 48px); }
  .tab { width: 120px; }
  .cards details { clip-path: polygon(0 40px, var(--o) 40px, calc(var(--o) + 12px) 0, calc(var(--o) + 108px) 0, calc(var(--o) + 120px) 40px, 100% 40px, 100% 100%, 0 100%); }
  summary { padding-inline: 20px; }
  details p { padding-inline: 20px; }
  .word { height: clamp(120px, 22svh, 200px); }
  .foot-links nav, .foot-links p { grid-column: 1 / -1; }
  .foot-links nav { display: grid; grid-template-columns: 1fr 1fr; }
  .foot-last { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .js .chart .bar::after { transform: none; }
}
