/* --- RetireMe /new2 overrides on top of base site styles --- */
@import url('./style-base.css');

:root {
    /* RetireMe Navy Palette — matched to logo #134576 */
    --color-primary-start: #134576;
    --color-primary-end: #1a6aad;
    --color-secondary: #0d3460;
    --color-text-muted: #475569;
    --color-bg-light: #FDFBF7;
    --color-white: #FFFFFF;
    --color-border: #E2E8F0;

    /* Typography Overrides */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--color-bg-light);
    padding-top: 0 !important;
    margin-top: 0 !important;
    color: var(--color-secondary);
    line-height: 1.7;
    /* Increased for readability */
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100%;
}

html {
    overflow-x: hidden;
    width: 100%;
    /* Prevent mobile gap above navbar */
    padding-top: 0 !important;
    margin-top: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary-start);
    letter-spacing: -0.025em;
    /* Modern tight tracking */
}

/* Rounded Buttons */
.btn {
    border-radius: 12px !important;
    /* Softer rounded corners */
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary-start);
    border: 1px solid var(--color-primary-start);
}

.btn-primary:hover {
    background: var(--color-primary-end);
    border-color: var(--color-primary-end);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-outline {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary-start);
    border-color: var(--color-primary-start);
}


/* Nav layout */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
    /* Extend to top on mobile; padding for notch/safe-area only */
    padding-top: env(safe-area-inset-top, 0px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-right: 0;
    margin-left: 1.5rem;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    padding: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-secondary);
    padding: 0;
    border-bottom: none;
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--color-primary-start);
}

.nav-links a:last-child {
    border-bottom: none;
}

.nav-advisor-cta {
    display: none;
}

/* Knowledge dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font: inherit;
    font-weight: 600;
    color: var(--color-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.nav-dropdown-trigger:hover {
    color: var(--color-primary-start);
}

.nav-dropdown-chevron {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.nav-dropdown-open .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 180px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    color: var(--color-secondary);
    border-bottom: none;
}

.nav-dropdown-menu a:hover {
    background: #f0f9ff;
    color: var(--color-primary-start);
}

.nav-dropdown-menu a:last-child {
    border-bottom: none;
}

.nav-hamburger {
    display: none !important;
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    line-height: 1;
    color: var(--color-secondary);
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
}
.nav-hamburger svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    stroke: var(--color-secondary);
}

.nav-hamburger:hover {
    color: var(--color-primary-start);
}

.nav-hamburger:focus {
    outline: 2px solid var(--color-primary-start);
    outline-offset: 2px;
}

.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.navbar.nav-mobile-open .nav-links {
    transform: translateX(0);
}

.navbar.nav-mobile-open .nav-mobile-overlay {
    opacity: 1;
    visibility: visible;
}

body.nav-menu-open {
    overflow: hidden;
}

.nav-actions {
    display: flex;
    gap: 0.55rem;
    margin-left: auto;
    align-items: center;
    order: 3;
}

.nav-actions .btn {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0.95rem;
    font-size: 0.82rem;
    line-height: 1;
}

.nav-actions .nav-login-btn {
    margin-left: auto;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    font-size: 1.1rem;
    background: var(--color-white);
}

.nav-icon-btn:hover {
    color: var(--color-primary-start);
    border-color: var(--color-primary-start);
}

.nav-icon-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-drawer-cta {
    display: none;
    margin-top: 1rem;
    border-bottom: none !important;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: var(--color-white) !important;
    border-radius: 10px;
    padding: 0.75rem 1rem !important;
    text-align: center;
}

.kb-search-wrap {
    margin: 0.5rem 0 1.25rem;
}

.kb-search-input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font: inherit;
}

.kb-search-empty {
    margin-top: 1rem;
    color: var(--color-text-muted);
}

.hidden {
    display: none !important;
}

/* Hero badge: shorter text on mobile to avoid wrap */
.badge-text-mobile {
    display: none;
}

@media (max-width: 768px) {
    .badge-text-desktop {
        display: none !important;
    }

    .badge-text-mobile {
        display: inline !important;
    }
}

/* Footer helpers */
.footer-logo-img {
    height: 30px;
    opacity: 0.8;
}

.footer-company {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
    line-height: 1.4;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Footer 3-column layout */
.footer-container {
    align-items: start;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 0.25rem;
}

/* Hero / CTA helpers */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.hero-home-btn-outline {
    border-width: 2px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-with-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 91, 234, 0.03) 0%, rgba(0, 198, 251, 0.06) 100%);
    pointer-events: none;
}

.hero-bg-accent-img {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 70%;
    max-width: 500px;
    opacity: 0.15;
    pointer-events: none;
}

.hero-compact {
    padding-top: 40px;
    padding-bottom: 40px;
    background: var(--color-bg-light);
}

.hero-tagline-transition {
    transition: opacity 0.5s ease;
}

.step-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    align-items: center;
}

.step-number-final {
    background: var(--color-primary-start) !important;
    color: white !important;
    border: none !important;
}

.step-block-last {
    border-bottom: none;
}

/* Content utility classes used by /new2 pages */
.hero-subhead-centered {
    max-width: 700px;
    margin: 0 auto;
}

.hero-subhead-compact {
    max-width: 600px;
    margin: 0 auto;
}

.hero-subhead-wide {
    max-width: 750px;
    margin: 0 auto;
}

.feature-card-spaced {
    margin-bottom: 2rem;
}

.feature-card-emphasis {
    margin-top: 2rem;
    border-top: 4px solid var(--color-primary-start);
}

.feature-title-tight {
    margin-bottom: 0.5rem;
}

.copy-top-gap {
    margin-top: 0.75rem;
}

.copy-top-gap-lg {
    margin-top: 1rem;
}

.copy-top-gap-xl {
    margin-top: 2rem;
}

.copy-tight-bottom {
    margin-bottom: 0;
}

.copy-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.text-link-strong {
    font-weight: 600;
}

.benefit-list-tight {
    margin-top: 0.5rem;
}

.benefit-list {
    list-style: none;
    /* Remove default bullet to avoid encoding issues */
    margin-left: 0;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.benefit-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-list li::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary-end);
    /* Use brand color */
}

.section-lead-wide {
    max-width: 750px;
}

.grid-centered-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.card-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.mt-auto {
    margin-top: auto;
}

.contact-highlight {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-start);
}

.contact-hours {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.btn-full {
    width: 100%;
}

.office-address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.top-divider {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.text-small-95 {
    font-size: 0.95rem;
}

/* Legal pages */
.page-main-pad {
    padding-top: 60px;
    padding-bottom: 80px;
}

.legal-page .narrow-container {
    max-width: 780px;
}

.legal-page section h2 {
    margin-bottom: 0.5rem;
}

.legal-page ul {
    margin: 0.75rem 0 0.5rem 1.2rem;
}

.legal-page li {
    margin-bottom: 0.35rem;
}

/* KB helpers */
.kb-section-tight {
    padding: 1.15rem 0;
}

.kb-badge-tight {
    margin-bottom: 1rem;
    display: inline-flex;
}

.kb-reviewed {
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.95rem;
}

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

.nz-super-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.nz-super-table-head {
    background: #f8fafc;
}

.nz-super-table th,
.nz-super-table td {
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.table-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* Accessibility and contrast touch-ups */
.lightbox-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.gap-nz-super {
    border-top-color: #059669;
}

.gap-no-frills {
    border-top-color: #d97706;
}

.gap-choices {
    border-top-color: #dc2626;
}

.gap-highlight {
    border: 2px solid #d97706;
}

.gap-highlight-number {
    color: #b45309;
}

@media (max-width: 768px) {

    /* Tight hero gap on index (navbar-to-hero) for mobile */
    body.page-index .main-content {
        padding-top: 0 !important;
    }
    body.page-index .hero-with-bg {
        padding-top: 0.25rem !important;
        padding-bottom: 4rem !important;
    }
    body.page-index .hero-with-bg .hero-container {
        padding-top: 0.25rem !important;
        padding-bottom: 3rem !important;
    }

    /* Smaller hero typography on mobile */
    body.page-index .hero-tagline-transition {
        font-size: 1.5rem !important;
        line-height: 1.25;
    }
    body.page-index .hero-with-bg .hero-subhead {
        font-size: 1rem !important;
    }
    body.page-index .hero-with-bg .hero-hook {
        font-size: 0.9rem !important;
    }

    /* Shrink logo on mobile */
    .navbar .logo img {
        height: 38px;
    }

    /* Get started: prevent text wrap, compact button */
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .nav-actions .nav-login-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .nav-icon-btn {
        width: 36px;
        height: 36px;
    }

    .nav-hamburger {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* New Research badge: compact single line, shorter text on mobile */
    .hero-badge {
        font-size: 0.8rem;
        padding: 3px 6px 3px 10px;
        white-space: nowrap;
    }

    .hero-badge .badge-label {
        font-size: 0.68rem;
        padding: 2px 6px;
        margin-right: 6px;
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: calc(var(--nav-height) + 1rem) 1.5rem 1.5rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.12);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
        align-items: stretch;
        font-size: 0.95rem;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
        font-weight: 600;
    }

    .nav-advisor-cta {
        display: block;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-dropdown {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0;
        text-align: left;
    }

    .nav-dropdown-menu {
        position: static;
        margin: 0;
        padding: 0 0 0 1rem;
        box-shadow: none;
        border: none;
        border-radius: 0;
        transform: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.25s ease;
    }

    .nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
        max-height: 200px;
        padding: 0 0 0.5rem 1rem;
    }

    .nav-dropdown:hover .nav-dropdown-chevron {
        transform: none;
    }

    .nav-dropdown.nav-dropdown-open .nav-dropdown-chevron {
        transform: rotate(180deg);
    }

    .nav-drawer-cta {
        display: block;
    }

    .nav-mobile-overlay {
        display: block;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .how-step:not(:last-child)::after {
        display: none;
    }

    .stats-bar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .about-values {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        text-align: left;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-btn {
        width: 100%;
    }

    .hero-carousel {
        max-height: 280px;
    }

    .carousel-slide img {
        max-height: 280px;
    }
}

/* ========================================
   How It Works — horizontal 3-step cards
   ======================================== */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 860px) {
    .how-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .how-step:not(:last-child)::after {
        display: none;
    }
}

.how-step {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

.how-step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(0, 91, 234, 0.2);
}

.how-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.how-step p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.how-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
    opacity: 0.25;
}

/* ========================================
   Stats bar — sourced statistics
   ======================================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--color-secondary);
    max-width: 220px;
    margin: 0 auto 0.35rem;
    line-height: 1.4;
}

.stat-source {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ========================================
   Trust strip
   ======================================== */
.trust-section {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-light);
}

.trust-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.trust-items {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.25rem;
    font-size: 0.95rem;
    color: var(--color-secondary);
}

.trust-item {
    font-weight: 600;
}

.trust-divider {
    color: var(--color-text-muted);
    padding: 0 0.35rem;
}

/* ========================================
   Testimonial cards
   ======================================== */
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.testimonial-quote {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-secondary);
    flex-grow: 1;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* ========================================
   Hero carousel
   ======================================== */
.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-lg);
    max-height: 420px;
    background: var(--color-bg-light);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s ease;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    display: block;
    cursor: pointer;
    max-height: 420px;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
    background: var(--color-white);
    transform: scale(1.25);
}

/* ========================================
   Newsletter signup — footer
   ======================================== */
/* ========================================
   Newsletter signup — footer
   ======================================== */
.footer-newsletter {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-newsletter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.footer-newsletter-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 2px solid #94a3b8;
    /* Slate-400 for high visibility */
    border-radius: 8px;
    background: #f8fafc;
    /* Slate-50 - slight off-white contrast */
    color: var(--color-secondary);
    font: inherit;
    font-size: 0.9rem;
}

.footer-newsletter-input::placeholder {
    color: #64748b;
    /* Slate-500 - darker placeholder */
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--color-primary-start);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
    background: var(--color-white);
}

.footer-newsletter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    background: var(--color-primary-start);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* Add shadow for depth */
}

.footer-newsletter-btn:hover {
    background: var(--color-primary-end);
    transform: translateY(-1px);
}

.footer-newsletter-btn:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}

/* Footer disclaimer */
.footer-disclaimer {
    max-width: 780px;
    margin: 1.25rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    text-align: center;
}

/* ========================================
   FAQ accordion
   ======================================== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.15rem 0;
    background: none;
    border: none;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--color-primary-start);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform 0.25s ease;
    color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary-start);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding-bottom: 1.15rem;
}

.faq-answer p {
    color: var(--color-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}

.faq-answer p+p {
    margin-top: 0.5rem;
}

/* ========================================
   About page
   ======================================== */
.about-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-secondary);
    border-left: 4px solid var(--color-primary-start);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.6;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-value h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.about-value p {
    font-size: 0.95rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* ========================================
   Pricing page
   ======================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-price-original {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.pricing-card {
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--color-primary-start);
    box-shadow: 0 4px 24px rgba(0, 91, 234, 0.12);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-start);
    margin: 0.75rem 0 0.25rem;
    line-height: 1;
}

.pricing-price-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.45rem 0;
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-secondary);
    line-height: 1.45;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

.pricing-card .btn {
    align-self: stretch;
    text-align: center;
    margin-top: auto;
}

.pricing-note {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
    font-size: 0.9rem;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* Accessibility: Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary-start);
    outline-offset: 2px;
}

/* Responsive Tables */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}
