/* QuicklyFig homepage — Pass 1
   All classes namespaced: home- or qf-home-
   Cascades on top of css/style.css — do not modify style.css */

/* ===== TOKENS ===== */
:root {
  --home-ink:          #0C2340;
  --home-ink-deep:     #081A33;
  --home-ink-line:     #13304F;
  --home-intel:        #0D9488;
  --home-intel-bright: #5EEAD4;
  --home-paper:        #F7F9FB;
  --home-surface:      #FFFFFF;
  --home-line:         #E3E8EF;
  --home-text:         #0C1B2E;
  --home-text-muted:   #52617A;
  --home-bronze:       #92400E;
  --home-bronze-light: #FEF3C7;
}

/* ===== HERO ===== */
.home-hero {
  background: var(--home-ink);
  padding: clamp(64px, 7vw, 112px) 2rem;
  position: relative;
}

.home-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: center;
}

.home-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-intel);
  margin-bottom: 20px;
  display: block;
}

.home-hero-h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.home-hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 28px;
}

.home-hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--home-intel);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.home-btn-primary:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #ffffff;
}

.home-btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.home-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #ffffff;
}

.home-trust-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.home-trust-item {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.home-trust-sep {
  color: rgba(255, 255, 255, 0.22);
  font-size: 10px;
}

/* ── Signal panel ── */
.home-hero-right {
  align-self: center;
}

.home-signal-panel {
  background: rgba(13, 48, 80, 0.6);
  border: 1px solid var(--home-ink-line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 8px 24px rgba(8, 26, 51, .06);
}

.home-sp-header {
  background: #13304F;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-sp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-intel);
  flex-shrink: 0;
  animation: home-sp-pulse 2s ease-in-out infinite;
}
@keyframes home-sp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .home-sp-dot { animation: none; }
}

.home-sp-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.6);
}

.home-sp-chip {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  padding: 2px 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: auto;
  white-space: nowrap;
}

.home-sp-status {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-intel);
  font-variant-numeric: tabular-nums;
  padding: 18px 14px 10px;
}

.home-sp-rows {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-sp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.home-sp-row-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.38);
}

.home-sp-row-value {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

.home-sp-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
  padding: 10px 14px 14px;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0;
}

/* ===== CATEGORIES ===== */
.home-categories {
  background: var(--home-paper);
  padding: clamp(48px, 6vw, 80px) 2rem;
}

.home-cat-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.home-cat-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 6px;
  line-height: 1.15;
}

.home-cat-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--home-text-muted);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}

/* — Tier 1 — */
.home-tier1 {
  margin-bottom: 14px;
}

.home-tier1-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--home-ink);
  border-left: 4px solid var(--home-intel);
  border-radius: 8px;
  padding: 28px 32px;
  text-decoration: none;
  transition: opacity 0.15s;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 8px 24px rgba(8, 26, 51, .08);
}
.home-tier1-card:hover {
  opacity: 0.92;
  text-decoration: none;
}

.home-tier1-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-width: 60px;
}

.home-tier1-badge {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--home-ink-deep);
  background: var(--home-intel);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}

.home-tier1-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.home-tier1-content {
  flex: 1;
}

.home-tier1-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 5px;
}

.home-tier1-desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.home-tier1-arrow {
  color: var(--home-intel);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* — Tier 2 — */
.home-tier2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.home-tier2-card {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06);
}
.home-tier2-card:hover {
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 8px 24px rgba(8, 26, 51, .06);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-t2-stripe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.home-t2-stripe-broker { background: var(--home-bronze-light); }
.home-t2-stripe-canada { background: #E0EBF5; }

.home-t2-name {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.home-t2-stripe-broker .home-t2-name { color: var(--home-bronze); }
.home-t2-stripe-canada .home-t2-name { color: #2D5B7A; }

.home-t2-count {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.home-t2-stripe-broker .home-t2-count { color: var(--home-bronze); }
.home-t2-stripe-canada .home-t2-count { color: #2D5B7A; }

.home-t2-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  flex: 1;
}

.home-t2-tool {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--home-text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.home-t2-tool::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--home-line);
}

.home-t2-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-ink);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 20px 20px;
}

/* — Tier 3 — */
.home-tier3 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.home-tier3-card {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 18px 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  transition: box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .04);
}
.home-tier3-card:hover {
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 4px 12px rgba(8, 26, 51, .06);
  text-decoration: none;
}

.home-t3-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text);
  text-align: center;
  letter-spacing: -0.01em;
}

.home-t3-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--home-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* ===== RESPONSIVE — PASS 1 ===== */
@media (max-width: 960px) {
  .home-hero-inner      { grid-template-columns: 1fr; }
  .home-hero-right      { display: none; }
  .home-tier3           { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .home-tier2           { grid-template-columns: 1fr; }
  .home-tier3           { grid-template-columns: repeat(2, 1fr); }
  .home-hero-ctas       { flex-direction: column; align-items: flex-start; }
}

/* ===== PASS 2 ===== */

/* — Shared section patterns — */
.home-section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}
.home-broker-eyebrow { color: var(--home-bronze); }
.home-canada-eyebrow { color: #2D5B7A; }

.home-section-h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 14px;
  line-height: 1.2;
}

.home-section-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--home-text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.home-stat-chip {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}

.home-section-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.home-section-cta:hover { color: var(--home-text); text-decoration: none; }

/* — Shared tool list rows — */
.home-tool-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .04);
}
.home-tool-row:hover {
  box-shadow: 0 1px 2px rgba(8, 26, 51, .06), 0 4px 12px rgba(8, 26, 51, .06);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-tool-row-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--home-text);
}

/* — FMI Showcase — */
.home-fmi-showcase {
  background: var(--home-ink-deep);
  padding: clamp(48px, 6vw, 80px) 2rem;
}

.home-fmi-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.home-fmi-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-intel);
  margin-bottom: 16px;
  display: block;
}

.home-fmi-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 28px;
  line-height: 1.25;
  max-width: 600px;
}

.home-fmi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.home-fmi-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--home-ink-line);
  border-radius: 8px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.15s;
}
.home-fmi-card:hover {
  background: rgba(255, 255, 255, .07);
  text-decoration: none;
}

.home-fmi-question {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--home-intel);
  line-height: 1.4;
  margin: 0;
}

.home-fmi-status {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--home-intel);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.home-fmi-tool {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .45);
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.home-fmi-card-link {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--home-intel);
  display: flex;
  align-items: center;
  gap: 3px;
}

.home-fmi-disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, .25);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 14px;
  line-height: 1.55;
  margin: 0;
}

/* — Freight Broker — */
.home-broker {
  background: var(--home-paper);
  padding: clamp(48px, 6vw, 80px) 2rem;
}

.home-broker-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}

.home-broker-content { }

/* — Canada Freight — */
.home-canada {
  background: var(--home-surface);
  padding: clamp(48px, 6vw, 80px) 2rem;
  border-top: 1px solid var(--home-line);
}

.home-canada-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 4rem;
  align-items: start;
}

.home-ca-monogram {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #2D5B7A;
  background: #E0EBF5;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
}

/* — Latest from QuicklyFig — */
.home-latest {
  background: var(--home-surface);
  border-top: 1px solid var(--home-line);
  padding: clamp(48px, 6vw, 80px) 2rem;
}

.home-latest-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.home-latest-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 24px;
}

.home-latest-card {
  background: var(--home-paper);
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 28px;
  max-width: 620px;
  box-shadow: 0 1px 2px rgba(8, 26, 51, .04);
}

.home-latest-tag {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--home-intel);
  display: block;
  margin-bottom: 10px;
}

.home-latest-title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.home-latest-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--home-text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.home-latest-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-ink);
  text-decoration: none;
}
.home-latest-link:hover { color: var(--home-text); text-decoration: none; }

/* — Pro Signal — */
.home-pro-signal {
  background: var(--home-surface);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
  padding: 36px 2rem;
}

.home-pro-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-pro-content { flex: 1; min-width: 280px; }

.home-pro-heading {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--home-text);
  margin-bottom: 6px;
}

.home-pro-body {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--home-text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

.home-pro-cta {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  padding: 9px 18px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.home-pro-cta:hover { background: var(--home-paper); text-decoration: none; color: var(--home-ink); }

/* ===== RESPONSIVE — PASS 2 ===== */
@media (max-width: 960px) {
  .home-fmi-grid        { grid-template-columns: repeat(3, 1fr); }
  .home-broker-inner    { grid-template-columns: 1fr; }
  .home-canada-inner    { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .home-fmi-grid        { grid-template-columns: repeat(2, 1fr); }
  .home-pro-inner       { flex-direction: column; align-items: flex-start; }
}

/* ===== HOMEPAGE NAV PALETTE OVERRIDE =====
   home.css is only linked from index.html — zero impact on any other page.
   Specificity (0,2,0) beats inline-style-block (0,1,0) for logo mark.
   !important at (0,2,0) beats inline-style-block !important at (0,1,0)
   for the Newsletter button.                                            */
