/* Free key page — Heritage offer surface */

.free-key-page {
  background-color: var(--color-bg);
}

.free-key-page .free-key-main {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h) - 220px);
  padding: clamp(40px, 7vh, 72px) 28px 96px;
  overflow: clip;
}

.free-key-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.free-key-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.free-key-hero {
  position: relative;
  margin: 8px 0 clamp(48px, 8vh, 80px);
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(241, 241, 241, 0.12) 100%),
    var(--color-bg);
  animation: free-key-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.free-key-hero::before {
  content: 'FREE';
  position: absolute;
  right: -2%;
  bottom: -18%;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(17, 17, 17, 0.045);
  pointer-events: none;
  user-select: none;
}

.free-key-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -28deg,
      transparent,
      transparent 18px,
      rgba(17, 17, 17, 0.015) 18px,
      rgba(17, 17, 17, 0.015) 19px
    );
}

.free-key-title {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 78px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.free-key-title-line {
  display: block;
}

.free-key-title-accent {
  display: block;
  color: var(--color-accent);
}

.free-key-lead {
  position: relative;
  z-index: 1;
  margin: 0 0 28px;
  max-width: 560px;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.72);
}

.free-key-hero-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.free-key-hero-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgba(17, 17, 17, 0.5);
}

.free-key-offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: rgba(241, 241, 241, 0.55);
  overflow: hidden;
  animation: free-key-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.free-key-offer-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid rgba(17, 17, 17, 0.12);
  background: transparent;
  transition: background 0.28s ease;
}

.free-key-offer-card:last-child {
  border-right: none;
}

@media (hover: hover) {
  .free-key-offer-card:not(.free-key-offer-card-accent):hover {
    background: rgba(255, 135, 95, 0.06);
  }
}

.free-key-offer-card-accent {
  background:
    linear-gradient(165deg, rgba(255, 135, 95, 0.18) 0%, transparent 52%),
    rgba(17, 17, 17, 0.96);
  color: #f1f1f1;
}

.free-key-offer-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.free-key-offer-title {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.free-key-offer-card-accent .free-key-offer-title {
  color: #fff;
}

.free-key-offer-text {
  margin: 0;
  align-self: end;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.7);
}

.free-key-offer-card-accent .free-key-offer-text {
  color: rgba(241, 241, 241, 0.78);
}

.free-key-steps {
  margin-top: clamp(56px, 9vh, 88px);
  animation: free-key-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.free-key-steps-head,
.free-key-seo {
  margin-bottom: 28px;
  max-width: 720px;
}

.free-key-section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.free-key-section-lead,
.free-key-seo-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.68);
}

.free-key-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: free-key-step;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: rgba(241, 241, 241, 0.55);
}

.free-key-step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  transition: background 0.25s ease;
}

.free-key-step:last-child {
  border-bottom: none;
}

@media (hover: hover) {
  .free-key-step:hover {
    background: rgba(255, 135, 95, 0.05);
  }
}

.free-key-step-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(17, 17, 17, 0.12);
}

.free-key-step-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.free-key-step-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: rgba(17, 17, 17, 0.7);
}

.free-key-seo {
  margin-top: clamp(48px, 8vh, 72px);
  padding-top: 36px;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.free-key-bottom {
  margin-top: clamp(40px, 7vh, 64px);
  animation: free-key-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.free-key-bottom-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(17, 17, 17, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 135, 95, 0.2) 0%, transparent 46%),
    #111111;
  color: #f1f1f1;
}

.free-key-bottom-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.free-key-bottom-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
}

.free-key-bottom-text {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(241, 241, 241, 0.72);
}

.free-key-bottom-cta {
  flex: 0 0 auto;
}

@keyframes free-key-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .free-key-hero,
  .free-key-offer,
  .free-key-steps,
  .free-key-bottom {
    animation: none;
  }
}

@media (max-width: 900px) {
  .free-key-offer {
    grid-template-columns: 1fr;
  }

  .free-key-offer-card {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  }

  .free-key-offer-card:last-child {
    border-bottom: none;
  }

  .free-key-bottom-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .free-key-page .free-key-main {
    padding: 20px max(14px, env(safe-area-inset-right)) 64px max(14px, env(safe-area-inset-left));
  }

  .free-key-hero {
    padding: 24px 18px;
  }

  .free-key-title {
    max-width: none;
    font-size: clamp(36px, 12vw, 48px);
  }

  .free-key-lead,
  .free-key-offer-text,
  .free-key-step-text,
  .free-key-seo-text,
  .free-key-bottom-text {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .free-key-step {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 18px 16px;
  }

  .free-key-step-num {
    font-size: 32px;
  }

  .free-key-hero-actions .content-cta,
  .free-key-bottom-cta {
    width: 100%;
    min-width: 0;
  }
}
