/* Pampa Club · trial class landing. Phones open on logo, video and one CTA, with the form right after; desktop shows the form beside a 9:16 video panel. */
@font-face {
  font-family: 'Apoc';
  src: url('fonts/apoc-light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lexend';
  src: url('fonts/lexend-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --olive: #363d35;
  --olive-2: #2c322b;
  --bone: #ede7e3;
  --bone-2: #e4ddd7;
  --sage: #b3bdb4;
  --moss: #848e83;
  --clay: #8c7258;
  --clay-text: #6f5843;
  --paper: #f6f2ef;
  --ink: var(--olive);
  --ink-soft: #565c54;
  --on-dark: #f1ece8;
  --on-dark-soft: rgba(241, 236, 232, .84);
  --rule: rgba(54, 61, 53, .16);
  --font-display: 'Apoc', 'Times New Roman', Georgia, serif;
  --font-body: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --gutter: 16px;
  --bar-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
body {
  background: var(--paper); color: var(--ink);
  font: 350 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
em { font-style: normal; }
ul, ol { list-style: none; }
a { color: inherit; }
img, video { display: block; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
strong { font-weight: 500; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.first :focus-visible, .foot :focus-visible { outline-color: var(--bone); }
.card :focus-visible { outline-color: var(--clay); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.band { padding: 48px 0; }
.tint { background: var(--bone); }

.h1, .h2 { font-family: var(--font-display); font-weight: 300; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
.h1 { font-size: clamp(2.25rem, 10.5vw, 2.875rem); }
.h1 em { color: var(--sage); }
.h2 { font-size: clamp(2rem, 8.4vw, 3rem); }

/* Primary action: olive on light, bone on the dark hero. */
.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 48px; padding: 10px 20px;
  border: 0; border-radius: 100px; cursor: pointer;
  background: var(--olive); color: var(--on-dark);
  font: 500 .9375rem/1.25 var(--font-body); text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.btn[disabled] { opacity: .7; cursor: progress; }
.btn[aria-disabled="true"] { background: var(--bone-2); color: var(--ink-soft); }

/* ---------- first screen ---------- */
/* Phones: logo bar, then the video fills the rest of the screen with the headline and CTA on it.
   display: contents lets the shared markup sit directly on this grid. */
.first {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: var(--bar-h) calc(100vh - var(--bar-h)); grid-template-rows: var(--bar-h) calc(100svh - var(--bar-h));
  grid-auto-rows: auto;
  background: var(--olive); color: var(--on-dark);
}
.hero-media, .first-body { display: contents; }
.logobar { grid-row: 1; align-self: center; justify-self: center; }
.logobar img { width: auto; height: 42px; }
/* Top-anchored so a wide crop never slices the title burned into the footage. */
.hero-media video { grid-row: 2; grid-column: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 0; }
/* The fade stays inside the top padding, so the text always sits on the dense part, for AA over any frame. */
.hero-copy {
  grid-row: 2; grid-column: 1; align-self: end; z-index: 1;
  padding: 72px var(--gutter) 20px;
  background: linear-gradient(to top, rgba(54, 61, 53, .96) 0, rgba(54, 61, 53, .92) calc(100% - 72px), rgba(54, 61, 53, 0) 100%);
}
.proof { display: flex; flex-wrap: wrap; column-gap: 16px; margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--on-dark-soft); }
.hero-cta { margin-top: 14px; background: var(--bone); color: var(--olive); }
.sub { margin: 20px var(--gutter) 0; font-size: .9375rem; line-height: 1.45; color: var(--on-dark-soft); }
.price { margin: 12px var(--gutter) 24px; font-size: .875rem; font-weight: 500; line-height: 1.35; color: var(--on-dark); }

/* ---------- form card ---------- */
.card {
  margin: 14px var(--gutter) 0; padding: 14px; border-radius: 14px;
  background: var(--paper); color: var(--ink); scroll-margin-top: 92px; /* keeps the line above the card in view */
}
.flow-head { display: flex; align-items: center; justify-content: space-between; min-height: 18px; margin-bottom: 6px; }
.progress { font-size: .75rem; font-weight: 500; line-height: 18px; color: var(--clay-text); }
/* 44px target that overlaps the card padding, so the row costs only 18px of height. */
.back {
  min-height: 44px; margin: -13px -8px; padding: 0 8px;
  border: 0; background: none; cursor: pointer;
  font-size: .8125rem; font-weight: 500; color: var(--clay-text);
  text-decoration: underline; text-underline-offset: 3px;
}

/* Every step shares one grid cell: the card keeps the height of the tallest, so nothing jumps. */
.steps, .after { display: grid; grid-template-columns: minmax(0, 1fr); }
.step, .after > * { grid-area: 1 / 1; min-width: 0; }
.step { visibility: hidden; }
.step.is-active { visibility: visible; animation: step-in .18s var(--ease-out); }
@keyframes step-in { from { opacity: 0; } to { opacity: 1; } }

.q {
  margin-bottom: 10px; font-family: var(--font-display); font-weight: 300;
  font-size: 1.625rem; line-height: 1.1; letter-spacing: -.01em;
}
.opts { display: grid; gap: 6px; }
.opt {
  display: block; width: 100%; min-height: 48px; padding: 6px 14px;
  border: 1.5px solid var(--bone-2); border-radius: 12px; background: var(--bone); cursor: pointer;
  font-size: .9375rem; font-weight: 400; line-height: 1.2; text-align: left;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.opt:active { background: var(--bone-2); }
.opt[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--on-dark); }

.error { min-height: 18px; margin: 3px 0; font-size: .8125rem; font-weight: 500; line-height: 18px; color: var(--clay-text); }
.after { margin-top: 6px; }
.hint, .status { font-size: .78125rem; line-height: 1.35; color: var(--ink-soft); }
.hint.is-off { visibility: hidden; }
.status a { display: inline-block; margin: -14px -4px; padding: 14px 4px; color: var(--clay-text); }

/* ---------- below the fold ---------- */
.split { display: grid; gap: 20px; }

.walk { counter-reset: walk; }
.walk li {
  counter-increment: walk; position: relative;
  padding: 14px 0 14px 40px; border-top: 1px solid var(--rule); line-height: 1.45;
}
.walk li::before {
  content: counter(walk); position: absolute; left: 0; top: 7px;
  font: 300 1.75rem/1.3 var(--font-display); color: var(--clay-text);
}

.classes li { padding: 14px 0; border-top: 1px solid var(--rule); }
.classes h3, .plans h3 { font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; }
.classes p { margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }
.kinds { margin-top: 10px; font-size: .875rem; line-height: 1.4; }
.kinds > div { padding: 3px 0; }
.kinds dt { display: inline; font-weight: 500; }
.kinds dt::after { content: ':'; }
.kinds dd { display: inline; color: var(--ink-soft); }

.lead { margin-top: 12px; max-width: 52ch; line-height: 1.45; color: var(--ink-soft); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.plans li { padding: 14px; border-radius: 14px; background: var(--bone); font-size: .875rem; line-height: 1.35; }
.plans p { margin-top: 4px; color: var(--ink-soft); }
.plans .amount { margin-top: 10px; font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.plans .perk { color: var(--clay-text); }
.note { margin-top: 14px; font-size: .875rem; line-height: 1.45; color: var(--ink-soft); }
.note + .note { margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }

.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 10px 0; cursor: pointer; list-style: none;
  font-weight: 500; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-size: 1.25rem; font-weight: 300; line-height: 1; color: var(--clay-text); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 28px 14px 0; font-size: .9375rem; line-height: 1.45; color: var(--ink-soft); }

.final .btn { margin-top: 20px; }

.foot { padding: 20px 0 24px; background: var(--olive); color: var(--on-dark); font-size: .8125rem; }
.foot ul { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; }
.foot li:first-child { flex-basis: 100%; padding: 12px 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Phones only; main.js reveals it while the hero CTA, form, final CTA and footer are all out of view. */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: var(--olive); color: var(--on-dark);
  font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.sticky:focus-visible { outline-color: var(--bone); outline-offset: -5px; }

@media (hover: hover) {
  .btn:hover { background: var(--olive-2); }
  .btn[aria-disabled="true"]:hover { background: var(--bone-2); }
  .hero-cta:hover { background: var(--paper); }
  .opt:hover { border-color: var(--moss); }
  .opt[aria-pressed="true"]:hover { border-color: var(--olive); }
}

@media (min-width: 560px) and (max-width: 899px) {
  .final .btn { width: auto; display: inline-flex; padding-inline: 28px; }
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .band { padding: 80px 0; }

  /* The only cut is vertical: a 9:16 panel beside the form, never stretched or cropped to landscape. */
  .first {
    grid-template-columns: auto minmax(0, 600px); grid-template-rows: auto 1fr;
    justify-content: center; column-gap: 56px;
    min-height: 100vh; padding: 24px var(--gutter);
  }
  .logobar { grid-column: 2; grid-row: 1; justify-self: start; align-self: start; }
  .logobar img { height: 52px; }
  .hero-media {
    display: block; grid-column: 1; grid-row: 1 / 3; align-self: center;
    position: relative; overflow: hidden; border-radius: 14px;
    width: min(calc(clamp(520px, 100vh - 48px, 860px) * 9 / 16), 38vw); aspect-ratio: 9 / 16;
  }
  .hero-media video { position: absolute; inset: 0; }
  .first-body { display: flex; flex-direction: column; justify-content: center; grid-column: 2; grid-row: 2; min-width: 0; padding-top: 12px; }
  .hero-copy { align-self: stretch; padding: 0; background: none; }
  .hero-cta { display: none; }
  .h1 { font-size: clamp(2.5rem, min(3.8vw, 7vh), 3.5rem); }
  .sub { margin: 12px 0 0; font-size: 1rem; }
  .card { margin: 18px 0 0; padding: 18px; }
  .price { margin: 12px 0 0; }
  .q { font-size: 1.75rem; margin-bottom: 12px; }

  .h2 { font-size: clamp(2.25rem, 3.4vw, 3rem); }
  .split { grid-template-columns: 1fr 1.5fr; column-gap: 64px; align-items: start; }
  .walk li:first-child, .classes li:first-child { border-top: 0; padding-top: 0; }
  .walk li:first-child::before { top: -7px; }
  .faq details:first-child { border-top: 0; }
  .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .plans li { padding: 18px; }

  .final .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
  .final .btn { width: auto; flex: none; margin-top: 0; padding-inline: 32px; }

  .foot ul { justify-content: center; }
  .foot li:first-child { flex-basis: auto; }
  .foot li + li::before { content: '·'; margin-right: 20px; }
  .foot li { display: flex; align-items: center; }

  .sticky { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
