/* ==========================================================================
   Ontario Leads — design tokens (v2: bold B2B-agency structure)
   ========================================================================== */
:root {
  --ink: #1B1B1E;
  --ink-soft: #55565B;
  --paper: #F4F1EB;
  --white: #FFFFFF;
  --rust: #CB5A2E;
  --rust-deep: #A8461F;
  --moss: #5C6B3D;
  --moss-soft: #E8EAE0;
  --line: #E1DCD0;
  --card: #FFFFFF;

  --font-display: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "Barlow Condensed", var(--font-body);

  --max-width: 1180px;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

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

.eyebrow {
  font-family: var(--font-label);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust-deep);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--rust); display: inline-block; }

/* Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 700; font-size: 0.96rem;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-rust { background: var(--rust); color: var(--white); }
.btn-rust:hover { background: var(--rust-deep); }

/* Header ------------------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 235, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); position: relative; flex-shrink: 0; }
.logo-mark::after { content: ""; position: absolute; inset: 8px; background: var(--rust); border-radius: 2px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; transition: color 0.15s ease; }
.main-nav a:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* Hero ----------------------------------------------------------------- */
.hero { padding: 68px 0 0; }
.hero .container { text-align: left; max-width: 900px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: 1.16rem; max-width: 58ch; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }

.stat-badges {
  display: flex; gap: 34px; flex-wrap: wrap;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
}
.stat-badge { display: flex; flex-direction: column; }
.stat-badge .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.stat-badge .l { font-family: var(--font-label); font-size: 0.92rem; letter-spacing: 0.03em; color: var(--ink-soft); text-transform: uppercase; }

/* Trust logos strip ------------------------------------------------------*/
.trust-strip { background: var(--ink); padding: 26px 0; }
.trust-strip .container { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: space-between; }
.trust-strip .trust-label { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: #B9B6AC; white-space: nowrap; }
.trust-logos { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.trust-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #D9D5C9; opacity: 0.85; letter-spacing: -0.01em; }

/* Sections shared -----------------------------------------------------*/
section { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Industries strip -------------------------------------------------------*/
.industry-strip {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.industry-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 20px; font-weight: 600; font-size: 0.92rem;
}
.industry-chip.flagship { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.industry-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); flex-shrink: 0; }
.industry-chip.flagship .dot { background: var(--rust); }

/* How it works ----------------------------------------------------------*/
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius-m); overflow: hidden; }
.step { background: var(--card); padding: 34px 28px; }
.step .step-index { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--line); display: block; margin-bottom: 16px; -webkit-text-stroke: 1.5px var(--ink); -webkit-text-fill-color: transparent; }
.step h3 { margin-bottom: 8px; }
.step p { margin-bottom: 0; font-size: 0.95rem; }

/* Results / case cards ---------------------------------------------------*/
.results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.result-card { background: var(--ink); color: var(--paper); border-radius: var(--radius-m); padding: 26px 22px; }
.result-card .metric { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--rust); margin-bottom: 2px; }
.result-card .metric-label { font-family: var(--font-label); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; color: #C8C5B9; }

/* Why verified pillars -----------------------------------------------------*/
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillar .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--moss-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { font-size: 0.92rem; }

/* Pricing --------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 34px 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.price-card.featured .plan-sub, .price-card.featured .plan-unit, .price-card.featured li { color: #C8C5B9; }
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.price-card .plan-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 20px; }
.price-card .plan-price { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; margin-bottom: 4px; }
.price-card .plan-unit { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 24px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex-grow: 1; }
.price-card li { font-size: 0.92rem; padding: 9px 0; border-top: 1px solid rgba(0,0,0,0.08); color: var(--ink-soft); }
.price-card.featured li { border-top: 1px solid rgba(255,255,255,0.14); }
.price-card li:first-child { border-top: none; }
.price-card.featured .btn-secondary { border-color: var(--paper); color: var(--paper); }
.price-card.featured .btn-secondary:hover { background: var(--paper); color: var(--ink); }

/* Testimonials -------------------------------------------------------------*/
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 26px; }
.stars { color: var(--rust); font-size: 0.95rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 0.98rem; color: var(--ink); margin-bottom: 18px; }
.testimonial-attr { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.testimonial-attr span { display: block; font-weight: 400; color: var(--ink-soft); }

/* FAQ accordion -------------------------------------------------------------*/
.faq-list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-question .plus { font-size: 1.4rem; font-weight: 400; color: var(--rust); flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-answer { max-height: 240px; }
.faq-answer p { padding-bottom: 22px; margin-bottom: 0; font-size: 0.96rem; }

/* CTA / Contact ----------------------------------------------------------- */
.cta-section { background: var(--ink); border-radius: var(--radius-l); color: var(--white); padding: 64px; }
.cta-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.cta-copy h2 { color: var(--white); }
.cta-copy p { color: #C8C5B9; }
.cta-copy .eyebrow { color: var(--rust); }
.cta-copy .eyebrow::before { background: var(--rust); }

.form-row { display: flex; gap: 14px; margin-bottom: 14px; }
.form-field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; color: #C8C5B9; }
.form-field input, .form-field select, .form-field textarea {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius-s); padding: 11px 13px; color: var(--white);
  font-family: var(--font-body); font-size: 0.95rem;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }
.form-field textarea { resize: vertical; min-height: 90px; }
.cta-section .btn-rust { margin-top: 6px; width: 100%; }
.form-note { font-size: 0.8rem; color: #97947F; margin-top: 12px; }

/* Footer -------------------------------------------------------------------*/
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-label); text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.83rem; color: var(--ink-soft); flex-wrap: wrap; gap: 10px; }

/* Utility page (privacy/terms) --------------------------------------------*/
.doc-page { padding: 70px 0 100px; }
.doc-page .container { max-width: 760px; }
.doc-page h2 { margin-top: 1.6em; }

/* Responsive ---------------------------------------------------------------*/
@media (max-width: 900px) {
  .stat-badges { gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-wrap { grid-template-columns: 1fr; }
  .cta-section { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .main-nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px 28px; gap: 18px;
  }
  .form-row { flex-direction: column; gap: 14px; }
  .results-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  section { padding: 64px 0; }
}
