:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3f6;
    --ink: #111827;
    --muted: #607083;
    --line: #dfe6ee;
    --navy: #0f2742;
    --green: #19a66a;
    --green-dark: #08784a;
    --amber: #d8911d;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(17, 24, 39, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px 13px;
    color: var(--ink);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px clamp(18px, 5vw, 70px);
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(223, 230, 238, .8);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.inline-form {
    margin: 0;
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    padding: 9px 12px;
}

.button,
.nav-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
}

.button,
.nav-button {
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 24px rgba(25, 166, 106, .2);
}

.button:hover,
.nav-button:hover {
    background: var(--green-dark);
}

.button.secondary {
    background: var(--navy);
}

.button.ghost,
.ghost-button {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button.full {
    width: 100%;
}

.flash-wrap {
    position: fixed;
    top: 86px;
    right: 18px;
    z-index: 80;
    display: grid;
    gap: 8px;
}

.flash {
    width: min(420px, calc(100vw - 36px));
    padding: 14px 16px;
    border-radius: 8px;
    color: #fff;
    box-shadow: var(--shadow);
    font-weight: 800;
}

.flash.success {
    background: var(--green-dark);
}

.flash.error {
    background: var(--danger);
}

.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    padding: clamp(58px, 8vw, 96px) clamp(18px, 7vw, 90px);
    overflow: hidden;
    color: #fff;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 18, 33, .86), rgba(7, 18, 33, .52) 46%, rgba(7, 18, 33, .14));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
}

.hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.4rem);
    line-height: .98;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.eyebrow {
    color: var(--green);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section {
    padding: clamp(48px, 8vw, 90px) clamp(18px, 6vw, 76px);
}

.section.narrow {
    max-width: 850px;
    margin: 0 auto;
}

.muted {
    background: var(--surface-soft);
}

.section-heading {
    display: grid;
    gap: 8px;
    max-width: 780px;
    margin-bottom: 28px;
}

.section-heading h2,
.page-title h1,
.dashboard-content h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading p,
.page-title p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.metrics-band,
.feature-grid,
.audience-grid,
.tag-grid,
.pricing-grid,
.testimonial-grid,
.stat-grid,
.split-grid,
.form-grid {
    display: grid;
    gap: 16px;
}

.metrics-band {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 30px;
    padding-bottom: 30px;
    background: var(--navy);
    color: #fff;
}

.metric {
    display: grid;
    gap: 4px;
}

.metric span {
    color: rgba(255, 255, 255, .72);
}

.feature-grid,
.audience-grid,
.tag-grid {
    grid-template-columns: repeat(3, 1fr);
}

.pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.testimonial-grid,
.split-grid,
.form-grid {
    grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.compact-card,
.tag-card,
.price-card,
.testimonial,
.content-card,
.article-view,
.panel,
.stat-card,
.empty-state,
.notice,
.auth-card,
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-card,
.compact-card,
.tag-card,
.content-card,
.article-view,
.testimonial,
.panel,
.empty-state,
.notice {
    padding: 22px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.content-grid.compact {
    grid-template-columns: repeat(2, 1fr);
}

.content-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.content-card h2,
.article-view h1 {
    margin: 0;
}

.article-view {
    display: grid;
    gap: 18px;
}

.article-body {
    color: var(--muted);
    font-size: 1.08rem;
}

.feature-card p,
.testimonial p,
.notice p,
.panel p {
    color: var(--muted);
}

.tag-card {
    display: grid;
    gap: 6px;
}

.tag-card span,
.plan-type,
.pill {
    color: var(--muted);
    font-size: .84rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.step {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.step span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.price-card {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 24px;
}

.price-card.highlighted {
    border-color: var(--green);
    box-shadow: 0 22px 60px rgba(25, 166, 106, .16);
}

.price-card h3,
.price-card h2 {
    margin: 0;
}

.price {
    font-size: 2rem;
}

.price-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
}

.faq p {
    color: var(--muted);
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(34px, 6vw, 70px) clamp(18px, 6vw, 76px);
    background: #101827;
    color: #fff;
}

.final-cta h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 3.2rem);
    letter-spacing: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    padding: 36px clamp(18px, 6vw, 76px);
    background: #071221;
    color: #fff;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, .72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.disclaimer {
    grid-column: 1 / -1;
    font-size: .88rem;
}

.auth-shell {
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    padding: 42px 18px;
}

.auth-card {
    display: grid;
    gap: 16px;
    width: min(440px, 100%);
    padding: 28px;
}

.auth-card.wide {
    width: min(760px, 100%);
}

.auth-card h1 {
    margin: 0;
}

.form-note {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.form-note a {
    color: var(--green-dark);
    font-weight: 900;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    padding: 24px clamp(14px, 3vw, 36px) 56px;
}

.sidebar {
    position: sticky;
    top: 94px;
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 18px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
}

.sidebar a {
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .78);
}

.sidebar a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.dashboard-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.page-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.stat-card {
    display: grid;
    gap: 6px;
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    font-size: 1.7rem;
}

.form-panel {
    display: grid;
    gap: 16px;
}

.table-wrap {
    overflow-x: auto;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6f2;
    color: var(--green-dark);
    font-weight: 900;
}

.risk-alto {
    background: #fff4db;
    color: #975a00;
}

.risk-critico {
    background: #fee4e2;
    color: var(--danger);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.check-line input {
    width: auto;
}

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

.exercise-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.message-list,
.workout-builder,
.agenda-list {
    display: grid;
    gap: 14px;
}

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

.wide-panel {
    grid-column: 1 / -1;
}

.agenda-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.agenda-item p {
    margin: 4px 0 0;
    color: var(--muted);
}

.message-card h2,
.workout-builder h2 {
    margin: 0;
    font-size: 1.1rem;
}

.builder-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr .6fr .8fr .7fr .7fr 1fr;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.exercise-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 1120px) {
    .pricing-grid,
    .feature-grid,
    .audience-grid,
    .tag-grid,
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .main-nav {
        position: absolute;
        top: 74px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-header.open .main-nav {
        display: flex;
    }

    .hero {
        min-height: 86vh;
    }

    .hero::after {
        background: rgba(7, 18, 33, .72);
    }

    .metrics-band,
    .pricing-grid,
    .feature-grid,
    .audience-grid,
    .tag-grid,
    .content-grid,
    .report-grid,
    .testimonial-grid,
    .split-grid,
    .form-grid,
    .stat-grid,
    .check-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .builder-row {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .page-row,
    .final-cta,
    .site-footer {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .site-header {
        padding-inline: 14px;
    }

    .brand span:last-child {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button,
    .nav-button,
    .ghost-button {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .exercise-row {
        flex-direction: column;
    }

    .builder-row {
        grid-template-columns: 1fr;
    }
}
