/* torqleads.com. Dealer-facing site for Torq.
   Plain CSS, system fonts, one accent colour, light and dark.
   No external fonts, scripts or trackers. Served under a strict CSP
   (see vercel.json), so keep all styles in this file, not inline. */

:root {
  color-scheme: light dark;
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #16201c;
  --muted: #55605b;
  --line: #e1e4e1;
  --accent: #0b5d4a;
  --accent-hover: #094c3c;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1ee;
  --error: #a3271f;
  --error-soft: #fbeceb;
  --radius: 10px;
  --wrap: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513;
    --surface: #161d1a;
    --text: #e8ecea;
    --muted: #a0aba6;
    --line: #2a3430;
    --accent: #5fcba8;
    --accent-hover: #7dd8ba;
    --accent-ink: #06241b;
    --accent-soft: #16302a;
    --error: #ff8a80;
    --error-soft: #3a1a18;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  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-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a.nav-cta {
  color: var(--accent);
}

.nav-optional {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 48px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  max-width: 17ch;
}

.lede {
  margin-top: 22px;
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 56ch;
}

.hero-note {
  margin-top: 16px;
  max-width: 56ch;
  font-weight: 600;
}

.actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  padding: 15px 22px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  font-weight: 600;
}

/* ---------- sections ---------- */

.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  max-width: 24ch;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 60ch;
}

.statement {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 34ch;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--text);
  padding-top: 16px;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- cards and lists ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 16px;
}

.card p + p {
  margin-top: 10px;
}

.card.accent {
  background: var(--accent-soft);
  border-color: transparent;
}

.card.accent p {
  color: var(--text);
}

.example {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 6px 6px 0;
  color: var(--text);
  font-size: 16px;
}

.example-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.stack > * + * {
  margin-top: 26px;
}

.sub-head {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.measure {
  max-width: 64ch;
}

/* ---------- form ---------- */

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 720px;
}

.fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.field input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-foot {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.form-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 46ch;
}

.form-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--error-soft);
  color: var(--error);
  font-weight: 600;
  font-size: 16px;
}

.form-error a {
  color: inherit;
}

.form-thanks {
  padding: 8px 0;
}

.form-thanks h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-thanks p {
  color: var(--muted);
}

.form-thanks:focus {
  outline: none;
}

/* Honeypot. Kept in the layout flow off-screen rather than display:none,
   because simple bots skip fields that are not displayed. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 54px;
  font-size: 15px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer p + p {
  margin-top: 6px;
}

/* ---------- legal pages ---------- */

.draft-banner {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 12px 0;
}

.legal {
  padding: 48px 0 64px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
}

.legal .intro {
  margin-top: 16px;
  color: var(--muted);
}

.legal h2 {
  font-size: 21px;
  font-weight: 700;
  margin-top: 38px;
  margin-bottom: 10px;
}

.legal p + p {
  margin-top: 10px;
}

.legal ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.todo {
  color: var(--muted);
  font-style: italic;
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  .nav-optional {
    display: inline;
  }

  .fields {
    grid-template-columns: 1fr 1fr;
  }

  .field.full {
    grid-column: 1 / -1;
  }

  .form-card {
    padding: 32px;
  }
}

@media (min-width: 820px) {
  .hero {
    padding: 88px 0 72px;
  }

  .section {
    padding: 80px 0;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
