:root {
    --black: #000000;
    --white: #ffffff;
    --yellow: #fad843;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ensure main grows to push footer down */
main {
    flex: 1 1 auto;
    width: 100%;
}

header, footer {
    flex: 0 0 auto; /* prevent shrinking causing squish */
}

a {
    transition: color 0.25s, background-color 0.25s, border-color 0.25s, opacity 0.25s;
}

.brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Full-width site header with inner constrained container (set in markup) */
.site-header {
    width: 100%;
    background: var(--black);
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .site-header nav {
        gap: 2.25rem;
    }
}

.nav-link {
    position: relative;
    padding: 0.25rem 0.25rem;
    font-weight: 500;
    color: var(--white);
    opacity: 0.65;
}

.nav-link:hover,
.nav-link:focus {
    opacity: 1;
    color: var(--yellow);
}

.nav-link.active {
    opacity: 1;
    color: var(--yellow);
}

.nav-link.active:after,
.nav-link:hover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

.btn-primary {
    background: var(--yellow);
    color: var(--black);
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    display: inline-block;
    text-decoration: none;
    transition: filter 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 4px rgba(250, 216, 67, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.07);
    box-shadow: 0 4px 8px rgba(250, 216, 67, 0.3);
}

.btn-outline {
    border: 2px solid var(--yellow);
    color: var(--yellow);
    border-radius: 9999px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 4px rgba(250, 216, 67, 0.1);
}

.btn-outline:hover {
    background: var(--yellow);
    color: var(--black);
    box-shadow: 0 4px 8px rgba(250, 216, 67, 0.2);
}

.muted {
    opacity: 0.75;
}

.cards {
    display: grid;
    gap: 1.25rem;
}

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

.card {
    padding: 1.5rem;
    border: 1px solid var(--yellow);
    border-radius: 1rem;
    background: var(--black);
    box-shadow: 0 4px 6px rgba(250, 216, 67, 0.1);
    transition: box-shadow 0.25s;
}

.card:hover {
    box-shadow: 0 8px 12px rgba(250, 216, 67, 0.15);
}

.card h3 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-grid {
    display: grid;
    gap: 2rem;
}

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

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

.feature {
    padding: 1.5rem;
    border: 1px solid var(--yellow);
    border-radius: 1rem;
    background: var(--black);
    box-shadow: 0 4px 6px rgba(250, 216, 67, 0.1);
    transition: box-shadow 0.25s;
}

.feature:hover {
    box-shadow: 0 8px 12px rgba(250, 216, 67, 0.15);
}

.feature h3 {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.steps {
    display: grid;
    gap: 2rem;
}

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

.step-circle {
    width: 4rem;
    height: 4rem;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.cta-panel {
    border: 2px solid var(--yellow);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.plan-card {
    position: relative;
    border: 2px solid var(--yellow);
    border-radius: 1.5rem;
    padding: 3rem 2rem 2.5rem;
    max-width: 420px;
    width: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
}

.plan-card ul li strong {
    font-weight: 600;
}

.plan-card ul li {
    align-items: flex-start;
}

/* Ensure the CTA button stays pinned at the bottom of the pricing card */
.plan-card > a.btn-primary {
    margin-top: auto;
}

/* Equal height pricing cards container */
.plans-equal {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

@media (min-width: 640px) {
    .plans-equal {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
        align-items: stretch;
    }
    .plans-equal .plan-card { height: 100%; }
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--yellow);
    color: var(--black);
    padding: 0.55rem 1.35rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.check {
    color: var(--yellow);
    font-weight: 600;
    margin-right: 0.5rem;
}

.switch {
    --h: 1.5rem;
    width: 3.2rem;
    height: var(--h);
    background: #222;
    border: 1px solid var(--yellow);
    border-radius: var(--h);
    position: relative;
    cursor: pointer;
}

.switch:after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(var(--h) - 4px);
    height: calc(var(--h) - 4px);
    background: var(--yellow);
    border-radius: 50%;
    transition: 0.3s;
}

#billing-toggle:checked + .switch:after {
    transform: translateX(1.7rem);
}

.divider {
    height: 1px;
    background: var(--yellow);
    opacity: 0.2;
    margin: 4rem auto;
    max-width: 6rem;
}

.hero-title {
    font-weight: 800;
    line-height: 1.05;
}

.section-cta a {
    margin: 0.5rem 0.75rem;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.content h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--yellow);
}

.content h2 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--yellow);
}

.content p {
    margin-bottom: 1.5rem;
}

.content a {
    color: var(--yellow);
    text-decoration: underline;
}

.content a:hover {
    opacity: 0.8;
}

.content ul {
    margin-bottom: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
}

footer {
    border-top: 1px solid var(--yellow);
}

footer .muted {
    font-size: 0.75rem;
}

footer a:hover {
    color: var(--yellow);
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 2rem;
    }
    .btn-primary,
    .btn-outline {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
