:root {
    --ink: #17212e;
    --muted: #667085;
    --purple: #7a36aa;
    --purple-dark: #4b1f6d;
    --cyan: #24b8c9;
    --cream: #fbfafc;
    --line: #e9e4ed;
    --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.site-header {
    width: min(1325px, 100%);
    height: 84px;
    margin: 14px auto;
    padding: 0 38px;
    border: 1px solid #e6eaf0;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 42px rgba(38, 54, 78, .11);
}

.brand img { display: block; width: 164px; height: auto; }

.site-header nav { display: flex; align-items: center; gap: 38px; }

.site-header nav a { color: #46536a; font-size: .94rem; font-weight: 700; transition: color .2s ease; }

.site-header nav a:hover,
.site-header nav a.is-active { color: var(--purple); }

.site-header nav a.is-active { position: relative; }

.site-header nav a.is-active::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--purple);
    position: absolute;
    left: calc(50% - 2px);
    bottom: -12px;
}

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

.login-button,
.signup-button {
    padding: 14px 21px;
    color: var(--white);
    border-radius: 14px;
    font-size: .94rem;
    font-weight: 800;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.login-button { background: linear-gradient(120deg, #2878e1, #25b8c7); }
.signup-button { background: linear-gradient(120deg, #7045ce, #a34ed0); }
.login-button:hover,
.signup-button:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 8px 18px rgba(82, 56, 153, .2); }

.pricing-hero {
    min-height: 570px;
    /* Reserva a área escura ocupada pelo cabeçalho sobreposto dos planos. */
    padding: 0 24px 270px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    color: var(--white);
    background: #171421;
}

.pricing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .14;
    background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.hero-glow {
    --pointer-x: 0px;
    --pointer-y: 0px;
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    will-change: transform;
}

.hero-glow-one {
    width: 520px;
    height: 520px;
    left: -180px;
    top: -200px;
    background: radial-gradient(circle, rgba(125,49,171,.52), transparent 68%);
    animation: glow-drift-one 13s ease-in-out infinite alternate;
}

.hero-glow-two {
    width: 560px;
    height: 560px;
    right: -190px;
    bottom: -360px;
    background: radial-gradient(circle, rgba(36,184,201,.36), transparent 68%);
    animation: glow-drift-two 16s ease-in-out infinite alternate;
}

@keyframes glow-drift-one {
    0% { transform: translate3d(calc(var(--pointer-x) - 18px), calc(var(--pointer-y) - 8px), 0) scale(.94); }
    48% { transform: translate3d(calc(var(--pointer-x) + 52px), calc(var(--pointer-y) + 34px), 0) scale(1.08); }
    100% { transform: translate3d(calc(var(--pointer-x) + 16px), calc(var(--pointer-y) + 82px), 0) scale(1); }
}

@keyframes glow-drift-two {
    0% { transform: translate3d(calc(var(--pointer-x) + 12px), calc(var(--pointer-y) + 18px), 0) scale(1.06); }
    55% { transform: translate3d(calc(var(--pointer-x) - 64px), calc(var(--pointer-y) - 28px), 0) scale(.93); }
    100% { transform: translate3d(calc(var(--pointer-x) - 20px), calc(var(--pointer-y) - 76px), 0) scale(1.04); }
}

.hero-content { width: min(920px, 100%); margin: 76px auto 0; text-align: center; }

.launch-pill {
    width: fit-content;
    margin: 0 auto 28px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e8d9f2;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(8px);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.launch-pill span { width: 7px; height: 7px; border-radius: 50%; background: #77effb; box-shadow: 0 0 0 5px rgba(119,239,251,.1); }

.pricing-hero h1 {
    max-width: 850px;
    margin: 0 auto;
    font: 800 clamp(2.5rem, 5vw, 4.65rem)/1.03 "Manrope", sans-serif;
    letter-spacing: -.055em;
}

.pricing-hero h1::first-line { color: #fff; }

.pricing-hero p { max-width: 690px; margin: 25px auto 30px; color: #bab5c3; font-size: 1.12rem; line-height: 1.7; }

.discount-callout { display: inline-flex; align-items: center; gap: 13px; }
.discount-callout strong { padding: 8px 12px; border-radius: 8px; color: #171421; background: #77effb; font: 800 1rem "Manrope", sans-serif; transform: rotate(-2deg); }
.discount-callout span { color: #f0ebf2; font-size: .92rem; font-weight: 600; }

.hero-cta {
    width: fit-content;
    margin: 30px auto 0;
    padding: 14px 25px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #211629;
    background: var(--white);
    font-size: .92rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.3); }

.pricing-section { width: min(1180px, calc(100% - 48px)); margin: -180px auto 0; position: relative; z-index: 2; scroll-margin-top: 28px; }

.section-heading { padding: 0 20px; text-align: center; margin-bottom: 50px; color: var(--white); }
.section-heading > span, .banner-kicker { color: #8feaf2; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { margin: 11px 0 8px; font: 800 clamp(1.7rem, 3vw, 2.55rem)/1.15 "Manrope", sans-serif; letter-spacing: -.035em; }
.section-heading p { max-width: 720px; margin: 0 auto; color: #bbb6c2; line-height: 1.55; }

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 20px; padding-top: 32px; }

.plan-card {
    min-height: 650px;
    padding: 34px 30px 27px;
    border: 1px solid var(--line);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--white);
    box-shadow: 0 18px 55px rgba(46, 31, 56, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.plan-card:hover { transform: translateY(-7px); box-shadow: 0 25px 70px rgba(60, 35, 74, .14); }

.plan-card--featured { border: 2px solid var(--purple); box-shadow: 0 22px 70px rgba(105, 49, 139, .18); }
.plan-card--custom { background: linear-gradient(155deg, #fbf7fd, #f4fbfc); }

.featured-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    border-radius: 999px;
    white-space: nowrap;
    color: var(--white);
    background: linear-gradient(90deg, #71309d, #9c4fc1);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    box-shadow: 0 8px 18px rgba(103, 42, 137, .25);
}

.plan-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: var(--purple);
    background: #f4eafa;
    font-size: 1.08rem;
}

.plan-card--featured .plan-icon { color: var(--white); background: linear-gradient(135deg, var(--purple), #aa62ca); }
.plan-card--custom .plan-icon { color: #087b89; background: #daf5f7; }
.plan-eyebrow { color: var(--purple); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.plan-top h3 { margin: 8px 0 8px; font: 800 1.72rem/1.15 "Manrope", sans-serif; letter-spacing: -.03em; }
.plan-top p { min-height: 47px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.price-block, .custom-price { min-height: 115px; margin-top: 24px; }
.old-price { color: #9097a3; font-size: .84rem; }
.old-price s { margin-left: 3px; }
.current-price { margin-top: 3px; display: flex; align-items: baseline; }
.current-price sup { margin-right: 6px; color: #4f5866; font-size: .92rem; font-weight: 700; }
.current-price strong { font: 800 2.75rem/1 "Manrope", sans-serif; letter-spacing: -.055em; }
.current-price span { margin-left: 5px; color: var(--muted); font-size: .82rem; }
.saving { width: fit-content; margin-top: 11px; padding: 6px 9px; border-radius: 7px; color: #18727d; background: #e2f7f8; font-size: .73rem; font-weight: 800; }
.saving i { margin-right: 4px; }
.custom-price { display: flex; flex-direction: column; justify-content: center; }
.custom-price strong { font: 800 1.75rem "Manrope", sans-serif; letter-spacing: -.03em; }
.custom-price span { margin-top: 5px; color: var(--muted); font-size: .85rem; }

.feature-divider { height: 1px; background: var(--line); }
.includes { margin: 22px 0 15px; font-size: .82rem; font-weight: 800; }
.feature-list { margin: 0 0 24px; padding: 0; display: grid; gap: 13px; list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; color: #4d5663; font-size: .86rem; line-height: 1.4; }
.feature-list i { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; display: grid; place-items: center; color: var(--purple); background: #f2e8f7; font-size: .58rem; }

.plan-button {
    width: 100%;
    min-height: 49px;
    margin-top: auto;
    padding: 13px 17px;
    border: 1px solid #ddd4e2;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--purple-dark);
    background: var(--white);
    font-size: .88rem;
    font-weight: 800;
    transition: all .2s ease;
    cursor: pointer;
    font-family: inherit;
}

.plan-checkout-form { display: flex; margin-top: auto; }
.plan-checkout-form .plan-button { margin-top: 0; }
.pricing-messages { margin: 0 auto 18px; max-width: 820px; }
.pricing-message { align-items: center; background: #fff4f5; border: 1px solid #ffd0d7; border-radius: 12px; color: #a8384a; display: flex; font-size: .82rem; font-weight: 700; gap: 8px; padding: 12px 14px; }

.plan-card--featured .plan-button { border-color: transparent; color: var(--white); background: linear-gradient(100deg, #6e2b99, #9c48bd); box-shadow: 0 10px 22px rgba(108,42,151,.22); }
.plan-card--custom .plan-button { border-color: #a8dfe3; color: #086d78; background: #e9fafb; }
.plan-button:hover { transform: translateY(-2px); border-color: var(--purple); }
.price-note { margin-top: 11px; color: #9298a2; text-align: center; font-size: .68rem; line-height: 1.35; }
.plans-empty { grid-column: 1 / -1; padding: 50px; border-radius: 20px; text-align: center; background: var(--white); }

.profile-picker { margin: 0 auto 44px; padding: 24px; border: 1px solid #e2d9ed; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 12px 32px #2516370a; }
.profile-picker > span { display: block; margin-bottom: 16px; color: #49345e; font-weight: 800; }
.profile-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.profile-options button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border: 1px solid #e3dce9; border-radius: 12px; background: #faf8fc; color: #5c4c69; font: 700 .88rem "DM Sans", sans-serif; cursor: pointer; transition: background .2s, box-shadow .2s; }
.profile-options button[aria-pressed="true"] { color: #fff; background: #663397; border-color: #663397; box-shadow: 0 5px 16px #66339730; }
.profile-options button:hover { box-shadow: 0 4px 16px #66339725; }
.profile-options button:focus-visible, .pricing-faq summary:focus-visible { outline: 3px solid #24b8c9; outline-offset: 4px; }
.profile-picker > p { margin: 17px auto 0; max-width: 700px; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.plan-card--young { border: 2px solid #9c6bd1; }
.plan-card.is-recommended { outline: 3px solid #a77bda; outline-offset: 7px; box-shadow: 0 20px 55px #6c37922b; }
.plan-card { scroll-margin: 32px; }
.pricing-faq { width: min(900px, calc(100% - 48px)); margin: 70px auto; }
.pricing-faq > span { color: var(--purple); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pricing-faq h2 { font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.2 "Manrope", sans-serif; letter-spacing: -.03em; }
.pricing-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.pricing-faq summary { cursor: pointer; font-weight: 700; }
.pricing-faq details[open] summary { color: var(--purple); }
.pricing-faq p { color: var(--muted); line-height: 1.7; margin-bottom: 0; }
@media (max-width: 600px) { .profile-picker { padding: 22px 16px; } .profile-options { flex-direction: column; } .profile-options button { width: 100%; } }

.security-note { margin: 30px auto 0; padding: 18px 28px; display: flex; justify-content: center; gap: 50px; color: #68717e; font-size: .8rem; font-weight: 600; }
.security-note i { margin-right: 7px; color: var(--purple); }

.custom-banner {
    width: min(1100px, calc(100% - 48px));
    margin: 85px auto;
    padding: 48px 54px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 55px;
    overflow: hidden;
    position: relative;
    color: var(--white);
    background: linear-gradient(120deg, #412052, #6d3190 62%, #2b7e89 140%);
    box-shadow: 0 20px 60px rgba(54,27,68,.2);
}

.custom-banner::after { content: ""; width: 230px; height: 230px; border: 50px solid rgba(255,255,255,.05); border-radius: 50%; position: absolute; right: -95px; top: -100px; }
.custom-banner > div { max-width: 690px; position: relative; z-index: 1; }
.custom-banner h2 { margin: 10px 0 12px; font: 800 clamp(1.65rem, 3vw, 2.45rem)/1.15 "Manrope", sans-serif; letter-spacing: -.04em; }
.custom-banner p { margin: 0; color: #dfd3e4; line-height: 1.65; }
.custom-banner > a { min-width: 214px; padding: 15px 18px; border-radius: 11px; position: relative; z-index: 1; color: #49205c; background: var(--white); text-align: center; font-size: .85rem; font-weight: 800; transition: transform .2s ease; }
.custom-banner > a:hover { transform: translateY(-3px); }
.custom-banner > a i { margin-left: 7px; }

.final-cta { padding: 90px 24px 100px; text-align: center; background: #f1edf3; }
.final-cta > span { color: var(--purple); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.final-cta h2 { max-width: 750px; margin: 14px auto 27px; font: 800 clamp(1.9rem, 4vw, 3.2rem)/1.1 "Manrope", sans-serif; letter-spacing: -.045em; }
.final-cta a { padding: 14px 21px; border-radius: 10px; display: inline-flex; gap: 9px; align-items: center; color: var(--white); background: var(--ink); font-size: .88rem; font-weight: 800; }

footer { padding: 34px max(24px, calc((100% - 1100px)/2)); display: flex; align-items: center; gap: 30px; color: #aaa4ad; background: #171421; font-size: .78rem; }
footer img { width: 125px; display: block; }
footer p { margin: 0 auto 0 0; }

@media (max-width: 900px) {
    .site-header nav { display: none; }
    .pricing-hero { padding-bottom: 315px; }
    .pricing-section { margin-top: -225px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 30px; }
    .plan-card { min-height: 0; }
    .plan-top p { min-height: 0; }
    .custom-banner { padding: 42px; flex-direction: column; align-items: flex-start; gap: 28px; }
    .security-note { flex-wrap: wrap; gap: 18px 30px; }
}

@media (max-width: 600px) {
    .site-header { width: calc(100% - 24px); height: 72px; margin: 10px auto; padding: 0 18px; border-radius: 17px; }
    .brand img { width: 130px; }
    .login-button { display: none; }
    .signup-button { padding: 10px 14px; border-radius: 10px; font-size: .8rem; }
    .pricing-hero { min-height: 0; padding: 0 12px 300px; }
    .hero-content { margin-top: 62px; }
    .launch-pill { font-size: .7rem; }
    .pricing-hero p { font-size: 1rem; }
    .discount-callout { flex-direction: column; }
    .pricing-section { width: calc(100% - 28px); margin-top: -225px; }
    .section-heading { padding: 0 4px; margin-bottom: 42px; }
    .plan-card { padding: 31px 24px 25px; }
    .security-note { display: grid; justify-content: start; padding-inline: 12px; }
    .custom-banner { width: calc(100% - 28px); margin: 60px auto; padding: 34px 27px; }
    .custom-banner > a { width: 100%; }
    .final-cta { padding: 70px 20px 80px; }
    footer { flex-direction: column; align-items: flex-start; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
    .hero-glow { animation: none; transform: none; }
}
