/* =========================================================
   CrabDoubleGreen · página de pagamento (planos.html) e obrigado (obrigado.html)
   Usa os tokens e componentes do styles.css.
   ========================================================= */
.pay-hero { position: relative; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); overflow: hidden; isolation: isolate; }
.pay-title { margin-top: 20px; font-size: clamp(36px, 5.6vw, 64px); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; max-width: 15em; text-wrap: balance; }
.pay-hero .sec-sub { max-width: 44em; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text);
}
.trust .ic { width: 16px; height: 16px; color: var(--green-2); }

.pay-main { padding: 8px 0 clamp(64px, 8vw, 104px); }
.pay-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.opts { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.opts-legend { padding: 0; margin-bottom: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--dim); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "radio name price" "radio save price";
  align-items: center; column-gap: 16px; row-gap: 2px; padding: 20px 22px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line-2);
  transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t-fast);
}
.opt:hover .opt-box { border-color: rgba(190,255,220,.3); }
.opt:active .opt-box { transform: scale(.995); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--green-2); outline-offset: 3px; }
.opt input:checked + .opt-box {
  border-color: var(--green-2);
  background: linear-gradient(150deg, rgba(34,197,94,.16), rgba(34,197,94,.03) 70%), var(--card);
  box-shadow: 0 0 0 1px rgba(74,222,128,.35), 0 24px 50px -30px rgba(34,197,94,.6);
}
.opt-radio { grid-area: radio; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; transition: border-color var(--t-fast); }
.opt-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green-2); transform: scale(0); transition: transform var(--t) var(--ease); }
.opt input:checked + .opt-box .opt-radio { border-color: var(--green-2); }
.opt input:checked + .opt-box .opt-radio::after { transform: scale(1); }
.opt-name { grid-area: name; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.opt-name small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.opt-save { grid-area: save; font-size: 13px; font-weight: 700; color: var(--green-2); }
.opt-price { grid-area: price; text-align: right; }
.opt-price b { display: block; font: 700 20px/1.1 var(--f-mono); letter-spacing: -.02em; }
.opt-price small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.opt-flag {
  position: absolute; top: -11px; left: 22px; height: 22px; display: inline-flex; align-items: center; padding: 0 9px;
  border-radius: 6px; background: var(--green); color: var(--green-ink); font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
}

.summary { position: sticky; top: 92px; }
.summary-card {
  padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.summary-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary-top .tag[hidden] { display: none; }
.summary-plan { font-size: 18px; color: var(--muted); }
.summary-plan b { font-weight: 800; }
.summary-days { margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.summary-price { margin-top: 18px; font-size: clamp(36px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.summary-month { margin-top: 8px; font-size: 14px; color: var(--muted); }
.summary-list { margin: 20px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.summary-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.summary-list .ic { width: 18px; height: 18px; color: var(--green-2); }
.summary-safe { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--muted); }
.summary-safe .ic { width: 15px; height: 15px; color: var(--green-2); }
.summary-safe + .summary-safe { margin-top: 6px; }
.summary-note { margin-top: 14px; font-size: 13px; color: var(--dim); text-align: center; }

.gets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.get { padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.get-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green-soft); color: var(--green-2); }
.get-big { margin-top: 18px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.get h3 { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--green-2); }
.get p:last-child { margin-top: 8px; font-size: 15px; color: var(--muted); }

.guarantee { display: flex; align-items: center; gap: clamp(24px, 5vw, 56px); }
.seal {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.22), rgba(34,197,94,.05) 70%); border: 2px dashed rgba(74,222,128,.6);
  box-shadow: 0 0 60px -10px rgba(34,197,94,.45);
}
.seal-n { font-size: 54px; font-weight: 700; line-height: 1; color: var(--green-2); }
.seal-t { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-align: center; color: var(--text); }

/* ---------- formulário ---------- */
.lead {
  width: min(460px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px;
  background: #0b1a16; color: var(--text); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9);
}
.lead::backdrop { background: rgba(1,4,3,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lead[open] { animation: lead-in 260ms var(--ease); }
@keyframes lead-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.lead-form { position: relative; padding: 30px 26px 24px; }
.lead-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-color: transparent; background: transparent; }
.lead-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: center; padding: 0 36px; }
.lead-plan { margin-top: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.lead-plan b { color: var(--green-2); }
.lead-field { display: block; margin-top: 16px; }
.lead-label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.lead-input {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.lead-input:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
.lead-input .ic { width: 18px; height: 18px; color: var(--dim); }
.lead-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 500 16px/1 var(--f-sans); outline: none; }
.lead-input input::placeholder { color: var(--dim); }
.lead-ddi { padding-right: 10px; border-right: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.lead-field.is-erro .lead-input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(248,113,113,.14); }
.lead-err { display: block; margin-top: 6px; font-size: 13px; color: var(--danger); }
.lead-err:empty { display: none; }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-erro { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); font-size: 14px; color: #fecaca; }
.lead-erro[hidden] { display: none; }
.lead-erro a { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lead-form .btn-block { margin-top: 20px; white-space: normal; text-align: center; }
.btn.is-loading { opacity: .85; cursor: progress; }
.btn.is-loading .ic { animation: nudge 900ms var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.lead-safe { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.lead-safe .ic { width: 14px; height: 14px; color: var(--green-2); }
.lead-legal { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--dim); text-align: center; }
.lead-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.com-dialogo .mobile-cta { display: none !important; }

/* ---------- obrigado ---------- */
.thanks { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; overflow: hidden; isolation: isolate; }
.thanks-card {
  width: 100%; max-width: 620px; padding: clamp(28px, 5vw, 48px); border-radius: 28px; text-align: center;
  background: linear-gradient(170deg, rgba(34,197,94,.12), rgba(34,197,94,.02) 50%), var(--card); border: 1px solid rgba(74,222,128,.35);
  box-shadow: 0 40px 100px -40px rgba(34,197,94,.5);
}
.thanks-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--green-ink); box-shadow: 0 0 0 10px rgba(34,197,94,.14), 0 0 40px rgba(34,197,94,.6); }
.thanks-ok .ic { width: 30px; height: 30px; stroke-width: 3; }
.thanks .eyebrow { margin: 22px 0 0; justify-content: center; display: flex; }
.thanks-title { margin-top: 10px; font-size: clamp(28px, 4.6vw, 40px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.thanks .sec-sub { margin-inline: auto; }
.thanks-btn { margin-top: 28px; white-space: normal; }
.thanks-btn[hidden] { display: none; }
.thanks-hint { margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.thanks-steps { margin: 28px auto 0; max-width: 440px; text-align: left; counter-reset: p; display: flex; flex-direction: column; gap: 12px; }
.thanks-steps li { position: relative; padding-left: 40px; font-size: 15px; color: var(--muted); counter-increment: p; }
.thanks-steps li::before {
  content: counter(p); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-2); font: 700 13px/1 var(--f-mono);
}
.thanks-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }
.thanks-foot { margin-top: 24px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dim); }
.thanks-foot img { image-rendering: pixelated; }

@media (max-width: 1080px) {
  .pay-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .gets { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pg-pagamento .header-cta .btn-ghost { display: inline-flex; }
  .opt-box { padding: 18px 16px; column-gap: 12px; }
  .opt-name { font-size: 17px; }
  .opt-name small { display: block; margin: 2px 0 0; }
  .opt-price b { font-size: 17px; }
  .opt-price small { font-size: 12px; }
  .gets { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; text-align: center; }
  .guarantee .sec-sub { margin-inline: auto; }
  .trust li { font-size: 13px; padding: 7px 12px; }
  .pay-bar { transform: none; }
  .pg-pagamento .footer { padding-bottom: 110px; }
  .lead-form { padding: 26px 18px 20px; }
}
