/* DriverHub public landing page — marketing-only styles.
   Deliberately separate from styles.css (the logged-in app's stylesheet):
   this file owns hero/section/pricing/FAQ/phone-frame chrome, while
   styles.css (linked directly in welcome.html) supplies the base reset,
   design tokens, and the real component classes used inside the product
   preview panels (job-card, home-overview-card, finance-item, etc.) so
   those previews are pixel-real DriverHub UI, not a redrawn approximation.
   This page hardcodes the dark theme (see welcome.html's data-theme="dark")
   rather than following the driver's stored Appearance preference — a
   deliberate one-look marketing decision, not a bug. */

:root {
  --mkt-bg: var(--bg);
  --mkt-surface: var(--surface);
  --mkt-surface-raised: var(--surface-elevated);
  --mkt-border: var(--border-subtle);
  --mkt-text: var(--text-primary);
  --mkt-text-secondary: var(--text-secondary);
  --mkt-text-muted: var(--text-muted);
  --mkt-accent: var(--accent);
  --mkt-accent-strong: var(--accent-strong);
  --mkt-max-width: 1120px;
  --mkt-section-gap: 96px;
}

@media (prefers-reduced-motion: no-preference) {
  .mkt-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .mkt-reveal.mkt-in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

.mkt-body {
  background: var(--mkt-bg);
  color: var(--mkt-text);
}

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

/* --- Top nav --- */

.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 25, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mkt-border);
}

.mkt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mkt-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.mkt-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

.mkt-brand-driver {
  color: var(--mkt-text);
}

.mkt-brand-hub {
  color: var(--mkt-accent);
}

.mkt-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--mkt-border);
  border-radius: 999px;
  color: var(--mkt-text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mkt-nav-login:hover,
.mkt-nav-login:focus-visible {
  border-color: var(--mkt-accent);
  color: var(--mkt-text);
}

/* --- Hero --- */

.mkt-hero {
  padding: 64px 0 48px;
}

.mkt-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mkt-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkt-accent-strong);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.mkt-hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.mkt-hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mkt-text-secondary);
  max-width: 46ch;
  margin: 0 0 28px;
}

.mkt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.mkt-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 12px;
  background: var(--mkt-accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  min-height: 52px;
}

.mkt-cta-primary:hover,
.mkt-cta-primary:focus-visible {
  background: var(--mkt-accent-strong);
}

.mkt-hero-visual {
  display: flex;
  justify-content: center;
}

/* --- Phone frame for embedded real product previews --- */

.mkt-phone {
  width: 100%;
  max-width: 340px;
  background: #05070d;
  border: 1px solid #1c2438;
  border-radius: 34px;
  padding: 14px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.mkt-phone-screen {
  background: var(--bg);
  border-radius: 22px;
  overflow: hidden;
  max-height: 620px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mkt-phone-screen::-webkit-scrollbar {
  display: none;
}

.mkt-phone-screen-inner {
  padding: 16px 14px 24px;
}

/* --- Section scaffolding --- */

.mkt-section {
  padding: var(--mkt-section-gap) 0;
  border-top: 1px solid var(--mkt-border);
}

.mkt-section-head {
  max-width: 60ch;
  margin: 0 0 40px;
}

.mkt-section-head.mkt-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.mkt-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkt-accent-strong);
  margin-bottom: 10px;
}

.mkt-section-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.mkt-section-head p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mkt-text-secondary);
  margin: 0;
}

/* --- Problem section --- */

.mkt-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mkt-problem-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 16px;
  padding: 20px;
}

.mkt-problem-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mkt-text-muted);
  margin-bottom: 8px;
}

.mkt-problem-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--mkt-text-secondary);
}

.mkt-problem-summary {
  margin-top: 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--mkt-text);
  max-width: 62ch;
}

/* --- Core benefits --- */

.mkt-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.mkt-benefit {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
}

.mkt-benefit-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--mkt-accent);
}

.mkt-benefit-icon svg {
  width: 100%;
  height: 100%;
}

.mkt-benefit h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
}

/* --- Feature rows (alternating text / product preview) --- */

.mkt-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0;
}

.mkt-feature + .mkt-feature {
  border-top: 1px solid var(--mkt-border);
}

.mkt-feature-copy {
  max-width: 46ch;
}

.mkt-feature-copy h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-wrap: balance;
}

.mkt-feature-copy p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--mkt-text-secondary);
  margin: 0 0 10px;
}

.mkt-feature-copy ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mkt-feature-copy li {
  font-size: 0.9rem;
  color: var(--mkt-text-secondary);
  padding-left: 22px;
  position: relative;
}

.mkt-feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mkt-accent);
}

.mkt-feature-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--mkt-text-muted);
  border-left: 2px solid var(--mkt-border);
  padding-left: 12px;
}

.mkt-feature-visual {
  display: flex;
  justify-content: center;
}

.mkt-preview-card {
  width: 100%;
  max-width: 380px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}

@media (min-width: 860px) {
  .mkt-feature {
    grid-template-columns: 1fr 1fr;
  }
  .mkt-feature-reverse .mkt-feature-copy {
    order: 2;
  }
  .mkt-feature-reverse .mkt-feature-visual {
    order: 1;
  }
}

/* --- How it works --- */

.mkt-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  counter-reset: mkt-step;
}

.mkt-step {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 16px;
  padding: 22px 18px;
}

.mkt-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--mkt-accent-strong);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.mkt-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.mkt-step p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--mkt-text-secondary);
}

/* --- Workflow distinction --- */

.mkt-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.mkt-workflow-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 18px;
  padding: 24px;
}

.mkt-workflow-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.mkt-workflow-tag-planned {
  color: var(--mkt-accent-strong);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
}

.mkt-workflow-tag-ridehailing {
  color: #f0abfc;
  background: rgba(240, 171, 252, 0.12);
  border: 1px solid rgba(240, 171, 252, 0.3);
}

.mkt-workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.mkt-workflow-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mkt-text-secondary);
}

.mkt-workflow-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.mkt-workflow-types span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--mkt-surface-raised);
  border: 1px solid var(--mkt-border);
  color: var(--mkt-text-secondary);
}

/* --- Pricing --- */

.mkt-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.mkt-price-card {
  position: relative;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mkt-price-card-featured {
  border-color: var(--mkt-accent);
  box-shadow: 0 0 0 1px var(--mkt-accent);
}

.mkt-price-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--mkt-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.mkt-price-plan {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mkt-text-muted);
}

.mkt-price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.mkt-price-amount strong {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mkt-price-amount span {
  font-size: 0.95rem;
  color: var(--mkt-text-muted);
}

.mkt-price-equiv {
  font-size: 0.85rem;
  color: var(--mkt-text-secondary);
  margin: -6px 0 0;
}

.mkt-price-trial {
  font-size: 0.88rem;
  color: var(--mkt-text-secondary);
  border-top: 1px solid var(--mkt-border);
  padding-top: 14px;
  margin-top: 4px;
}

.mkt-price-trial strong {
  display: block;
  color: var(--mkt-text);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.mkt-price-cta {
  margin-top: 6px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: var(--mkt-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.mkt-price-cta:hover,
.mkt-price-cta:focus-visible {
  background: var(--mkt-accent-strong);
}

/* --- FAQ --- */

.mkt-faq {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mkt-faq-item {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 14px;
  overflow: hidden;
}

.mkt-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--mkt-text);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.mkt-faq-chevron {
  flex-shrink: 0;
  color: var(--mkt-text-muted);
  transition: transform 0.15s ease;
}

.mkt-faq-question[aria-expanded="true"] .mkt-faq-chevron {
  transform: rotate(180deg);
}

.mkt-faq-answer {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--mkt-text-secondary);
}

.mkt-faq-answer[hidden] {
  display: none;
}

/* --- Final CTA --- */

.mkt-final {
  text-align: center;
  padding: 88px 0 100px;
}

.mkt-final h2 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  text-wrap: balance;
}

.mkt-final-tagline {
  font-size: 1rem;
  color: var(--mkt-accent-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 28px;
}

.mkt-final-price {
  font-size: 0.95rem;
  color: var(--mkt-text-secondary);
  margin: 0 0 6px;
}

.mkt-final-note {
  font-size: 0.82rem;
  color: var(--mkt-text-muted);
  margin: 0 0 28px;
}

/* --- Footer --- */

.mkt-footer {
  border-top: 1px solid var(--mkt-border);
  padding: 32px 0;
}

.mkt-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--mkt-text-muted);
}

.mkt-footer-links {
  display: flex;
  gap: 18px;
}

.mkt-footer-links a,
.mkt-footer-links button {
  background: none;
  border: none;
  padding: 0;
  color: var(--mkt-text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
}

.mkt-footer-links a:hover,
.mkt-footer-links button:hover {
  color: var(--mkt-text);
}

/* --- Early access modal --- */

.mkt-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.mkt-modal-backdrop[hidden] {
  display: none;
}

.mkt-modal {
  width: 100%;
  max-width: 380px;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}

.mkt-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-bg);
  color: var(--mkt-accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.mkt-modal h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.mkt-modal p {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mkt-text-secondary);
}

.mkt-modal-close {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: var(--mkt-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.mkt-modal-close:hover,
.mkt-modal-close:focus-visible {
  background: var(--mkt-accent-strong);
}

/* Support modal — "Email Support" is a plain mailto anchor, styled to match
   .mkt-modal-close's solid accent treatment but kept as its own rule (not
   applied to that shared class) so an anchor's block/center/no-underline
   needs never touch a class other buttons on the page already rely on. */
.mkt-support-email-link {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: var(--mkt-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mkt-support-email-link:hover,
.mkt-support-email-link:focus-visible {
  background: var(--mkt-accent-strong);
}

/* "Copy Email Address" — a quieter, outlined fallback action, secondary to
   the solid "Email Support" button above it. */
.mkt-modal-secondary {
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 10px;
  border: 1.5px solid var(--mkt-border);
  background: transparent;
  color: var(--mkt-text);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.mkt-modal-secondary:hover,
.mkt-modal-secondary:focus-visible {
  border-color: var(--mkt-accent);
  color: var(--mkt-accent-strong);
}

/* "Close" — the lowest-emphasis of the three actions, a plain dismiss link
   rather than a third boxed button. */
.mkt-modal-dismiss {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--mkt-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.mkt-modal-dismiss:hover,
.mkt-modal-dismiss:focus-visible {
  color: var(--mkt-text);
}

/* Early Access application form — reuses the real .field-label/.text-input
   classes from styles.css (already linked on this page) so the form looks
   exactly like the rest of DriverHub, not a redrawn approximation. This
   file only adds the modal-specific layout around those real classes. */
.mkt-modal-form {
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  text-align: left;
}

.mkt-modal-form #mkt-modal-title,
.mkt-modal-form .mkt-modal-intro {
  text-align: center;
}

.mkt-modal-intro {
  margin: 0 0 20px;
}

/* Visually hidden but present in the DOM — see welcome.js for how a
   filled value is handled. Kept off-canvas rather than display:none so it
   still "looks fillable" to a simple bot scanning the raw HTML. */
.mkt-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.mkt-form-error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

.mkt-form-error[hidden] {
  display: none;
}

.mkt-modal-privacy {
  margin: 16px 0 18px;
  font-size: 0.78rem;
  color: var(--mkt-text-muted);
  text-align: center;
}

.mkt-modal-submit {
  width: 100%;
  margin-top: 0;
}

.mkt-modal-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

#mkt-modal-success-state {
  text-align: center;
}

/* Focus visibility, everywhere on this page */
.mkt-body a:focus-visible,
.mkt-body button:focus-visible {
  outline: 2px solid var(--mkt-accent);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .mkt-section {
    padding: 64px 0;
  }
  .mkt-final {
    padding: 64px 0 72px;
  }
}
