/* Shared styles for guide and comparison pages. Mirrors the home page tokens. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #faf2e4;
    --surface:      #f2e8d2;
    --surface-2:    #ebe0c7;
    --border:       #ddd0b8;
    --text:         #130838;
    --text-muted:   #4a3866;
    --text-subtle:  #8a7aaa;
    --accent:       #7c3aed;
    --grad-op:      linear-gradient(135deg, #f97316, #7c3aed);
    --radius:       12px;
    --radius-sm:    8px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ─────────────────────────────────────────── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 60px;
    background: rgba(250, 242, 228, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    white-space: nowrap;
}

.nav-logo:hover { text-decoration: none; }
.nav-logo img { width: 26px; height: 26px; }

.nav-actions { display: flex; gap: 10px; align-items: center; }

/* ── BUTTONS ─────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--grad-op); color: #fff; font-weight: 600; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: var(--radius); }

/* ── ARTICLE ─────────────────────────────────────── */

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 40px 72px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-subtle);
    margin-bottom: 20px;
}

.breadcrumbs a { color: var(--text-muted); }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--grad-op);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 20px;
}

.lede {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

main h2 {
    font-size: clamp(22px, 3.2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 48px 0 14px;
}

main h3 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 28px 0 8px;
}

main p { margin-bottom: 16px; }
main p, main li { color: var(--text-muted); }
main strong { color: var(--text); font-weight: 600; }

main ul, main ol { margin: 0 0 20px 22px; }
main li { margin-bottom: 8px; padding-left: 4px; }

.steps { list-style: none; margin-left: 0; counter-reset: step; }

.steps li {
    counter-increment: step;
    position: relative;
    padding: 18px 20px 18px 64px;
    margin-bottom: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad-op);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps strong { display: block; margin-bottom: 2px; }

.callout {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
}

.callout p:last-child { margin-bottom: 0; }

.shot {
    margin: 32px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(19, 8, 56, 0.12);
}

.shot img { display: block; width: 100%; height: auto; }

/* ── COMPARISON TABLE ────────────────────────────── */

.table-wrap {
    overflow-x: auto;
    margin: 20px 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: var(--surface);
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { background: var(--surface-2); font-size: 14px; color: var(--text); }
tbody th { font-weight: 600; color: var(--text); width: 34%; }
td { color: var(--text-muted); }

.table-note { font-size: 13px; color: var(--text-subtle); margin-bottom: 24px; }

/* ── CTA ─────────────────────────────────────────── */

.cta {
    margin: 56px 0 8px;
    padding: 32px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cta h2 { margin-top: 0; }
.cta p { margin-bottom: 20px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ─────────────────────────────────────────── */

.faq-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-item h3 { margin: 0 0 8px; font-size: 16px; }
.faq-item p { margin: 0; font-size: 15px; }

/* ── RELATED ─────────────────────────────────────── */

.related {
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px 40px;
    border-top: 1px solid var(--border);
}

.related h2 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 24px;
    list-style: none;
}

.related-grid a { font-size: 14px; color: var(--text-muted); }
.related-grid a:hover { color: var(--text); }
.related-grid a[aria-current="page"] { color: var(--text-subtle); pointer-events: none; }

/* ── FOOTER ──────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-left { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ── MOBILE ──────────────────────────────────────── */

.desktop-only { }

@media (max-width: 640px) {
    .desktop-only { display: none !important; }
    .site-nav { padding: 0 16px; }
    main { padding: 40px 16px 56px; }
    .lede { font-size: 17px; }
    .steps li { padding: 16px 16px 16px 56px; }
    .steps li::before { left: 16px; top: 16px; }
    .cta { padding: 24px 16px; }
    .related { padding: 40px 16px; }
    footer { padding: 24px 16px; flex-direction: column; align-items: flex-start; }
}
