/* Palette from the Tekfora logo: navy #193c5c, red #c9534f, gold #bfa985 */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f4ef;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #566372;
  --line: #e2e4e8;
  --primary: #193c5c;
  --primary-text: #ffffff;
  --red: #c9534f;
  --gold: #8a7148;
  --ok: #1e7b3a;
  --err: #b42318;
  --radius: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1622;
    --bg-alt: #111d2b;
    --surface: #15233370;
    --text: #e2eaf3;
    --muted: #9fb0c2;
    --line: #24344a;
    --primary: #e2eaf3;
    --primary-text: #0d1622;
    --red: #e2716c;
    --gold: #cdb88c;
    --ok: #5fd07f;
    --err: #ff8a80;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); font-weight: normal; }
.hl { color: var(--red); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav nav a.btn { color: var(--primary-text); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--primary); text-decoration: none; text-transform: uppercase; }
.brand img { display: block; width: 40px; height: auto; }

/* Buttons */
.btn {
  display: inline-block; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--primary); color: var(--primary-text);
  padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-small { padding: 7px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-logo img { display: block; width: 100%; max-width: 420px; margin-left: auto; }
.eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 600px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.focus { margin: 4px 0 0; font-size: .98rem; font-weight: 600; color: var(--text); }
.focus span {
  display: inline-block; margin-right: 8px; padding: 2px 10px; border-radius: 99px; vertical-align: 1px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.kicker { margin: 0 0 6px; color: var(--gold); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.card p.kicker { color: var(--gold); }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 680px; }
.section-lede strong { color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.card p { color: var(--muted); margin: 0; }
.card-feature { border-top: 4px solid var(--red); }
.card-wide { grid-column: 1 / -1; }
.card-wide p:last-child { max-width: 860px; }
.card-ai { border-top: 4px solid var(--gold); }
.tag {
  display: inline-block; margin-bottom: 10px; padding: 2px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: .88rem; color: var(--muted); background: var(--surface); }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.tier p { color: var(--muted); }
.tier .rate { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--gold); font-weight: 700; }
.meter { display: flex; gap: 6px; margin-bottom: 14px; }
.meter i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.meter i.on { background: var(--red); }
.promise {
  margin: 28px 0 0; padding: 16px 20px; max-width: 760px;
  border-left: 4px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg);
}
.note { margin-top: 16px; color: var(--muted); max-width: 720px; }

/* Legacy AX callout */
.callout {
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: var(--radius); padding: 28px 32px;
}
.callout > div { max-width: 720px; }
.callout p:last-child { margin-bottom: 0; }
.callout .btn { flex-shrink: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px;
  border-radius: 50%; background: var(--primary); color: var(--primary-text); font-weight: 700;
}
.steps p { color: var(--muted); }

/* Form */
.form { display: grid; gap: 16px; margin-top: 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea {
  width: 100%; font: inherit; font-weight: normal; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.form textarea::placeholder { color: var(--muted); opacity: .8; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 760px) {
  .callout { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 260px; margin: 0; }
}

@media (max-width: 640px) {
  .nav nav a:not(.btn) { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
}
