/* Content pages (about, how it works, resources, contact). Standalone: these
   do not load style.css, so nothing inherits from the terminal theme. The
   markup keeps its original .page-* class names, so only presentation moved. */

* { box-sizing: border-box; }

body {
    margin: 0; min-height: 100vh; background: #000; color: #cbd2dc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Brand header ───────────────────────────────────────────────────────── */
.pg-brand {
    display: inline-flex; align-items: center; gap: 13px;
    padding: 26px 0 0 30px; text-decoration: none;
}
.pg-brand svg { width: 26px; height: 26px; color: #3ee87b; flex-shrink: 0; }
.pg-brand span { color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

/* ── Page shell ─────────────────────────────────────────────────────────── */
.page-content {
    max-width: 820px; margin: 0 auto;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 32px) clamp(72px, 9vw, 120px);
}
.page-title {
    margin: 0 0 14px; color: #fff; letter-spacing: -0.03em; text-wrap: balance;
    font: 700 clamp(32px, 5vw, 50px)/1.1 'Space Grotesk', sans-serif;
}
.page-subtitle {
    margin: 0 0 8px; color: #98a2b3;
    font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6;
}

.page-section { margin-top: clamp(34px, 4vw, 52px); }
.page-section h2 {
    margin: 0 0 14px; color: #fff; letter-spacing: -0.01em;
    font: 700 clamp(19px, 2.1vw, 24px)/1.25 'Space Grotesk', sans-serif;
}
.page-section h3 {
    margin: 26px 0 10px; color: #fff;
    font: 700 17px/1.3 'Space Grotesk', sans-serif;
}
.page-section p { margin: 0 0 15px; font-size: 16px; line-height: 1.7; color: #98a2b3; }
.page-section p:last-child { margin-bottom: 0; }
.page-section strong { color: #e7ebf0; font-weight: 700; }

.page-section ul, .page-section ol { margin: 0 0 15px; padding-left: 22px; }
.page-section li { margin: 0 0 9px; font-size: 16px; line-height: 1.7; color: #98a2b3; }
.page-section li::marker { color: #3ee87b; }

a { color: #3ee87b; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid #3ee87b; outline-offset: 3px; border-radius: 3px; }

/* ── Callout box (how it works) ─────────────────────────────────────────── */
.terminal-box {
    margin: 18px 0; padding: 20px 22px;
    background: #0b0c0e; border: 1px solid rgba(62,232,123,0.35); border-radius: 14px;
}
.tb-label {
    margin-bottom: 12px; color: #3ee87b;
    font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase;
}
.terminal-box p:last-child, .terminal-box ul:last-child { margin-bottom: 0; }

/* ── Forms (contact) ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; margin-bottom: 9px; color: #98a2b3;
    font-size: 14.5px; font-weight: 600;
}
.form-group input, .form-group textarea, .contact-form input, .contact-form textarea {
    width: 100%; padding: 15px 16px;
    background: #0d0f11; color: #fff;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 11px;
    font-family: inherit; font-size: 16px;   /* 16px stops iOS zooming on focus */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #5b626d; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #3ee87b; box-shadow: 0 0 0 3px rgba(62,232,123,0.18);
}
/* Chrome repaints autofilled fields pale blue; only an inset shadow overrides it. */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0d0f11 inset;
            box-shadow: 0 0 0 1000px #0d0f11 inset;
    caret-color: #fff;
    transition: background-color 9999s ease-in-out 0s;
}

.btn-term, .btn-primary, button[type="submit"] {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 54px; padding: 0 30px; border: none; border-radius: 11px;
    background: #3ee87b; color: #04150a; cursor: pointer;
    font-family: inherit; font-size: 16px; font-weight: 700;
    transition: background 0.15s ease;
}
.btn-term:hover:not(:disabled), button[type="submit"]:hover:not(:disabled) { background: #5cf295; }
button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
button:focus-visible { outline: 3px solid #bbf7d0; outline-offset: 3px; }

.contact-form { margin-top: 26px; }

/* Notices such as the scan-limit prompt on contact. */
.auth-error, .contact-note {
    padding: 14px 16px; border-radius: 11px;
    background: rgba(62,232,123,0.08); border: 1px solid rgba(62,232,123,0.35);
    color: #cbd2dc; font-size: 15px; line-height: 1.6;
}

@media (max-width: 480px) {
    .pg-brand { padding: 20px 0 0 20px; }
}

/* ── Blog ───────────────────────────────────────────────────────────────── */
.blog-back {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
    color: #98a2b3; font-size: 14px; font-weight: 600;
}
.blog-back:hover { color: #3ee87b; }
.blog-meta {
    margin: 0 0 8px; color: #7c8798;
    font: 500 13px 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.blog-grid { margin-top: clamp(30px, 4vw, 46px); display: flex; flex-direction: column; gap: 18px; }
.blog-card {
    display: block; padding: 24px 26px; border-radius: 14px;
    background: #0b0c0e; border: 1px solid rgba(255,255,255,0.08);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.blog-card:hover { border-color: rgba(62,232,123,0.4); background: #0d0f11; text-decoration: none; }
.blog-card-date {
    margin: 0 0 10px; color: #4ade80;
    font: 500 12px 'JetBrains Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase;
}
.blog-card-title {
    margin: 0 0 8px; color: #fff; letter-spacing: -0.01em;
    font: 700 clamp(18px, 2vw, 21px)/1.3 'Space Grotesk', sans-serif;
}
.blog-card-excerpt { margin: 0; color: #98a2b3; font-size: 15px; line-height: 1.6; }
.blog-cta {
    margin-top: clamp(34px, 4vw, 52px); padding: 26px 28px; border-radius: 14px;
    background: rgba(62,232,123,0.06); border: 1px solid rgba(62,232,123,0.3);
    text-align: center;
}
.blog-cta p { margin: 0 0 16px; color: #cbd2dc; font-size: 16px; line-height: 1.6; }
.blog-cta a.btn-term { text-decoration: none; }
