/* ═══════════════════════════════════════════════════════════════════════════
   Guide Pages — Standalone Stylesheet
   Matches the homepage aesthetic (Inter, blue accent, charcoal base)
   but is completely independent from main.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────────────────── */
:root {
    --g-primary:       #1a1a1a;
    --g-secondary:     #2c2c2c;
    --g-accent:        #0066cc;
    --g-accent-dark:   #0052a3;
    --g-accent-light:  #e8f4fd;
    --g-text:          #1a1a1a;
    --g-text-mid:      #444444;
    --g-text-muted:    #666666;
    --g-text-light:    #999999;
    --g-bg:            #ffffff;
    --g-bg-light:      #f8f9fa;
    --g-bg-alt:        #f0f4f8;
    --g-border:        #e1e5e9;
    --g-border-light:  #eef1f4;
    --g-shadow:        rgba(0,0,0,0.06);
    --g-shadow-hover:  rgba(0,0,0,0.12);
    --g-success:       #28a745;
    --g-warning:       #e67e22;
    --g-danger:        #dc3545;
    --g-radius:        8px;
    --g-radius-lg:     12px;
    --g-radius-xl:     16px;
    --g-transition:    0.25s ease;
    --g-max-width:     1140px;
}

/* ── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--g-text);
    background: var(--g-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--g-accent); text-decoration: none; transition: color var(--g-transition); }
a:hover { color: var(--g-accent-dark); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.guide-container {
    max-width: var(--g-max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.guide-page { min-height: 100vh; display: flex; flex-direction: column; }
.guide-main { flex: 1; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.guide-header {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--g-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.875rem 0;
}

.guide-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guide-header__logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--g-text);
    font-weight: 700;
    font-size: 1.05rem;
}

.guide-header__logo-main { letter-spacing: -0.01em; }
.guide-header__logo-sub  { color: var(--g-text-muted); font-weight: 500; font-size: 0.9rem; }

.guide-header__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--g-text-muted);
    transition: color var(--g-transition);
}
.guide-header__back:hover { color: var(--g-accent); }

/* ── Hero / Page Top ────────────────────────────────────────────────────── */
.guide-hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, var(--g-bg) 0%, var(--g-bg-alt) 100%);
    border-bottom: 1px solid var(--g-border-light);
}

.guide-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--g-text-light);
    margin-bottom: 1.25rem;
}
.guide-hero__breadcrumb a { color: var(--g-text-muted); }
.guide-hero__breadcrumb span { color: var(--g-text-light); }

.guide-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--g-text);
    margin-bottom: 1rem;
}

.guide-hero__intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--g-text-muted);
    max-width: 760px;
}

.guide-hero__intro p { margin-bottom: 0.75rem; }

/* ── Disclosure Banner ──────────────────────────────────────────────────── */
.guide-disclosure {
    background: var(--g-accent-light);
    border: 1px solid #c8e0f4;
    border-radius: var(--g-radius);
    padding: 0.875rem 1.125rem;
    font-size: 0.85rem;
    color: var(--g-text-mid);
    line-height: 1.55;
    margin: 1.5rem 0;
}

.guide-disclosure strong { color: var(--g-accent); }

/* ── Section Blocks ─────────────────────────────────────────────────────── */
.guide-section {
    padding: 3rem 0;
}

.guide-section--alt { background: var(--g-bg-light); }

.guide-section__title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    color: var(--g-text);
}

.guide-section__subtitle {
    font-size: 1rem;
    color: var(--g-text-muted);
    margin-bottom: 2rem;
    max-width: 680px;
}

/* ── Comparison Table ───────────────────────────────────────────────────── */
.guide-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--g-radius-lg);
    border: 1px solid var(--g-border);
    box-shadow: 0 2px 8px var(--g-shadow);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 640px;
}

.guide-table thead {
    background: var(--g-primary);
    color: #fff;
}

.guide-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.guide-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--g-border-light);
    color: var(--g-text-mid);
    vertical-align: top;
}

.guide-table tbody tr:last-child td { border-bottom: none; }

.guide-table tbody tr { transition: background var(--g-transition); }
.guide-table tbody tr:hover { background: var(--g-accent-light); }

.guide-table .provider-name {
    font-weight: 600;
    color: var(--g-text);
    white-space: nowrap;
    vertical-align: middle;
}

/* Match homepage: logo 120px wide, column layout with name below */
.provider-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.provider-logo {
    width: 120px;
    height: auto !important;
    max-width: 120px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
}

.guide-table .table-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--g-accent);
    transition: color var(--g-transition);
}
.guide-table .table-cta:hover { color: var(--g-accent-dark); }

/* ── Features Grid ──────────────────────────────────────────────────────── */
.guide-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.guide-feature-card {
    background: var(--g-bg);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius-lg);
    padding: 1.75rem 1.5rem;
    transition: transform var(--g-transition), box-shadow var(--g-transition);
}

.guide-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--g-shadow-hover);
}

.guide-feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--g-accent-light);
    border-radius: var(--g-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.guide-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--g-text);
}

.guide-feature-card p {
    font-size: 0.9rem;
    color: var(--g-text-muted);
    line-height: 1.6;
}

/* ── Pros & Cons ────────────────────────────────────────────────────────── */
.guide-proscons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-proscons-card {
    background: var(--g-bg);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius-lg);
    overflow: hidden;
}

.guide-proscons-card__header {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--g-text);
    background: var(--g-bg-light);
    border-bottom: 1px solid var(--g-border-light);
}

.guide-proscons-card__body { padding: 1.25rem; }

.guide-proscons-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.guide-proscons-card h4.pros-heading { color: var(--g-success); }
.guide-proscons-card h4.cons-heading { color: var(--g-danger); }

.guide-proscons-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.guide-proscons-card li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.9rem;
    color: var(--g-text-mid);
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.guide-proscons-card li::before {
    position: absolute;
    left: 0;
    font-weight: 700;
}

.guide-proscons-card .pros-list li::before { content: '✓'; color: var(--g-success); }
.guide-proscons-card .cons-list li::before { content: '✗'; color: var(--g-danger); }

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.guide-faq-list { max-width: 800px; }

.guide-faq-item {
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow var(--g-transition);
}

.guide-faq-item:hover { box-shadow: 0 2px 8px var(--g-shadow); }

.guide-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--g-bg);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--g-text);
    text-align: left;
    transition: background var(--g-transition);
}

.guide-faq-question:hover { background: var(--g-bg-light); }

.guide-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    position: relative;
    margin-left: 1rem;
}

.guide-faq-icon::before,
.guide-faq-icon::after {
    content: '';
    position: absolute;
    background: var(--g-text-muted);
    border-radius: 1px;
    transition: transform var(--g-transition);
}

.guide-faq-icon::before {
    top: 50%;
    left: 2px;
    width: 16px;
    height: 2px;
    transform: translateY(-50%);
}

.guide-faq-icon::after {
    top: 2px;
    left: 50%;
    width: 2px;
    height: 16px;
    transform: translateX(-50%);
}

.guide-faq-item.is-open .guide-faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.guide-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.guide-faq-item.is-open .guide-faq-answer {
    max-height: 600px;
}

.guide-faq-answer__inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9rem;
    color: var(--g-text-muted);
    line-height: 1.65;
}

.guide-faq-answer__inner p { margin-bottom: 0.5rem; }

/* ── CTA Section ────────────────────────────────────────────────────────── */
.guide-cta-section {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, var(--g-primary) 0%, #0d2137 100%);
    color: #fff;
    text-align: center;
}

.guide-cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.guide-cta-section p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.guide-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--g-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--g-transition);
}

.guide-btn--primary {
    background: var(--g-accent);
    color: #fff;
    border: 1px solid var(--g-accent);
}

.guide-btn--primary:hover {
    background: var(--g-accent-dark);
    border-color: var(--g-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,102,204,0.35);
}

.guide-btn--outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

.guide-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    transform: translateY(-2px);
}

.guide-btn--sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

/* ── Disclaimer / Independence Boxes ────────────────────────────────────── */
.guide-disclaimer-box {
    background: #fef9f0;
    border: 1px solid #f0dfc0;
    border-radius: var(--g-radius);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--g-text-mid);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.guide-independence-box {
    background: var(--g-bg-light);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius);
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: var(--g-text-muted);
    line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.guide-footer {
    background: var(--g-primary);
    color: rgba(255,255,255,0.65);
    padding: 2.5rem 0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.guide-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.guide-footer a {
    color: rgba(255,255,255,0.8);
    transition: color var(--g-transition);
}

.guide-footer a:hover { color: #fff; }

.guide-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    list-style: none;
}

.guide-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    grid-column: 1 / -1;
}

/* ── Fee Info Section ───────────────────────────────────────────────────── */
.guide-fee-info {
    background: var(--g-bg);
    border: 1px solid var(--g-border);
    border-radius: var(--g-radius-lg);
    padding: 2rem;
}

.guide-fee-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--g-text);
}

.guide-fee-info p,
.guide-fee-info li {
    font-size: 0.9rem;
    color: var(--g-text-muted);
    line-height: 1.65;
}

.guide-fee-info ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-fee-info li { margin-bottom: 0.35rem; }

/* ── Policy Page Styles ─────────────────────────────────────────────────── */
.guide-policy-content {
    max-width: 780px;
}

.guide-policy-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--g-text);
}

.guide-policy-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.6rem;
    color: var(--g-text);
}

.guide-policy-content p {
    font-size: 0.92rem;
    color: var(--g-text-muted);
    margin-bottom: 0.8rem;
}

.guide-policy-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-policy-content li {
    font-size: 0.92rem;
    color: var(--g-text-muted);
    margin-bottom: 0.3rem;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes guideFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.guide-animate {
    opacity: 0;
    animation: guideFadeUp 0.6s ease-out forwards;
}

.guide-animate--d1 { animation-delay: 0.1s; }
.guide-animate--d2 { animation-delay: 0.2s; }
.guide-animate--d3 { animation-delay: 0.3s; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .guide-hero h1 { font-size: 1.85rem; }
    .guide-hero__intro { font-size: 1rem; }
    .guide-hero { padding: 2.5rem 0 2rem; }

    .guide-section { padding: 2rem 0; }
    .guide-section__title { font-size: 1.35rem; }

    .guide-features-grid { grid-template-columns: 1fr; }
    .guide-proscons-grid { grid-template-columns: 1fr; }

    .guide-cta-section h2 { font-size: 1.35rem; }
    .guide-cta-buttons { flex-direction: column; align-items: center; }

    .guide-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .guide-hero h1 { font-size: 1.55rem; }
    .guide-container { padding: 0 1rem; }
    .guide-header__logo-sub { display: none; }
}

/* ── Head-to-head comparison pages (/a-vs-b/, /uk/a-vs-b/) ─────────────── */
.vs-hero { padding-top: 2rem; }
.vs-hero .guide-hero__breadcrumb { flex-wrap: wrap; }
.vs-lang-switch {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--g-accent) !important;
}
.vs-checked {
    font-size: 0.85rem;
    color: var(--g-text-muted);
    margin-bottom: 1.25rem;
}
.vs-verdict {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 960px;
}
.vs-verdict__card {
    background: var(--g-bg);
    border: 1px solid var(--g-border);
    border-top: 3px solid var(--g-accent);
    border-radius: var(--g-radius-lg);
    padding: 1rem 1.25rem;
}
.vs-verdict__card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--g-text);
}
.vs-verdict__card ul { padding-left: 1.1rem; }
.vs-verdict__card li {
    font-size: 0.92rem;
    color: var(--g-text-mid);
    margin-bottom: 0.35rem;
    line-height: 1.5;
}
.vs-verdict__note {
    max-width: 960px;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--g-text-mid);
}
.vs-intro { margin-top: 1.25rem; }

/* Table: three readable columns on desktop, stacked cards on phones */
.guide-table.vs-table { min-width: 0; table-layout: fixed; }
.vs-table thead th:first-child { width: 22%; }
.vs-table th, .vs-table td { overflow-wrap: anywhere; }
.vs-table thead th { white-space: normal; }
.vs-table tbody th {
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--g-text);
    vertical-align: top;
    border-bottom: 1px solid var(--g-border-light);
    background: var(--g-bg-light);
}
.vs-table td { font-size: 0.9rem; }

.vs-prose { max-width: 860px; }
.vs-prose p, .vs-prose li {
    font-size: 0.98rem;
    color: var(--g-text-mid);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.vs-prose ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.vs-prose h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--g-text);
}
.vs-links {
    list-style: none;
    padding-left: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.vs-links li { margin: 0 !important; }
.vs-links a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--g-border);
    border-radius: 999px;
    background: var(--g-bg);
    font-size: 0.9rem;
    font-weight: 500;
}
.vs-links a:hover { border-color: var(--g-accent); }
.vs-sources li { font-size: 0.9rem; overflow-wrap: anywhere; }
.guide-footer__compare { margin-top: -0.25rem; }

@media (max-width: 768px) {
    .vs-verdict { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .vs-table-wrap { overflow-x: visible; }
    .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td {
        display: block;
        width: 100% !important;
    }
    .vs-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .vs-table tbody tr { border-bottom: 1px solid var(--g-border); }
    .vs-table tbody tr:last-child { border-bottom: none; }
    .vs-table tbody th { padding: 0.7rem 1rem 0.5rem; border-bottom: none; }
    .vs-table td { padding: 0.4rem 1rem; border-bottom: none; }
    .vs-table td:last-child { padding-bottom: 0.8rem; }
    .vs-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--g-accent);
        margin-bottom: 0.1rem;
    }
    .vs-lang-switch { margin-left: 0; width: 100%; }
}
