/* Visão Mundial — Checkout flow (aligned with LP design system) */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

:root {
  --orange: #FF5515;
  --orange-700: #E2440C;
  --orange-100: #FFE7DD;
  --midnight: #111222;
  --white: #FFFFFF;
  --ink: #1A1B2B;
  --muted: #5C5E73;
  --line: #E7E8EE;
  --cloud: #F6F6F9;
  --danger: #B42318;
  --danger-100: #FEE4E2;
  --yellow: #FFD166;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1140px;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(17, 18, 34, 0.35);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--orange); }

input::placeholder { color: #9A9BB0; }

.co-page {
  background: var(--white);
  min-height: 100vh;
}

.co-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* Salvaguarda */
.co-safeguard {
  background: var(--midnight);
  color: #C9CAD8;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.co-safeguard-icon {
  color: var(--yellow);
  flex: none;
}

/* Header */
.co-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.co-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}

.co-brand {
  display: flex;
  align-items: center;
}

.co-logo {
  height: 70px;
  width: auto;
}

.co-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.co-nav-links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.co-nav-links a:hover { color: var(--orange); }

/* Typography */
.co-eyebrow {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.co-eyebrow-muted {
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.co-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--midnight);
}

.co-h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--midnight);
}

.co-h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  color: var(--midnight);
}

.co-lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.co-accent {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--orange);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.co-handwritten {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

/* Resumo mensal vs. pagamento único */
.co-cadence-legend {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.co-cadence-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-cadence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.co-cadence-row--mensal {
  background: var(--orange-100);
  border-color: rgba(255, 85, 21, 0.22);
}

.co-cadence-row--unica {
  background: var(--cloud);
}

.co-cadence-row-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.co-cadence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 11px;
  width: fit-content;
  line-height: 1;
}

.co-cadence-badge--mensal {
  background: var(--orange);
  color: var(--white);
}

.co-cadence-badge--unica {
  background: var(--white);
  color: var(--midnight);
  border: 2px solid var(--midnight);
}

.co-cadence-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.co-cadence-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--midnight);
  flex: none;
  line-height: 1;
}

.co-cadence-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Pagamento — regra cartão obrigatório com mensal */
.co-pay-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--orange-100);
  border: 1px solid rgba(255, 85, 21, 0.22);
  border-radius: 14px;
}

.co-pay-alert-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.co-pay-alert-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--midnight);
  line-height: 1.35;
}

.co-pay-alert-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.co-pay-option--disabled {
  opacity: 0.48;
  cursor: not-allowed !important;
}

.co-pay-unavailable {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* Obrigado — confirmação pós-pagamento */
.co-thanks-pay {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--cloud);
}

.co-thanks-pay--ok {
  background: rgba(46, 125, 79, 0.08);
  border-color: rgba(46, 125, 79, 0.22);
}

.co-thanks-pay--pending {
  background: var(--orange-100);
  border-color: rgba(255, 85, 21, 0.22);
}

.co-thanks-pay-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.co-thanks-pay--ok .co-thanks-pay-icon {
  background: #2E7D4F;
  color: var(--white);
}

.co-thanks-pay--pending .co-thanks-pay-icon {
  background: var(--orange);
  color: var(--white);
}

.co-thanks-pay-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--midnight);
  line-height: 1.35;
}

.co-thanks-pay-text {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.co-thanks-impact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.co-thanks-impact-status {
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
  line-height: 1.4;
}

.co-thanks-impact-status--ok { color: #2E7D4F; }
.co-thanks-impact-status--pending { color: var(--orange-700); }
.co-thanks-impact-status--recurring { color: var(--muted); }

.co-boleto-box {
  margin-top: 20px;
  padding: 20px;
  border: 1.5px dashed rgba(255, 85, 21, 0.35);
  border-radius: 14px;
  background: var(--white);
}

.co-boleto-code {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--midnight);
  word-break: break-all;
  padding: 12px 14px;
  background: var(--cloud);
  border-radius: 10px;
  margin-top: 12px;
}

.co-thanks-footnote {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.co-thanks-footnote a {
  font-weight: 800;
  color: var(--orange-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Imagens placeholder / reais */
.co-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.co-img-card {
  height: 208px;
  flex: none;
  overflow: hidden;
  background: var(--cloud);
}

.co-img-card--hub {
  height: 220px;
  flex: none;
  overflow: hidden;
  background: var(--cloud);
}

.co-img-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.co-img-avatar-wrap {
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cloud);
}

.co-img-avatar-wrap--48 { width: 48px; height: 48px; }
.co-img-avatar-wrap--52 { width: 52px; height: 52px; }
.co-img-avatar-wrap--56 { width: 56px; height: 56px; }
.co-img-avatar-wrap--64 { width: 64px; height: 64px; }

.co-img-hero {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 480px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 16px 40px rgba(17, 18, 34, 0.1);
}

.co-img-cause {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

.co-img-cause-wrap {
  flex: none;
  overflow: hidden;
  border-radius: 999px;
  background: var(--cloud);
}

.co-photo-credit {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: #9AA39C;
  margin-top: 6px;
}

/* Hero vitrine — foto + degradê para legibilidade */
.co-hero-vitrine {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(280px, 42vh, 400px);
}

.co-hero-vitrine--compact {
  min-height: clamp(240px, 36vh, 340px);
}

.co-hero-vitrine__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}

.co-hero-vitrine__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.co-hero-vitrine__decor {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.co-hero-vitrine__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 24px clamp(56px, 7vw, 72px);
}

.co-hero-vitrine__inner--overlay {
  padding-bottom: clamp(48px, 6vw, 64px);
}

.co-eyebrow--on-photo {
  color: #FFB899;
}

.co-h1--on-photo {
  color: #FFFFFF;
}

.co-lead--on-photo {
  color: rgba(255, 255, 255, 0.88);
}

.co-handwritten--on-photo {
  color: #FFB899;
}

.co-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 12px;
}

.co-tag-orange {
  color: var(--orange-700);
  background: var(--orange-100);
  border: 1px solid rgba(255, 85, 21, 0.25);
}

.co-tag-muted {
  color: var(--muted);
  background: var(--cloud);
  border: 1px solid var(--line);
}

.co-mono-tag {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #9A9BB0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Buttons */
.co-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  text-align: center;
}

.co-btn:active { transform: translateY(1px); }

.co-btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(255, 85, 21, 0.7);
}

.co-btn-midnight {
  background: var(--midnight);
  color: var(--white);
}

.co-btn-ghost {
  background: var(--white);
  color: var(--midnight);
  border: 2px solid var(--line);
}

.co-btn-outline {
  background: var(--white);
  color: var(--midnight);
  border: 2px solid var(--midnight);
}

.co-btn-block { width: 100%; }

.co-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--midnight);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.co-chip:hover { border-color: var(--midnight); }

.co-vinculos {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid var(--midnight);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

/* Cards & surfaces */
.co-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.co-card-featured {
  border: 2px solid var(--orange);
}

.co-hero {
  position: relative;
  overflow: hidden;
  background: var(--cloud);
}

.co-band {
  background: var(--midnight);
  color: #E7E7F0;
}

.co-band p {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.co-input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--midnight);
  background: var(--white);
  outline: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.co-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 85, 21, 0.12);
}

.co-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--midnight);
}

.co-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.co-callout {
  background: var(--orange-100);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--orange-700);
  font-size: 14px;
  font-weight: 600;
}

.co-callout-cloud {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer */
.co-footer {
  background: var(--midnight);
  color: #9A9BB0;
  padding: 54px 0 34px;
  margin-top: 64px;
}

.co-foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.co-foot-brand .co-footer-logo {
  height: 70px;
  width: auto;
}

.co-foot-brand p {
  margin-top: 12px;
  max-width: 38ch;
  font-size: 0.92rem;
  line-height: 1.6;
}

.co-foot-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 700;
}

.co-foot-col a {
  display: block;
  margin-bottom: 9px;
  font-size: 0.95rem;
  color: #9A9BB0;
}

.co-foot-col a:hover { color: var(--white); }

.co-foot-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 320px;
}

.co-foot-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}

.co-foot-box-title-icon { color: var(--yellow); }

.co-foot-box p {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.co-foot-box a {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
}

.co-foot-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Toast */
.co-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--midnight);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 70;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 48px);
}

.co-toast-icon { color: var(--yellow); }

/* Toggle group */
.co-toggle {
  display: flex;
  border: 2px solid var(--midnight);
  border-radius: 999px;
  overflow: hidden;
  align-self: flex-start;
}

.co-toggle button {
  height: 40px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.co-toggle button + button {
  border-left: 2px solid var(--midnight);
}

/* Amount buttons */
.co-amounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.co-amount-btn {
  height: 52px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--midnight);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.co-amount-btn[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange-100);
}

@media (max-width: 780px) {
  .co-nav-links { display: none !important; }
  .co-logo { height: 56px; }
  .co-nav { height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .co-btn, .co-chip, .co-vinculos, .co-amount-btn { transition: none; }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
