:root {
    --bg: #f4f8fb;
    --surface: #ffffff;
    --surface-strong: #e9f4ff;
    --text: #143043;
    --muted: #5d7284;
    --primary: #0a74b8;
    --primary-dark: #075b90;
    --accent: #18b7b0;
    --border: rgba(20, 48, 67, 0.12);
    --shadow: 0 24px 60px rgba(11, 56, 87, 0.12);
    --radius: 24px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(24, 183, 176, 0.14), transparent 34%),
        linear-gradient(180deg, #eef7fd 0%, #f8fbfe 38%, #ffffff 100%);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 999;
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

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

:focus-visible {
    outline: 3px solid rgba(10, 116, 184, 0.45);
    outline-offset: 2px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(20, 48, 67, 0.08);
}

/* Barra de admin do WordPress (usuário logado): header fixo logo abaixo dela */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 600px) {
    /* Nessa largura a barra de admin rola junto com a página */
    .admin-bar .site-header {
        top: 0;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 80px;
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: auto;
    height: 52px;
}

.footer-brand img {
    width: auto;
    height: 64px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 14px;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 1;
}

.main-nav ul,
.footer-grid ul,
.hero-badges,
.check-list,
.social-icons,
.aside-links,
.legal-related,
.pill-links,
.breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 2px;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--text);
    border: 0;
    border-radius: 12px;
    background: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    white-space: nowrap;
}

.submenu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: 0.6;
}

.main-nav > ul > li > a:hover,
.submenu-toggle:hover,
.main-nav > ul > li.is-current > a,
.main-nav > ul > li.is-current > .submenu-toggle {
    background: rgba(10, 116, 184, 0.08);
    color: var(--primary-dark);
}

.has-submenu ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.has-submenu ul::before {
    content: "";
    position: absolute;
    inset: -10px 0 auto;
    height: 10px;
}

.has-submenu:hover ul,
.has-submenu:focus-within ul,
.has-submenu.is-open ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-submenu ul a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--text);
}

.has-submenu ul a:hover,
.has-submenu ul a[aria-current="page"] {
    background: rgba(10, 116, 184, 0.08);
    color: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
    white-space: nowrap;
}

[id] {
    scroll-margin-top: 100px;
}

.language-switcher {
    display: flex;
    gap: 2px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    font-size: 0.8rem;
}

.language-switcher a {
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--muted);
}

.language-switcher a.is-active {
    background: var(--primary);
    color: #fff;
}

.button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.82rem;
}

.language-options {
    display: flex;
    gap: 4px;
}

.language-options a {
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--muted);
}

.language-options a.is-active {
    background: var(--primary);
    color: #fff;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1390de 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(10, 116, 184, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.button-secondary,
.button-ghost {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.button-large {
    min-height: 56px;
    padding: 0 22px;
}

.hero {
    padding: 48px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    margin: 0 0 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(24, 183, 176, 0.12);
    color: #0d6f76;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h1,
.section-heading h2,
.split-copy h2,
.cta-box h2,
.teacher h2,
.form-card h2 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    max-width: 12ch;
}

.hero-text,
.section-heading p,
.split-copy p,
.callout p,
.cta-box p,
.feature-card p,
.faq-item p,
.site-footer p {
    color: var(--muted);
}

.hero-text {
    margin: 20px 0 0;
    font-size: 1.08rem;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 22px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges li,
.check-list li {
    position: relative;
    padding-left: 28px;
}

.hero-badges li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 0 0 4px rgba(24, 183, 176, 0.12);
}

.social-proof {
    margin-top: 18px;
    max-width: 60ch;
}

.hero-card,
.callout,
.feature-card,
.split-media,
.cta-box,
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 18px;
    overflow: hidden;
}

.hero-card img,
.split-media img {
    width: 100%;
    border-radius: 18px;
}

.section {
    padding: 40px 0;
}

.section-heading {
    text-align: center;
    max-width: 840px;
}

.section-heading h2,
.split-copy h2,
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-heading p {
    margin: 16px auto 0;
    max-width: 62ch;
}

.callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(10, 116, 184, 0.08), rgba(24, 183, 176, 0.08));
}

.callout h2 {
    margin: 0 0 8px;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: 28px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.split-section {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}

.split-media {
    padding: 16px;
}

.split-copy .check-list {
    margin: 22px 0;
    display: grid;
    gap: 10px;
}

.faq-list {
    max-width: 900px;
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.faq-item {
    padding: 0 22px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 0;
    font-weight: 800;
    font-size: 1.05rem;
}

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

.faq-item p {
    margin: 0 0 20px;
    padding-top: 2px;
}

.cta-section {
    padding-bottom: 64px;
}

.cta-box {
    padding: 42px 28px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(10, 116, 184, 0.94), rgba(24, 183, 176, 0.92)),
        linear-gradient(180deg, #0b6ea8, #0a5d8e);
    color: #fff;
}

.cta-box p,
.cta-box strong {
    color: rgba(255, 255, 255, 0.92);
}

.cta-box .button {
    margin-top: 20px;
    background: #fff;
    color: var(--primary-dark);
}

.cta-box strong {
    display: block;
}

.cta-box .social-icons {
    justify-content: center;
    margin-top: 24px;
}

.cta-box .social-icons a {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Componentes compartilhados ---------- */

.section-tight {
    padding: 8px 0 24px;
}

.hero-actions-center {
    justify-content: center;
}

.page-hero {
    padding: 28px 0 24px;
}

.page-hero-grid {
    display: grid;
    gap: 42px;
    align-items: center;
}

.page-hero-split .page-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.8rem);
    max-width: 18ch;
}

.page-hero-text {
    margin: 18px 0 0;
    max-width: 64ch;
    color: var(--muted);
    font-size: 1.08rem;
}

.page-hero-text a,
.legal-content a,
.faq-answer a,
.feature-card p a,
.contact-aside p a,
.form-check label a,
.legal-notice a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.breadcrumb {
    margin-bottom: 22px;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.5;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stats-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
}

.stat strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--primary);
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 0.95rem;
}

.cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
    transform: translateY(-3px);
}

.link-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.link-arrow,
.card-link,
.card-link a {
    color: var(--primary);
    font-weight: 700;
}

.feature-card p.card-link a {
    text-decoration: none;
}

.product-card img {
    width: auto;
    height: 56px;
    margin-bottom: 14px;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.screenshots figure {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.screenshots img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* ---------- Planos ---------- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.pricing-card.is-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(10, 116, 184, 0.06), #fff 40%);
}

.pricing-card h3 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.price {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.price small {
    flex-basis: 100%;
    color: var(--muted);
    font-size: 0.9rem;
}

.price strong {
    font-family: "Outfit", sans-serif;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--text);
}

.price span {
    color: var(--muted);
}

.pricing-label {
    margin: 6px 0 0;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.pricing-card .check-list {
    display: grid;
    gap: 8px;
}

.plans-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ---------- Como funciona ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
}

.steps li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-weight: 800;
}

.curriculum {
    max-width: 900px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.curriculum li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
}

.curriculum span {
    color: var(--muted);
    white-space: nowrap;
}

.split-media figcaption {
    margin-top: 10px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.teacher {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 900px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.teacher img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.teacher h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.teacher-name {
    margin: 6px 0 0;
    font-weight: 800;
    color: var(--primary);
}

.faq-answer ul {
    margin: 0 0 16px;
    display: grid;
    gap: 6px;
}

/* ---------- Formulários ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.form-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.form-card h2 {
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field-wide {
    grid-column: 1 / -1;
}

.form-field label {
    font-weight: 700;
    font-size: 0.95rem;
}

.required-mark {
    margin-left: 2px;
    color: #d93025;
}

.field-hint {
    margin: -2px 0 2px;
    color: #6b86a0;
    font-size: 0.86rem;
}

.form-consents {
    display: grid;
    gap: 14px;
}

.form-privacy {
    margin: 0;
    color: var(--muted);
}

.form-privacy a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(20, 48, 67, 0.2);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(10, 116, 184, 0.18);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: #c0392b;
}

.form-check {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
}

.form-check input {
    width: 20px;
    height: 20px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.form-check label {
    font-weight: 500;
    color: var(--muted);
}

.form-check .field-error {
    grid-column: 1 / -1;
}

.field-error {
    margin: 0;
    color: #b03224;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-alert {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid;
}

.form-alert p {
    margin: 4px 0 0;
}

.form-alert-success {
    background: #e9f8f1;
    border-color: #9ad8bd;
    color: #155a3b;
}

.form-alert-error {
    background: #fdecea;
    border-color: #f2b8b0;
    color: #8a2418;
}

.form-alert a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form button[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.contact-aside {
    display: grid;
    gap: 18px;
}

.contact-aside .feature-card h2 {
    margin: 0 0 10px;
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.aside-links {
    display: grid;
    gap: 10px;
}

.aside-links a {
    display: grid;
    gap: 2px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.aside-links a:hover {
    border-color: var(--primary);
    transform: translateX(3px);
}

.aside-links span {
    color: var(--muted);
    font-size: 0.92rem;
}

.aside-social p {
    margin: 0 0 10px;
    font-weight: 700;
}

/* ---------- Páginas legais ---------- */

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.legal-aside {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
    font-size: 0.92rem;
}

.legal-updated {
    margin: 0;
    color: var(--muted);
}

.legal-toc p {
    margin: 0 0 8px;
    font-weight: 800;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    max-height: 50vh;
    overflow: auto;
}

.legal-toc a,
.legal-related a {
    color: var(--muted);
}

.legal-toc a:hover,
.legal-related a:hover,
.legal-related a[aria-current="page"] {
    color: var(--primary);
}

.legal-related {
    display: grid;
    gap: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.legal-related a[aria-current="page"] {
    font-weight: 700;
}

.legal-content {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.legal-content section + section {
    margin-top: 30px;
}

.legal-content section {
    scroll-margin-top: 110px;
}

.legal-content h2 {
    margin: 0 0 12px;
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
}

.legal-content h3 {
    margin: 20px 0 8px;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
    color: #344e60;
}

.legal-content ul {
    padding-left: 22px;
    display: grid;
    gap: 6px;
}

.legal-notice {
    padding: 14px 18px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: rgba(24, 183, 176, 0.08);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.94rem;
}

.table-wrap th,
.table-wrap td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.table-wrap thead th {
    background: var(--surface-strong);
    font-weight: 800;
}

.table-wrap tbody tr:last-child > * {
    border-bottom: 0;
}

/* ---------- 404 ---------- */

.not-found {
    padding: 80px 0;
}

.not-found h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.pill-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.pill-links a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
}

.pill-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ---------- Redes sociais ---------- */

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.social-icons a {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Rodapé ---------- */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(20, 48, 67, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(4, 1fr);
    gap: 28px;
    align-items: start;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-family: "Outfit", sans-serif;
    font-size: 1.1rem;
}

.footer-grid nav ul {
    display: grid;
    gap: 10px;
}

.footer-grid nav a:hover,
.footer-bottom a:hover {
    color: var(--primary);
}

.footer-about p {
    max-width: 36ch;
}

.footer-cta {
    width: 100%;
    max-width: 320px;
    min-height: 54px;
    margin-top: 20px;
    padding: 12px 18px;
    gap: 10px;
    justify-content: center;
    border-radius: 16px;
    font-size: 0.84rem;
    white-space: nowrap;
}

.footer-cta img {
    width: 79px;
    height: 16px;
    padding-right: 10px;
    border-right: 1px solid var(--border);
    box-sizing: content-box;
}

.footer-cta:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    margin-top: 28px;
    border-top: 1px solid rgba(20, 48, 67, 0.08);
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1180px) {
    .menu-toggle {
        display: inline-block;
    }

    .header-inner {
        flex-wrap: wrap;
        min-height: 72px;
        padding: 10px 0;
    }

    .brand img {
        height: 44px;
    }

    .header-panel {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 6px 0 18px;
    }

    .header-panel.is-open {
        display: flex;
    }

    .main-nav > ul,
    .header-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav > ul > li > a,
    .submenu-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .has-submenu ul {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: auto;
        margin: 4px 0 8px;
        box-shadow: none;
        background: rgba(10, 116, 184, 0.03);
    }

    .has-submenu:hover ul,
    .has-submenu:focus-within ul {
        display: none;
    }

    .has-submenu.is-open ul {
        display: block;
    }

    .header-actions {
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }

    .language-switcher {
        justify-content: center;
    }

    .language-switcher a {
        flex: 1;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .cards-grid-4,
    .steps,
    .screenshots,
    .stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .page-hero-split .page-hero-grid,
    .split-section,
    .cards-grid,
    .cards-grid-2,
    .pricing-grid,
    .contact-layout,
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-aside {
        position: static;
    }

    .legal-toc {
        display: none;
    }

    .callout,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .hero,
    .page-hero {
        padding-top: 24px;
    }

    .section,
    .cta-section {
        padding: 28px 0;
    }

    .feature-card,
    .cta-box,
    .callout,
    .faq-item,
    .form-card,
    .legal-content,
    .teacher,
    .pricing-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-actions .button,
    .callout .button,
    .contact-form .button {
        width: 100%;
    }

    .form-grid,
    .stats-grid,
    .stats-grid-4,
    .cards-grid-4,
    .steps,
    .screenshots {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-grid {
        gap: 12px;
    }

    .curriculum li,
    .teacher {
        flex-direction: column;
        align-items: flex-start;
    }

    .curriculum span {
        white-space: normal;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Planos individuais ---------- */

.pricing-card {
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.price-note {
    margin: -6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 720px) {
    .callout-actions,
    .callout-actions .button {
        width: 100%;
    }
}

/* ---------- Sobre nós (institucional) ---------- */

.about-intro {
    padding: 28px 0 24px;
}

.about-intro-copy {
    max-width: 860px;
    margin: 12px auto 0;
    text-align: center;
}

.about-intro-copy h1 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.about-intro-copy > p:last-child {
    max-width: 66ch;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.pillar {
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.pillar:nth-child(2) {
    border-top-color: var(--accent);
}

.pillar:nth-child(3) {
    border-top-color: #e5306f;
}

.pillar h2 {
    margin: 0 0 10px;
    font-family: "Outfit", sans-serif;
    font-size: 1.35rem;
}

.pillar p {
    margin: 0;
    color: var(--muted);
}

.pillar .check-list {
    display: grid;
    gap: 6px;
    color: var(--muted);
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 34px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--primary);
}

.timeline-item.is-current::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 6px rgba(24, 183, 176, 0.18);
}

.timeline-label {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timeline-item.is-current .timeline-label {
    color: #0d7f79;
}

.timeline-item h3 {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    line-height: 1.2;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.timeline-item .card-link {
    margin-top: auto;
}

.product-list {
    display: grid;
    gap: 14px;
}

.small-heading {
    margin: 0 0 14px;
    font-family: "Outfit", sans-serif;
    font-size: 1.3rem;
}

.product-row {
    display: grid;
    grid-template-columns: 170px 1fr auto;
    gap: 28px;
    align-items: center;
}

.product-row img {
    width: 170px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.product-row p {
    margin: 0;
}

@media (max-width: 1180px) {
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 34px;
    }

    .timeline::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .pillars,
    .product-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .timeline {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-intro-copy {
        text-align: left;
    }
}

/* ---------- Ajustes de mobile ---------- */

@media (max-width: 720px) {
    /* Tabela vira uma lista de cartões: rótulo + valor em cada linha */
    .table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .table-wrap table,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap th,
    .table-wrap td {
        display: block;
        width: 100%;
    }

    .table-wrap tbody tr {
        margin-bottom: 12px;
        border: 1px solid var(--border);
        border-radius: 14px;
        overflow: hidden;
    }

    .table-wrap tbody th {
        background: var(--surface-strong);
        border-bottom: 1px solid var(--border);
    }

    .table-wrap td {
        display: grid;
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 10px;
        border-bottom: 1px solid var(--border);
    }

    .table-wrap td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text);
    }

    .table-wrap tbody tr > :last-child {
        border-bottom: 0;
    }

    .legal-content {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 400px) {
    /* O widget do Turnstile tem 300px fixos */
    .form-card {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ---------- Blog (conteúdo do WordPress) ---------- */

.blog-hero-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 400px);
    gap: 32px;
    align-items: end;
}

.blog-hero h1 {
    max-width: 20ch;
}

.blog-hero-page {
    display: block;
    margin-top: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    letter-spacing: 0;
    color: var(--muted);
}

.blog-search {
    display: flex;
    gap: 8px;
}

.blog-search input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.blog-search input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 116, 184, 0.18);
}

.pill-links.blog-categories,
.post-tags .pill-links {
    justify-content: flex-start;
}

.pill-links a[aria-current="page"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.blog-list {
    padding-top: 12px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card:focus-within {
    outline: 3px solid rgba(10, 116, 184, 0.45);
    outline-offset: 2px;
}

.post-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 24px 24px;
}

.post-card-category {
    margin: 0;
    color: #0d6f76;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-card-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;
}

.post-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.post-card-title a:focus-visible {
    outline: none;
}

.post-card:hover .post-card-title a {
    color: var(--primary);
}

.post-card-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.post-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.post-card .post-meta {
    margin-top: auto;
    padding-top: 6px;
}

.blog-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
}

.blog-pagination a.page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-pagination .page-numbers.current {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* Post */

.post-container {
    width: min(calc(100% - 32px), 840px);
    margin: 0 auto;
}

.post-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 4vw, 3.1rem);
}

.post-hero .eyebrow a:hover {
    text-decoration: underline;
}

.post-hero .post-meta {
    margin-top: 20px;
}

.post-hero .post-meta strong {
    color: var(--text);
}

.post-cover {
    margin: 0 0 28px;
}

.post-cover img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.entry-content {
    padding: clamp(22px, 4vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    color: #263f51;
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.8em 0 0.6em;
    font-family: "Outfit", sans-serif;
    line-height: 1.2;
    color: var(--text);
}

.entry-content h2 {
    font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.entry-content h3 {
    font-size: 1.35rem;
}

.entry-content h4 {
    font-size: 1.15rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 24px;
}

.entry-content li + li {
    margin-top: 6px;
}

.entry-content a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content img {
    border-radius: 16px;
}

.entry-content figure {
    margin: 1.6em 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
}

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 14px 20px;
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: rgba(24, 183, 176, 0.08);
}

.entry-content blockquote > :last-child {
    margin-bottom: 0;
}

.entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.entry-content pre {
    overflow-x: auto;
    padding: 16px;
    border-radius: 12px;
    background: #0f2433;
    color: #e8f1f7;
    font-size: 0.9rem;
}

.entry-content iframe,
.entry-content video {
    max-width: 100%;
}

.entry-content .aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry-content .alignleft {
    float: left;
    margin: 0 20px 12px 0;
}

.entry-content .alignright {
    float: right;
    margin: 0 0 12px 20px;
}

.entry-content .wp-caption {
    max-width: 100%;
}

.post-tags {
    margin-top: 8px;
}

.related-posts .section-heading {
    margin-bottom: 26px;
}

.related-posts .section-heading h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* Anúncios dentro dos posts (includes/blog.php) */

.ad-slot {
    position: relative;
    clear: both;
    width: min(100%, 560px);
    margin: 40px auto;
    padding: 22px 0 18px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.ad-slot-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 10px;
    background: #fff;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.entry-content .ad-slot img {
    margin: 0 auto;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .blog-hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 0 auto 12px;
    }
}
