/* =============================================
   Calculadoras públicas Orbyra
   Reutiliza variáveis de orbyra.css.
   Identidade própria: tipografia maior, mobile-first.
   ============================================= */

.calc-body {
    background: var(--orbyra-bg, #F8FAFC);
    color: var(--orbyra-text, #334155);
    font-size: 1.0625rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.calc-main {
    flex: 1;
}

/* ── Topbar ──────────────────────────────────── */
.calc-topbar {
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(8px);
}

.calc-brand-logo {
    height: 34px;
    width: auto;
}

.calc-brand-text {
    font-weight: 700;
    color: var(--orbyra-text-heading, #0F172A);
    font-size: 1.05rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.calc-brand-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--orbyra-primary, #10B981);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.calc-nav-link {
    color: var(--orbyra-text-muted, #64748B);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
}

.calc-nav-link:hover {
    color: var(--orbyra-text-heading, #0F172A);
}

.calc-btn-primary {
    background: var(--orbyra-primary, #10B981);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.calc-btn-primary:hover,
.calc-btn-primary:focus {
    background: var(--orbyra-primary-hover, #059669);
    color: #fff;
}

.calc-btn-outline {
    background: transparent;
    color: var(--orbyra-text-heading, #0F172A);
    border: 1px solid #CBD5E1;
    font-weight: 500;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
}

.calc-btn-outline:hover {
    border-color: var(--orbyra-primary, #10B981);
    color: var(--orbyra-primary, #10B981);
}

/* ── Hero ────────────────────────────────────── */
.calc-hero {
    background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 60%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.calc-hero-eyebrow {
    color: var(--orbyra-primary, #10B981);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.calc-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--orbyra-text-heading, #0F172A);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.calc-hero p.lead {
    font-size: 1.125rem;
    color: var(--orbyra-text, #334155);
    margin-bottom: 1rem;
    max-width: 720px;
}

.calc-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--orbyra-text-muted, #64748B);
    font-size: 0.9rem;
}

.calc-hero-meta i {
    width: 1rem;
    height: 1rem;
    color: var(--orbyra-primary, #10B981);
}

@media (min-width: 768px) {
    .calc-hero {
        padding: 4.5rem 0 3rem;
    }

    .calc-hero h1 {
        font-size: 2.5rem;
    }
}

/* ── Cards / Containers ──────────────────────── */
.calc-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.calc-card + .calc-card {
    margin-top: 1rem;
}

.calc-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orbyra-text-heading, #0F172A);
    margin-bottom: 1rem;
}

.calc-card-soft {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.calc-section {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .calc-card {
        padding: 2rem;
    }

    .calc-section {
        padding: 3rem 0;
    }
}

/* ── Inputs grandes ──────────────────────────── */
.calc-form-label {
    font-weight: 600;
    color: var(--orbyra-text-heading, #0F172A);
    margin-bottom: 0.4rem;
    display: block;
    font-size: 0.95rem;
}

.calc-form-help {
    font-size: 0.8rem;
    color: var(--orbyra-text-muted, #64748B);
    margin-top: 0.25rem;
}

.calc-input-lg,
input.calc-input-lg,
select.calc-input-lg {
    width: 100%;
    height: 56px;
    padding: 0.75rem 1rem;
    font-size: 1.15rem;
    font-weight: 500;
    border: 1.5px solid #D1D5DB;
    border-radius: 0.75rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.calc-input-lg:focus {
    outline: none;
    border-color: var(--orbyra-primary, #10B981);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.calc-input-prefix {
    position: relative;
}

.calc-input-prefix .calc-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orbyra-text-muted, #64748B);
    font-weight: 600;
    pointer-events: none;
}

.calc-input-prefix .calc-input-lg {
    padding-left: 2.75rem;
}

.calc-input-suffix {
    position: relative;
}

.calc-input-suffix .calc-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orbyra-text-muted, #64748B);
    font-weight: 600;
    pointer-events: none;
}

.calc-input-suffix .calc-input-lg {
    padding-right: 2.5rem;
}

/* Slider customizado */
.calc-range {
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #E2E8F0;
    outline: none;
}

.calc-range::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orbyra-primary, #10B981);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #10B981;
}

.calc-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orbyra-primary, #10B981);
    cursor: pointer;
    border: 3px solid #fff;
}

.calc-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.calc-pill {
    flex: 1 1 auto;
    min-width: 80px;
    text-align: center;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    color: var(--orbyra-text, #334155);
    transition: all 0.15s ease;
}

.calc-pill input[type="radio"],
.calc-pill input[type="checkbox"] {
    display: none;
}

.calc-pill:hover {
    border-color: var(--orbyra-primary, #10B981);
}

.calc-pill.is-active,
.calc-pill input:checked + span {
    color: var(--orbyra-primary, #10B981);
}

.calc-pill.is-active {
    border-color: var(--orbyra-primary, #10B981);
    background: #ECFDF5;
}

/* ── Resultado destacado ─────────────────────── */
.calc-result {
    background: linear-gradient(135deg, #ECFDF5, #F0FDF4);
    border: 1.5px solid #A7F3D0;
    border-radius: 1.25rem;
    padding: 1.75rem;
    text-align: center;
}

.calc-result-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #047857;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.calc-result-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--orbyra-text-heading, #0F172A);
    line-height: 1.1;
    word-break: break-word;
}

.calc-result-sublabel {
    margin-top: 0.5rem;
    color: var(--orbyra-text-muted, #64748B);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .calc-result-value {
        font-size: 3rem;
    }
}

.calc-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 576px) {
    .calc-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .calc-stats.calc-stats-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calc-stat {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: left;
}

.calc-stat-label {
    font-size: 0.78rem;
    color: var(--orbyra-text-muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--orbyra-text-heading, #0F172A);
    margin-top: 0.15rem;
}

/* ── Barra de progresso ──────────────────────── */
.calc-progress {
    height: 12px;
    background: #E2E8F0;
    border-radius: 6px;
    overflow: hidden;
    margin: 0.75rem 0 0.4rem;
}

.calc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10B981, #059669);
    border-radius: 6px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.calc-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--orbyra-text-muted, #64748B);
}

/* ── CTA bar (sticky no mobile) ──────────────── */
.calc-cta-bar {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.calc-cta-bar > .btn,
.calc-cta-bar > button {
    flex: 1 1 auto;
}

.calc-cta-primary {
    background: var(--orbyra-primary, #10B981);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-size: 1.05rem;
}

.calc-cta-primary:hover {
    background: var(--orbyra-primary-hover, #059669);
    color: #fff;
}

.calc-cta-secondary {
    background: #fff;
    color: var(--orbyra-text-heading, #0F172A);
    border: 1.5px solid #D1D5DB;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.calc-cta-secondary:hover {
    border-color: var(--orbyra-primary, #10B981);
    color: var(--orbyra-primary, #10B981);
}

.calc-cta-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-weight: 600;
}

.calc-cta-whatsapp:hover {
    background: #1DAE57;
    color: #fff;
}

/* ── Hub de calculadoras (cards) ─────────────── */
.calc-grid-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
}

.calc-grid-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.12);
    border-color: #A7F3D0;
}

.calc-grid-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ECFDF5;
    color: var(--orbyra-primary, #10B981);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.calc-grid-icon i {
    width: 24px;
    height: 24px;
}

.calc-grid-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--orbyra-text-heading, #0F172A);
    margin-bottom: 0.4rem;
}

.calc-grid-card p {
    color: var(--orbyra-text-muted, #64748B);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    flex: 1;
}

.calc-grid-card-link {
    color: var(--orbyra-primary, #10B981);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

/* ── FAQ ─────────────────────────────────────── */
.calc-faq details {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.calc-faq details[open] {
    border-color: #A7F3D0;
}

.calc-faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--orbyra-text-heading, #0F172A);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calc-faq summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--orbyra-text-muted, #64748B);
    font-weight: 400;
}

.calc-faq details[open] summary::after {
    content: "−";
}

.calc-faq summary::-webkit-details-marker {
    display: none;
}

.calc-faq details > p,
.calc-faq details > div {
    margin-top: 0.65rem;
    color: var(--orbyra-text, #334155);
}

/* ── "Como calculamos" ───────────────────────── */
.calc-formula {
    background: #F8FAFC;
    border-left: 4px solid var(--orbyra-primary, #10B981);
    padding: 1rem 1.25rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    color: var(--orbyra-text-heading, #0F172A);
    overflow-x: auto;
}

/* ── Disclaimer (faixa antes do footer) ───────── */
.calc-disclaimer {
    background: #FEF3C7;
    border-top: 1px solid #FDE68A;
    border-bottom: 1px solid #FDE68A;
    padding: 1.25rem 0;
    color: #78350F;
    font-size: 0.875rem;
    line-height: 1.55;
}

.calc-disclaimer .calc-disclaimer-title {
    font-weight: 700;
    color: #7C2D12;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.calc-disclaimer .calc-disclaimer-title svg {
    width: 1.05rem;
    height: 1.05rem;
}

.calc-disclaimer p {
    margin: 0;
}

.calc-disclaimer p + p {
    margin-top: 0.35rem;
}

/* ── Footer ──────────────────────────────────── */
.calc-footer {
    background: #fff;
    border-top: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.calc-footer-link {
    color: var(--orbyra-text, #334155);
    text-decoration: none;
    margin: 0 0.15rem;
}

.calc-footer-link:hover {
    color: var(--orbyra-primary, #10B981);
}

.calc-footer-sep {
    color: #CBD5E1;
    margin: 0 0.25rem;
}

/* ── Tabela comparativa (SAC vs PRICE) ───────── */
.calc-table {
    width: 100%;
    border-collapse: collapse;
}

.calc-table th,
.calc-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #E5E7EB;
    text-align: left;
    font-size: 0.95rem;
}

.calc-table th {
    color: var(--orbyra-text-muted, #64748B);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}

.calc-table td.text-end {
    text-align: right;
}

.calc-table tr.is-highlight td {
    background: #ECFDF5;
    font-weight: 700;
}

/* ── Toast minimalista (resultado copiado etc) */
.calc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orbyra-text-heading, #0F172A);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.calc-toast.show {
    opacity: 1;
}

/* ── Pequeno espaçamento utilitário ──────────── */
.calc-mt-1 { margin-top: 0.5rem; }
.calc-mt-2 { margin-top: 1rem; }
.calc-mt-3 { margin-top: 1.5rem; }
