/* FlexHQ marketing site - shared styles
   Brand tokens live in :root. Swap values here and every page follows. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --fx-ink: #0B1F2A;        /* primary text, wordmark */
  --fx-teal: #0E7C74;       /* primary action, links */
  --fx-teal-deep: #0A5D57;  /* hover */
  --fx-teal-soft: #E3F4F1;  /* tinted panels */
  --fx-amber: #E0921C;      /* points accent, highlights */
  --fx-amber-soft: #FFF3DF;
  --fx-slate: #5B6B76;      /* secondary text */
  --fx-line: #DDE4E8;
  --fx-paper: #FFFFFF;
  --fx-canvas: #F5F8F9;     /* page background */
  --fx-danger: #C0392B;
  --fx-ok: #1E8E5A;

  /* Type */
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --max: 1160px;
  --gutter: 20px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11,31,42,.06), 0 8px 24px rgba(11,31,42,.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fx-ink: #EEF3F5;
    --fx-teal: #3FB8AC;
    --fx-teal-deep: #6ACDC3;
    --fx-teal-soft: #113A38;
    --fx-amber: #F2B04B;
    --fx-amber-soft: #3A2A10;
    --fx-slate: #9FB0B9;
    --fx-line: #24353D;
    --fx-paper: #0F2530;
    --fx-canvas: #081B24;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fx-ink);
  background: var(--fx-canvas);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--fx-teal); text-decoration: none; }
a:hover { color: var(--fx-teal-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--fx-slate); }
.lede { font-size: 1.2rem; color: var(--fx-slate); max-width: 44ch; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fx-teal); margin-bottom: .75rem;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vw, 112px) 0; }
section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.panel { background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--radius-lg); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: .9rem 1.3rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
  font-family: var(--font-body);
}
.btn-primary { background: var(--fx-teal); color: #fff; }
.btn-primary:hover { background: var(--fx-teal-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--fx-ink); border-color: var(--fx-line); }
.btn-ghost:hover { border-color: var(--fx-ink); }
.btn-sm { padding: .6rem .95rem; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--fx-canvas) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--fx-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fx-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .mark { width: 28px; height: 28px; }
.brand span b { color: var(--fx-teal); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--fx-ink); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fx-teal); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--fx-line); border-radius: 8px; padding: .45rem .55rem; color: var(--fx-ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fx-paper); border-bottom: 1px solid var(--fx-line); padding: .5rem var(--gutter) 1rem; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--fx-line); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero .fine { font-size: .9rem; color: var(--fx-slate); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Feature grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--radius-lg); padding: 1.6rem; }
.card h3 { margin-top: .9rem; }
.card p:last-child { margin-bottom: 0; color: var(--fx-slate); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--fx-teal-soft); color: var(--fx-teal); display: grid; place-items: center; }
.icon.amber { background: var(--fx-amber-soft); color: var(--fx-amber); }
.icon svg { width: 22px; height: 22px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { position: relative; padding: 1.5rem 1.4rem 1.4rem; background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--fx-ink); color: var(--fx-canvas); font-family: var(--font-display); font-weight: 700; margin-bottom: 1rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--fx-slate); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--fx-teal); margin-top: .1rem; }

/* Quote */
.quote { border-left: 4px solid var(--fx-amber); padding: .5rem 0 .5rem 1.4rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; max-width: 28ch; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--fx-line); vertical-align: top; }
.compare th { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-slate); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--fx-ok); font-weight: 600; }
.compare td.no { color: var(--fx-slate); }
.table-scroll { overflow-x: auto; }

.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1rem; }
.kpi > div { background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: 10px; padding: .9rem 1rem; }
.kpi .k { font-size: .8rem; color: var(--fx-slate); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 4.2vw, 1.6rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }

/* Forms */
form.waitlist { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .92rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--fx-line); border-radius: 10px;
  background: var(--fx-paper); color: var(--fx-ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--fx-teal); outline-offset: 1px; border-color: transparent; }
.field .hint { font-size: .85rem; color: var(--fx-slate); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--fx-line); border-radius: 10px; cursor: pointer; background: var(--fx-paper); }
.seg label strong { font-size: .98rem; }
.seg label small { color: var(--fx-slate); font-size: .82rem; }
.seg input:checked + label { border-color: var(--fx-teal); background: var(--fx-teal-soft); box-shadow: inset 0 0 0 1px var(--fx-teal); }
.seg input:focus-visible + label { outline: 2px solid var(--fx-teal); outline-offset: 2px; }
@media (max-width: 560px) { .seg { grid-template-columns: 1fr; } }
[data-for] { display: none; }
[data-for].show { display: grid; }
.form-note { font-size: .88rem; color: var(--fx-slate); }
.form-status { padding: .9rem 1rem; border-radius: 10px; background: var(--fx-teal-soft); display: none; }
.form-status.show { display: block; }
.form-status.err { background: var(--fx-amber-soft); }

/* FAQ */
details { border-top: 1px solid var(--fx-line); padding: 1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--fx-line); }
summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--fx-teal); font-weight: 700; }
details[open] summary::after { content: "-"; }
details p { color: var(--fx-slate); margin: .8rem 0 0; max-width: 70ch; }

/* CTA band */
.cta-band { background: #0B1F2A; color: #F5F8F9; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.cta-band h2 { color: inherit; }
.cta-band p { color: #D0DCE1; }
.cta-band .btn-primary { background: #E0921C; color: #0B1F2A; }
.cta-band .btn-primary:hover { background: #F2A733; }
.cta-band .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Footer */
.site-footer { border-top: 1px solid var(--fx-line); padding: 2.5rem 0 2rem; color: var(--fx-slate); font-size: .92rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot a { color: var(--fx-slate); }
.foot a:hover { color: var(--fx-teal); }
.foot .brand { font-size: 1.05rem; }
.foot .brand .mark { width: 22px; height: 22px; }

/* Utility */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; background: var(--fx-amber-soft); color: var(--fx-amber); letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
