/* Athos Plus — página de assinatura (site/assinar.html).
   Toda cor vem da camada de tema de site.css (--danger, --surface, --field-*,
   --focus), então claro, escuro, automático e alto contraste andam juntos. */

.plus-page {
  --plus-error: var(--danger);
  --plus-error-line: rgba(150, 56, 44, 0.42);
  --plus-error-bg: rgba(150, 56, 44, 0.08);
}

:root[data-theme="dark"] .plus-page {
  --plus-error-line: rgba(224, 139, 128, 0.42);
  --plus-error-bg: rgba(224, 139, 128, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plus-page {
    --plus-error-line: rgba(224, 139, 128, 0.42);
    --plus-error-bg: rgba(224, 139, 128, 0.1);
  }
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .plus-page {
    --plus-error-line: color-mix(in srgb, var(--danger) 42%, transparent);
    --plus-error-bg: color-mix(in srgb, var(--danger) 9%, transparent);
  }
}

.plus-page .site-header {
  position: sticky;
}

/* Hero -------------------------------------------------------------------- */

.plus-hero {
  padding: clamp(48px, 7vw, 86px) 0 clamp(28px, 4vw, 48px);
}

.plus-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: end;
}

.plus-hero h1 {
  max-width: 16ch;
}

.plus-hero .lead {
  max-width: 54ch;
  margin-top: 20px;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--soft);
}

.plus-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.plus-chips li {
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plus-chips li {
    background: var(--surface);
  }
}

.plus-hero-actions {
  margin-top: 26px;
}

.plus-hero-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-self: center;
}

.plus-hero-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
  font-size: 14px;
  color: var(--text-muted);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plus-hero-points li {
    background: var(--surface);
  }
}

.plus-hero-points b {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--green);
}

.plus-hero-points .glyph {
  flex: 0 0 auto;
  font-family: var(--greek);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--gold-ink);
}

/* Comparativo grátis x Plus ---------------------------------------------- */

.plus-compare {
  padding: clamp(48px, 7vw, 88px) 0 clamp(20px, 3vw, 34px);
}

.plus-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 26px);
  align-items: start;
}

.plus-compare-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plus-compare-card {
    background: var(--surface);
  }
}

.plus-compare-card h3 {
  font-size: clamp(1.16rem, 2vw, 1.42rem);
}

.plus-compare-card-featured {
  border-color: rgba(176, 141, 62, 0.45);
  background:
    radial-gradient(92% 70% at 100% 0%, rgba(176, 141, 62, 0.16), transparent 62%),
    var(--surface);
}

.plus-card-sub {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--faint);
}

.plus-free-list {
  display: grid;
  gap: 11px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plus-free-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}

.plus-free-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-soft);
  font-size: 12.5px;
}

/* Planos ------------------------------------------------------------------ */

.plus-plans {
  padding: clamp(44px, 6vw, 76px) 0 clamp(20px, 3vw, 30px);
}

.plan-switch {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 20px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plan-option {
  position: relative;
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 44px;
  padding: clamp(20px, 2.6vw, 26px) clamp(18px, 2.4vw, 24px) clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    box-shadow 160ms ease, transform 160ms ease;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plan-option {
    background: var(--surface);
  }
}

.plan-option:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.plan-option[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.plan-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.plan-option .name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.plan-option[aria-pressed="true"] .name {
  color: var(--gold-ink);
}

.plan-option[aria-pressed="true"] .name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.plan-option .price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.05rem);
  line-height: 1.1;
  color: var(--green);
}

.plan-option .price small {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
}

.plus-plan-note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--soft);
}

.plus-plan-save {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 11px;
  border: 1px solid rgba(176, 141, 62, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(176, 141, 62, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-ink);
}

.plan-option .badge {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--gold) 20%, var(--surface));
  color: var(--gold-ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plan-option .badge {
    background: var(--surface);
  }
}

.plus-plans-foot {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--faint);
}

.plus-plans-foot a {
  color: var(--green);
  font-weight: 600;
}

/* Checkout ---------------------------------------------------------------- */

.plus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 110px);
}

.plus-checkout-title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.checkout-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.test-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(176, 141, 62, 0.45);
  border-radius: 12px;
  background: rgba(176, 141, 62, 0.1);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}

.test-banner b {
  flex: none;
  white-space: nowrap;
  color: var(--gold-ink);
}

.checkout-error {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--plus-error-line);
  border-radius: 14px;
  background: var(--plus-error-bg);
}

.plus-error-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--plus-error);
}

.plus-error-copy {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--soft);
}

.plus-error-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 14px;
}

.plus-error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}

.checkout-retry {
  min-height: 46px;
  padding: 0 20px;
  font-size: 14.5px;
}

.checkout-unavailable {
  padding: 16px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.checkout-form {
  margin-top: 0;
}

.plus-recap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.plus-recap-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.plus-recap-value b {
  color: var(--green);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--field-bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.field input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: transparent;
}

.field input[aria-invalid="true"] {
  border-color: var(--plus-error);
}

.field .hint {
  font-size: 11.5px;
  color: var(--faint);
}

.plus-field-error {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--plus-error);
}

.wallet-block {
  margin-top: 20px;
}

.wallet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.wallet-label .live-dot {
  width: 6px;
  height: 6px;
}

#express-checkout {
  min-height: 48px;
}

#express-checkout:empty {
  display: none;
}

.wallet-note {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--faint);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  font-size: 11.5px;
  color: var(--faint);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.plus-payment-zone {
  position: relative;
  min-height: 90px;
}

#payment-element {
  min-height: 90px;
}

.checkout-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 13.5px;
  color: var(--text-muted);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .checkout-loading {
    background: var(--surface);
  }
}

.plus-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: plus-spin 900ms linear infinite;
}

@keyframes plus-spin {
  to {
    transform: rotate(360deg);
  }
}

.checkout-form[aria-busy="true"] #payment-element {
  opacity: 0.45;
  pointer-events: none;
}

.checkout-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--soft);
}

.checkout-status.error {
  color: var(--plus-error);
}

.checkout-status.ok {
  color: var(--green);
  font-weight: 600;
}

.subscribe-button {
  width: 100%;
  margin-top: 16px;
}

.subscribe-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.subscribe-button[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: plus-spin 900ms linear infinite;
}

.plus-guarantee {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 20px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .plus-guarantee {
    background: var(--surface-2);
  }
}

.plus-guarantee li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
}

.plus-guarantee li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 12.5px;
  color: var(--gold-ink);
}

.plus-guarantee b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green);
}

.checkout-legal {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--faint);
}

.checkout-legal a {
  color: var(--green);
}

.pass-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}

.pass-line button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pass-line button:hover {
  border-color: var(--gold);
  background: rgba(176, 141, 62, 0.08);
}

.pass-line button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.checkout-success {
  text-align: center;
  padding: 18px 8px 6px;
}

.checkout-success .mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 1px solid rgba(176, 141, 62, 0.5);
  background: rgba(176, 141, 62, 0.1);
  color: var(--gold-ink);
  font-family: var(--greek);
  font-size: 1.6rem;
}

.checkout-success h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.checkout-success p {
  margin-top: 8px;
  font-size: 14px;
}

.checkout-success .btn {
  margin-top: 18px;
}

/* Painel de confiança ----------------------------------------------------- */

.plus-aside {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 22px;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(176, 141, 62, 0.18), transparent 60%),
    linear-gradient(160deg, #1a3d32, var(--green-deep) 75%);
  color: #f1ead9;
}

.plus-aside h2 {
  color: #f6f0e1;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.plus-aside p,
.plus-aside li {
  color: rgba(241, 234, 217, 0.86);
}

.benefit-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.55;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-ink);
  font-size: 12.5px;
}

.plus-trust-list {
  display: grid;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.plus-trust-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.62;
}

.plus-trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.plus-trust-list b {
  display: block;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: #f6f0e1;
}

.scholarship {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(214, 176, 97, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.scholarship b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: #f6f0e1;
}

.scholarship p {
  font-size: 12.5px;
  line-height: 1.55;
}

.scholarship a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-soft);
}

.plus-aside .test-mode-note {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(241, 234, 217, 0.6);
}

/* FAQ e condições --------------------------------------------------------- */

.plus-faq {
  padding: clamp(44px, 6vw, 76px) 0 clamp(64px, 9vw, 110px);
  border-top: 1px solid var(--line);
}

.plus-faq .section-head {
  margin-bottom: 26px;
}

.plus-terms {
  border-top: 1px solid var(--line);
}

/* Movimento --------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .plus-spinner {
    animation: none;
  }
  .plan-option:hover {
    transform: none;
  }
}

/* Quebras ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .plus-hero-grid,
  .plus-layout,
  .plus-compare-grid {
    grid-template-columns: 1fr;
  }
  .plus-hero-points {
    grid-template-columns: 1fr 1fr;
  }
  .plus-layout {
    padding-top: 8px;
  }
}

@media (max-width: 620px) {
  .plus-hero-points,
  .plan-switch {
    grid-template-columns: 1fr;
  }
  .plan-option .badge {
    top: 8px;
    right: 8px;
  }
  .plus-compare-card,
  .checkout-card,
  .plus-aside {
    border-radius: 18px;
  }
  .plus-guarantee {
    padding: 16px;
  }
}
