/*
Theme Name: 1ACards
Theme URI: https://1acards.com
Author: 1ACards
Description: Custom theme for 1ACards.com — credit card reviews, rewards calculator, and news. Converted from the original static build; all visual styling below is unchanged from the original site.
Version: 1.0
Requires PHP: 7.4
Text Domain: 1acards
*/

:root {
    --primary:        #1e40af;
    --primary-dark:   #1e3a8a;
    --primary-soft:   #eff6ff;
    --primary-mid:    #dbeafe;

    --green:          #16a34a;
    --green-soft:     #f0fdf4;
    --green-border:   #bbf7d0;

    --amber:          #d97706;
    --amber-soft:     #fffbeb;
    --amber-border:   #fde68a;

    --red:            #dc2626;
    --red-soft:       #fef2f2;

    --text:           #0f172a;
    --text-2:         #475569;
    --muted:          #94a3b8;

    --border:         #e2e8f0;
    --bg:             #f1f5f9;
    --white:          #ffffff;
    --gold:           #f59e0b;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 14px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 12px 36px rgba(0,0,0,.11), 0 4px 8px rgba(0,0,0,.05);

    --r:   10px;
    --r-lg: 16px;
    --r-xl: 20px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--r);
    transition: background .15s;
    flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg); }

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

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

.logo {
    font-size: 19px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -.4px;
    display: flex;
    align-items: center;
}

/* WordPress custom logo (Appearance > Customize > Site Identity) */
.header-logo-img {
    max-height: 38px;
    width: auto;
    display: block;
}

.nav-menu { display: flex; gap: 28px; }

.nav-menu a {
    text-decoration: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: color .15s;
}
.nav-menu a:hover { color: var(--primary); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero-band {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
    padding: 32px 0 72px;
    color: #fff;
}

.breadcrumb {
    margin: 0 0 12px;
    font-size: 12.5px;
    opacity: .7;
    letter-spacing: .2px;
}

.hero-band h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -.5px;
}

.hero-subtext {
    margin: 0;
    font-size: 15px;
    opacity: .85;
    max-width: 540px;
}

/* ─── Page layout (sidebar + content) ──────────────────── */
.page-layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 24px;
    align-items: start;
    padding-top: 0;
    padding-bottom: 64px;
    margin-top: -32px;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar { position: sticky; top: 70px; }

.sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 11px;
}

.sidebar-card-img img {
    width: 155px;
    border-radius: 10px;
    display: block;
}

.sidebar-card-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}

.sidebar-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: var(--gold);
    font-size: 15px;
    letter-spacing: 1.5px;
}

.rating-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

.btn-apply-full {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--r);
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .1s;
    font-family: inherit;
    letter-spacing: .2px;
}
.btn-apply-full:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-share {
    width: 100%;
    background: var(--white);
    color: var(--text-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.btn-share:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* Section nav */
.section-nav {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-nav-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    padding: 2px 8px 10px;
}

.section-nav-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: background .15s, color .15s;
}
.section-nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* ─── Main content ──────────────────────────────────────── */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.content-section { /* wrapper only, no bg */ }

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
    letter-spacing: -.3px;
}

.section-desc {
    font-size: 13.5px;
    color: var(--text-2);
    margin: -8px 0 14px;
}

/* ─── Card Box (Overview) ───────────────────────────────── */
.card-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

/* Box title row (inside card-box, replaces external section-title for Overview) */
.box-title-row {
    padding-bottom: 16px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.2px;
}

/* Quick stats strip */
.quick-stats {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 22px;
    background: #fafbfd;
}

.stat-item {
    flex: 1;
    padding: 14px 16px;
    text-align: center;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    flex-shrink: 0;
}

.stat-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.stat-value.green { color: var(--green); }

.stat-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* Card description */
.card-description {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-bottom: 18px;
}

.card-description h3 {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--primary);
    margin: 0 0 5px;
}

.card-description p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.75;
    margin: 0 0 14px;
}
.card-description p:last-child { margin-bottom: 0; }

/* Badges */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    border: 1px solid var(--primary-mid);
}

/* ─── Reward Tiers ──────────────────────────────────────── */
.reward-tiers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reward-tier {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-radius: var(--r-lg);
    border: 1px solid transparent;
}

.tier-5 { background: linear-gradient(120deg,#f0fdf4,#dcfce7); border-color: #86efac; }
.tier-3 { background: linear-gradient(120deg,#eff6ff,#dbeafe); border-color: #93c5fd; }
.tier-2 { background: linear-gradient(120deg,#fffbeb,#fef3c7); border-color: #fcd34d; }
.tier-1 { background: linear-gradient(120deg,#f8fafc,#f1f5f9); border-color: #cbd5e1; }

.tier-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 3px;
}

.tier-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: #166534;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.tier-badge-blue  { background: #1d4ed8; }
.tier-badge-amber { background: #b45309; }
.tier-badge-gray  { background: #64748b; }

.tier-rate {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    min-width: 74px;
    text-align: center;
}
.tier-5 .tier-rate { color: #15803d; }
.tier-3 .tier-rate { color: #1d4ed8; }
.tier-2 .tier-rate { color: #b45309; }
.tier-1 .tier-rate { color: #52525b; }

.tier-info { flex: 1; }

.tier-category {
    font-size: 15px;
    font-weight: 700;
}
.tier-5 .tier-category { color: #166534; }
.tier-3 .tier-category { color: #1e3a8a; }
.tier-2 .tier-category { color: #92400e; }
.tier-1 .tier-category { color: #374151; }

.tier-detail { font-size: 13px; line-height: 1.5; }
.tier-5 .tier-detail { color: #16a34a; }
.tier-3 .tier-detail { color: #2563eb; }
.tier-2 .tier-detail { color: #d97706; }
.tier-1 .tier-detail { color: #6b7280; }

/* ─── Fees Table ────────────────────────────────────────── */
.fees-table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.fees-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.fees-row:last-child, .fees-row.last { border-bottom: none; }
.fees-row:hover { background: #f8fafc; }

.fees-label {
    font-size: 13.5px;
    color: var(--text-2);
    font-weight: 500;
}

.fees-value {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
}

.fees-value.positive {
    color: var(--green);
    background: var(--green-soft);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--green-border);
    font-size: 12.5px;
    font-weight: 600;
}

.fees-value.warn  { color: var(--red); }
.fees-value.muted { color: var(--muted); font-weight: 500; }

/* ─── Calculator ────────────────────────────────────────── */
.calculator-shell {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

/* Monthly / Yearly toggle, right-aligned above the 3 columns */
.calc-mode-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.calc-toggle {
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.toggle-btn {
    padding: 5px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--text-2);
    transition: background .15s, color .15s, box-shadow .15s;
    font-family: inherit;
}

.toggle-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

/* ── Three-column layout: Spend  =  Points  =  Redemption ── */
.calc-3col {
    display: grid;
    grid-template-columns: 1.25fr 28px 1fr 28px 1.1fr;
    gap: 20px;
    align-items: start;
}

.calc-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calc-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--muted);
    align-self: start;
    padding-top: 44px;
}

.calc-col-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.calc-col-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: var(--bg);
}

.calc-col-icon-spend  { background: var(--green-soft); }
.calc-col-icon-points { background: var(--amber-soft); }
.calc-col-icon-redeem { background: var(--primary-soft); }

.calc-col-heading {
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-2);
}

/* Big total card shared by the Spend and Points columns */
.calc-total-card {
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calc-total-card-spend {
    background: linear-gradient(135deg, var(--green-soft), #dcfce7);
    border-color: var(--green-border);
}

.calc-total-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text);
}

.calc-total-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-2);
}

.calc-total-alt {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    margin-top: 3px;
}

/* Spend input cards */
.input-spends-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spend-input-card {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .15s, background .15s;
}
.spend-input-card:focus-within {
    border-color: var(--primary);
    background: var(--white);
}

.spend-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.spend-card-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.spend-card-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.spend-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.rate-chip   { background: var(--primary-soft); color: var(--primary); }
.annual-chip { background: #fffbeb; color: #92400e; font-weight: 500; }

.input-wrap {
    position: relative;
    flex-shrink: 0;
}

.currency-symbol {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    pointer-events: none;
}

.input-wrap input {
    width: 108px;
    box-sizing: border-box;
    padding: 6px 8px 6px 22px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,64,175,.08);
}

/* Slider — thick filled track + circular thumb, mirrors the number input */
.spend-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    margin: 2px 0 0;
    background: linear-gradient(to right,
        var(--text) 0%, var(--text) var(--fill, 0%),
        var(--border) var(--fill, 0%), var(--border) 100%);
    outline: none;
    cursor: pointer;
}
.spend-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    cursor: pointer;
}
.spend-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
    cursor: pointer;
}
.spend-slider::-moz-range-track {
    background: transparent;
    height: 6px;
    border-radius: 999px;
}

/* Reward Points Earned — big card */
.value-earned-row { display: flex; }

.earned-value-card {
    position: relative;
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border: 1.5px solid var(--amber-border);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.earned-value-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 24px;
    opacity: .85;
}

.earned-value-number {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -1px;
    padding-right: 30px;
}

.earned-value-subtext {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #92400e;
}

.earned-toggle-btn {
    align-self: flex-start;
    margin-top: 6px;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.calc-donut-block {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.calc-donut-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    align-self: flex-start;
}

/* Point Redemption — one big card per redemption path, "OR" between them */
.value-redemption-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.redemption-card {
    background: linear-gradient(135deg, var(--primary-soft), var(--primary-mid));
    border: 1.5px solid var(--primary-mid);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
}

.redemption-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-sm);
}

.redemption-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.redemption-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1.1;
}

.redemption-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.redemption-type {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: .6px;
}

.redemption-return {
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 7px;
    border-radius: 999px;
    display: inline-flex;
    width: max-content;
    border: 1px solid #fde68a;
}

.redemption-or {
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--muted);
}

/* ─── Pros & Cons ───────────────────────────────────────── */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pros-box, .cons-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 22px;
    box-shadow: var(--shadow-md);
}

.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }

.pc-heading {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
}
.pros-heading { color: var(--green); }
.cons-heading { color: var(--red); }

.pros-box ul, .cons-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pros-box li, .cons-box li {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.pros-box li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.cons-box li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-accordion {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: var(--primary-soft); }

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background .15s;
    font-family: inherit;
    gap: 16px;
}
.faq-question:hover { background: var(--primary-soft); }
.faq-item.open .faq-question { color: var(--primary); }

/* Rotating chevron */
.faq-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform .25s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer { display: none; }

.faq-answer.show {
    display: block;
    animation: faqSlideIn .22s ease forwards;
}

@keyframes faqSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-answer-inner {
    padding: 0 20px 16px;
}

.faq-answer p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
    background: #0f172a;
    color: #fff;
    margin-top: 60px;
    padding-top: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
}

.footer-logo-img {
    display: block;
    max-height: 34px;
    width: auto;
    margin: 0 0 14px;
}

.footer-about p {
    line-height: 1.8;
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0;
}

.footer-links h3, .footer-contact h3 {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13.5px;
    transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-contact p {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0 0 12px;
}

.social-icons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-icons span {
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: color .15s;
}
.social-icons span:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #475569;
}
.footer-bottom p { margin: 0; }

/* ─── Card Details (prose) ─────────────────────────────── */
.prose-box {
    padding: 22px 24px;
}

.prose-box p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.85;
    margin: 0 0 16px;
}
.prose-box p:last-child { margin-bottom: 0; }

/* ─── Joining Benefits ──────────────────────────────────── */
.jb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.jb-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.jb-item:hover { box-shadow: var(--shadow-md); }

.jb-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.jb-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.jb-detail {
    font-size: 12.5px;
    color: var(--text-2);
    line-height: 1.55;
}

/* ─── Redemption Steps ──────────────────────────────────── */
.rd-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
}

.rd-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .12s;
}
.rd-step:last-child { border-bottom: none; }
.rd-step:hover { background: #f8fafc; }

.rd-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-mid);
    min-width: 36px;
    letter-spacing: -1px;
    line-height: 1;
    padding-top: 2px;
}

.rd-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.rd-detail {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}

.rd-caveat {
    font-size: 12.5px;
    color: var(--text-2);
    background: #fffbeb;
    border: 1px solid var(--amber-border);
    border-radius: var(--r);
    padding: 10px 14px;
    line-height: 1.6;
}

/* ─── Milestones ────────────────────────────────────────── */
.milestones-track {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ms-card {
    flex: 1;
    min-width: 160px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s, transform .15s;
}
.ms-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.ms-card-icon        { font-size: 26px; margin-bottom: 10px; }
.ms-card-spend       { font-size: 26px; font-weight: 800; color: var(--primary); letter-spacing: -1px; line-height: 1; }
.ms-card-spend-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin: 4px 0 12px; }
.ms-card-divider     { width: 32px; height: 2px; background: var(--border); margin: 0 auto 12px; border-radius: 1px; }
.ms-card-reward      { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.ms-card-detail      { font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.ms-connector        { font-size: 20px; color: var(--muted); padding: 0 8px; flex-shrink: 0; margin-bottom: 20px; }

/* ─── P1: Welcome Benefit Chips (hero) ─────────────────── */
.welcome-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.welcome-chip {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: var(--r-lg);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 148px;
    backdrop-filter: blur(6px);
}

.wc-icon  { font-size: 18px; }

.wc-value {
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.wc-label {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    font-weight: 500;
}

/* ─── P1: Eligibility ───────────────────────────────────── */
.eligibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.elig-panel { padding: 20px 22px; }

.panel-heading {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--primary);
    margin-bottom: 14px;
}

.elig-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.elig-row.last { border-bottom: none; }

.elig-label {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
}

.elig-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-align: right;
}

.doc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-list li {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    padding-left: 22px;
    position: relative;
}

.doc-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
}

/* ─── P1: Reward Exclusions ─────────────────────────────── */
.exclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.exclusion-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--white);
    border: 1px solid #fecaca;
    border-radius: var(--r);
    padding: 12px 14px;
    transition: background .12s;
}
.exclusion-item:hover { background: #fff5f5; }

.excl-x {
    font-size: 11px;
    font-weight: 800;
    color: var(--red);
    flex-shrink: 0;
    margin-top: 2px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.excl-category {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.excl-detail {
    font-size: 11.5px;
    color: var(--text-2);
    line-height: 1.45;
}

/* ─── Highlight Boxes (in Overview) ────────────────────── */
.highlights-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 4px;
}

.highlight-box {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: var(--r);
    border: 1px solid;
}

.highlight-box.positive {
    background: var(--green-soft);
    border-color: var(--green-border);
}

.highlight-box.warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.highlight-box.neutral {
    background: var(--primary-soft);
    border-color: var(--primary-mid);
}

.hb-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.hb-label {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    margin-bottom: 2px;
}

.hb-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -.3px;
}

.hb-detail {
    font-size: 11.5px;
    color: var(--text-2);
    margin-top: 3px;
    line-height: 1.4;
}

.highlight-box.positive .hb-value { color: #15803d; }
.highlight-box.warning  .hb-value { color: #c2410c; }
.highlight-box.neutral  .hb-value { color: var(--primary); }

/* ─── Fees Show-More Toggle ─────────────────────────────── */
.fees-row-extra { display: none; }
.fees-table.fees-expanded .fees-row-extra { display: flex; }

.fees-more-btn {
    width: 100%;
    background: #f8fafc;
    border: none;
    border-top: 1px solid var(--border);
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
    font-family: inherit;
}
.fees-more-btn:hover { background: var(--primary-soft); }

.fees-more-icon {
    font-size: 11px;
    transition: transform .25s ease;
}
.fees-more-icon.open { transform: rotate(180deg); }

/* ─── Card Features (in Card Details) ──────────────────── */
.card-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.cf-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg);
    border-radius: var(--r);
    padding: 12px 14px;
}

.cf-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.cf-body { flex: 1; }

.cf-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}

.cf-detail {
    font-size: 12px;
    color: var(--text-2);
    line-height: 1.5;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
    .page-layout {
        grid-template-columns: 1fr;
        margin-top: 0;
        padding-top: 20px;
    }

    .sidebar { position: static; }

    .sidebar-inner { flex-direction: row; flex-wrap: wrap; }

    .sidebar-card {
        flex: 1;
        min-width: 260px;
        flex-direction: row;
        text-align: left;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sidebar-card-img img { width: 90px; }

    .btn-apply-full, .btn-share { flex: 1; }

    .section-nav { flex: 1; min-width: 200px; }
    .section-nav { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .section-nav-title { width: 100%; }
    .section-nav-link { white-space: nowrap; }

    .calc-3col            { grid-template-columns: 1fr; }
    .calc-connector        { display: none; }
    .card-features-grid   { grid-template-columns: 1fr; }

    .eligibility-grid { grid-template-columns: 1fr; }
    .jb-grid           { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    /* Hamburger replaces inline nav */
    .nav-hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 16px rgba(0,0,0,.10);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        z-index: 99;
    }

    .nav-menu.open { max-height: 280px; }

    .nav-menu a {
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
        display: block;
        width: 100%;
    }
    .nav-menu a:last-child { border-bottom: none; }

    .hero-band { padding: 24px 0 42px; }
    .hero-band h1 { font-size: 23px; }

    .quick-stats { flex-wrap: wrap; }
    .stat-divider { display: none; }
    .stat-item {
        flex: calc(50% - 1px);
        border-bottom: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }
    .stat-item:nth-child(4), .stat-item:nth-child(3) { border-bottom: none; }
    .stat-item:nth-child(3), .stat-item:nth-child(7) { border-right: none; }

    .tier-rate { font-size: 30px; min-width: 60px; }
    .reward-tier { gap: 12px; padding: 14px 16px; }
    .tier-badge { font-size: 9px; }

    .pros-cons-grid     { grid-template-columns: 1fr; }
    .exclusions-grid    { grid-template-columns: 1fr; }

    .welcome-chip { min-width: calc(50% - 5px); flex: 1; }

    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

    .sidebar-inner { flex-direction: column; }

    .section-nav { display: none; }

    .milestones-track { flex-direction: column; }
    .ms-connector     { transform: rotate(90deg); padding: 4px 0; margin: 0; }

    .sb-tiles-grid { grid-template-columns: 1fr 1fr; padding: 12px 14px; }
    .sb-tile.sb-tile-wide { max-width: 100%; }
    .sb-tile-value { font-size: 28px; }
}

/* ═══════════════════════════════════════════════════════════
   SOFT BENEFITS
═══════════════════════════════════════════════════════════ */
.sb-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sb-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .15s;
}
.sb-group:hover { box-shadow: var(--shadow-md); }

.sb-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    background: #fafbfd;
}
.sb-group-icon  { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.sb-group-title { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: -.1px; }

.sb-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}

.sb-tile {
    background: var(--primary-soft);
    border: 1px solid var(--primary-mid);
    border-radius: var(--r-lg);
    padding: 16px 18px;
    transition: background .15s, box-shadow .15s;
}
.sb-tile:hover { background: #dbeafe; box-shadow: var(--shadow-sm); }

.sb-tile.sb-tile-wide { grid-column: 1 / -1; max-width: 460px; }

.sb-tile-label   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--primary); margin-bottom: 8px; }
.sb-tile-value   { font-size: 38px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -1.5px; margin-bottom: 4px; }
.sb-tile-value.sb-tile-value-text { font-size: 22px; letter-spacing: -.5px; }
.sb-tile-unit    { font-size: 13px; color: var(--text-2); line-height: 1.45; margin-bottom: 4px; }
.sb-tile-sublabel{ font-size: 11.5px; color: var(--primary); font-weight: 600; margin-bottom: 6px; }
.sb-tile-note    { font-size: 11.5px; color: var(--text-2); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--primary-mid); line-height: 1.5; }

.sb-group-footnote { padding: 10px 20px 14px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); background: #fafbfd; }
.sb-nil-note       { padding: 14px 20px; font-size: 13px; color: var(--muted); font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   SPEND BREAKDOWN DONUT (Calculator)
═══════════════════════════════════════════════════════════ */
.spend-donut-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 8px;
}

.donut-svg {
    display: block;
    overflow: visible;
}

.donut-legend {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 2px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.donut-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend-label {
    font-size: 11.5px;
    color: var(--text-2);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donut-legend-pct {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.donut-empty {
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    padding: 4px 0;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   COMPETITOR COMPARISON TABLE (Calculator)
═══════════════════════════════════════════════════════════ */
.calc-result-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
}

.calc-col-title {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--muted);
}

.comp-table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

.comp-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
}

.comp-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    transition: background .12s;
}
.comp-row:last-child { border-bottom: none; }
.comp-row:hover { background: #f8fafc; }

.comp-row-current {
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
}
.comp-row-current:hover { background: #dbeafe; }

.comp-card-name {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.comp-cashback {
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-align: right;
}

.comp-return {
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid #fde68a;
    text-align: right;
}

.comp-this-badge {
    font-size: 9px;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: .3px;
    flex-shrink: 0;
}
