/* ============================================================
   LinX — linxservices.ca  ·  Shared Stylesheet (app.css)
   Design system derived from the LinX Ecosystem references:
   black #0a0a0a · gold #d4af37 · electric blue #00d4ff
   Space Grotesk (display) + Inter (body)
   ============================================================ */

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #141419;
  --border: #222222;

  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --gold-dim: rgba(212, 175, 55, 0.45);
  --gold-subtle: rgba(212, 175, 55, 0.22);
  --gold-faint: rgba(212, 175, 55, 0.07);

  --blue: #00d4ff;            /* electric blue — Verified / EchoForge accents */
  --blue-soft: rgba(0, 212, 255, 0.10);
  --blue-border: rgba(0, 212, 255, 0.30);

  --green: #34d399;
  --red: #f87171;

  --white: #f5f5f5;
  --white-60: rgba(245, 245, 245, 0.65);
  --white-35: rgba(245, 245, 245, 0.38);

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shell: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--gold); }

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

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-dim);
}

.brand__text {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__nav a {
  color: var(--white-60);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__nav a:hover,
.topbar__nav a.active { color: var(--gold-bright); }

.topbar__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), #b8952c);
  color: #0a0a0a;
}

.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.28);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold-subtle);
  color: var(--gold-bright);
}

.btn--outline:hover { border-color: var(--gold); background: var(--gold-faint); }

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--white-60);
}

.btn--ghost:hover { color: var(--white); border-color: var(--white-35); }

.btn--lg { padding: 0.85rem 1.7rem; font-size: 0.95rem; }
.btn--sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn--block { display: block; width: 100%; }

/* ---------- Cards, tags, section headers ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card--hover:hover {
  border-color: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Signature accent from the LinX links hub: gold → blue edge bar */
.card--accent { position: relative; overflow: hidden; }

.card--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--blue));
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--white-60);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  white-space: nowrap;
}

.tag--gold {
  color: var(--gold-bright);
  background: var(--gold-faint);
  border-color: var(--gold-subtle);
}

.tag--blue {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue-border);
}

.section { padding: 4rem 0; }

.section-head { margin-bottom: 2rem; }

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 0.4rem;
  color: var(--white);
}

.section-sub {
  color: var(--white-60);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(212, 175, 55, 0.12), transparent 65%),
    var(--bg);
}

.hero__circuit {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero h1 .gold {
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--white-60);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.hero__ctas {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.8rem;
}

.hero-stat { text-align: center; }

.hero-stat__value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.hero-stat__label {
  font-size: 0.75rem;
  color: var(--white-35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Step / feature grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.step-card .step-num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--white-60);
  margin: 0;
}

.trade-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--white-60);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.trade-chip:hover { border-color: var(--gold-dim); color: var(--gold-bright); }

/* ---------- Contractor cards ---------- */

.contractor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8a6d1f);
  color: #0a0a0a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--surface);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.contractor-card .c-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}

.contractor-card .c-trade {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
}

.contractor-card .c-meta { font-size: 0.78rem; color: var(--white-35); }

.contractor-card .c-bio {
  font-size: 0.83rem;
  color: var(--white-60);
  line-height: 1.55;
  margin: 0.8rem 0;
}

.c-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  color: var(--white-35);
  flex-wrap: wrap;
}

.c-rate { color: var(--gold-bright); font-weight: 700; font-size: 1rem; }

.stars { color: var(--gold); letter-spacing: 1px; }
.stars .off { color: var(--white-35); }

/* ---------- Stat widgets (profile) ---------- */

.stat-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.stat-widget__value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.stat-widget__label {
  font-size: 0.72rem;
  color: var(--white-35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Forms ---------- */

.form-group { margin-bottom: 1.1rem; }

.form-label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.form-label .req { color: var(--red); }

.form-input,
.form-select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.form-input::placeholder { color: var(--white-35); }

.form-hint { font-size: 0.75rem; color: var(--white-35); margin-top: 0.3rem; }

textarea.form-input { resize: vertical; }

.urgency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.urgency-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.urgency-card:hover { border-color: var(--gold-dim); }

.urgency-card.selected {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.urgency-card .u-emoji { font-size: 1.4rem; margin-bottom: 0.3rem; }
.urgency-card .u-title { font-weight: 700; font-size: 0.85rem; color: var(--white); }
.urgency-card .u-sub { font-size: 0.72rem; color: var(--white-35); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--white-60);
}

.consent-row input { margin-top: 0.2rem; accent-color: var(--gold); }

/* ---------- Pricing ---------- */

.price-card { display: flex; flex-direction: column; }

.price-card--featured {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 1px var(--gold-subtle), 0 14px 34px rgba(0, 0, 0, 0.5);
}

.price-card .plan-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-card .plan-price {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0.7rem 0 0.1rem;
}

.price-card .plan-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-35);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.4rem;
  flex: 1;
}

.price-card li {
  font-size: 0.85rem;
  color: var(--white-60);
  padding: 0.38rem 0 0.38rem 1.5rem;
  position: relative;
}

.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.notice-band {
  background: var(--gold-faint);
  border: 1px solid var(--gold-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  font-size: 0.86rem;
  color: var(--white-60);
}

.notice-band strong { color: var(--gold-bright); }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(212, 175, 55, 0.14), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.6rem 2rem;
  text-align: center;
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.footer p, .footer a {
  font-size: 0.85rem;
  color: var(--white-60);
  text-decoration: none;
}

.footer a:hover { color: var(--gold-bright); }

.footer .footer-links { display: flex; flex-direction: column; gap: 0.45rem; }

.footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--white-35);
}

/* ---------- Success panel ---------- */

.success-panel {
  text-align: center;
  padding: 3rem 1.5rem;
}

.success-panel .s-emoji { font-size: 3.4rem; margin-bottom: 0.8rem; }

.success-panel h2 {
  font-family: var(--font-head);
  color: var(--gold-bright);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.success-panel p {
  color: var(--white-60);
  font-size: 0.92rem;
  max-width: 440px;
  margin: 0 auto 1.6rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .urgency-grid { grid-template-columns: 1fr; }
  .section { padding: 2.8rem 0; }

  .topbar__toggle { display: block; }

  .topbar__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1.4rem 1rem;
  }

  .topbar__nav.open { display: flex; }

  .topbar__nav a { padding: 0.6rem 0; }

  .topbar__nav .btn { margin-top: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .trade-chip { transition: none; }
  .btn--gold:hover, .card--hover:hover { transform: none; }
}
.nav__logo img { height: 38px; width: auto; display: block; }
.footer__brand-logo img { height: 44px; width: auto; display: block; }
