/* Shared components */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.45rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0b887c 0%, #10b6a4 100%);
  box-shadow: 0 20px 42px rgba(15, 154, 138, 0.28);
}

.button-secondary {
  color: rgba(16, 32, 52, 0.94);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 32, 52, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 12px 28px rgba(15, 29, 55, 0.08);
}

.button-small {
  min-height: 2.9rem;
  padding: 0.72rem 1.1rem;
}

.footer-link-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(71, 85, 105, 0.98);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--accent-strong);
  transform: translateX(2px);
}

.cookie-consent {
  position: relative;
  z-index: 9999;
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  left: 1.25rem;
  display: grid;
  gap: 1rem;
  width: min(520px, calc(100vw - 2.5rem));
  padding: 1.25rem;
  border: 1px solid rgba(16, 32, 52, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 154, 138, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 249, 0.96));
  box-shadow: 0 24px 60px rgba(15, 29, 55, 0.2);
}

.cookie-banner-copy {
  display: grid;
  gap: 0.45rem;
}

.cookie-banner h2,
.cookie-modal h2,
.cookie-category h3 {
  margin: 0;
  color: var(--text);
}

.cookie-banner h2 {
  font-size: 1.2rem;
}

.cookie-banner p,
.cookie-modal p,
.cookie-category p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-eyebrow {
  color: var(--accent-strong) !important;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cookie-banner-actions,
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-action {
  min-height: 2.9rem;
  padding: 0.78rem 1.05rem;
  font-size: 0.92rem;
}

.cookie-link-button {
  min-height: 2.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(16, 32, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(16, 32, 52, 0.88);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.cookie-link-button:hover,
.cookie-link-button:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(15, 154, 138, 0.28);
  transform: translateY(-1px);
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 29, 55, 0.24);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 1rem;
  width: min(620px, calc(100vw - 2rem));
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid rgba(16, 32, 52, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 5%, rgba(99, 91, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(242, 247, 249, 0.98));
  box-shadow: 0 30px 80px rgba(15, 29, 55, 0.24);
  transform: translate(-50%, -50%);
}

.cookie-modal-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(16, 32, 52, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.cookie-category-list {
  display: grid;
  gap: 0.85rem;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(16, 32, 52, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.cookie-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 154, 138, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-switch input {
  position: relative;
  width: 3.2rem;
  height: 1.8rem;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(16, 32, 52, 0.16);
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.cookie-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.28rem;
  height: 1.28rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 29, 55, 0.18);
  transition: transform 180ms ease;
}

.cookie-switch input:checked {
  border-color: rgba(15, 154, 138, 0.42);
  background: linear-gradient(135deg, #0b887c, #10b6a4);
}

.cookie-switch input:checked::after {
  transform: translateX(1.38rem);
}

.cookie-switch input:focus-visible,
.cookie-close:focus-visible,
.cookie-link-button:focus-visible,
.footer-link-button:focus-visible {
  outline: 3px solid rgba(15, 154, 138, 0.32);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-banner {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    width: auto;
    padding: 1rem;
    border-radius: 24px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-action,
  .cookie-link-button {
    width: 100%;
  }

  .cookie-modal {
    width: calc(100vw - 2rem);
    padding: 1rem;
    border-radius: 24px;
  }

  .cookie-category {
    grid-template-columns: 1fr;
  }

  .cookie-switch {
    justify-content: space-between;
    white-space: normal;
  }
}

.hero-media {
  min-height: 420px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card,
.info-card,
.step-card,
.quiz-shell,
.result-card,
.email-capture,
.faq-item {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top left, rgba(15, 154, 138, 0.06), transparent 38%),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 32, 52, 0.1);
  box-shadow: var(--shadow-md);
}

.stat-card,
.info-card,
.step-card {
  padding: 1.6rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1.45rem;
}

.section {
  padding-top: 5.4rem;
  padding-bottom: 5.4rem;
}

.section-split {
  width: min(100%, var(--max-width));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.section-split-reverse {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
}

.section-split-reverse .section-copy {
  order: 2;
}

.section-split-reverse .section-visual {
  order: 1;
}

.section-heading {
  margin-bottom: 2rem;
  max-width: 48rem;
}

.section-heading-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  margin-top: 1.1rem;
  max-width: 60ch;
}

.section-cta {
  margin-top: 1.5rem;
}

.section-cta-centered {
  display: flex;
  justify-content: center;
}

.card-grid,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(16, 32, 52, 0.08);
  background:
    linear-gradient(145deg, rgba(15, 154, 138, 0.08), rgba(245, 165, 36, 0.08)),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame.is-empty {
  min-height: 320px;
}

.hero-media .media-fallback,
.side-media .media-fallback {
  position: absolute;
  inset: auto 1.4rem 1.4rem 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(16, 32, 52, 0.08);
  box-shadow: var(--shadow-sm);
}

.media-fallback strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text);
}

.side-media {
  min-height: 420px;
}
