:root {
  color-scheme: dark;
  --page: #071018;
  --surface: #101c27;
  --surface-2: #0a1620;
  --ink: #f4f7f8;
  --muted: #8fa2ae;
  --line: rgba(151, 187, 207, 0.17);
  --line-strong: rgba(151, 187, 207, 0.29);
  --blue: #58b6e8;
  --green: #34d3a3;
  --danger: #ef7979;
}
* { box-sizing: border-box; }
body { min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--page); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
svg { width: 18px; height: 18px; }
.checkout-header { display: flex; width: min(1240px, calc(100% - 40px)); align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin: 0 auto; padding: 18px 0; }
.checkout-brand { display: flex; align-items: center; gap: 10px; }
.checkout-brand > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: #fff; }
.checkout-brand img { width: 31px; height: 31px; }
.checkout-brand strong, .checkout-brand small { display: block; }
.checkout-brand strong { font-size: 13px; }
.checkout-brand small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; }
.checkout-layout { display: grid; width: min(1160px, calc(100% - 40px)); grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1fr); align-items: start; gap: 72px; margin: 0 auto; padding: 72px 0; }
.checkout-copy { position: sticky; top: 40px; padding-top: 20px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.checkout-copy h1 { max-width: 430px; margin: 12px 0 0; font-size: 46px; line-height: 1.04; }
.checkout-copy > p:last-of-type { max-width: 420px; margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.checkout-assurances { display: grid; gap: 18px; margin-top: 42px; }
.checkout-assurances > span { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 2px 11px; }
.checkout-assurances svg { grid-row: 1 / span 2; width: 20px; color: var(--green); }
.checkout-assurances strong, .checkout-assurances small { display: block; }
.checkout-assurances strong { font-size: 11px; }
.checkout-assurances small { color: var(--muted); font-size: 9px; }
.checkout-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25); padding: 30px; }
.form-heading { display: flex; align-items: center; gap: 12px; }
.form-heading-spaced { margin-top: 34px; }
.step-number { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(88, 182, 232, 0.11); color: var(--blue); font-size: 11px; font-weight: 900; }
.form-heading h2 { margin: 4px 0 0; font-size: 17px; }
.plan-options { display: grid; gap: 7px; margin-top: 18px; }
.plan-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 13px; cursor: pointer; }
.plan-option:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px rgba(88, 182, 232, 0.18); }
.plan-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.plan-radio { width: 17px; height: 17px; border: 1px solid var(--line-strong); border-radius: 50%; }
.plan-option input:checked + .plan-radio { border: 5px solid var(--blue); background: var(--surface); }
.plan-copy strong, .plan-copy small, .plan-price strong, .plan-price small { display: block; }
.plan-copy strong { font-size: 11px; }
.plan-copy small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.plan-price { text-align: right; }
.plan-price strong { font-size: 11px; }
.plan-price small { color: var(--muted); font-size: 8px; }
.loading-state { color: var(--muted); font-size: 10px; }
.loading-state.is-error { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.field-hint, .field-error { display: block; margin-top: 5px; font-size: 8px; line-height: 1.45; }
.field-hint { color: var(--muted); }
.field-error { min-height: 0; color: var(--danger); font-weight: 800; }
[data-field-shell].has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 121, 121, 0.08); }
input { width: 100%; height: 43px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface-2); padding: 0 12px; font-size: 11px; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(88, 182, 232, 0.08); }
.address-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.address-details:not([open]) > :not(summary) { display: none; }
.address-details summary { display: flex; align-items: center; justify-content: space-between; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; list-style: none; }
.address-details summary::-webkit-details-marker { display: none; }
.address-details summary span { display: flex; align-items: center; gap: 7px; }
.address-details[open] summary > svg { transform: rotate(180deg); }
.is-address-loading { position: relative; }
.is-address-loading::after { position: absolute; right: 12px; top: 31px; width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; content: ""; animation: spin 700ms linear infinite; }
.wide-field { grid-column: span 1; }
.embedded-card-payment { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(250px, 1fr); align-items: center; gap: 18px; margin-top: 18px; }
.payment-card-scene { width: 100%; aspect-ratio: 1.58; perspective: 900px; }
.payment-card-preview { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s ease; }
.payment-card-preview.is-flipped { transform: rotateY(180deg); }
.payment-card-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; backface-visibility: hidden; background: #102330; padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.payment-card-face::after { position: absolute; width: 150px; height: 150px; right: -65px; bottom: -85px; border: 1px solid rgba(88,182,232,.22); border-radius: 50%; content: ""; }
.payment-card-front > b { font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.payment-card-top, .payment-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.payment-card-top strong { color: var(--blue); font-size: 8px; text-transform: uppercase; }
.payment-card-chip { width: 35px; height: 25px; border-radius: 5px; background: #dbc66d; box-shadow: inset 0 0 0 4px rgba(255,255,255,.14); }
.payment-card-meta span { margin: 0; color: var(--ink); }
.payment-card-meta small, .payment-card-back small { display: block; color: var(--muted); font-size: 6px; text-transform: uppercase; }
.payment-card-meta strong { display: block; max-width: 150px; margin-top: 3px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.payment-card-back { transform: rotateY(180deg); padding: 22px 0; }
.payment-card-stripe { width: 100%; height: 30%; background: #05090d; }
.payment-card-back div { align-self: flex-end; width: 82%; background: #eef2f3; color: #071018; padding: 8px 15px; text-align: right; }
.payment-card-back b { padding: 0 20px; color: var(--blue); font-size: 8px; }
.card-fields { margin-top: 0; }
.field-wide { grid-column: 1 / -1; }
.payment-security { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: var(--muted); font-size: 8px; }
.payment-security svg { width: 14px; color: var(--green); }
.terms-field { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 9px; margin-top: 22px; }
.terms-field input { width: 17px; height: 17px; accent-color: var(--green); }
.terms-field span { margin: 1px 0 0; font-size: 9px; line-height: 1.5; }
.terms-field a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.form-message { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 10px; font-weight: 750; }
.submit-button, .primary-button { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 7px; background: var(--green); color: #061813; font-size: 11px; font-weight: 900; }
.trial-button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 7px; background: transparent; margin-top: 9px; color: var(--ink); font-size: 10px; font-weight: 900; }
.trial-button:hover { border-color: var(--blue); background: rgba(88, 182, 232, 0.06); }
.trial-note { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; text-align: center; }
.submit-button:disabled, .trial-button:disabled { cursor: wait; opacity: 0.7; }
.submit-button.is-loading svg { animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.payment-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 8px; }
.payment-note svg { width: 12px; }
.result-page { display: grid; place-items: center; padding: 20px; }
.result-card { width: min(470px, 100%); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 44px; text-align: center; }
.result-card > img { width: 55px; height: 55px; margin: 0 auto 24px; border-radius: 9px; background: #fff; padding: 6px; }
.result-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: rgba(52, 211, 163, 0.12); color: var(--green); margin: 0 auto 14px; }
.result-card h1 { margin: 11px 0 0; font-size: 28px; line-height: 1.15; }
.result-card > p:not(.eyebrow) { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.result-actions { display: grid; gap: 12px; margin-top: 28px; }
.quiet-link { color: var(--muted); font-size: 10px; font-weight: 800; }
@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 34px; padding: 42px 0; }
  .checkout-copy { position: static; padding-top: 0; }
  .checkout-copy h1 { font-size: 36px; }
  .checkout-assurances { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
  .checkout-assurances > span { display: block; }
  .checkout-assurances svg { margin-bottom: 8px; }
  .checkout-assurances small { margin-top: 3px; }
}
@media (max-width: 560px) {
  .checkout-header { width: calc(100% - 28px); }
  .checkout-brand small, .back-link { display: none; }
  .checkout-layout { width: calc(100% - 28px); padding: 32px 0; }
  .checkout-assurances { grid-template-columns: 1fr; }
  .checkout-card { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .embedded-card-payment { grid-template-columns: 1fr; }
  .payment-card-scene { max-width: 330px; }
  .field-wide { grid-column: auto; }
  .plan-option { grid-template-columns: 20px minmax(0, 1fr); }
  .plan-price { grid-column: 2; text-align: left; }
  .result-card { padding: 30px 20px; }
}
.turnstile-shell { min-height: 65px; display: flex; align-items: center; justify-content: center; }
.turnstile-shell[hidden] { display: none; }


/* Seletor de modo: testar gratis (sem cartao) x assinar um plano */
[data-subscribe-only][hidden], [data-trial-only][hidden] { display: none !important; }
.checkout-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.checkout-mode-option { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 13px; text-align: left; cursor: pointer; color: var(--ink); }
.checkout-mode-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
.checkout-mode-copy strong { font-size: 12px; font-weight: 900; }
.checkout-mode-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(88, 182, 232, 0.11); color: var(--blue); }
.checkout-mode-option.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px rgba(88, 182, 232, 0.18); background: rgba(88, 182, 232, 0.06); }
.checkout-mode-option[data-mode-option="trial"].is-active { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(52, 211, 163, 0.2); background: rgba(52, 211, 163, 0.06); }
.checkout-mode-option[data-mode-option="trial"].is-active .checkout-mode-icon { background: rgba(52, 211, 163, 0.14); color: var(--green); }
.trial-button { background: var(--green); color: #061813; border-color: transparent; min-height: 48px; margin-top: 0; font-size: 11px; }
.trial-button:hover { background: #2cc596; border-color: transparent; }
@media (max-width: 520px) { .checkout-mode { grid-template-columns: 1fr; } }
