
/* ==========================================================
   TCDEVHUB — GRATUITO
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   VARIÁVEIS
========================================================== */

:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f9fafb;

    --border: #e5e7eb;
    --border-soft: #eef0f3;
    --border-blue: #bfdbfe;

    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;

    --border-hover: #d1d5db;

    --button-text: #ffffff;

    --shadow-card: rgba(15, 23, 42, 0.06);
    --shadow-highlight: rgba(37, 99, 235, 0.07);

    --scrollbar-thumb: #d1d5db;
    --scrollbar-thumb-hover: #9ca3af;

    --separator: #d1d5db;

    --radius: 12px;
}

/* ==========================================================
   TEMA ESCURO
========================================================== */

[data-theme="dark"] {
    --bg: #202124;
    --surface: #292a2d;
    --surface-soft: #252629;

    --border: #3c4043;
    --border-soft: #303134;
    --border-blue: rgba(138, 180, 248, 0.35);

    --text: #e8eaed;
    --text-secondary: #bdc1c6;
    --text-muted: #9aa0a6;
    --text-light: #70757a;

    --blue: #8ab4f8;
    --blue-dark: #aecbfa;
    --blue-soft: rgba(138, 180, 248, 0.12);

    --border-hover: #5f6368;

    --button-text: #202124;

    --shadow-card: rgba(0, 0, 0, 0.30);
    --shadow-highlight: rgba(138, 180, 248, 0.08);

    --scrollbar-thumb: #5f6368;
    --scrollbar-thumb-hover: #80868b;

    --separator: #5f6368;
}

/* ==========================================================
   HTML / BODY
========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);

    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================
   ANIMAÇÕES
========================================================== */

@keyframes paginaEntrada {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aparecerSuave {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================
   CONTAINER
========================================================== */

.planos-container {
    width: min(960px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 50px;

    animation: paginaEntrada 0.45s ease both;
}

/* ==========================================================
   NAVEGAÇÃO
========================================================== */

.planos-nav {
    margin-bottom: 58px;
}

.voltar {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.15s ease;
}

.voltar:hover {
    color: var(--blue);
}

.voltar-icone {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1;

    transition:
        transform 0.15s ease,
        color 0.15s ease;
}

.voltar:hover .voltar-icone {
    transform: translateX(-3px);
    color: var(--blue);
}

/* ==========================================================
   CABEÇALHO
========================================================== */

.planos-header {
    max-width: 650px;
    margin-bottom: 38px;

    animation: aparecerSuave 0.5s 0.05s ease both;
}

.planos-kicker {
    display: inline-block;

    color: var(--blue);

    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.planos-header h1 {
    margin-top: 10px;

    color: var(--text);

    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.planos-header p {
    max-width: 560px;
    margin-top: 13px;

    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================================
   GRID — PLANO ÚNICO
========================================================== */

.planos-grid {
    display: grid;
    grid-template-columns: minmax(0, 540px);

    justify-content: center;
    align-items: stretch;
}

/* ==========================================================
   CARD
========================================================== */

.plano-card {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 32px;

    background: var(--surface);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius);

    box-shadow:
        0 8px 30px var(--shadow-highlight);

    animation: aparecerSuave 0.5s 0.1s ease both;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.plano-card:hover {
    transform: translateY(-2px);

    border-color: var(--blue);

    box-shadow:
        0 12px 34px var(--shadow-highlight);
}

/* ==========================================================
   DESTAQUE
========================================================== */

.plano-destaque-linha {
    position: absolute;

    top: -1px;
    left: 28px;
    right: 28px;

    height: 2px;

    background: var(--blue);
    border-radius: 0 0 4px 4px;
}

/* ==========================================================
   TOPO DO CARD
========================================================== */

.plano-card-top {
    min-height: 125px;
}

.plano-label {
    display: inline-flex;
    padding: 5px 8px;

    border: 1px solid var(--border-blue);
    border-radius: 5px;

    background: var(--blue-soft);
    color: var(--blue);

    font-family: "IBM Plex Mono", monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.plano-card h2 {
    margin-top: 17px;

    color: var(--text);

    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.plano-card-top p {
    max-width: 390px;
    margin-top: 7px;

    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================
   PREÇO
========================================================== */

.plano-preco {
    display: flex;
    align-items: baseline;
    gap: 6px;

    padding-top: 22px;

    border-top: 1px solid var(--border-soft);
}

.plano-preco strong {
    color: var(--blue);

    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
}

.plano-preco span {
    color: var(--text-light);
    font-size: 12px;
}

/* ==========================================================
   SEPARADOR
========================================================== */

.plano-separador {
    height: 1px;
    margin-top: 22px;

    background: var(--border-soft);
}

/* ==========================================================
   TÍTULO DOS RECURSOS
========================================================== */

.recursos-titulo {
    display: block;
    margin-top: 22px;

    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================
   RECURSOS
========================================================== */

.plano-recursos {
    display: flex;
    flex-direction: column;
    gap: 13px;

    margin: 16px 0 28px;
    padding: 0;

    list-style: none;
}

.plano-recursos li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.recurso-check {
    flex-shrink: 0;

    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================
   BOTÃO
========================================================== */

.plano-botao {
    width: 100%;
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: auto;
    padding: 10px 16px;

    border: 1px solid var(--blue);
    border-radius: 7px;

    background: var(--blue);
    color: var(--button-text);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.1s ease;
}

.plano-botao:hover {
    transform: translateY(-1px);

    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.plano-botao:active {
    transform: translateY(0);
}

/* ==========================================================
   INFORMAÇÃO
========================================================== */

.planos-info {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-top: 16px;
    padding: 18px;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.info-icone {
    flex-shrink: 0;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-blue);
    border-radius: 50%;

    background: var(--blue-soft);
    color: var(--blue);

    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
}

.planos-info strong {
    display: block;
    margin-bottom: 4px;

    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.planos-info p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================================
   LINKS
========================================================== */

.planos-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 25px;

    color: var(--text-light);
    font-size: 11px;
}

.planos-links a {
    color: var(--text-muted);
    text-decoration: none;

    transition: color 0.15s ease;
}

.planos-links a:hover {
    color: var(--blue);
}

.planos-links span {
    color: var(--separator);
}

/* ==========================================================
   FOOTER
========================================================== */

.planos-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid var(--border-soft);

    color: var(--text-light);
    font-size: 11px;
    text-align: center;
}

.footer-logo img {
    display: block;

    width: 105px;
    height: auto;

    opacity: 0.65;
}

/* ==========================================================
   SELEÇÃO
========================================================== */

::selection {
    color: var(--button-text);
    background: var(--blue);
}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 700px) {
    .planos-container {
        width: min(100% - 30px, 600px);
        padding-top: 22px;
    }

    .planos-nav {
        margin-bottom: 45px;
    }
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 560px) {
    .planos-container {
        width: calc(100% - 28px);

        padding-top: 18px;
        padding-bottom: 35px;
    }

    .planos-nav {
        margin-bottom: 38px;
    }

    .planos-header {
        margin-bottom: 28px;
    }

    .planos-header h1 {
        font-size: 31px;
    }

    .planos-header p {
        font-size: 14px;
    }

    .plano-card {
        padding: 24px;
    }

    .plano-card-top {
        min-height: auto;
    }

    .plano-preco {
        margin-top: 25px;
    }

    .planos-info {
        padding: 15px;
    }
}

/* ==========================================================
   MOBILE PEQUENO
========================================================== */

@media (max-width: 360px) {
    .planos-container {
        width: calc(100% - 20px);
    }

    .planos-header h1 {
        font-size: 28px;
    }

    .plano-card {
        padding: 21px;
    }

    .plano-card h2 {
        font-size: 23px;
    }

    .plano-preco strong {
        font-size: 28px;
    }
}

/* ==========================================================
   ACESSIBILIDADE
========================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
