/* ==============================================================================
   CHECKOUT E PÁGINAS FOCADAS - Ministério Online
   Identidade baseada no e-book "Guia Prático de Oração e Adoração":
   azul-claro de fundo, verde-petróleo como cor principal, dourado como detalhe.
   Arquivo independente do style.css (layout_focus.php carrega só este).
   ============================================================================== */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lexend-latin-700-normal.woff2") format("woff2"); }

:root {
    /* Paleta do e-book */
    --ck-bg: #e6f3f9;
    --ck-bg-deep: #d5eaf4;
    --ck-surface: #ffffff;
    --ck-teal: #137b8b;
    --ck-teal-strong: #0e6271;
    --ck-teal-soft: #dcefef;
    --ck-sky: #23aedb;
    --ck-gold: #c4a06a;
    --ck-gold-soft: #f6eedf;

    --ck-ink: #0d3540;
    --ck-ink-2: #3e6470;
    --ck-muted: #6a8892;
    --ck-line: #cfe2ea;
    --ck-line-strong: #a9cad6;

    --ck-success: #1c8a5a;
    --ck-danger: #c23a3a;
    --ck-danger-soft: #fcecec;

    --ck-font-display: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ck-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ck-radius-sm: 10px;
    --ck-radius: 14px;
    --ck-radius-lg: 22px;
    --ck-shadow-card: 0 1px 2px rgba(13, 53, 64, 0.06), 0 12px 32px -12px rgba(13, 53, 64, 0.18);
    --ck-shadow-book: 0 2px 4px rgba(13, 53, 64, 0.12), 0 24px 48px -16px rgba(13, 53, 64, 0.35);
    --ck-focus: 0 0 0 3px rgba(35, 174, 219, 0.45);
    --ck-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, p, ul, fieldset, legend, figure { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ck-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ck-bg);
    color: var(--ck-ink);
    font-family: var(--ck-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ck-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.ck-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ck-skip {
    position: absolute;
    left: 16px; top: -48px;
    background: var(--ck-teal);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 50;
    text-decoration: none;
}
.ck-skip:focus { top: 12px; }

a { color: var(--ck-teal); text-underline-offset: 2px; }
a:hover { color: var(--ck-teal-strong); }
:focus-visible { outline: none; box-shadow: var(--ck-focus); border-radius: 6px; }

/* Honeypot (campo armadilha) */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------------------------------- TOPO ---------------------------------- */
.ck-topbar {
    position: relative;
    z-index: 5;
    background: rgba(230, 243, 249, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--ck-line);
}
.ck-topbar__inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ck-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--ck-ink);
    font-family: var(--ck-font-display);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.ck-brand__mark { color: var(--ck-gold); font-size: 1.2rem; }
.ck-brand__name span { color: var(--ck-teal); }
.ck-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ck-teal);
    background: var(--ck-surface);
    border: 1px solid var(--ck-line);
    padding: 6px 12px;
    border-radius: 999px;
}

/* --------------------------------- PÁGINA --------------------------------- */
.ck-main { flex: 1; }

.ck-page {
    position: relative;
    padding: 48px 0 72px;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
}

/* Ondas decorativas inspiradas na capa */
.ck-decor { position: absolute; pointer-events: none; z-index: -1; }
.ck-decor--waves {
    top: -150px;
    right: -150px;
    width: 520px;
    height: 520px;
    background: url("/assets/img/ck-waves.svg") no-repeat center / contain;
    opacity: 0.9;
}
.ck-decor--wave-bottom {
    left: 0; right: 0; bottom: 0;
    height: 180px;
    background: url("/assets/img/ck-wave-bottom.svg") no-repeat bottom center / 100% 100%;
}

.ck-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
    align-items: start;
}

/* --------------------------------- PRODUTO -------------------------------- */
.ck-product__sticky { position: sticky; top: 32px; }

.ck-cover {
    position: relative;
    width: min(100%, 340px);
    margin: 0 auto 32px;
    border-radius: 6px 12px 12px 6px;
    box-shadow: var(--ck-shadow-book);
    transform: rotate(-1.5deg);
    transition: transform 0.5s var(--ck-ease);
    background: var(--ck-surface);
}
.ck-cover:hover { transform: rotate(0deg) translateY(-4px); }
.ck-cover img { width: 100%; height: auto; border-radius: inherit; }
.ck-cover::after { /* lombada do livro */
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 14px;
    border-radius: 6px 0 0 6px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.25) 45%, rgba(0, 0, 0, 0.06));
}
.ck-cover__placeholder {
    aspect-ratio: 0.705;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    font-family: var(--ck-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ck-teal);
    background: linear-gradient(160deg, var(--ck-bg) 0%, var(--ck-bg-deep) 100%);
    border-radius: inherit;
}

.ck-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ck-teal);
    margin-bottom: 8px;
}
.ck-product__title {
    font-family: var(--ck-font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ck-teal-strong);
    margin-bottom: 12px;
    text-wrap: balance;
}
.ck-product__desc { color: var(--ck-ink-2); margin-bottom: 24px; }

.ck-perks {
    display: grid;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--ck-line-strong);
}
.ck-perks li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 0.95rem;
    color: var(--ck-ink-2);
}
.ck-perks svg { width: 22px; height: 22px; color: var(--ck-teal); margin-top: 1px; }

.ck-product__note {
    margin-top: 20px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--ck-ink-2);
    background: var(--ck-gold-soft);
    border-left: 3px solid var(--ck-gold);
    border-radius: 0 var(--ck-radius-sm) var(--ck-radius-sm) 0;
}

/* --------------------------------- PAINEL --------------------------------- */
.ck-panel {
    background: var(--ck-surface);
    border-radius: var(--ck-radius-lg);
    box-shadow: var(--ck-shadow-card);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Aviso de gratuidade */
.ck-gift {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 20px;
    margin-bottom: 28px;
    border-radius: var(--ck-radius);
    background: linear-gradient(135deg, var(--ck-teal) 0%, var(--ck-teal-strong) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ck-gift::after { /* brilho sutil */
    content: "";
    position: absolute;
    width: 220px; height: 220px;
    right: -80px; top: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.ck-gift__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: var(--ck-gold-soft);
}
.ck-gift__icon svg { width: 24px; height: 24px; }
.ck-gift__title {
    font-family: var(--ck-font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.ck-gift__text { font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.92); }
.ck-gift__text strong { color: #fff; }

/* Erros gerais */
.ck-alert {
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: var(--ck-radius-sm);
    background: var(--ck-danger-soft);
    border: 1px solid rgba(194, 58, 58, 0.25);
    color: var(--ck-danger);
    font-size: 0.92rem;
}
.ck-alert__title { font-weight: 700; margin-bottom: 4px; }
.ck-alert ul { list-style: disc; padding-left: 18px; }

/* Passos */
.ck-step { margin-bottom: 28px; }
.ck-step__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ck-font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ck-ink);
    margin-bottom: 16px;
}
.ck-step__num {
    width: 26px; height: 26px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ck-teal-soft);
    color: var(--ck-teal-strong);
    font-size: 0.8rem;
    font-weight: 700;
}
.ck-step__hint { font-family: var(--ck-font); font-weight: 400; font-size: 0.85rem; color: var(--ck-muted); }

/* Valores da oferta */
.ck-amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.ck-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 68px;
    padding: 10px 6px;
    border: 1.5px solid var(--ck-line);
    border-radius: var(--ck-radius);
    background: var(--ck-surface);
    cursor: pointer;
    transition: border-color 0.18s var(--ck-ease), background 0.18s var(--ck-ease), transform 0.18s var(--ck-ease);
}
.ck-amount:hover { border-color: var(--ck-line-strong); transform: translateY(-1px); }
.ck-amount__value { font-family: var(--ck-font-display); font-weight: 600; font-size: 1.05rem; color: var(--ck-ink); white-space: nowrap; }
.ck-amount__label { font-size: 0.72rem; color: var(--ck-muted); }
.ck-amount.is-active {
    border-color: var(--ck-teal);
    background: var(--ck-teal-soft);
    box-shadow: inset 0 0 0 1px var(--ck-teal);
}
.ck-amount.is-active .ck-amount__value { color: var(--ck-teal-strong); }
.ck-amount--free.is-active { border-color: var(--ck-gold); background: var(--ck-gold-soft); box-shadow: inset 0 0 0 1px var(--ck-gold); }
.ck-amount--free.is-active .ck-amount__value { color: #8a6a35; }
.ck-amount--free.is-active .ck-amount__label { color: #8a6a35; font-weight: 600; }

.ck-custom { margin-top: 14px; }
.ck-money { position: relative; }
.ck-money__prefix {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--ck-muted);
}
.ck-money .ck-input { padding-left: 44px; font-family: var(--ck-font-display); font-weight: 600; }

/* Preço fixo */
.ck-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    border-radius: var(--ck-radius);
    background: var(--ck-bg);
}
.ck-price__label { font-size: 0.9rem; color: var(--ck-ink-2); }
.ck-price__value { font-family: var(--ck-font-display); font-weight: 700; font-size: 1.8rem; color: var(--ck-teal-strong); letter-spacing: -0.02em; }

/* Order bump */
.ck-bump {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    margin-bottom: 28px;
    border: 2px dashed var(--ck-gold);
    border-radius: var(--ck-radius);
    background: var(--ck-gold-soft);
    cursor: pointer;
    position: relative;
}
.ck-bump input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-bump__box, .ck-check__box {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 1.5px solid var(--ck-line-strong);
    background: var(--ck-surface);
    display: grid;
    place-items: center;
    transition: background 0.15s, border-color 0.15s;
}
.ck-bump__box { border-color: var(--ck-gold); margin-top: 2px; }
.ck-bump input:checked + .ck-bump__box,
.ck-check input:checked + .ck-check__box { background: var(--ck-teal); border-color: var(--ck-teal); }
.ck-bump input:checked + .ck-bump__box::after,
.ck-check input:checked + .ck-check__box::after {
    content: "";
    width: 6px; height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.ck-bump input:focus-visible + .ck-bump__box,
.ck-check input:focus-visible + .ck-check__box { box-shadow: var(--ck-focus); }
.ck-bump__body { display: grid; gap: 2px; }
.ck-bump__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #8a6a35; }
.ck-bump__title { font-weight: 600; color: var(--ck-ink); }
.ck-bump__old { font-size: 0.85rem; color: var(--ck-muted); text-decoration: line-through; }

/* Campos */
.ck-field { margin-bottom: 16px; }
.ck-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ck-ink);
    margin-bottom: 6px;
}
.ck-label__hint { font-weight: 400; font-size: 0.8rem; color: var(--ck-muted); }
.ck-input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1.5px solid var(--ck-line);
    border-radius: var(--ck-radius-sm);
    background: #fbfdfe;
    font-size: 16px; /* evita zoom no iOS */
    color: var(--ck-ink);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.ck-input::placeholder { color: #9bb3bb; }
.ck-input:hover { border-color: var(--ck-line-strong); }
.ck-input:focus { outline: none; border-color: var(--ck-sky); background: #fff; box-shadow: var(--ck-focus); }
.ck-input[aria-invalid="true"] { border-color: var(--ck-danger); background: #fffafa; }
textarea.ck-input { height: auto; min-height: 220px; padding: 14px; line-height: 1.6; resize: vertical; }
select.ck-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ck-muted) 50%), linear-gradient(135deg, var(--ck-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.ck-field__hint { margin-top: 6px; font-size: 0.8rem; color: var(--ck-muted); }
.ck-field__error { margin-top: 6px; font-size: 0.82rem; font-weight: 600; color: var(--ck-danger); }
.ck-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Métodos de pagamento */
.ck-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ck-method { position: relative; cursor: pointer; }
.ck-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-method__card {
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    height: 100%;
    padding: 14px;
    border: 1.5px solid var(--ck-line);
    border-radius: var(--ck-radius);
    transition: border-color 0.15s, background 0.15s;
}
.ck-method__card svg { grid-row: span 2; width: 26px; height: 26px; color: var(--ck-teal); }
.ck-method__name { font-weight: 600; font-size: 0.95rem; color: var(--ck-ink); }
.ck-method__desc { font-size: 0.78rem; color: var(--ck-muted); }
.ck-method:hover .ck-method__card { border-color: var(--ck-line-strong); }
.ck-method input:checked + .ck-method__card { border-color: var(--ck-teal); background: var(--ck-teal-soft); box-shadow: inset 0 0 0 1px var(--ck-teal); }
.ck-method input:focus-visible + .ck-method__card { box-shadow: var(--ck-focus); }

/* Consentimentos */
.ck-consents { display: grid; gap: 12px; margin: 4px 0 20px; }
.ck-check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 0.88rem;
    color: var(--ck-ink-2);
    cursor: pointer;
    position: relative;
}
.ck-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-check input[aria-invalid="true"] + .ck-check__box { border-color: var(--ck-danger); }
.ck-muted { color: var(--ck-muted); }

.ck-turnstile { margin-bottom: 16px; min-height: 65px; }

/* Resumo e botão */
.ck-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0 14px;
    border-top: 1px solid var(--ck-line);
    margin-bottom: 14px;
}
.ck-summary__label { font-size: 0.9rem; color: var(--ck-ink-2); }
.ck-summary__value { font-family: var(--ck-font-display); font-weight: 700; font-size: 1.35rem; color: var(--ck-teal-strong); }

.ck-submit {
    width: 100%;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: 0;
    border-radius: var(--ck-radius);
    background: linear-gradient(180deg, #179099 0%, var(--ck-teal) 55%, var(--ck-teal-strong) 100%);
    color: #fff;
    font-family: var(--ck-font-display);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 0.005em;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(19, 123, 139, 0.7);
    transition: transform 0.18s var(--ck-ease), box-shadow 0.18s var(--ck-ease), filter 0.18s;
}
.ck-submit svg { width: 20px; height: 20px; transition: transform 0.18s var(--ck-ease); }
.ck-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(19, 123, 139, 0.75); }
.ck-submit:hover svg { transform: translateX(3px); }
.ck-submit:active { transform: translateY(0); }
.ck-submit:disabled { cursor: not-allowed; filter: grayscale(0.4) opacity(0.7); transform: none; }
.ck-submit.is-loading svg { animation: ck-pulse 0.9s ease-in-out infinite; }
@keyframes ck-pulse { 50% { transform: translateX(4px); opacity: 0.5; } }

.ck-trust {
    display: grid;
    gap: 4px;
    justify-items: center;
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ck-muted);
}
.ck-trust span:first-child { display: block; font-weight: 600; color: var(--ck-ink-2); }
.ck-trust svg { width: 14px; height: 14px; color: var(--ck-success); vertical-align: -2px; margin-right: 4px; }
.ck-free-foot { margin-top: 12px; text-align: center; font-size: 0.82rem; color: var(--ck-muted); }

/* --------------------------------- RODAPÉ --------------------------------- */
.ck-footer { position: relative; z-index: 1; background: var(--ck-teal-strong); color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; }
.ck-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 18px; padding-bottom: 18px; }
.ck-footer nav { display: flex; gap: 18px; }
.ck-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.ck-footer a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------ PÁGINA TESTEMUNHO ------------------------------ */
.ck-narrow { max-width: 760px; }
.ck-intro { text-align: center; margin-bottom: 32px; }
.ck-intro__title {
    font-family: var(--ck-font-display);
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ck-teal-strong);
    margin-bottom: 14px;
    text-wrap: balance;
}
.ck-intro__title em {
    font-style: normal;
    color: #fff;
    background: var(--ck-teal);
    padding: 0 0.28em 0.04em;
    display: inline-block;
    transform: skewX(-8deg);
    border-radius: 4px;
}
.ck-intro__title em span { display: inline-block; transform: skewX(8deg); }
.ck-intro__text { max-width: 560px; margin: 0 auto; color: var(--ck-ink-2); font-size: 1.02rem; }
.ck-verse {
    max-width: 560px;
    margin: 20px auto 0;
    font-style: italic;
    color: var(--ck-teal);
    font-size: 0.95rem;
}
.ck-verse cite { display: block; margin-top: 4px; font-style: normal; font-weight: 600; font-size: 0.82rem; color: var(--ck-gold); letter-spacing: 0.04em; }
.ck-counter { margin-top: 6px; font-size: 0.78rem; color: var(--ck-muted); text-align: right; }
.ck-options { display: grid; gap: 10px; }
.ck-option { position: relative; cursor: pointer; }
.ck-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-option__card {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1.5px solid var(--ck-line);
    border-radius: var(--ck-radius);
    transition: border-color 0.15s, background 0.15s;
}
.ck-option__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--ck-line-strong); margin-top: 1px; display: grid; place-items: center; }
.ck-option input:checked + .ck-option__card { border-color: var(--ck-teal); background: var(--ck-teal-soft); }
.ck-option input:checked + .ck-option__card .ck-option__dot { border-color: var(--ck-teal); }
.ck-option input:checked + .ck-option__card .ck-option__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ck-teal); }
.ck-option input:focus-visible + .ck-option__card { box-shadow: var(--ck-focus); }
.ck-option__name { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ck-ink); }
.ck-option__desc { display: block; font-size: 0.82rem; color: var(--ck-muted); }

.ck-success { text-align: center; padding: 16px 4px 8px; }
.ck-success__icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ck-teal-soft);
    color: var(--ck-teal);
}
.ck-success__icon svg { width: 36px; height: 36px; }
.ck-success h1 { font-family: var(--ck-font-display); font-weight: 700; font-size: 1.8rem; color: var(--ck-teal-strong); margin-bottom: 10px; }
.ck-success p { color: var(--ck-ink-2); max-width: 460px; margin: 0 auto 8px; }
.ck-link-btn {
    display: inline-flex;
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: var(--ck-radius-sm);
    border: 1.5px solid var(--ck-teal);
    color: var(--ck-teal-strong);
    font-weight: 600;
    text-decoration: none;
}
.ck-link-btn:hover { background: var(--ck-teal-soft); }

/* ------------------------------- RESPONSIVO ------------------------------- */
@media (max-width: 920px) {
    .ck-grid { grid-template-columns: 1fr; gap: 24px; }
    .ck-product__sticky { position: static; }
    .ck-decor--waves { width: 300px; height: 300px; top: -40px; right: -110px; opacity: 0.55; }

    /* Produto compacto para o aviso de gratuidade ficar acima da dobra */
    .ck-product__sticky { display: grid; grid-template-columns: 104px 1fr; gap: 18px; align-items: center; }
    .ck-cover { width: 104px; margin: 0; transform: none; border-radius: 4px 8px 8px 4px; }
    .ck-cover:hover { transform: none; }
    .ck-cover::after { width: 8px; }
    .ck-cover__placeholder { font-size: 0.72rem; padding: 10px; overflow: hidden; }
    .ck-product__title { font-size: 1.35rem; margin-bottom: 0; }
    .ck-product__desc, .ck-perks, .ck-product__note { display: none; }
    .ck-eyebrow { font-size: 0.68rem; margin-bottom: 4px; }
}

@media (max-width: 560px) {
    .ck-wrap { padding: 0 16px; }
    .ck-page { padding: 24px 0 56px; }
    .ck-panel { padding: 20px 16px; border-radius: 18px; }
    .ck-gift { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
    .ck-gift__icon { width: 38px; height: 38px; }
    .ck-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ck-amount { min-height: 60px; }
    .ck-amount--free { grid-column: span 3; flex-direction: row; gap: 8px; min-height: 52px; }
    .ck-methods, .ck-row-2 { grid-template-columns: 1fr; }
    .ck-secure { padding: 5px 10px; font-size: 0.72rem; }
    .ck-topbar__inner { height: 56px; }
    .ck-footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .ck-cover { transform: none; }
}

@media (max-width: 560px) {
    .ck-amount[data-value="custom"] { grid-column: span 3; flex-direction: row; gap: 6px; min-height: 48px; }
}

@media (max-width: 560px) {
    .ck-decor--waves { display: none; }
}

/* ---------------------------- MOCKUP DO PRODUTO ---------------------------- */
/* Desktop: o mockup substitui a capa. Celular: volta a capa compacta. */
.ck-mockup { display: block; margin: -8px -24px 28px -32px; perspective: 1200px; }
.ck-mockup img {
    width: 100%;
    height: auto;
    transform: scale(var(--mockup-scale, 1)) rotateX(var(--mockup-rx, 0deg)) rotateY(var(--mockup-ry, 0deg));
    transform-style: preserve-3d;
}
.ck-product.has-mockup .ck-cover { display: none; }

@media (max-width: 920px) {
    /* Celular/tablet: mockup compacto ao lado do título, no lugar da capa */
    .ck-product.has-mockup .ck-product__sticky { grid-template-columns: minmax(0, 46%) 1fr; gap: 14px; }
    .ck-mockup { margin: -6px 0 -10px -10px; }
    .ck-product.has-mockup .ck-cover { display: none; }
}

@media (max-width: 380px) {
    .ck-product.has-mockup .ck-product__sticky { grid-template-columns: minmax(0, 42%) 1fr; }
    .ck-product.has-mockup .ck-product__title { font-size: 1.15rem; }
}

/* ==========================================================================
   ===== MOTION =====
   Animações de entrada, rolagem, 3D tilt, parallax e microinterações.
   Sem dependências externas, 100% transform/opacity e compatível com CSP.
   ========================================================================== */

/* 1. Flutuação contínua do mockup */
@keyframes ck-float-desktop {
    0%, 100% { transform: translateY(var(--mockup-parallax, 0px)); }
    50% { transform: translateY(calc(var(--mockup-parallax, 0px) - 10px)); }
}

@keyframes ck-float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

html.motion-ready .ck-mockup {
    animation: ck-float-desktop 7s ease-in-out 900ms infinite;
}

@media (max-width: 920px) {
    html.motion-ready .ck-mockup {
        animation: ck-float-mobile 6s ease-in-out 900ms infinite;
    }
}

/* 2. Ondas do topo com movimento contínuo e parallax */
@keyframes ck-waves-drift {
    from {
        transform: translateY(var(--waves-parallax, 0px)) translate(0, 0) rotate(0deg);
    }
    to {
        transform: translateY(var(--waves-parallax, 0px)) translate(-12px, 6px) rotate(2deg);
    }
}

html.motion-ready .ck-decor--waves {
    animation: ck-waves-drift 14s ease-in-out infinite alternate;
}

/* 3. Entrada da página (Initial Reveal) */
@media (prefers-reduced-motion: no-preference) {
    html.motion-ready:not(.motion-done) .ck-topbar {
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 400ms var(--ck-ease) 0ms, transform 400ms var(--ck-ease) 0ms;
    }

    html.motion-ready:not(.motion-done) .ck-mockup {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        transition: opacity 800ms var(--ck-ease) 100ms, transform 800ms var(--ck-ease) 100ms;
    }

    html.motion-ready:not(.motion-done) .ck-cover {
        opacity: 0;
        transform: translateY(20px) rotate(-4deg);
        transition: opacity 700ms var(--ck-ease) 100ms, transform 700ms var(--ck-ease) 100ms;
    }

    html.motion-ready:not(.motion-done) .ck-eyebrow,
    html.motion-ready:not(.motion-done) .ck-product__title,
    html.motion-ready:not(.motion-done) .ck-product__desc,
    html.motion-ready:not(.motion-done) .ck-perks li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 500ms var(--ck-ease) var(--enter-delay, 250ms),
                    transform 500ms var(--ck-ease) var(--enter-delay, 250ms);
    }

    html.motion-ready:not(.motion-done) .ck-panel {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 650ms var(--ck-ease) 200ms, transform 650ms var(--ck-ease) 200ms;
    }

    html.motion-ready:not(.motion-done) .ck-gift {
        opacity: 0;
        transform: scale(0.98);
        transition: opacity 500ms var(--ck-ease) 450ms, transform 500ms var(--ck-ease) 450ms;
    }

    html.motion-ready:not(.motion-done) .ck-intro > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 500ms var(--ck-ease) var(--enter-delay, 0ms),
                    transform 500ms var(--ck-ease) var(--enter-delay, 0ms);
    }

    /* Estado ativado pela classe motion-in */
    html.motion-ready.motion-in:not(.motion-done) .ck-topbar,
    html.motion-ready.motion-in:not(.motion-done) .ck-panel,
    html.motion-ready.motion-in:not(.motion-done) .ck-gift,
    html.motion-ready.motion-in:not(.motion-done) .ck-eyebrow,
    html.motion-ready.motion-in:not(.motion-done) .ck-product__title,
    html.motion-ready.motion-in:not(.motion-done) .ck-product__desc,
    html.motion-ready.motion-in:not(.motion-done) .ck-perks li,
    html.motion-ready.motion-in:not(.motion-done) .ck-intro > * {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    html.motion-ready.motion-in:not(.motion-done) .ck-mockup {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    html.motion-ready.motion-in:not(.motion-done) .ck-cover {
        opacity: 1;
        transform: translateY(0) rotate(-1.5deg);
    }

    /* Brilho do card de gratuidade */
    .ck-gift {
        position: relative;
        overflow: hidden;
    }

    html.motion-ready .ck-gift::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
        transform: translateX(-120%);
        pointer-events: none;
        z-index: 1;
    }

    html.motion-ready.motion-in .ck-gift::before {
        animation: ck-gift-shimmer 1200ms var(--ck-ease) 850ms 1 forwards;
    }

    @keyframes ck-gift-shimmer {
        to { transform: translateX(120%); }
    }

    /* Destaque "fez em você" no testemunho */
    html.motion-ready .ck-intro__title em {
        clip-path: inset(0 100% 0 0);
        transition: clip-path 600ms var(--ck-ease) 350ms;
    }

    html.motion-ready.motion-in .ck-intro__title em {
        clip-path: inset(0 0 0 0);
    }

    html.motion-ready .ck-intro__title em span {
        opacity: 0;
        transition: opacity 300ms var(--ck-ease) 500ms;
    }

    html.motion-ready.motion-in .ck-intro__title em span {
        opacity: 1;
    }
}

/* 4. Rolagem (Scroll Reveal) */
@media (prefers-reduced-motion: no-preference) {
    html.motion-ready [data-scroll-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 500ms var(--ck-ease) var(--reveal-delay, 0ms),
                    transform 500ms var(--ck-ease) var(--reveal-delay, 0ms);
    }

    html.motion-ready [data-scroll-reveal].is-revealed {
        opacity: 1;
        transform: translateY(0);
    }

    @media (max-width: 560px) {
        html.motion-ready [data-scroll-reveal] {
            transform: translateY(12px);
            transition-duration: 420ms;
        }
    }
}

/* 5. Microinterações */
.ck-amount:active {
    transform: scale(0.97);
}

html.motion-ready .ck-amount.is-active {
    animation: ck-pop 220ms var(--ck-ease);
}

@keyframes ck-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

/* Abertura / Fechamento de Pagamento e Outro Valor */
#payment-fields-section.is-animating,
#custom-donation-box.is-animating {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 320ms var(--ck-ease), transform 320ms var(--ck-ease);
}

#payment-fields-section.is-expanded,
#custom-donation-box.is-expanded {
    opacity: 1;
    transform: translateY(0);
}

#payment-fields-section.is-collapsing,
#custom-donation-box.is-collapsing {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 200ms var(--ck-ease), transform 200ms var(--ck-ease);
}

/* Hover suave em cartões de métodos e opções */
.ck-method,
.ck-option__card {
    transition: transform 180ms var(--ck-ease), border-color 180ms var(--ck-ease);
}

.ck-method:hover,
.ck-option:hover .ck-option__card {
    transform: translateY(-1px);
    border-color: var(--ck-line-strong);
}

/* Shake de validação */
html.motion-ready [aria-invalid="true"] {
    animation: ck-shake 300ms var(--ck-ease) 1;
}

@keyframes ck-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

/* Contador do testemunho */
.ck-counter {
    transition: color 200ms var(--ck-ease);
}

.ck-counter.is-valid {
    color: var(--ck-teal);
}

/* Sucesso do testemunho: pop circular e desenho do check */
html.motion-ready .ck-success__icon {
    animation: ck-circle-pop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.motion-ready .ck-check-path {
    stroke-dasharray: 26;
    stroke-dashoffset: 26;
    animation: ck-draw-check 500ms var(--ck-ease) 150ms forwards;
}

@keyframes ck-circle-pop {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes ck-draw-check {
    to { stroke-dashoffset: 0; }
}

/* 6. Desativação total em prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    .ck-cover { transform: none !important; }
    .ck-mockup { transform: none !important; animation: none !important; }
    .ck-mockup img { transform: none !important; animation: none !important; }
    .ck-decor--waves { transform: none !important; animation: none !important; }
    .ck-intro__title em { clip-path: none !important; }
    .ck-intro__title em span { opacity: 1 !important; }
    .ck-check-path { stroke-dashoffset: 0 !important; }
    [data-scroll-reveal] { opacity: 1 !important; transform: none !important; }
}

