:root {
    --bg: #f8f9fa;
    --paper: #ffffff;
    --ink: #222222;
    --muted: #555555;
    --brand: #0056b3;
    --brand-light: #e7f1ff;
    --border: #e0e0e0;
    --cta: #ffc107;
    --cta-hover: #e0a800;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 17px;
    padding-bottom: 60px;
    /* Space for cookie banner */
}

a {
    color: var(--brand);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* COMPLIANCE STRIP */
.disclosure-strip {
    background: #333;
    color: #ccc;
    font-size: 11px;
    padding: 8px 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LAYOUT */
.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 15px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
    align-items: start;
}

@media (max-width: 900px) {
    .wrap {
        grid-template-columns: 1fr;
    }
}

/* MAIN CONTENT CARD */
.article {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.articleHead {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfdfc;
    gap: 12px;
    flex-wrap: wrap;
}

/* BRANDING */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-img {
    max-height: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 480px) {
    .brand-img {
        max-height: 70px;
    }
}

.date-badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--bg);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
}

/* CONTENT STYLES */
.content {
    padding: 30px;
}

h1 {
    margin: 10px 0 15px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 24px;
    margin-top: 30px;
    color: #111;
}

h3 {
    font-size: 20px;
    margin-top: 22px;
    color: #111;
}

.kicker {
    color: #d32f2f;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.subhead {
    font-size: 20px;
    color: var(--muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* AUTHOR BOX */
.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--brand-light);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid var(--brand);
}

.author-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-text p {
    margin: 0;
    font-size: 14px;
}

.author-name {
    font-weight: 700;
    color: var(--brand);
}

/* CTA */
.inlineCTA {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 6px;
}

.ctaBtn {
    display: inline-block;
    background: var(--cta);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 18px;
    transition: transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ctaBtn:hover {
    background: var(--cta-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

/* App Store badge */
.appstore-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

.appstore-badge img {
    height: 46px;
    width: auto;
    display: block;
}

.appstore-badge.small img {
    height: 40px;
}

/* Partner callout (content) */
.partner-box {
    margin: 24px 0 8px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid #d8e7ff;
    border-radius: 8px;
}

.partner-box .partner-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.partner-box .partner-title {
    font-weight: 800;
    color: #0c2a55;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.partner-box .partner-sub {
    margin: 0;
    color: #355170;
    font-size: 15px;
}

.partner-bullets {
    margin: 12px 0 0;
    padding-left: 18px;
    color: #24425f;
    font-size: 15px;
}

.partner-bullets li {
    margin: 6px 0;
}

/* TABLE */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
}

.compare th {
    background: #f1f1f1;
    text-align: left;
    padding: 12px;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
}

.compare td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.highlight-row {
    background: #f0fdf4;
}

.impact-text {
    color: #d32f2f;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}

/* RIGHT RAIL */
.rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sidebar-box h3 {
    margin-top: 0;
    font-size: 16px;
    border-bottom: 2px solid var(--cta);
    padding-bottom: 10px;
    display: inline-block;
}

.sidebar-img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bullet-list {
    padding-left: 20px;
    margin: 0;
}

.bullet-list li {
    margin-bottom: 8px;
    font-size: 15px;
}

.sidebar-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.sidebar-cta-wrap .ctaBtn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

/* FOOTER */
 footer {
     text-align: center;
     padding: 24px;
     font-size: 12px;
     background: #f8f8f8;
     color: #666;
 }

 footer a {
     color: #0073e6;
     text-decoration: none;
     margin: 0 8px;
 }

.disclaimer-box {
    font-size: 12px;
    color: #777;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 40px;
    line-height: 1.4;
}

/* --- POPUP MODAL STYLES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 8px;
    padding: 25px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

.modal-body h2 {
    margin-top: 0;
    font-size: 22px;
}

.modal-body p,
.modal-body li {
    font-size: 14px;
    color: #444;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 15px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
    flex-wrap: wrap;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-text {
    font-size: 13px;
    max-width: 700px;
}

.cookie-btn {
    background: var(--cta);
    color: #000;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}

.cookie-btn:hover {
    background: var(--cta-hover);
}