/* Acertijo del día — support pages */
:root {
  --bg: hsl(245 28% 98%);
  --surface: hsl(0 0% 100%);
  --surface-muted: hsl(252 38% 97%);
  --fg: hsl(244 20% 13%);
  --muted: hsl(242 8% 42%);
  --subtle: hsl(242 7% 57%);
  --primary: hsl(258 77% 54%);
  --primary-strong: hsl(258 76% 47%);
  --primary-soft: hsl(258 82% 96%);
  --border: hsl(248 18% 87%);
  --focus: hsl(38 96% 50%);
}

[data-theme="dark"] {
  --bg: hsl(244 18% 8%);
  --surface: hsl(244 16% 12%);
  --surface-muted: hsl(246 15% 14%);
  --fg: hsl(245 20% 96%);
  --muted: hsl(245 9% 69%);
  --subtle: hsl(244 8% 55%);
  --primary: hsl(257 91% 74%);
  --primary-strong: hsl(258 73% 58%);
  --primary-soft: hsl(258 35% 18%);
  --border: hsl(246 12% 23%);
  --focus: hsl(43 100% 62%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, hsl(258 82% 65% / 0.13), transparent 37rem),
    linear-gradient(180deg, hsl(258 80% 98% / 0.55), transparent 24rem);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(circle at 50% -10%, hsl(258 82% 60% / 0.12), transparent 37rem),
    linear-gradient(180deg, hsl(258 40% 13% / 0.35), transparent 24rem);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.apoya-brand {
  display: flex;
  justify-content: center;
  padding-top: 2.5rem;
  margin-bottom: 2.15rem;
}

.apoya-brand a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  border-radius: 10px;
  transition: opacity 160ms ease;
}

.apoya-brand a:hover {
  opacity: 0.68;
}

.apoya-brand-icon {
  width: 48px;
  height: 48px;
}

.apoya-brand-icon .mark-body {
  fill: var(--fg);
}

.apoya-brand-icon .mark-diamond {
  fill: var(--bg);
}

.apoya-brand-wordmark {
  color: var(--fg);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.012em;
  line-height: 1;
  text-transform: lowercase;
}

.apoya-brand-wordmark .wm-d {
  font-weight: 400;
  opacity: 0.42;
}

.apoya-main {
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
  padding-bottom: 2rem;
  flex: 1;
}

.apoya-headline {
  max-width: 15ch;
  margin: 0 auto 1rem;
  color: var(--fg);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: clamp(2.15rem, 6vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.apoya-copy {
  max-width: 64ch;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.72;
  text-align: center;
}

.apoya-proof {
  width: fit-content;
  max-width: 100%;
  margin: 0.9rem auto 0;
  padding: 0.48rem 0.75rem;
  border: 1px solid hsl(258 50% 83%);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

[data-theme="dark"] .apoya-proof {
  border-color: hsl(258 30% 30%);
  color: var(--primary);
}

@keyframes support-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.support-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 1rem;
  align-items: stretch;
  animation: support-in 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.support-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.support-card--primary {
  position: relative;
  overflow: hidden;
  border-color: hsl(258 64% 72%);
  box-shadow: 0 18px 42px hsl(258 42% 28% / 0.13);
}

.support-card--primary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-strong), hsl(282 75% 61%));
}

.support-card--secondary {
  background: color-mix(in srgb, var(--surface-muted) 88%, transparent);
  box-shadow: 0 10px 28px hsl(244 20% 20% / 0.05);
}

[data-theme="dark"] .support-card--primary {
  border-color: hsl(258 42% 42%);
  box-shadow: 0 20px 44px hsl(245 60% 3% / 0.38);
}

[data-theme="dark"] .support-card--secondary {
  box-shadow: 0 12px 30px hsl(245 60% 3% / 0.22);
}

.support-card-heading {
  margin-bottom: 0.75rem;
}

.support-card h2 {
  margin-bottom: 0.3rem;
  color: var(--fg);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.support-price {
  color: var(--fg);
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.support-price span {
  margin-left: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.support-description {
  min-height: 3.2rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.support-button {
  display: flex;
  min-height: 48px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.support-button--primary {
  border-color: var(--primary-strong);
  background: var(--primary-strong);
  color: #fff;
  box-shadow: 0 8px 20px hsl(258 67% 35% / 0.25);
}

.support-button--secondary {
  border-color: hsl(258 42% 70%);
  background: transparent;
  color: var(--primary-strong);
}

.support-button:hover {
  transform: translateY(-1px);
}

.support-button--primary:hover {
  background: hsl(258 76% 42%);
  box-shadow: 0 11px 24px hsl(258 67% 35% / 0.3);
}

.support-button--secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

[data-theme="dark"] .support-button--primary {
  border-color: hsl(258 74% 61%);
  background: hsl(258 74% 61%);
  color: #fff;
}

[data-theme="dark"] .support-button--primary:hover {
  background: hsl(258 78% 66%);
}

[data-theme="dark"] .support-button--secondary {
  border-color: hsl(258 35% 43%);
  color: var(--primary);
}

.support-security {
  margin: 0.72rem 0 1.35rem;
  color: var(--subtle);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.support-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
  text-align: center;
}

.support-portal {
  padding: 0.35rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.support-portal span {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[data-theme="dark"] .support-portal span {
  color: var(--primary);
}

.support-kofi {
  margin-top: 0.8rem;
  padding: 0.4rem 0.55rem;
  border-top: 1px solid var(--border);
  border-radius: 5px;
  color: var(--subtle);
  font-size: 0.74rem;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.support-portal:hover,
.support-kofi:hover {
  color: var(--fg);
}

.apoya-back {
  display: block;
  width: fit-content;
  margin-inline: auto;
  padding: 0.4rem;
  border-radius: 7px;
  color: var(--subtle);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.apoya-back:hover {
  color: var(--fg);
}

.apoya-footer {
  padding: 1.2rem 1rem 2rem;
  text-align: center;
}

.apoya-footer p {
  color: var(--subtle);
  font-size: 0.65rem;
  opacity: 0.48;
}

.footer-easter {
  border-radius: 4px;
  transition: opacity 150ms ease;
}

.footer-easter:hover {
  opacity: 1;
}

@media (max-width: 680px) {
  .apoya-brand {
    padding-top: 2rem;
    margin-bottom: 1.8rem;
  }

  .apoya-main {
    width: min(100% - 1.25rem, 460px);
  }

  .apoya-headline {
    max-width: 14ch;
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .apoya-copy {
    max-width: 42ch;
    margin-bottom: 1.5rem;
    font-size: 0.91rem;
    line-height: 1.65;
  }

  .apoya-proof {
    font-size: 0.76rem;
  }

  .support-options {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .support-card {
    padding: 1.2rem;
    border-radius: 14px;
  }

  .support-card--primary {
    box-shadow: 0 15px 34px hsl(258 42% 28% / 0.12);
  }

  .support-card-heading {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    justify-content: space-between;
  }

  .support-card h2 {
    margin-bottom: 0;
    font-size: 1.32rem;
  }

  .support-price {
    flex-shrink: 0;
    font-size: 1.4rem;
  }

  .support-description {
    min-height: 0;
    margin-bottom: 0.85rem;
  }

  .support-security {
    margin-bottom: 1.1rem;
  }
}

@media (max-width: 390px) {
  .apoya-main {
    width: calc(100% - 1rem);
  }

  .support-card-heading {
    display: block;
  }

  .support-card h2 {
    margin-bottom: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .support-options {
    animation: none;
  }

  .apoya-brand a,
  .support-button,
  .support-kofi,
  .apoya-back,
  .footer-easter {
    transition: none;
  }

  .support-button:hover {
    transform: none;
  }
}
