/* Phase CC: final homepage cleanup based on visual review. */

/* landing-wefixtrades.css does `all: unset` on body.qf-wft .hero and .section,
 * which resets their display to `inline`. On narrow (mobile) widths that made
 * the lighter how-section background bleed up the left edge of the hero as a
 * stray vertical strip. Restore proper block flow so sections stack cleanly. */
body.qf-wft .hero,
body.qf-wft .section {
  display: block !important;
}

/* ── WeFixTrades-matched site header ────────────────────────────────────
 * Replicates the WFT marketing nav design language: a floating glass card
 * pinned to the top, mono utility nav links, a cream primary CTA, a bare
 * minimal logo mark (no busy icon), and a clean top-left eyebrow kicker. */

/* Floating glass nav card (matches WFT .mkt-nav-bar). landing-wefixtrades.css
 * does `all: unset` on body.qf-wft .site-header, so we re-establish it here. */
body.qf-wft .site-header {
  display: block !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 70 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 12px 20px 0 !important;
}

body.qf-wft .site-header-inner {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 10px 22px !important;
  gap: 24px !important;
  border-radius: 14px !important;
  background: rgba(24, 29, 31, 0.72) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}

/* Bare minimal logo mark — no cream box, no busy truck icon */
body.qf-wft .site-brand {
  gap: 9px !important;
  color: #FAFAFA !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  font-size: 19px !important;
}

body.qf-wft .site-logo {
  width: auto !important;
  height: auto !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  place-items: center !important;
  overflow: visible !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.qf-wft .site-logo svg.qf-route-logo,
body.qf-wft .site-logo .qf-brand-mark {
  display: block !important;
  width: auto !important;
  height: 30px !important;
}

body.qf-wft .site-logo::before,
body.qf-wft .site-logo::after {
  content: none !important;
  display: none !important;
}

/* Nav links — WFT mono utility treatment (matches the .qf-public-wft topnav
 * links + WFT's mono nav), no pill hover backgrounds. */
body.qf-wft .site-nav {
  gap: 4px !important;
}

body.qf-wft .site-nav a,
body.qf-wft .site-actions .signin {
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: rgba(249, 249, 249, 0.72) !important;
  background: transparent !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  transition: color 0.15s ease !important;
}

body.qf-wft .site-nav a:hover,
body.qf-wft .site-actions .signin:hover {
  color: #6E8BFF !important;
  background: transparent !important;
}

/* Right-hand action cluster */
body.qf-wft .site-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
}

/* "View demo" — WFT cream primary CTA (cream fill, dark text) */
body.qf-wft .site-actions .btn-secondary {
  display: inline-flex !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  color: #F9F9F9 !important;
  border-radius: 10px !important;
  padding: 9px 18px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease !important;
}

body.qf-wft .site-actions .btn-secondary .arr {
  color: #F9F9F9 !important;
}

body.qf-wft .site-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* ── Hero eyebrow — clean top-left kicker (drop the heavy bordered pill) ── */
body.qf-wft .hero-copy .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin-bottom: 22px !important;
  color: #6E8BFF !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

body.qf-wft .hero-copy .eyebrow::before {
  content: "" !important;
  display: inline-block !important;
  flex: none !important;
  width: 18px !important;
  height: 1.5px !important;
  border-radius: 2px !important;
  background: #6E8BFF !important;
}

body.qf-wft .hero-grid {
  width: min(1340px, calc(100vw - 56px)) !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr) !important;
  gap: clamp(50px, 5.8vw, 92px) !important;
}

body.qf-wft .hero-copy {
  max-width: 840px !important;
}

body.qf-wft .hero h1 {
  max-width: 880px !important;
  font-size: clamp(48px, 5.9vw, 78px) !important;
  line-height: 1.03 !important;
  letter-spacing: -.052em !important;
  text-wrap: balance;
}

body.qf-wft .hero .lead {
  max-width: 680px !important;
}

body.qf-wft .visual-flow {
  width: 100% !important;
  max-width: 620px !important;
  justify-self: stretch !important;
  padding: 24px !important;
  gap: 20px !important;
}

body.qf-wft .flow-card {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) !important;
  grid-template-areas:
    'icon label'
    'icon title'
    'content content' !important;
  column-gap: 18px !important;
  row-gap: 8px !important;
  padding: 24px !important;
}

body.qf-wft .flow-icon {
  grid-area: icon;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 19px !important;
  font-weight: 900 !important;
}

body.qf-wft .flow-label {
  grid-area: label;
  align-self: end;
}

body.qf-wft .flow-card strong {
  grid-area: title;
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

body.qf-wft .mini-rate-table,
body.qf-wft .mini-browser,
body.qf-wft .mini-result,
body.qf-wft .mini-actions {
  grid-area: content;
  width: 100% !important;
  min-width: 0 !important;
}

body.qf-wft .how-section .container {
  width: min(1440px, calc(100vw - 56px)) !important;
  max-width: 1440px !important;
}

/* Desktop/tablet: 2×2 grid so each how-it-works screenshot renders large and
   complete. Scoped to min-width 641px so it never overrides the mobile 1-col
   rule below (media queries don't add specificity; landing-v2 would win). */
@media (min-width: 641px) {
  body.qf-wft.landing-v2 .simple-steps {
    gap: 26px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start !important;
  }
}

body.qf-wft .simple-step {
  padding: 32px !important;
  min-height: 280px !important;
}

body.qf-wft .step-art {
  width: 100% !important;
  min-height: 138px !important;
  padding: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.qf-wft .link-art,
body.qf-wft .signature-art,
body.qf-wft .chat-art {
  overflow-wrap: anywhere !important;
  white-space: normal !important;
  text-align: center !important;
}

@media (max-width: 1180px) {
  body.qf-wft .hero-grid {
    grid-template-columns: 1fr !important;
  }

  body.qf-wft .visual-flow {
    max-width: 820px !important;
    justify-self: start !important;
  }

  body.qf-wft .simple-steps {
    grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.qf-wft .hero h1 {
    font-size: 42px !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em !important;
  }

  /* Pull the hero up so the eyebrow sits right under the header bar (was a big
     dead gap). .landing-v2 out-specifies the base/mobile hero padding rules. */
  body.qf-wft.landing-v2 .hero {
    padding-top: 16px !important;
  }

  /* Mobile header = a full-width Apple-style frosted glass BAR, not a floating
     pill. Drop the inner card (bg/border/radius/shadow) and move the frosted
     glass onto the full-width sticky bar; sit it flush at the top (higher) with
     the brand hugging the left edge and the actions the right. */
  /* .landing-v2 raises specificity above the site-wide color-system rule
     (body.qf-wft .site-header { background: var(--qf-color-card-dark) }, loaded
     later via @import) so the translucent frosted background actually wins. */
  body.qf-wft.landing-v2 .site-header {
    padding: 0 !important;
    background: rgba(18, 22, 26, 0.66) !important;
    backdrop-filter: blur(22px) saturate(1.7) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.7) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  body.qf-wft.landing-v2 .site-header-inner {
    max-width: none !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    gap: 12px !important;
    justify-content: space-between !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.qf-wft .site-nav {
    display: none !important;
  }

  body.qf-wft .site-actions .btn-secondary {
    min-height: 34px !important;
    padding-inline: 12px !important;
  }

  body.qf-wft .simple-steps {
    grid-template-columns: 1fr !important;
  }

  body.qf-wft .step-art {
    min-height: 112px !important;
  }
}

/* ── Mobile nav — hamburger + dropdown panel (WFT mobile-nav pattern) ─────
 * Desktop keeps the inline nav links + Sign in. Below 640px those collapse
 * into a hamburger that opens a glass panel with every link + Sign in so the
 * links (and Sign in) stay reachable on mobile. */
body.qf-wft .site-burger {
  display: none;
}
body.qf-wft .site-mobile-menu {
  display: none;
}

@media (max-width: 640px) {
  body.qf-wft .site-burger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: #F9F9F9;
    cursor: pointer;
    flex: none;
  }
  body.qf-wft .site-burger svg {
    width: 20px;
    height: 20px;
    display: block;
  }
  body.qf-wft .site-burger .ico-close {
    display: none;
  }
  body.qf-wft .site-burger[aria-expanded="true"] .ico-open {
    display: none;
  }
  body.qf-wft .site-burger[aria-expanded="true"] .ico-close {
    display: block;
  }

  body.qf-wft .site-mobile-menu:not([hidden]) {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    margin: 8px 0 0;
    padding: 8px;
    border-radius: 14px;
    background: rgba(24, 29, 31, 0.94);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  }
  body.qf-wft .site-mobile-menu a {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(249, 249, 249, 0.82);
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    transition: color 0.15s ease, background 0.15s ease;
  }
  body.qf-wft .site-mobile-menu a:hover,
  body.qf-wft .site-mobile-menu a:focus-visible {
    color: #6E8BFF;
    background: rgba(255, 255, 255, 0.04);
  }
}

/* ── Hero honest expectation + price anchor (persona-audit P2) ──────────
 * Small, subtle line under the primary CTA that sets an honest trial
 * expectation (free trial, no credit card) and anchors the price without a full table.
 * Reuses .micro-copy muted styling; only the /pricing link is accented. */
body.qf-wft .hero-trial-note {
  margin-top: 12px;
}
body.qf-wft .hero-trial-note a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
body.qf-wft .hero-trial-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* How-it-works step illustrations: real product screenshots shown IN FULL
   (no crop). The image fills the card width at its natural aspect ratio so
   nothing is cut off; the framed box just rounds the corners. */
body.qf-wft .step-art.step-shot {
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  display: block !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 0 !important;
}
body.qf-wft .step-art.step-shot img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
}

/* Mobile: let the how-it-works cards use the full screen width so the
   screenshots read large instead of a narrow ~70% column. */
@media (max-width: 640px) {
  body.qf-wft #how.section {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body.qf-wft #how .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.qf-wft #how .simple-step {
    padding: 12px !important;
    min-height: 0 !important;
  }
}

/* ── Mobile: consistent full-width containers + a proper footer. Every home/
   landing container uses ~92% of the screen (uniform 16px gutters); the final
   CTA card fills the width instead of floating narrow; the footer stops hugging
   the left edge and its link columns sit in a 2-col grid, not a broken left
   stack. Scoped to .landing-v2 so it out-specifies the per-section rules. ──── */
@media (max-width: 640px) {
  body.qf-wft.landing-v2 .section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.qf-wft.landing-v2 .section > .container,
  body.qf-wft.landing-v2 .final-section > .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Final CTA card fills the width (was a narrow floating card ~73%). */
  body.qf-wft.landing-v2 .final-cta-card.qf-final-cta {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* Footer: pad off the screen edge + 2-column link grid (brand spans both).
     The inner was full-viewport-wide and overflowed the footer's padding,
     clipping the © line — so pad the inner directly with border-box. */
  body.qf-wft.landing-v2 .premium-footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.qf-wft.landing-v2 .premium-footer-inner,
  body.qf-wft.landing-v2 .footer-bottom {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  body.qf-wft.landing-v2 .premium-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px 16px !important;
  }
  body.qf-wft.landing-v2 .footer-brand {
    grid-column: 1 / -1 !important;
  }
}

/* ── Mobile: showcase section-head breathing room. The "See it in action"
   heading ("Built for trucking, by people who know it.") sat tight against the
   paragraph below it at 375px because .section-head h2 ships margin-bottom:0.
   Add an 8px-ramp gap under the heading so the intro copy reads as its own
   block. Desktop is unaffected. ─────────────────────────────────────────── */
@media (max-width: 560px) {
  body.qf-wft.landing-v2 .qf-showcase-section .section-head h2 {
    margin-bottom: 16px !important;
  }
}

/* ── How it works — 4 stacked full-width step cards (uniform, video-ready) ───
   Before: `.simple-steps` was a 2×2/4-col grid of `.simple-step` cards whose
   `.step-art.step-shot` images rendered at their NATURAL aspect (height:auto),
   so screenshots of different ratios (2.57 / 1.98 / 2.19 / 1.57) produced
   random card heights and a misaligned grid — exactly what Alex flagged.
   After: one full-width card per step, stacked vertically, each with a
   FIXED-ASPECT media slot (identical size across all four → cards align) plus a
   numbered plain-language explanation. The media slot holds an <img> today and
   accepts a <video autoplay loop muted playsinline> later with ZERO layout
   change (both are positioned identically inside `.hiw-media`). The extra
   `.hiw-*` classes out-specify the earlier `.simple-step(s)` grid rules. ───── */
body.qf-wft.landing-v2 .simple-steps.hiw-stack {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 16px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: stretch !important;
}
body.qf-wft.landing-v2 .simple-step.hiw-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 32px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 24px !important;
}
/* Uniform, video-ready media slot — same box for every step. */
body.qf-wft.landing-v2 .hiw-card .hiw-media {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(255, 255, 255, .035) !important;
  border: 1px solid rgba(255, 255, 255, .11) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
body.qf-wft.landing-v2 .hiw-card .hiw-media > img,
body.qf-wft.landing-v2 .hiw-card .hiw-media > video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}
/* Step 1 now shows a real signup screenshot (marketing/how/signup.webp); the
   old .hiw-media-ph placeholder panel + caption were removed from the markup. */
body.qf-wft.landing-v2 .hiw-card .hiw-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}
body.qf-wft.landing-v2 .hiw-card .hiw-num {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: rgba(110, 139, 255, .14) !important;
  border: 1px solid rgba(110, 139, 255, .42) !important;
  color: var(--accent) !important;
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
body.qf-wft.landing-v2 .hiw-card .hiw-body strong {
  margin: 4px 0 0 !important;
  font-size: 20px !important;
}
body.qf-wft.landing-v2 .hiw-card .hiw-body p {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  max-width: 46ch !important;
}
/* Mobile: media on top, copy below, clean full-width stack at 375px. */
@media (max-width: 640px) {
  body.qf-wft.landing-v2 .simple-step.hiw-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 16px !important;
  }
  body.qf-wft.landing-v2 .hiw-card .hiw-body p {
    max-width: none !important;
  }
}
