/* Gardner Responder Technologies — shared site styles.
   Design tokens mirror the ChartAssist extension palette (src/options.html)
   so the marketing site matches the product UI. Light + dark via
   prefers-color-scheme. Linked by index.html and chartAssist.html. */

:root {
    --brand: #003f7f;
    --brand-2: #0a5aa8;
    --accent: #2191c0;
    --accent-600: #1b7aa3;
    --accent-700: #176d92;
    --amber: #facc15;
    --amber-ink: #7a5b00;

    --bg: #f5f8fb;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --text: #12232f;
    --text-2: #3a4658;
    --muted: #667085;
    --border: #e5e7eb;
    --border-strong: #d7dde5;

    --ok-bg: #e7f6ec;
    --ok-fg: #14622f;
    --ok-border: #bfe5cc;

    --radius: 10px;
    --radius-lg: 16px;
    --maxw: 1080px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08), 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-lg: 0 18px 48px rgba(16, 24, 40, 0.14);

    --font: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --hero-grad: linear-gradient(180deg, #f7fafc 0%, #eaf1f8 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --brand: #10294a;
        --brand-2: #1c3a5e;
        --accent: #38a7d4;
        --accent-600: #2b8bb3;
        --accent-700: #24779b;
        --amber: #f6c453;
        --amber-ink: #2a1f00;

        --bg: #0f141b;
        --surface: #1a212b;
        --surface-2: #131922;
        --text: #e6eaf0;
        --text-2: #c2ccd9;
        --muted: #93a1b5;
        --border: #2b3543;
        --border-strong: #3a4658;

        --ok-bg: #16241d;
        --ok-fg: #4ade80;
        --ok-border: #1f7a3f;

        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.5);
        --hero-grad: linear-gradient(180deg, #121a24 0%, #0d131b 100%);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

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

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    color: var(--text);
    line-height: 1.15;
    font-weight: 600;
    margin: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.1) blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 62px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
}

.brand-lockup:hover {
    text-decoration: none;
}

.brand-lockup img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.brand-lockup .brand-name {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-back {
    color: var(--muted);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.05s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

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

.btn-brand {
    background: var(--brand);
    color: #ffffff;
}

.btn-brand:hover {
    background: var(--brand-2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--surface-2);
}

.btn-lg {
    padding: 13px 22px;
    font-size: 15px;
}

/* Pills / badges */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    background: var(--surface);
}

.pill-ok {
    color: var(--ok-fg);
    background: var(--ok-bg);
    border-color: var(--ok-border);
}

.pill-accent {
    color: var(--accent-700);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    border-color: color-mix(in srgb, var(--accent) 28%, var(--surface));
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-tight {
    padding: 44px 0;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: 24px;
}

.section-note {
    color: var(--muted);
    font-size: 13.5px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
}

.lead {
    color: var(--muted);
    font-size: 16px;
    max-width: 52ch;
}

/* Hero */
.hero {
    background: var(--hero-grad);
    border-bottom: 1px solid var(--border);
}

.hero-center {
    text-align: center;
    padding: 84px 0 68px;
}

.hero-center h1 {
    font-size: clamp(30px, 5vw, 44px);
    max-width: 16ch;
    margin: 0 auto 16px;
}

.hero-center .lead {
    margin: 0 auto 26px;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 72px 0;
}

.hero-split h1 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 16px;
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.cta-note {
    font-size: 13px;
    color: var(--muted);
}

/* Browser-frame screenshot */
.shot {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.shot-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.shot-url {
    margin-left: 10px;
    font-size: 12px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

/* Tools grid (home) */
.tools-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 18px;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.tool-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.tool-head img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
}

.tool-title {
    font-size: 19px;
    font-weight: 600;
}

.tool-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.tool-card p {
    color: var(--text-2);
    font-size: 14.5px;
    margin: 0 0 20px;
}

.tool-card .cta-row {
    margin-top: 0;
}

.tool-soon {
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: transparent;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    min-height: 210px;
}

.tool-soon .soon-icon {
    color: var(--border-strong);
    margin-bottom: 12px;
}

.tool-soon strong {
    color: var(--text-2);
    font-weight: 600;
    font-size: 15px;
}

.tool-soon span {
    font-size: 13px;
    margin-top: 4px;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    margin-bottom: 14px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step h3 {
    font-size: 15.5px;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery figure {
    margin: 0;
}

.gallery figcaption {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* Security / callout band */
.band {
    background: var(--brand);
    color: #eaf1f8;
}

.band .container {
    padding-top: 58px;
    padding-bottom: 58px;
}

.band h2 {
    color: #fff;
    font-size: 26px;
    margin-bottom: 12px;
}

.band .lead {
    color: #c6d6e6;
    max-width: 60ch;
}

.trust-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.trust-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 14.5px;
    color: #dbe6f1;
}

.trust-list svg {
    width: 20px;
    height: 20px;
    color: #7fc9ea;
    flex: none;
    margin-top: 1px;
}

.trust-list strong {
    color: #fff;
    font-weight: 600;
}

/* Access callout (chartAssist page) */
.access {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.access h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.access .lead {
    margin: 0 auto 22px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 22px 0;
}

.footer-inner .foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
}

.footer-inner .foot-brand img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.footer-meta {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    padding: 0 0 26px;
}

/* Responsive */
@media (max-width: 860px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 48px 0;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 48px 0;
    }
    .nav-links {
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .nav-links .nav-hide {
        display: none;
    }
    .hero-center {
        padding: 60px 0 48px;
    }
    .cta-row {
        gap: 10px;
    }
    .btn {
        padding: 11px 15px;
    }
}
