/* AlphaBid — brand system */
:root {
  /* Brand tokens (per AlphaBid brand spec) */
  --navy: #0B1E3D;          /* primary background */
  --navy-2: #102A52;        /* slight lift for navy blocks */
  --blueprint: #185FA5;     /* CTAs / links */
  --steel: #5B8ABF;         /* accents, UI, secondary text */
  --copper: #F47B20;        /* ONE hot accent — primary CTA + key numbers */
  --highlight: #FEF0E3;     /* hover states */
  --mist: #F5F7FA;          /* light page background */
  --surface: #F5F7FA;       /* alias */
  --surface-2: #EAEFF6;     /* alt section */
  --ink: #0A0F1C;
  --muted: #5A6478;
  --line: #DDE3EC;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 30, 61, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 30, 61, 0.18);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink); }
.muted { color: var(--muted); }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 250, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.nav-logo { height: 30px; width: auto; }
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { color: var(--steel); transition: color 0.15s; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 0.5rem; align-items: center; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--copper);
  color: #fff;
}
.btn-primary:hover { background: #d96a14; }
.btn-secondary {
  background: var(--blueprint);
  color: #fff;
}
.btn-secondary:hover { background: #144E89; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--highlight); border-color: var(--copper); color: var(--navy); }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }

/* Sections */
section { padding: 5rem 0; }
@media (max-width: 700px) { section { padding: 3.25rem 0; } }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 123, 32, 0.18), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(24, 95, 165, 0.25), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--copper); }
.hero p.lede { font-size: 1.2rem; color: rgba(255,255,255,0.88); max-width: 640px; }
.hero p.canada { font-size: 0.95rem; color: var(--steel); margin-top: 0.5rem; font-weight: 600; }
.hero-ctas { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
}
.hero-meta span::before { content: "✓ "; color: var(--copper); font-weight: 700; }

/* Hero demo placeholder (swap with real animation when provided) */
.hero-demo {
  margin: 3rem auto 0;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(91, 138, 191, 0.5);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.hero-demo .label { color: var(--copper); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; margin-bottom: 0.75rem; }
.hero-demo .flow { color: rgba(255,255,255,0.92); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.hero-demo .sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 0; }

/* "Built with" strip (formerly "Trusted by") */
.built-with {
  padding: 2.5rem 0;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.built-with-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.built-with-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.built-with-row span {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

/* Grid cards */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--steel); }
.card .icon {
  width: 40px; height: 40px;
  background: var(--blueprint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Steps — supports up to 5 columns */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.78rem;
  color: #fff;
  background: var(--copper);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step h3 { margin-top: 0.6rem; font-size: 1.05rem; padding-right: 2.6rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Proof / stats */
.proof { background: var(--navy); color: #fff; }
.proof h2 { color: #fff; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0 0.5rem;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { text-align: center; }
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--copper);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-label { color: rgba(255,255,255,0.82); margin-top: 0.5rem; font-size: 0.95rem; }
.stat-disclaimer { text-align: center; color: rgba(255,255,255,0.55); font-size: 0.82rem; margin-top: 1.5rem; }

.quote {
  margin: 2.25rem auto 0;
  background: var(--navy-2);
  border-left: 3px solid var(--copper);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  max-width: 820px;
}
.quote p { color: rgba(255,255,255,0.95); font-size: 1.08rem; }
.quote .cite { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

/* Trades — featured (Plumbing/Mechanical/HVAC) */
.trades-feature {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .trades-feature { grid-template-columns: 1fr; } }
.trade-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  border-top: 4px solid var(--copper);
}
.trade-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.trade-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.trades-more {
  text-align: center;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--steel); font-weight: 400; font-size: 1.4rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }
.faq details p a { color: var(--blueprint); text-decoration: underline; }

/* Final CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-trust {
  margin: 1.75rem auto 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  max-width: 680px;
  line-height: 1.55;
}

/* Footer */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
  border-top: 1px solid var(--navy-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-weight: 700;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0.4rem 0; color: rgba(255,255,255,0.7); }
footer a:hover { color: var(--copper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--copper);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.plan.featured::before {
  content: "Best value";
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
}
.plan h3 { font-size: 1.4rem; }
.plan .price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.02em;
}
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .price-note { color: var(--copper); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan .pitch { color: var(--muted); min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 1.5rem 0; flex: 1; }
.plan li {
  padding: 0.5rem 0;
  color: var(--ink);
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.plan li::before { content: "✓"; color: var(--blueprint); font-weight: 700; flex-shrink: 0; }
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "—"; color: var(--line); }
.plan .btn { margin-top: 0.5rem; justify-content: center; }

/* Form */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 1.1rem; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row.split { grid-template-columns: 1fr; } }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blueprint);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}
textarea { resize: vertical; min-height: 96px; }

/* Page header (non-home) */
.page-head {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 0 4rem;
  text-align: center;
}
.page-head h1 { color: #fff; margin-bottom: 0.4rem; }
.page-head p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* Compliance / disclaimer note */
.disclaimer {
  background: var(--highlight);
  border: 1px solid #F4C9A0;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--navy);
  line-height: 1.55;
}
.disclaimer strong { color: var(--copper); }
