/* FalconTrace website. No external fonts, no trackers. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #16202c;
  --muted: #4a5868;
  --border: #d9e0e8;
  --accent: #2f6fb3;
  --accent-strong: #245a93;
  --accent-soft: #e3edf8;
  --on-accent: #ffffff;
  --focus: #1b5fd1;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e141b;
    --surface: #151d27;
    --surface-2: #1b2532;
    --text: #e8edf3;
    --muted: #a6b3c2;
    --border: #2a3646;
    --accent: #6aa5e6;
    --accent-strong: #8bbbef;
    --accent-soft: #1a2a3d;
    --on-accent: #0b1520;
    --focus: #8bbbef;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e141b;
  --surface: #151d27;
  --surface-2: #1b2532;
  --text: #e8edf3;
  --muted: #a6b3c2;
  --border: #2a3646;
  --accent: #6aa5e6;
  --accent-strong: #8bbbef;
  --accent-soft: #1a2a3d;
  --on-accent: #0b1520;
  --focus: #8bbbef;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; font-size: .95rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 719px) { .nav .hide-sm { display: none; } }
.theme-toggle {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 6px; width: 38px; height: 38px; cursor: pointer; display: inline-grid; place-items: center;
}
.theme-toggle svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 80px 0; } }
.eyebrow { color: var(--accent-strong); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.hero { padding-top: 56px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge { display: inline-block; font-size: .85rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; margin-bottom: 18px; background: var(--surface); }

/* Hero figure: plan to zones to model */
.flow { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.flow svg { display: block; width: 100%; height: auto; }
.flow figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; text-align: center; }
.f-line { stroke: var(--text); }
.f-thin { stroke: var(--muted); }
.f-zone-a { fill: var(--accent); opacity: .28; }
.f-zone-b { fill: var(--accent); opacity: .5; }
.f-zone-c { fill: var(--accent); opacity: .75; }
.f-arrow { stroke: var(--accent); fill: none; }
.f-label { fill: var(--muted); font: 600 11px system-ui, sans-serif; }

/* Cards */
.grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.alt .steps li { background: var(--bg); }
.steps li::before {
  content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 700; margin-bottom: 10px;
}
.steps p { color: var(--muted); margin: 0; }

/* Table of exports */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 639px) {
  table { min-width: 0; }
  thead { position: absolute; left: -9999px; }
  tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  tr:last-child { border-bottom: 0; }
  td { display: block; padding: 2px 0; border: 0; }
  td:first-child { font-size: 1.05rem; }
  td:nth-child(2) { font-weight: 600; }
  td:nth-child(3) { color: var(--muted); }
}
.note { color: var(--muted); font-size: .92rem; margin-top: 14px; }

.next { border-left: 4px solid var(--accent); padding: 4px 0 4px 16px; margin-top: 28px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-strong); background: var(--accent-soft); padding: 2px 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }

.cta { text-align: center; }
.cta .lead { margin: 0 auto 24px; }

ul.ticks { padding-left: 1.2em; margin: 0; }
ul.ticks li { margin-bottom: .4em; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 32px 0; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 10px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

/* Prose (privacy page) */
.prose { max-width: 46em; padding: 48px 0 64px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .meta { color: var(--muted); }
