/* ==========================================================================
   Peptide Revolution — partnerský program
   Landing page (canvas 7a)
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* brand */
  --gold:        #eeb210;
  --gold-deep:   #d99a06;
  --gold-grad:   linear-gradient(90deg, #eeb210, #d99a06);

  /* surfaces */
  --bg:          #0a0a0c;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   #0d0d10;
  --line:        rgba(255, 255, 255, 0.09);
  --line-soft:   rgba(255, 255, 255, 0.08);

  /* gold tints */
  --gold-08:     rgba(238, 178, 16, 0.08);
  --gold-14:     rgba(238, 178, 16, 0.14);
  --gold-16:     rgba(238, 178, 16, 0.16);
  --gold-18:     rgba(238, 178, 16, 0.18);
  --gold-28:     rgba(238, 178, 16, 0.28);
  --gold-35:     rgba(238, 178, 16, 0.35);
  --gold-45:     rgba(238, 178, 16, 0.45);

  /* text */
  --ink:         #ffffff;
  --ink-85:      rgba(255, 255, 255, 0.85);
  --ink-80:      rgba(255, 255, 255, 0.80);
  --ink-75:      rgba(255, 255, 255, 0.75);
  --ink-70:      rgba(255, 255, 255, 0.70);
  --ink-60:      rgba(255, 255, 255, 0.60);
  --ink-55:      rgba(255, 255, 255, 0.55);
  --on-gold:     #111111;

  /* geometry */
  --radius:      8px;
  --radius-sm:   4px;
  --shell:       1312px;          /* 1440 comp − 2 × 64 gutter */
  --gutter:      clamp(20px, 4.4vw, 64px);
  --section-gap: clamp(56px, 7vw, 96px);

  /* effects */
  --cta-shadow:  0 12px 30px rgba(238, 178, 16, 0.30);
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Utilities ---------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Page frame --------------------------------------------------------- */
.page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 640px at 85% -6%, rgba(238, 178, 16, 0.12), transparent 70%),
    radial-gradient(900px 700px at 0% 40%, rgba(238, 178, 16, 0.06), transparent 70%),
    linear-gradient(180deg, #17151d 0%, #0a0a0c 30%, #050507 100%);
}

/* decorative helix, top-right */
.helix {
  position: absolute;
  right: -60px;
  top: -100px;
  width: 360px;
  height: 1200px;
  transform: rotate(16deg);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.page > *:not(.helix) { position: relative; z-index: 1; }

/* --- Typography --------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  text-wrap: balance;
}

.section-lead {
  max-width: 66ch;
  font-size: clamp(14.5px, 1.1vw, 15px);
  line-height: 1.65;
  color: var(--ink-75);
  text-wrap: pretty;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 17px 36px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.btn--primary {
  color: var(--on-gold);
  background: var(--gold-grad);
  box-shadow: var(--cta-shadow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(238, 178, 16, 0.38);
}
.btn--primary:active { transform: translateY(0); }

.btn--sm { font-size: 14.5px; padding: 16px 34px; }

.btn--ghost {
  padding: 17px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink-85);
  transition: color 0.18s var(--ease);
}
.btn--ghost:hover { color: var(--gold); }

/* Outline control.
   Shared by the header login button and the language toggle so the two are
   the same object visually — same border, weight, type size and hover. Only
   the horizontal padding differs, because the toggle carries a flag and a
   chevron instead of a word. Change it here and both follow. */
.btn--outline,
.lang__toggle {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;   /* a wrapped label would break the height match */
  color: var(--ink);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.btn--outline { padding: 10px 24px; }

.btn--outline:hover,
.lang__toggle:hover,
.lang[open] .lang__toggle {
  border-color: var(--gold);
  background: var(--gold-08);
  color: var(--ink);
}

.cta-note {
  font-size: 13.5px;
  color: var(--ink-60);
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(18px, 2.2vw, 26px);
}

/* Must out-specify `.page > *:not(.helix)`, which sets z-index: 1 on every
   direct child. Without this the open language menu is painted underneath
   <main> and the hero headline shows straight through it. */
.page > header.site-header { z-index: 20; }

.site-header__logo { height: 42px; width: auto; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
  padding-top: clamp(36px, 4.6vw, 56px);
  padding-bottom: var(--section-gap);
}

.hero__body { flex: 1; max-width: 640px; }

.hero__badge {
  display: inline-block;
  background: var(--gold-16);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: var(--gold); }

.hero__lead {
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--ink-80);
  text-wrap: pretty;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}

.hero__figure {
  position: relative;
  width: 480px;
  height: 620px;
  flex-shrink: 0;
  align-self: flex-start;
}

.hero__figure img {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.75) 80%, rgba(0, 0, 0, 0.25) 93%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.75) 80%, rgba(0, 0, 0, 0.25) 93%, transparent 100%);
}

/* --- Generic section ---------------------------------------------------- */
.section { padding-bottom: var(--section-gap); scroll-margin-top: 24px; }

/* --- Benefit cards ------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 44px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-28); }

.card--featured {
  border-color: var(--gold-28);
  box-shadow: 0 0 0 1px rgba(238, 178, 16, 0.10);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--gold-14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p, .step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-70);
}

/* --- Steps -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.step { display: flex; flex-direction: column; gap: 14px; }

.step__num {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-35);
}

.step__title { font-size: 16.5px; font-weight: 700; }

/* --- Tier band ---------------------------------------------------------- */
.band {
  border-radius: var(--radius);
  border: 1px solid var(--gold-28);
  background: linear-gradient(100deg, rgba(238, 178, 16, 0.10), rgba(238, 178, 16, 0.03));
  padding: clamp(30px, 4vw, 48px) clamp(24px, 4.4vw, 56px);
}

.band__lead { max-width: 700px; margin-top: 16px; margin-bottom: 32px; color: var(--ink-80); }

.tiers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  list-style: none;
  padding: 0;
}

.tier {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-85);
  white-space: nowrap;
}
.tier--bronze { border-color: var(--gold-35); color: var(--gold); }
.tier--gold   { border-color: var(--gold-45); color: var(--gold); }
.tier--icon {
  border-color: rgba(238, 178, 16, 0.55);
  color: var(--on-gold);
  background: var(--gold-grad);
  font-weight: 700;
}
.tier-sep { color: rgba(238, 178, 16, 0.6); }
.tier-more { font-size: 13px; color: var(--ink-55); margin-left: 6px; }

/* --- Check list --------------------------------------------------------- */
.check-list { list-style: none; margin: 0; padding: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
}

.check__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.check__note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-70);
  max-width: 700px;
}

/* --- Retention split ---------------------------------------------------- */
.split {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}
.split__body { flex: 1; }
.split__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-80);
  text-wrap: pretty;
}
.split__body p + p { margin-top: 16px; }
.split__title { margin-bottom: 20px; }

.ledger {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger li {
  background: var(--surface-2);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}
.ledger dt, .ledger span:first-child { color: var(--ink-70); }
.ledger b { font-weight: 700; color: var(--gold); white-space: nowrap; }

/* --- Portal features ---------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.feature { border-top: 2px solid var(--gold-45); padding-top: 20px; }
.feature h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 13.5px; line-height: 1.6; color: var(--ink-70); }

/* --- Criteria + FAQ ----------------------------------------------------- */
.duo {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 5vw, 70px);
}

.duo__main { flex: 1; max-width: 620px; }
.duo__aside { width: 480px; flex-shrink: 0; }

.criteria { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.criteria strong { font-weight: 700; }
.criteria .muted { color: var(--ink-70); }

.faq { display: flex; flex-direction: column; gap: 18px; }

.faq__item { border-bottom: 1px solid rgba(255, 255, 255, 0.10); padding-bottom: 18px; }
.faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__q { font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.faq__a { font-size: 13.5px; line-height: 1.6; color: var(--ink-70); }

/* --- Closing CTA -------------------------------------------------------- */
.closing {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(238, 178, 16, 0.16), rgba(238, 178, 16, 0.05));
  border: 1px solid var(--gold-35);
  padding: clamp(34px, 4.6vw, 54px) clamp(24px, 4.4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 50px);
  margin-bottom: 90px;
}
.closing__body { max-width: 680px; }
.closing h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.closing p { font-size: 15px; line-height: 1.65; color: var(--ink-80); text-wrap: pretty; }
.closing .btn { flex-shrink: 0; padding: 18px 36px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-block: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
}
.site-footer p { color: var(--ink-55); }

/* --- Scroll reveal ------------------------------------------------------
   Gated on .js so the page is fully readable without (or before) JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape — shrink the hero figure before it starts crowding copy */
@media (max-width: 1180px) {
  .hero__figure { width: 380px; height: 520px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .ledger { width: 360px; }
}

/* Tablet — stack the two-column blocks */
@media (max-width: 940px) {
  /* Headline and CTA lead; the figure follows as reinforcement. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(28px, 5vw, 44px);
    padding-bottom: clamp(40px, 6vw, 72px);
  }
  .hero__body { max-width: none; }
  .hero__figure {
    width: 100%;
    height: clamp(300px, 46vw, 440px);
    align-self: center;
  }

  .cards, .steps { grid-template-columns: 1fr; gap: 20px; }

  .split, .duo { flex-direction: column; align-items: stretch; }
  .ledger, .duo__aside { width: 100%; }
  .duo__main { max-width: none; }
  .duo__aside { margin-top: 8px; }

  .closing { flex-direction: column; align-items: flex-start; }
  .closing .btn { width: 100%; }
}

/* Phone */
@media (max-width: 620px) {
  .site-header__logo { height: 34px; }

  .hero__badge { font-size: 11px; padding: 7px 14px; margin-bottom: 20px; }
  .hero__actions { gap: 8px; }
  .hero__actions .btn--primary { width: 100%; }
  .btn--ghost { padding: 12px 0; }
  .hero__figure { height: clamp(280px, 76vw, 340px); }

  /* keep the CTA label on one line at 320–420px */
  .btn { padding-inline: 18px; letter-spacing: 0.04em; }
  .closing .btn, .hero__actions .btn--primary { padding-inline: 14px; }

  .features { grid-template-columns: 1fr; gap: 24px; }

  .tiers { gap: 8px; }
  .tier-sep { display: none; }

  .ledger li { flex-direction: column; align-items: flex-start; gap: 4px; }

  .site-footer { flex-direction: column; align-items: flex-start; }

  .closing { margin-bottom: 56px; }
}

/* --- Motion & contrast preferences -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-70: rgba(255, 255, 255, 0.88);
    --ink-75: rgba(255, 255, 255, 0.90);
    --ink-80: rgba(255, 255, 255, 0.92);
    --line:   rgba(255, 255, 255, 0.28);
  }
}

@media print {
  .page { background: #fff; color: #000; }
  .helix, .hero__figure { display: none; }
}

/* ==========================================================================
   Language switcher
   ========================================================================== */

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang { position: relative; }

/* Border, type and hover come from the shared .btn--outline rule above —
   only layout lives here. Vertical padding must stay in step with
   .btn--outline so both controls end up the same height. */
.lang__toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.lang__toggle::-webkit-details-marker { display: none; }
.lang__toggle::marker { content: ""; }

.lang__code { letter-spacing: 0.04em; }

.lang__chev {
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}
.lang[open] .lang__chev { transform: rotate(180deg); }

/* Flags: a hairline keeps the white bands from bleeding into the dark header */
.flag {
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 194px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  animation: lang-in 0.16s var(--ease);
}

@keyframes lang-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.lang__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-85);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.lang__opt:hover { background: rgba(255, 255, 255, 0.07); color: var(--ink); }

.lang__opt .lang__code { min-width: 22px; font-size: 13px; font-weight: 700; }

.lang__name {
  color: var(--ink-60);
  font-weight: 400;
  white-space: nowrap;
}

.lang__opt.is-current { background: var(--gold-14); }
.lang__opt.is-current .lang__code { color: var(--gold); }
.lang__opt.is-current .lang__name { color: var(--ink-80); }

@media (max-width: 620px) {
  .site-header__actions { gap: 8px; }
  /* vertical padding stays identical on both — only the sides tighten */
  .lang__toggle { padding: 9px 10px; gap: 6px; }
  .btn--outline { padding: 9px 14px; }
}

/* Below this the menu would run past the left edge, so drop the full names
   and keep flag + code. */
@media (max-width: 359px) {
  .lang__menu { min-width: 150px; }
  .lang__name { display: none; }
}

/* ==========================================================================
   Utility classes that replaced inline styles in the template
   ========================================================================== */

.steps { list-style: none; margin: 44px 0 0; padding: 0; }
.who__lead { margin: 16px 0 28px; }
.who__cta { margin-bottom: 16px; }
.faq__heading { margin-bottom: 22px; }
