/* Setup Guide sub-page (setup.html). Loaded AFTER style.css so it can build on
   the variables defined there (--accent, --text-primary, --bg-secondary, etc.).
   Page-specific styles live here so the main stylesheet stays focused on the
   landing page. */

body {
    background: var(--bg-primary);
    /* setup page: no matrix background, calmer reading surface */
}

/* The .subpage-nav classes now live in style.css since they're shared
   between setup.html and privacy.html. */

/* Hero */
.setup-hero {
    padding: 3.5rem 2rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.setup-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, var(--accent), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.setup-hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Table of contents — three semantic rows.
   - Top row: Requirements (centered, content-width)
   - Middle row: 6 numbered steps in an auto-fit grid (1-6 columns by viewport)
   - Bottom row: supplementary sections (centered, content-width)
   The two centered rows match each other visually, so the numbered grid
   reads as the "main" navigation and the others as bookends. */
.setup-toc {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.85rem;
}

.setup-toc-row {
    display: flex;
    gap: 0.55rem;
}

.setup-toc-row-center {
    justify-content: center;
    flex-wrap: wrap;
}

.setup-toc-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.setup-toc a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 1.1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
    line-height: 1.3;
    min-height: 2.6rem;
}

.setup-toc a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(88, 166, 255, 0.08);
    transform: translateY(-1px);
}

/* Main content column */
.setup-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.setup-section {
    padding: 2.25rem 0 0.5rem;
    border-top: 1px solid var(--border);
}

.setup-section:first-child {
    border-top: none;
    padding-top: 1rem;
}

.setup-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    scroll-margin-top: 80px;  /* push past sticky nav when anchored */
}

.setup-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}

.setup-section p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.setup-section a {
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.setup-section a:hover {
    border-bottom-color: var(--accent);
}

.setup-section code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

.setup-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.setup-section em {
    color: var(--text-secondary);
    font-style: italic;
}

/* Code block */
.setup-code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    color: var(--text-primary);
    overflow-x: auto;
    line-height: 1.55;
    margin: 0.5rem 0 1rem;
    white-space: pre;
}

/* Note callout */
.setup-note {
    background: rgba(88, 166, 255, 0.08);
    border-left: 3px solid var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    color: var(--text-primary);
    font-size: 0.92rem;
    margin: 0.5rem 0 1rem;
}

/* Checklist (used for steps and bullet lists) */
.setup-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.setup-checklist li {
    color: var(--text-primary);
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.setup-checklist li::before {
    content: "›";
    position: absolute;
    left: 0.25rem;
    color: var(--accent);
    font-weight: 700;
}

/* Figures with screenshots */
.setup-figure {
    margin: 1rem 0 1.25rem;
    text-align: center;
}

.setup-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

.setup-figure figcaption {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    font-style: italic;
}

/* Placeholder for figures whose screenshot doesn't exist yet */
.setup-figure-placeholder .setup-figure-todo {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Inline HTML/CSS mockups — vector-crisp, no images. The relay-window and
   iphone-frame components are defined in style.css; here we just constrain
   width and center them as standalone illustrations on the setup page. */
.setup-mockup {
    margin: 1.25rem auto 1.5rem;
    text-align: center;
}

.setup-mockup-relay {
    max-width: 580px;
}

.setup-mockup-iphone {
    max-width: 320px;
}

.setup-mockup-caption {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    font-style: italic;
}

/* Inline link helper for prose */
.setup-inline-link {
    font-weight: 500;
}

/* Troubleshooting Q-style headings */
.setup-trouble-q {
    color: var(--accent);
}

/* Footer override on setup page */
.setup-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 2rem;
}

.setup-footer a {
    color: var(--text-secondary);
}

.setup-footer a:hover {
    color: var(--text-primary);
}
