/* ===== 1. Theme variables ===== */
:root {
    /* Light mode (default) */
    --bg: #f7f9fc;
    --card: #ffffff;
    --text: #162033;
    --muted: #5e6b80;
    --line: #e2e8f0;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --soft: #eff6ff;
    --max: 1120px;
    --radius: 16px;
    --sub-bg: #f8fafc;
    --pill-bg: #eef2ff;
    --footer-bg: #111827;
    --footer-text: #dbe3ee;
}

[data-theme="dark"] {
    /* Dark mode */
    --bg: #0b0f19;
    --card: #111827;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --line: #1f2937;
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --soft: #1e293b;
    --sub-bg: #1f2937;
    --pill-bg: #1e293b;
    --footer-bg: #030712;
    --footer-text: #9ca3af;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    transition: background 0.25s ease, color 0.25s ease;
}

/* Let main (the page body) take up all the remaining space */
main {
  flex: 1;
}

a {
    color: var(--primary);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px
}

.site-header {
    background: var(--card); /* Was #fff, now var(--card) */
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    transition: background 0.25s ease;
}

.nav {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text)
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap
}

.menu a {
    color: var(--text); /* Was #334155, now var(--text) */
    font-size: .95rem
}

.hero {
    padding: 72px 0 40px
}

.eyebrow {
    display: inline-block;
    padding: 6px 10px;
    background: var(--soft);
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary)
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.15;
    margin: 16px 0
}

h2 {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-top: 42px
}

h3 {
    font-size: 1.15rem;
    margin-top: 28px
}

.lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 820px
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.grid.two {
    grid-template-columns: repeat(2, 1fr)
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .04);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.card h3 {
    margin-top: 0
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0
}

.btn {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700
}

.btn:hover {
    text-decoration: none;
    background: var(--primary-dark)
}

.btn.secondary {
    background: var(--card); /* Was #fff, now var(--card) */
    color: var(--primary);
    border: 1px solid var(--line); /* Was #bfdbfe, now var(--line) */
}

.section {
    padding: 20px 0
}

.table-wrap {
    overflow: auto
}

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--card); /* Was #fff, now var(--card) */
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden
}

.compare th,
.compare td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

.compare th {
    background: var(--sub-bg) /* Was #f8fafc, now var(--sub-bg) */
}

.callout {
    padding: 18px 20px;
    background: var(--card); /* Was #fff, now var(--card) */
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.breadcrumb {
    font-size: .9rem;
    color: var(--muted);
    padding-top: 22px
}

.faq {
    margin-top: 16px
}

.faq details {
    background: var(--card); /* Was #fff, now var(--card) */
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    margin: 10px 0
}

.faq summary {
    cursor: pointer;
    font-weight: 700
}

.article {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 60px
}

.article ul {
    padding-left: 22px
}

.article li {
    margin: 7px 0
}

.site-footer {
    margin-top: 60px;
    background: var(--footer-bg); /* Was a fixed value, now var(--footer-bg) */
    color: var(--footer-text);
    padding: 42px 0
}

.site-footer a {
    color: var(--footer-text)
}

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

.small {
    font-size: .9rem;
    color: var(--muted)
}

.pill-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.pill {
    padding: 5px 10px;
    background: var(--pill-bg); /* Was #eef2ff, now var(--pill-bg) */
    color: var(--text);
    border-radius: 999px;
    font-size: .82rem
}

/* ===== Toggle button in the header ===== */
.theme-toggle-btn {
    background: var(--soft);
    color: var(--text);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    opacity: 0.85;
}

@media(max-width:860px) {

    .grid,
    .grid.two,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .menu {
        gap: 12px
    }

    .nav {
        align-items: flex-start;
        padding: 14px 0;
        flex-direction: column
    }

    .hero {
        padding-top: 48px
    }
}

/* Alignment of the shared menu and buttons */
.menu-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media(max-width:860px) {
    .menu-container {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
}

/* ===== Brand logo button ===== */
.brand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--soft);
    color: var(--text) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.brand-btn:hover {
    background: var(--card);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.brand-icon {
    font-size: 0.95rem;
}

/* ===== Header menu layout ===== */
.menu-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== Simplified footer ===== */
.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--footer-text);
    font-size: 0.95rem;
}

.copyright {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ===== Cookie policy consent banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 16px 0;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    flex: 1;
    min-width: 280px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

/* Reset and restyle the buttons */
.cookie-btn {
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    border: none; /* Remove the browser's default 3D border */
    outline: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accept button (Accept All) */
#btn-cookie-accept {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

#btn-cookie-accept:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Decline button (Decline) */
#btn-cookie-decline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--line);
}

#btn-cookie-decline:hover {
    background-color: var(--soft);
}

/* Lists in the privacy policy and terms */
.policy-list {
  padding-left: 20px;
  margin-bottom: 24px;
}

.policy-list li {
  margin-bottom: 10px; /* Tighter spacing between items for readability */
  color: var(--muted);
  line-height: 1.6;
}

/* Right next to the heading, aligned on the text baseline */
.section-header {
  display: flex;
  align-items: baseline; /* Changed from center to baseline (the bottom line of the text) */
  gap: 12px;             /* Gap between the heading and Read guide */
  margin-top: 40px;
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;     /* Lines up the text baselines more neatly */
}

.section-header .section-link {
  color: var(--accent-blue, #3b82f6);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.section-header .section-link:hover {
  text-decoration: underline;
}
/* Code blocks in guides */
.article pre {
    overflow-x: auto;
    padding: 14px 16px;
    background: var(--sub-bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: .88rem;
    line-height: 1.55;
}
