/* ============================================================================
   CoachedByLeoamf - Basic Coaching OFFER page (post-qualification, warm traffic)
   Extends the qualification page's visual system (styles.css supplies tokens,
   brand chrome, .btn/.btn-primary, .grad-text, .reveal, .proof-strip marquee).
   Flow: Watch VSL → See Results → Choose Package → Checkout.
   Mobile-first · proof-heavy · minimal copy · lots of whitespace.
   ========================================================================== */

/* Wider container than the funnel (needs room for the 3-package grid). */
.o-wrap {
  width: 100%;
  max-width: clamp(360px, 92vw, 1040px);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 28px);
}

.o-section {
  padding-top: clamp(56px, 12vw, 104px);
}

.o-h2 {
  font-size: var(--step-3);
  text-align: center;
  max-width: 22ch;
  margin: 0 auto clamp(28px, 6vw, 44px);
}

.o-sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-64);
  max-width: 52ch;
}
.o-sub-center {
  text-align: center;
  margin: -18px auto clamp(30px, 6vw, 46px);
}

/* ── Above the fold / VSL ─────────────────────────────────────────────────── */
.o-hero {
  text-align: center;
  padding-top: clamp(28px, 7vw, 56px);
  position: relative;
}

/* post-qualification confirmation pill - the emerald variant of styles.css
   .eyebrow; intentionally NOT gold, to keep gold scarce and signal a calm "done". */
.micro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald-2);
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.32);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.micro svg {
  color: var(--emerald-2);
}

.o-hero h1 {
  font-size: var(--step-4);
  margin: 0 auto 20px;
  max-width: 20ch;
}
.o-hero .o-sub {
  margin: 0 auto 34px;
  text-align: center;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.step-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #0A0A0A;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  padding: 4px 9px;
  border-radius: 7px;
}
.step-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Bigger, more dominant "ΒΗΜΑ 1 · Παρακολούθησε το βίντεο" cue (spec: make step 1
   bigger so the watch-the-video instruction reads loud above the player). A pill
   block with a larger tag + label, still calm emerald (gold stays scarce). */
.step-label-hero {
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 22px;
  padding: 9px 20px 9px 11px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.1);
  border: 1px solid rgba(29, 185, 84, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.step-label-hero .step-tag {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 9px;
}
.step-label-hero .step-text {
  font-size: clamp(17px, 14px + 1vw, 21px);
}

/* large, dominant 16:9 player.
   Poster: anonymous athlete VSL cover (face in shadow) behind the play button.
   Kept dark via a layered ink gradient over the image so the play glyph + label
   stay legible (brand: ink + single green). */
.vsl {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background-image:
    radial-gradient(120% 120% at 50% 0%, rgba(29, 185, 84, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.82) 100%),
    url('/assets/vsl-cover.webp');
  background-size: cover, cover, cover;
  background-position: center, center, center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--sh-4);
}
.vsl-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
/* Brand green play button, white glyph (was gold/white) - keeps the page to the
   single green accent over ink. */
.vsl-play {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: clamp(64px, 14vw, 86px);
  height: clamp(64px, 14vw, 86px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, var(--emerald-2) 0%, var(--emerald) 52%, var(--green-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s var(--ease-out), box-shadow 0.22s var(--ease-out);
  padding-left: 4px; /* optically center the play glyph */
}
.vsl-play:hover {
  transform: scale(1.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 4px rgba(0, 0, 0, 0.45), 0 14px 30px rgba(0, 0, 0, 0.5);
}
.vsl-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-46);
}
.vsl.playing .vsl-play {
  opacity: 0;
  pointer-events: none;
}
.vsl-hint {
  min-height: 1.2em;
  margin: 14px auto 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--emerald-2);
}

.o-cta-zone {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* secondary "see packages" button - emerald, calmer than the gold conversion CTA */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15.5px;
  color: var(--ink);
  background: rgba(29, 185, 84, 0.12);
  border: 1px solid rgba(29, 185, 84, 0.4);
  padding: 14px 26px;
}
.btn-ghost:hover {
  background: rgba(29, 185, 84, 0.2);
  transform: translateY(-1px);
}
.btn-ghost.is-locked,
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Results testimonial card (extends .proof-card from styles.css) ────────── */
.proof-quote {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  background: var(--panel);
}
.proof-quote .quote-mark {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.6;
  color: var(--emerald-2);
  opacity: 0.5;
  margin-bottom: 6px;
}
.proof-quote .quote-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-80);
  margin: 0 0 12px;
}
.proof-quote .quote-by {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-46);
}

/* ── Section CTA (after results) ──────────────────────────────────────────── */
.section-cta {
  text-align: center;
  margin-top: clamp(34px, 7vw, 52px);
}
.section-cta-h {
  font-size: var(--step-2);
  margin: 0 0 22px;
}

/* ── Packages ─────────────────────────────────────────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 880px) {
  .pkg-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /* keep the base `stretch` → equal-height cards + aligned CTAs; the
       recommended card still pops via transform:scale (paint-time, no reflow). */
  }
}

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 32px) clamp(20px, 3.4vw, 28px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sh-3);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    border-color 0.2s var(--ease-out);
}
@media (hover: hover) {
  .pkg:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 185, 84, 0.4);
  }
}

/* dynamic recommendation - highlight exactly one, never hide/reorder others */
.pkg.is-recommended {
  border-color: var(--emerald);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.34), var(--sh-4);
}
@media (min-width: 880px) {
  .pkg.is-recommended {
    transform: scale(1.05);
  }
  @media (hover: hover) {
    .pkg.is-recommended:hover {
      transform: scale(1.05) translateY(-3px);
    }
  }
}

/* static tier badge (popular / best value) - top-right ribbon */
.pkg-badge {
  position: absolute;
  top: 0;
  right: clamp(18px, 3vw, 26px);
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.pkg-badge-popular {
  color: #ffffff;
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.4);
}
.pkg-badge-value {
  color: #0A0A0A;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.16);
}

/* dynamic "recommended for you" badge - shown by offer.js on one card */
.pkg-rec-badge {
  position: absolute;
  top: 0;
  left: clamp(18px, 3vw, 26px);
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--emerald-2), var(--emerald));
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.5);
}
.pkg-rec-badge[hidden] {
  display: none;
}
/* When a card is the personalized recommendation, the "for you" badge wins -
   hide the generic tier badge so the two never collide on a narrow card. */
.pkg.is-recommended .pkg-badge {
  display: none;
}

.pkg-head {
  margin-bottom: 16px;
}
.pkg-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-64);
  margin: 0 0 10px;
}
.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pkg-price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.7rem + 1.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pkg-price .per {
  font-size: 15px;
  color: var(--ink-46);
  font-weight: 600;
}

.pkg-pitch {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-64);
  margin: 0 0 20px;
}

.pkg-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1; /* push CTA to the bottom for equal-height cards */
}
.pkg-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-80);
}
.pkg-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.16);
  border: 1px solid rgba(29, 185, 84, 0.4);
}
.pkg-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  width: 6px;
  height: 9px;
  border: solid var(--emerald-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* package CTA - subtle green by default; the recommended card's CTA is the page's
   single key conversion action → solid brand green with a white label. */
.pkg-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 15px 22px;
  color: var(--ink);
  background: rgba(29, 185, 84, 0.14);
  border: 1px solid rgba(29, 185, 84, 0.45);
  transition: transform 0.18s var(--ease-out), background 0.2s, box-shadow 0.22s var(--ease-out);
}
.pkg-cta:hover {
  background: rgba(29, 185, 84, 0.24);
  transform: translateY(-1px);
}
.pkg-cta.is-primary {
  color: #ffffff;
  background: linear-gradient(180deg, var(--emerald-2) 0%, var(--green-deep) 100%);
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.4);
}
.pkg-cta.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0, 0, 0, 0.45), 0 14px 30px rgba(0, 0, 0, 0.5);
}

/* ── Packages section visual (floating phone) ─────────────────────────────── */
/* App deliverable made tangible: the green coaching dashboard mockup floats to
   one side of the package grid on wide screens, tucks above the grid on mobile. */
.pkg-section-visual {
  display: flex;
  justify-content: center;
  margin: 0 auto clamp(28px, 6vw, 40px);
}
.pkg-phone {
  width: clamp(160px, 40vw, 220px);
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--sh-4), 0 0 0 1px rgba(29, 185, 84, 0.12);
  background: var(--panel);
}
@media (min-width: 880px) {
  .pkg-section-visual {
    float: right;
    margin: -8px 0 12px clamp(20px, 3vw, 36px);
    shape-outside: inset(0 round 20px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .pkg-phone {
    animation: phoneFloat 6s ease-in-out infinite;
  }
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Anonymous mood visual (between results & packages) ───────────────────── */
/* NOT a person/identity claim - an anonymous athletic figure (no face) used as a
   discipline mood beat with neutral copy. Kept dark so white copy stays legible. */
.mood-band {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: clamp(48px, 9vw, 80px) auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sh-4);
  min-height: clamp(220px, 38vw, 340px);
  display: flex;
  align-items: center;
}
.mood-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  opacity: 0.42;
  z-index: 0;
}
.mood-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 120% at 18% 50%, rgba(10, 10, 10, 0.72), transparent 62%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.34) 100%);
  z-index: 1;
}
.mood-copy {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 6vw, 52px);
  max-width: 34ch;
}
.mood-copy .mood-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.mood-copy .mood-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-80);
  margin: 0;
}

/* ── FAQ accordion ────────────────────────────────────────────────────────── */
.faq {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open {
  border-color: rgba(29, 185, 84, 0.45);
}
.faq-q {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
  padding: 18px 18px;
}
/* inset the focus ring so the overflow:hidden card never clips it */
.faq-q:focus-visible {
  outline-offset: -3px;
}
.faq-chev {
  flex: 0 0 auto;
  color: var(--emerald-2);
  transition: transform 0.28s var(--ease-out);
}
.faq-item.open .faq-chev {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s var(--ease-out);
}
.faq-a p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-64);
}

/* ── Final CTA ────────────────────────────────────────────────────────────── */
/* Faint ambient-divider texture (green-on-ink) sits behind the panel + green
   wash, kept very low-contrast so the white copy stays legible. */
.final-cta {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(29, 185, 84, 0.14), transparent 62%),
    var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(34px, 7vw, 60px) clamp(22px, 5vw, 48px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--sh-4);
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/ambient-divider.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.final-cta > * {
  position: relative;
  z-index: 1;
}
.final-cta-h {
  font-size: var(--step-2);
  line-height: 1.28;
  max-width: 30ch;
  margin: 0 auto 14px;
}
.final-cta-sub {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-64);
  max-width: 44ch;
  margin: 0 auto 30px;
}

/* extra reveal stagger used by package cards */
.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}

/* ── Soft-gate locked states (offer.js, CONFIG.softGate) ──────────────────── */
/* hideCtas mode (default): the hero CTA zone stays hidden until the visitor
   watches `threshold`% of the VSL, then reveals with a soft slide-in. Keeps the
   player the only focus while the video plays (spec: watch first, choose after). */
.o-cta-zone.cta-locked {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-top: 0;
  pointer-events: none;
  overflow: hidden;
}
.o-cta-zone.cta-revealed {
  animation: ctaReveal 0.5s var(--ease-out) both;
}
@keyframes ctaReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* revealPricing mode (alternative): gate the whole packages section instead. */
#packages.gated {
  max-height: 320px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  pointer-events: none;
}
#packages.revealed {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: auto;
}

/* Small phones: tighten the pre-VSL stack so the player stays the dominant
   element above the fold (spec: large VSL, goal #1 = watch the video). */
@media (max-width: 560px) {
  .o-hero {
    padding-top: 14px;
  }
  /* Mobile headline hygiene: tighten section H2s so longer Greek strings read
     as 2 clean lines instead of cramping into 3. Wider max-width lets the line
     fill before wrapping; smaller size + tighter leading keeps it compact. */
  .o-h2 {
    font-size: clamp(1.25rem, 0.98rem + 1.9vw, 1.5rem);
    line-height: 1.18;
    max-width: 26ch;
  }
  .micro {
    margin-bottom: 16px;
  }
  .o-hero h1 {
    font-size: var(--step-3);
    margin-bottom: 14px;
    max-width: 24ch;
  }
  .o-hero .o-sub {
    margin-bottom: 16px;
  }
  .step-label {
    margin-bottom: 12px;
  }
  .step-label-hero {
    margin-bottom: 14px;
    padding: 8px 16px 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pkg,
  .faq-chev,
  .faq-a {
    transition-duration: 0.001ms !important;
  }
  .pkg.is-recommended {
    transform: none;
  }
  .o-cta-zone.cta-revealed {
    animation: none;
  }
}
