/* 7zen — shared stylesheet for guide / content cluster pages.
   Brand tokens mirror the homepage; layout is lightweight and fast
   (no blocking webfonts, no animation) to keep Core Web Vitals strong. */

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

:root {
    --green: #77C958;
    --green-dark: #5ea842;
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-tertiary: #999;
    --border: #e5e5e5;
    --card-bg: #fff;
    --link-color: #5ea842;
}

/* Manual override: user explicitly chose dark */
:root[data-theme="dark"] {
    --bg: #0a0a0a;
    --text: #f0f0f0;
    --text-secondary: #999;
    --text-tertiary: #666;
    --border: #222;
    --card-bg: #141414;
    --link-color: #77C958;
}

/* System dark — applies unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0a0a0a;
        --text: #f0f0f0;
        --text-secondary: #999;
        --text-tertiary: #666;
        --border: #222;
        --card-bg: #141414;
        --link-color: #77C958;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

a { color: var(--link-color); }

/* Nav */
nav { padding: 20px 0; border-bottom: 1px solid var(--border); }
nav .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
nav .logo img { width: 36px; height: 36px; border-radius: 8px; }
nav .logo span { font-weight: 700; font-size: 18px; }
nav .nav-cta {
    background: var(--text); color: var(--bg); text-decoration: none;
    font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 10px;
    white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Light / dark toggle */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-secondary); cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-tertiary); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle.is-dark .icon-sun { display: block; }
.theme-toggle.is-dark .icon-moon { display: none; }

/* Breadcrumb */
.breadcrumb { padding: 20px 0 0; font-size: 13px; color: var(--text-tertiary); }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; }

/* Article */
article { padding: 28px 0 16px; }
article .eyebrow {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--green); margin-bottom: 12px;
}
article h1 {
    font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.12;
    letter-spacing: -1px; margin-bottom: 18px;
}
article h1 .highlight { color: var(--green); }
article .lede { font-size: 19px; color: var(--text-secondary); margin-bottom: 28px; }
article h2 {
    font-size: 24px; font-weight: 700; letter-spacing: -0.4px;
    margin: 44px 0 14px; scroll-margin-top: 80px;
}
article h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
article p { margin-bottom: 16px; color: var(--text); }
article p.muted { color: var(--text-secondary); }

/* Primary CTA */
.cta-row { margin: 28px 0; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--text); color: var(--bg);
    padding: 14px 26px; border-radius: 12px; text-decoration: none;
    font-weight: 600; font-size: 16px;
}
.btn-primary svg { width: 20px; height: 20px; }
.btn-note { font-size: 13px; color: var(--text-tertiary); margin-top: 10px; }

/* Numbered steps */
.steps { display: flex; flex-direction: column; gap: 22px; margin: 24px 0; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-num {
    flex-shrink: 0; width: 34px; height: 34px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
    font-size: 14px; color: var(--green);
}
.step-body h3 { margin: 2px 0 4px; font-size: 16px; }
.step-body p { font-size: 15px; color: var(--text-secondary); margin: 0; }

/* Callout */
.callout {
    background: var(--card-bg); border: 1px solid var(--border);
    border-left: 3px solid var(--green); border-radius: 12px;
    padding: 18px 20px; margin: 24px 0; font-size: 15px;
}
.callout strong { font-weight: 700; }

/* Screenshots */
.shots {
    display: flex; flex-wrap: wrap; gap: 18px;
    justify-content: center; align-items: flex-start; margin: 28px 0;
}
.shot {
    margin: 0; flex: 0 1 auto; max-width: 300px;
    background: linear-gradient(160deg, rgba(119, 201, 88, 0.12), rgba(119, 201, 88, 0.03));
    border: 1px solid var(--border); border-radius: 20px; padding: 12px;
}
.shot.phone { max-width: 188px; }
.shot img {
    display: block; width: 100%; height: auto;
    border-radius: 11px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    cursor: zoom-in;
}
.shot figcaption {
    margin-top: 12px; font-size: 13px; color: var(--text-tertiary); text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 10000; display: none;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: min(94vw, 760px); max-height: 92vh; width: auto; height: auto;
    border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
    border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
    color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }

/* Format pill list */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pill {
    font-family: 'SF Mono', ui-monospace, Menlo, monospace; font-size: 13px;
    color: var(--link-color); background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.faq-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-item summary {
    padding: 16px 18px; font-weight: 600; font-size: 15px; cursor: pointer;
    list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--text-tertiary); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 18px 16px; font-size: 14px; color: var(--text-secondary); margin: 0; }

/* Related guides */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.related a {
    display: block; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--text);
}
.related a:hover { border-color: var(--green); }
.related a .r-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.related a .r-sub { font-size: 13px; color: var(--text-tertiary); }

/* Footer */
footer { padding: 40px 0; border-top: 1px solid var(--border); text-align: center; margin-top: 48px; }
footer .footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
footer a { color: var(--text-secondary); text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--text); }
footer p { font-size: 13px; color: var(--text-tertiary); }
