/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-container);
    color: var(--accent-on-container);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--accent);
}

.btn-arrow {
    display: inline-block;
    margin-left: 2px;
    transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(2px);
}

/* Glass Cards */
.glass-card {
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.glass-card:hover {
    background: var(--card-bg);
    transform: translateY(-2px);
}

/* Social Links (Inline in Nav) */
.social-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--accent);
}

@media (max-width: 767px) {
    .social-links {
        display: none;
    }
}

/* Theme Toggle (Inline in Nav) */
.theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-surface-high);
    transform: scale(1.05);
}

.theme-icon {
    display: block;
    line-height: 1;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 24px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

details[open] {
    background: var(--card-bg);
}

summary {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    margin-top: 16px;
}

/* Comparison Table */
.comparison {
    display: none;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 32px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.comparison-table td {
    color: var(--text-body);
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:nth-child(2) {
    color: var(--accent);
    font-weight: 500;
}

@media (min-width: 1024px) {
    .comparison {
        display: block;
    }
}

/* =====================================================
   ATLAS DIRECTION — Eyebrow & Section Head Components
   ===================================================== */

/* Eyebrow (mono, accent dot) — replaces old .section-label in new sections */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Geist Mono', ui-monospace, 'JetBrains Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-body);
    margin-bottom: 16px;
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--accent);
    display: inline-block;
}

/* Section heading — tight variant (Atlas sans-display, -.025em) */
.section-heading.tight {
    font-family: 'Geist', 'Nunito Sans', sans-serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 0;
}

.section-head {
    margin-bottom: 40px;
}

.section-head-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .section-head-split {
        grid-template-columns: 1fr 1fr;
        align-items: flex-end;
        gap: 40px;
    }
    .section-head-align-end {
        align-items: flex-end;
    }
}

/* Section heading spacing consistency */
#faq .section-heading.tight {
    margin-bottom: 32px;
}

/* -------- App frame (browser chrome mock) -------- */
.app-frame {
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface-high);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px var(--border-subtle);
    display: flex;
    flex-direction: column;
}

[data-theme="light"] .app-frame {
    box-shadow:
        0 30px 80px rgba(20, 22, 32, 0.12),
        0 0 0 1px var(--border);
}

.app-frame-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-surface-high);
}

.app-frame-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.app-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    display: block;
}

.app-dot-r { background: #FF5F57; }
.app-dot-y { background: #FEBC2E; }
.app-dot-g { background: #28C840; }

.app-frame-urlbar {
    flex: 1;
    text-align: center;
    background: var(--bg);
    color: var(--text-muted);
    padding: 4px 14px;
    border-radius: 999px;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.625rem;
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 320px;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-frame-lock {
    opacity: 0.5;
    font-size: 0.5rem;
}

.app-frame-body {
    aspect-ratio: 16 / 10;
    background: var(--bg);
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

/* -------- Pipeline mock -------- */
.pipeline-mock {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 0.6875rem;
    color: var(--text-primary);
}

.pipeline-mock-head {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

.pipeline-mock-logo {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #E8B45C 0%, #B4612B 100%);
    color: #1a1108;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-family: 'Geist', system-ui, sans-serif;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.pipeline-mock-title {
    font-weight: 600;
}

.pipeline-mock-sub {
    color: var(--text-muted);
}

.pipeline-mock-actions {
    margin-left: auto;
    display: flex;
    gap: 6px;
    font-size: 0.625rem;
}

.pipeline-mock-actions span {
    padding: 3px 8px;
    background: var(--bg-surface-low);
    border-radius: 6px;
    color: var(--text-body);
}

.pipeline-mock-actions .pipeline-mock-cta {
    background: #B4612B;
    color: #fff;
    font-weight: 500;
}

.pipeline-mock-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.pipeline-mock-cols-three {
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 600px) {
    .pipeline-mock-cols {
        grid-template-columns: repeat(4, 1fr);
    }
    .pipeline-mock-cols-three {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pipeline-col {
    background: var(--bg-surface-low);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.pipeline-col-head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pipeline-col-head span {
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.pipeline-card {
    background: var(--bg);
    border-radius: 6px;
    padding: 7px 9px;
    border: 1px solid var(--border-subtle);
}

.pipeline-card-title {
    font-weight: 600;
    font-size: 0.6875rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.pipeline-card-meta {
    color: var(--text-muted);
    font-size: 0.5625rem;
    margin-bottom: 6px;
}

.pipeline-bar {
    height: 3px;
    background: var(--bg-surface-low);
    border-radius: 2px;
    overflow: hidden;
}

.pipeline-bar span {
    display: block;
    height: 100%;
    background: #B4612B;
}

/* -------- Budget mock -------- */
.budget-mock {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 0.6875rem;
    color: var(--text-primary);
}

.budget-mock-head {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

.budget-totals {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.625rem;
    flex-wrap: wrap;
}

.budget-totals em {
    color: var(--text-muted);
    font-style: normal;
    margin-right: 4px;
}

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

.budget-totals .budget-pos { color: #4A8A5E; }
.budget-totals .budget-net { color: #B4612B; font-weight: 700; }

.budget-table {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    font-size: 0.625rem;
}

.budget-row {
    display: grid;
    grid-template-columns: 48px 1fr 80px 80px 80px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
    gap: 8px;
}

.budget-row-head {
    color: var(--text-muted);
    font-size: 0.5625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.budget-row .ta-r { text-align: right; }
.budget-row .muted { color: var(--text-muted); }

.budget-acct {
    color: var(--text-muted);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.5625rem;
}

.status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.5rem;
    font-weight: 500;
    font-style: normal;
    background: var(--bg-surface-low);
    text-transform: capitalize;
    letter-spacing: 0.02em;
}

.status-pill.s-locked { color: #4A8A5E; }
.status-pill.s-pacing { color: #C28A2B; }
.status-pill.s-over { color: #B4612B; }
.status-pill.s-remaining { color: var(--text-muted); }

/* -------- Location panel mock -------- */
.location-panel-body {
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.location-map {
    position: relative;
    flex: 1;
    min-height: 0;
    background: var(--bg-surface);
    overflow: hidden;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 32px 32px;
}

.location-map svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loc-water {
    fill: color-mix(in oklab, var(--accent) 20%, var(--bg-surface));
    opacity: 0.55;
}

[data-theme="light"] .loc-water {
    fill: #C8DEEE;
    opacity: 0.6;
}

.loc-water-soft {
    opacity: 0.35;
}

.loc-road-bg {
    fill: none;
    stroke: var(--border-subtle);
    stroke-width: 10;
}

.loc-city {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    pointer-events: none;
    white-space: nowrap;
}

.loc-city::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--text-muted);
    opacity: 0.6;
    margin-right: 5px;
    vertical-align: middle;
}

.loc-pin {
    position: absolute;
    top: 44%;
    left: 48%;
    transform: translate(-50%, -100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.loc-pin-tag {
    background: #B4612B;
    color: #fff;
    padding: 4px 9px;
    border-radius: 6px;
    font-family: 'Geist', system-ui, sans-serif;
    font-size: 0.5625rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(180, 97, 43, 0.35);
}

.loc-pin-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: #B4612B;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 5px rgba(180, 97, 43, 0.18);
    display: block;
}

.location-strip {
    padding: 12px 14px;
    border-top: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--bg);
}

.location-strip .loc-label {
    display: block;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.location-strip .loc-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-primary);
}

.loc-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: #4A8A5E;
    display: inline-block;
}
