/* The landing page has its own compact hero nav (logo + anchor links) and its own minimal footer
   (which already includes Termos/Privacidade), so the sitewide guest chrome is hidden here to
   avoid duplicating both. Progressive enhancement: browsers without :has() just keep the sitewide
   chrome too, which is harmless (just less clean). */
body:has(.cp-landing) .container.pt-4,
body:has(.cp-landing) .container.d-print-none {
    display: none;
}

/* Chavepix landing page - scoped to .cp-landing, doesn't leak into the rest of the app */
.cp-landing {
    /* Chavepix brand palette - verde pix (#77b6a8) is the primary color for buttons, active states,
       highlights and icons; the rest fill supporting roles (ink/text, muted, and two accent tints). */
    --cp-ink: #38302e;
    --cp-ink-soft: #5c514e;
    --cp-muted: #6f6866;
    --cp-line: #e8e2e0;
    --cp-line-soft: #f3efed;
    --cp-bg: #ffffff;
    --cp-bg-soft: #faf7f5;
    --cp-accent: #77b6a8;
    --cp-accent-ink: #ffffff;
    --cp-accent-soft: #e9f3f0;
    --cp-accent-ink-strong: #4d8276;
    --cp-premium: #eccbd9;
    --cp-premium-ink: #38302e;
    --cp-warn-soft: #fdf0e0;
    --cp-warn-ink: #a35c0a;
    --cp-warn-border: #e28413;
    --cp-error-soft: #fdf4f4;
    --cp-error-ink: #a33;
    --cp-error-border: #e5c1c1;
    /* Text color for the alert cards (available/warn/error) - kept separate from --cp-ink on purpose. */
    --cp-state-ink: #38302e;
    --cp-state-ink-soft: #6f6866;
    /* "Inverted" surfaces (primary buttons, CTA band) - verde pix, the brand's main call-to-action color. */
    --cp-invert-bg: #77b6a8;
    --cp-invert-bg-hover: #5f9c8e;
    --cp-invert-text: #ffffff;
    --cp-invert-text-soft: #eaf4f2;
    --cp-radius: 14px;
    --cp-radius-sm: 10px;
    --cp-max: 1120px;
    --cp-font-display: "Clash Display", "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --cp-font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-family: var(--cp-font-body);
    color: var(--cp-ink);
    background: var(--cp-bg);
    -webkit-font-smoothing: antialiased;
}

/* Excludes .cp-btn links: a bare "a" selector here would outrank .cp-btn-primary's own color
   (both are single-class/type specificity, but this one gains an extra type selector from "a"),
   which silently forced e.g. the "Comprar agora" link's text back to the surrounding (near-invisible) color. */
.cp-landing a:not(.cp-btn) { color: inherit; }
.cp-landing *, .cp-landing *::before, .cp-landing *::after { box-sizing: border-box; }

.cp-wrap {
    max-width: var(--cp-max);
    margin: 0 auto;
    padding: 0 20px;
}

.cp-section { padding: 88px 0; }
.cp-section--tight { padding: 40px 0; }

.cp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--cp-line) 50%, transparent 100%);
}
.cp-section--soft { background: var(--cp-bg-soft); }

.cp-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    color: var(--cp-accent);
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cp-h1 {
    font-family: var(--cp-font-display);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: var(--cp-ink);
}

.cp-h2 {
    font-family: var(--cp-font-display);
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    margin: 0 0 14px;
}

.cp-lead {
    font-size: 1.2rem;
    color: var(--cp-ink-soft);
    line-height: 1.5;
    margin: 0 0 28px;
}

.cp-text {
    color: var(--cp-muted);
    line-height: 1.6;
    font-size: .98rem;
}

.cp-center { text-align: center; }

/* Hero */
.cp-hero { position: relative; padding: 56px 0 48px; overflow: hidden; }
.cp-hero::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, var(--cp-accent) 0%, var(--cp-premium) 60%, transparent 75%);
    opacity: .25;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.cp-hero .cp-wrap { position: relative; z-index: 1; }
.cp-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 16px;
    flex-wrap: wrap;
}
.cp-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cp-font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--cp-ink);
}
.cp-logo-img {
    height: 28px;
    width: auto;
}
.cp-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--cp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.cp-hero-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}
.cp-hero-nav a {
    font-size: .9rem;
    color: var(--cp-muted);
    text-decoration: none;
    font-weight: 500;
}
.cp-hero-nav a:hover { color: var(--cp-ink); }
.cp-hero-nav .cp-nav-account {
    color: var(--cp-ink);
    font-weight: 600;
}

.cp-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}
.cp-hero-content { max-width: 620px; }
.cp-hero-visual { display: flex; justify-content: center; }
@media (max-width: 900px) {
    .cp-hero { padding-top: 15px; }
    .cp-hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .cp-hero-content { max-width: 620px; margin: 0 auto; }
    .cp-hero-stats { justify-content: center; }
}

.cp-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--cp-line);
}
.cp-hero-stat { display: flex; flex-direction: column; }
.cp-hero-stat strong {
    font-family: var(--cp-font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cp-ink);
    letter-spacing: -0.01em;
}
.cp-hero-stat span { font-size: .82rem; color: var(--cp-muted); }

/* Search */
.cp-search-form { max-width: 560px; }
@media (max-width: 900px) { .cp-search-form { margin: 0 auto; } }
.cp-search-bar {
    display: flex;
    align-items: stretch;
    background: var(--cp-bg);
    border: 1.5px solid var(--cp-line);
    border-radius: var(--cp-radius);
    padding: 6px;
    gap: 6px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cp-search-bar:focus-within {
    border-color: var(--cp-accent);
    box-shadow: 0 0 0 4px var(--cp-accent-soft);
}
.cp-search-prefix {
    display: flex;
    align-items: center;
    padding: 0 4px 0 14px;
    color: var(--cp-muted);
    font-size: 1rem;
    white-space: nowrap;
    user-select: none;
}
.cp-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: 1.05rem;
    background: transparent;
    color: var(--cp-ink);
    padding: 12px 4px;
}
.cp-search-input::placeholder { color: #9aa3a7; }
.cp-search-button {
    border: 0;
    border-radius: var(--cp-radius-sm);
    background: linear-gradient(135deg, #8bc4b7 0%, var(--cp-invert-bg) 55%, var(--cp-invert-bg-hover) 100%);
    color: var(--cp-invert-text);
    font-weight: 650;
    font-size: .95rem;
    padding: 0 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: filter .15s ease;
}
.cp-search-button:hover { filter: brightness(.94); }
.cp-search-button:disabled { opacity: .6; cursor: default; }
.cp-search-hint {
    margin-top: 14px;
    font-size: .82rem;
    color: var(--cp-muted);
}
.cp-search-result { margin-top: 18px; text-align: left; }

.cp-result-card {
    border: 1.5px solid var(--cp-line);
    border-radius: var(--cp-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    animation: cp-fade-in .2s ease;
}
/* Each alert state gets its own bg/border/status tokens (not just --cp-ink/--cp-muted), because
   these card backgrounds must stay readable against BOTH the light and dark text they contain -
   a fixed light background (e.g. pale pink for "error") combined with --cp-ink flipping to a light
   color in dark mode produced invisible near-white-on-near-white text and buttons. */
.cp-result-card--available {
    border-color: var(--cp-accent);
    background: var(--cp-accent-soft);
    color: var(--cp-state-ink);
}
.cp-result-card--warn {
    border-color: var(--cp-warn-border);
    background: var(--cp-warn-soft);
    color: var(--cp-state-ink);
}
.cp-result-card--error {
    border-color: var(--cp-error-border);
    background: var(--cp-error-soft);
    color: var(--cp-state-ink);
}
.cp-result-status {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.cp-result-card--available .cp-result-status { color: var(--cp-accent-ink-strong); }
.cp-result-card--warn .cp-result-status { color: var(--cp-warn-ink); }
.cp-result-card--error .cp-result-status { color: var(--cp-error-ink); }
.cp-result-username { font-size: 1.15rem; font-weight: 700; color: var(--cp-state-ink); }
.cp-result-price { color: var(--cp-state-ink-soft); font-size: .92rem; margin-top: 2px; }
.cp-badge-premium {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--cp-premium);
    color: var(--cp-premium-ink);
    padding: 3px 9px;
    border-radius: 999px;
    margin-left: 8px;
    vertical-align: middle;
}
.cp-result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@keyframes cp-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--cp-radius-sm);
    font-weight: 650;
    font-size: .92rem;
    padding: 11px 20px;
    cursor: pointer;
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: opacity .15s ease, background .15s ease, border-color .15s ease;
    white-space: nowrap;
}
.cp-btn:disabled { opacity: .55; cursor: default; }
.cp-btn-primary { background: linear-gradient(135deg, #8bc4b7 0%, var(--cp-invert-bg) 55%, var(--cp-invert-bg-hover) 100%); color: var(--cp-invert-text); transition: filter .15s ease; }
.cp-btn-primary:hover { filter: brightness(.94); color: var(--cp-invert-text); }
.cp-btn-outline { background: transparent; border-color: var(--cp-line); color: var(--cp-ink); }
.cp-btn-outline:hover { border-color: var(--cp-ink); color: var(--cp-ink); }
.cp-btn-block { width: 100%; }

/* Cards grid */
.cp-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.cp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cp-card {
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
    padding: 24px;
    background: var(--cp-bg);
}
.cp-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--cp-accent-soft);
    color: var(--cp-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.cp-card h3 {
    font-family: var(--cp-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
}
.cp-card .cp-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .9rem;
    color: var(--cp-accent);
    display: block;
    margin-bottom: 8px;
}

/* Hero visual image */
.cp-hero-img {
    max-width: 100%;
    width: 420px;
    height: auto;
    display: block;
}

/* Exclusivity handles */
.cp-handles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 28px 0;
}
.cp-handle {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .95rem;
    border: 1px dashed var(--cp-line);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--cp-ink-soft);
}

/* Steps */
.cp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 760px) { .cp-steps { grid-template-columns: 1fr; } }
.cp-step {
    position: relative;
    border: 1px solid var(--cp-line);
    border-radius: var(--cp-radius);
    background: var(--cp-bg);
    padding: 32px 24px;
    text-align: center;
}
.cp-step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--cp-accent-soft) 0%, var(--cp-bg-soft) 100%);
    color: var(--cp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}
.cp-step-num {
    position: absolute;
    top: 14px;
    right: 16px;
    font-family: var(--cp-font-display);
    font-size: .9rem;
    font-weight: 700;
    color: var(--cp-line);
    letter-spacing: .03em;
}
.cp-step h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }

/* Pricing */
.cp-price-section { position: relative; overflow: hidden; }
.cp-price-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    height: 380px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--cp-accent) 0%, var(--cp-premium) 55%, transparent 75%);
    opacity: .35;
    filter: blur(70px);
    pointer-events: none;
}
.cp-price-card {
    position: relative;
    max-width: 380px;
    margin: 32px auto 0;
    border: 1.5px solid var(--cp-ink);
    border-radius: var(--cp-radius);
    padding: 32px;
    text-align: center;
    background: var(--cp-bg);
    box-shadow: 0 30px 60px -25px rgba(56, 48, 46, .35);
}
.cp-price-amount { font-family: var(--cp-font-display); font-size: 3.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cp-price-amount sup { font-size: 1.1rem; font-weight: 700; top: -1.4em; }
.cp-price-period { color: var(--cp-muted); font-size: .95rem; margin-bottom: 24px; }
.cp-price-features { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.cp-price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: .92rem;
    color: var(--cp-ink-soft);
}
.cp-price-features .cp-check { color: var(--cp-accent); font-weight: 800; flex-shrink: 0; }

/* FAQ */
.cp-faq { max-width: 760px; margin: 32px auto 0; }
.cp-faq-item { border-bottom: 1px solid var(--cp-line); }
.cp-faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 18px 4px;
    font-size: .98rem;
    font-weight: 650;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--cp-ink);
}
.cp-faq-icon { transition: transform .15s ease; color: var(--cp-muted); flex-shrink: 0; }
.cp-faq-item[data-open="true"] .cp-faq-icon { transform: rotate(45deg); }
.cp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
}
.cp-faq-answer-inner {
    padding: 0 4px 18px;
    color: var(--cp-muted);
    font-size: .92rem;
    line-height: 1.6;
}

/* Physical products */
.cp-product-card { text-align: center; }
.cp-product-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--cp-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.2rem;
}

/* CTA band */
.cp-cta-band {
    border-radius: var(--cp-radius);
    background: linear-gradient(135deg, #8bc4b7 0%, var(--cp-invert-bg) 45%, var(--cp-invert-bg-hover) 100%);
    color: var(--cp-invert-text);
    padding: 52px 32px;
    text-align: center;
}
.cp-cta-band .cp-h2 { color: var(--cp-invert-text); }
.cp-cta-band .cp-text { color: var(--cp-invert-text-soft); }
.cp-search-form--cta { margin: 24px auto 0; }
.cp-cta-band .cp-search-result { max-width: 560px; margin: 14px auto 0; text-align: left; }

/* Footer - minimal, exclusive to this public page */
.cp-footer {
    border-top: 1px solid var(--cp-line);
    padding: 32px 0;
    margin-top: 24px;
}
.cp-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cp-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.cp-footer-links a,
.cp-footer-link {
    font-size: .85rem;
    color: var(--cp-muted);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}
.cp-footer-links a:hover,
.cp-footer-link:hover { color: var(--cp-ink); }
.cp-footer-copy {
    font-size: .82rem;
    color: var(--cp-muted);
}
@media (max-width: 700px) {
    .cp-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .cp-hero-nav a:not(.cp-nav-account):not(.cp-nav-cta) { display: none; }
    .cp-search-bar { flex-wrap: wrap; }
    .cp-search-prefix { padding-left: 10px; font-size: .9rem; }
    .cp-search-button { width: 100%; margin-top: 6px; padding: 12px; justify-content: center; }
    .cp-result-actions { width: 100%; }
    .cp-result-actions .cp-btn { flex: 1; }
    /* Only "Comprar agora" on mobile - one clear action instead of two competing buttons */
    .cp-result-actions [data-action="add_to_cart"] { display: none; }
}

/* The landing page always stays in the light brand palette above, matching the sitewide forced-light
   theme decision - it deliberately does not follow the visitor's OS/browser dark mode preference. */
