:root {
    --primary: #0D47A1;
    --primary-hover: #1976D2;
    --primary-dark: #0a3578;
    --accent: #FFC107;
    --accent-dark: #F9A825;
    --text: #1a1a2e;
    --text-muted: #5a6478;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --border: #e3e8f0;
    --border-strong: #c8d1e0;
    --shadow-sm: 0 1px 2px rgba(13, 71, 161, 0.04), 0 1px 3px rgba(13, 71, 161, 0.06);
    --shadow-md: 0 4px 12px rgba(13, 71, 161, 0.08), 0 2px 4px rgba(13, 71, 161, 0.06);
    --shadow-lg: 0 12px 32px rgba(13, 71, 161, 0.12), 0 4px 8px rgba(13, 71, 161, 0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* ---------- Header ---------- */
.site-header {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

body[data-step="2"] .promo-banner,
body[data-step="2"] .hero,
body[data-step="2"] .info-section,
body[data-step="3"] .promo-banner,
body[data-step="3"] .hero,
body[data-step="3"] .info-section {
    display: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: inline-block;
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid #fff;
    border-radius: 3px;
    border-bottom-color: transparent;
    border-left-color: transparent;
    transform: rotate(45deg);
}

.brand-name strong {
    color: var(--primary);
    font-weight: 800;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.top-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    padding: 8px 16px;
    border: 1.5px solid var(--primary) !important;
    border-radius: var(--radius-sm);
    color: var(--primary) !important;
}

.nav-cta:hover {
    background-color: var(--primary);
    color: #fff !important;
}

/* ---------- Promo banner ---------- */
.promo-banner {
    padding: 24px 0 8px;
}

.promo-banner img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* ---------- Hero ---------- */
.hero {
    padding: 32px 0 24px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: 720px;
    margin: 0 auto;
}

.hero-sub {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ---------- Stepper ---------- */
.stepper-section {
    padding: 16px 0 40px;
}

.stepper {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    counter-reset: step;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: var(--border-strong);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 2px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.step.is-active .step-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.15);
}

.step.is-active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.is-complete .step-circle {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.step.is-complete .step-label {
    color: var(--text);
}

/* ---------- Plans ---------- */
.plans-section {
    padding: 16px 0 80px;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-head p {
    color: var(--text-muted);
    margin-top: 6px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-hover);
}

.plan-card.is-popular {
    border-color: var(--primary);
    border-width: 2px;
    padding-top: 27px;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.plan-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.plan-price .amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.plan-validity {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.plan-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0 -4px 20px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--text);
}

.feature-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.feature-check svg {
    width: 12px;
    height: 12px;
}

.feature-text {
    flex-grow: 1;
}

.feature-text strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.feature-socials {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background-color: var(--bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

.plan-cta {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
}

.plan-cta:hover {
    background-color: var(--primary-hover);
}

.plan-cta:active {
    transform: scale(0.98);
}

/* ---------- Form steps ---------- */
.form-card {
    max-width: 560px;
    margin: 0 auto;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.muted {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.data-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.data-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.data-form input {
    padding: 12px 14px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background-color: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.data-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.12);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color var(--transition), transform var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: rgba(13, 71, 161, 0.05);
}

.summary {
    background-color: var(--bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 130px;
}

.input-with-icon .cvc-hint {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-icon .cvc-hint svg {
    width: 26px;
    height: 18px;
    display: block;
}

.input-with-icon input#cardCvc {
    padding-right: 44px;
}

.accepted-brands {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    gap: 6px;
    pointer-events: none;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    min-width: 38px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.brand-pill.brand-visa { background-color: #1A1F71; }
.brand-pill.brand-mc { background-color: #EB001B; }
.brand-pill.brand-amex { background-color: #2E77BC; }

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.secure-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.btn-primary:disabled {
    background-color: var(--border-strong);
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    background-color: var(--border-strong);
}

.success-card {
    text-align: center;
    margin-top: 32px;
}

.success-card .summary,
.success-card .form-actions {
    text-align: left;
}

.success-card .form-actions {
    justify-content: center;
}

.success-card .btn-primary {
    min-width: 220px;
    padding: 14px 24px;
    display: inline-block;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(13, 71, 161, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 36px;
    height: 36px;
}

.success-card h2 {
    margin-bottom: 8px;
}

.success-card .secure-note {
    justify-content: center;
    margin: 12px 0 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--border-strong);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary);
}

/* ---------- Info sections ---------- */
.info-section {
    padding: 72px 0;
    background-color: var(--bg);
}

.info-section.info-alt {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.25;
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-step {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.info-section.info-alt .info-step {
    background-color: var(--bg);
}

.info-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-step-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--border-strong);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.info-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.info-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 48px;
    max-width: 920px;
    margin: 0 auto;
}

.info-benefit h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.info-benefit h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 2px;
    background-color: var(--primary);
}

.info-benefit p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 16px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item[open] {
    border-color: var(--primary-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color var(--transition);
}

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

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition);
    margin-bottom: 4px;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-bottom: 0;
    margin-top: 4px;
    border-color: var(--primary);
}

.faq-item[open] summary {
    color: var(--primary);
}

.faq-item p {
    padding: 0 22px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .info-section { padding: 48px 0; }
    .info-title { margin-bottom: 32px; }
    .info-steps { grid-template-columns: 1fr; gap: 16px; }
    .info-benefits { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
    margin-top: auto;
}

.footer-top {
    background-color: #0a1628;
    color: #c8d1e0;
    padding: 56px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand .brand-dark {
    color: #fff;
}

.footer-brand .brand-dark .brand-name strong {
    color: #5a9bff;
}

.footer-tagline {
    margin-top: 14px;
    color: #8a96ad;
    font-size: 0.92rem;
    max-width: 320px;
    line-height: 1.55;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #c8d1e0;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: #5a9bff;
}

.footer-bottom {
    background-color: #060f1d;
    padding: 18px 0;
}

.footer-bottom p {
    text-align: center;
    color: #6c7a91;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .top-nav {
        gap: 16px;
        font-size: 0.85rem;
    }

    .top-nav a:not(.nav-cta) {
        display: none;
    }

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

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

    .step-label {
        font-size: 0.78rem;
    }

    .stepper::before {
        left: 14%;
        right: 14%;
        top: 18px;
    }

    .step-circle {
        width: 38px;
        height: 38px;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-card {
        padding: 28px 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

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

    .input-with-icon input {
        padding-right: 110px;
    }

    .accepted-brands {
        gap: 4px;
    }

    .brand-pill {
        min-width: 32px;
        font-size: 0.6rem;
    }
}
