/* ─── Tokens ───────────────────────────────────────────────────────── */
:root {
    --rd-blue:   #046bd2;
    --rd-blue-dark: #024c98;
    --rd-blue-soft: #eff6ff;
    --rd-green:  #39b54a;
    --rd-green-dark: #2d9a3a;
    --slate-50:  #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
    --shadow-md: 0 4px 18px rgba(15,23,42,.10);
    --r-md: 10px;
    --r-lg: 16px;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--rd-blue); text-decoration: none; }
a:hover { color: var(--rd-blue-dark); text-decoration: underline; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #046bd2 100%);
    color: #fff;
    padding: 70px 24px 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(57,181,74,.18) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(4,107,210,.30) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.72);
    margin-bottom: 14px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.lede {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: rgba(255,255,255,.88);
    max-width: 720px;
}
.lede strong { color: #fff; }

/* ─── Shell ────────────────────────────────────────────────────────── */
.shell {
    max-width: 1240px;
    margin: -50px auto 0;
    padding: 0 24px 60px;
    position: relative;
    z-index: 2;
}

/* ─── Comparison table ────────────────────────────────────────────── */
.table-wrap {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 8px;
    margin-bottom: 40px;
    overflow: hidden;
}
.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
}
.compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

/* Header cells */
.compare thead th {
    padding: 22px 16px 18px;
    background: var(--slate-50);
    border-bottom: 2px solid var(--slate-200);
    text-align: center;
    vertical-align: bottom;
    position: sticky;
    top: 0;
    z-index: 3;
}
.compare thead th.row-label { background: #fff; }
.brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--slate-900);
    line-height: 1.25;
    margin-bottom: 4px;
}
.brand-mfr {
    font-size: 12px;
    color: var(--slate-500);
    font-weight: 500;
}

/* Highlighted column (RD) */
.col-highlight {
    background: var(--rd-blue-soft) !important;
    position: relative;
}
.compare thead th.col-highlight {
    background: linear-gradient(180deg, var(--rd-blue) 0%, var(--rd-blue-dark) 100%) !important;
}
.compare thead th.col-highlight .brand-name,
.compare thead th.col-highlight .brand-mfr {
    color: #fff !important;
}
.compare thead th.col-highlight::after {
    content: 'YOU CAN BUY THIS HERE';
    position: absolute;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    background: var(--rd-green);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 2px 7px;
    border-radius: 999px;
}

/* Section divider rows */
.section-row th {
    text-align: left;
    background: var(--slate-900) !important;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px 18px;
    border: none;
}

/* Body rows */
.compare tbody td, .compare tbody th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--slate-100);
    text-align: center;
    vertical-align: middle;
}
.row-label {
    text-align: left !important;
    font-weight: 500;
    color: var(--slate-700);
    background: #fff;
    width: 280px;
    min-width: 220px;
    position: sticky;
    left: 0;
    z-index: 1;
}
.compare tbody tr:hover td:not(.col-highlight) { background: var(--slate-50); }
.compare tbody tr:hover .row-label { background: var(--slate-50); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: none; }

/* Check / cross icons */
.check {
    display: inline-flex;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--rd-green);
    color: #fff;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.cross {
    color: var(--slate-300);
    font-weight: 700;
    font-size: 18px;
}
.obsolete {
    display: inline-block;
    background: var(--slate-100);
    color: var(--slate-500);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--slate-200);
}
.col-highlight .check { box-shadow: 0 2px 6px rgba(57,181,74,.4); }
.col-highlight .cross { color: var(--slate-400); }
.col-highlight strong { color: var(--rd-blue-dark); }
.ok-list { font-size: 13px; line-height: 1.6; }

.legend-note {
    text-align: center;
    color: var(--slate-500);
    font-size: 13px;
    padding: 16px 8px 10px;
}

/* ─── Why-buy cards ───────────────────────────────────────────────── */
.why-buy {
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 32px;
    margin-bottom: 30px;
}
.why-buy h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.02em;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .why-grid { grid-template-columns: 1fr; }
}
.why-card {
    background: var(--rd-blue-soft);
    border-radius: var(--r-md);
    padding: 24px 22px;
    border: 1.5px solid transparent;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
}
.why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--rd-blue);
}
.why-num {
    position: absolute;
    top: -12px; left: 18px;
    width: 32px; height: 32px;
    background: var(--rd-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4,107,210,.35);
}
.why-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 8px;
    margin-top: 4px;
}
.why-card p { font-size: 14px; color: var(--slate-700); line-height: 1.55; }

/* ─── CTA ──────────────────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #046bd2 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 50px 40px;
    text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.cta-section h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    line-height: 1.18;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-section p {
    color: rgba(255,255,255,.86);
    margin-bottom: 28px;
    font-size: 16px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform .15s, box-shadow .15s, background-color .15s;
}
.btn-primary { background: var(--rd-green); color: #fff !important; }
.btn-primary:hover { background: var(--rd-green-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff !important; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.10); }

/* ─── Footer ───────────────────────────────────────────────────────── */
.atlas-foot {
    text-align: center;
    color: var(--slate-500);
    font-size: 13px;
    padding: 22px;
    border-top: 1px solid var(--slate-200);
    background: #fff;
}

/* ─── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 50px 20px 70px; }
    .shell { padding: 0 12px 40px; }
    .why-buy, .cta-section { padding: 30px 20px; }
    .compare { font-size: 13px; }
    .row-label { width: 180px; min-width: 150px; }
    .compare tbody td, .compare tbody th { padding: 10px 8px; }
    .brand-name { font-size: 13px; }
    .compare thead th.col-highlight::after { font-size: 8px; padding: 1px 5px; }
}
