/* FlowIQ Marketing Website — Light-only theme
   - This repo originally used a dark palette via Tailwind CDN + custom classes.
   - We keep the HTML mostly unchanged and deterministically remap the palette here.
   - No "system preference" switching: this is explicitly light-only. */

:root {
  color-scheme: light;
  --fiq-ink: #0f172a;
  --fiq-copy: #334155;
  --fiq-muted: #64748b;
  --fiq-panel: rgba(255, 255, 255, 0.78);
  --fiq-panel-strong: rgba(255, 255, 255, 0.92);
  --fiq-line: rgba(148, 163, 184, 0.22);
  --fiq-glow: rgba(249, 115, 22, 0.18);
  --fiq-glow-cool: rgba(59, 130, 246, 0.14);
  --fiq-navy: #122033;
}

/* ------------------------------
   Base brand tokens (always on)
-------------------------------- */
.text-freight-orange { color: #f97316 !important; }
.bg-freight-orange { background-color: #f97316 !important; }
.border-freight-orange { border-color: #f97316 !important; }
.hover\:bg-freight-orange-dark:hover { background-color: #ea580c !important; }
.hover\:text-freight-orange-dark:hover { color: #ea580c !important; }

/* Opacity variants used throughout the HTML (these are NOT real Tailwind classes without a config) */
.bg-freight-orange\/5 { background-color: rgba(249, 115, 22, 0.05) !important; }
.bg-freight-orange\/10 { background-color: rgba(249, 115, 22, 0.10) !important; }
.bg-freight-orange\/20 { background-color: rgba(249, 115, 22, 0.20) !important; }

/* ------------------------------
   Light-only palette remap
-------------------------------- */
.bg-freight-slate { background-color: #f8fafc !important; }         /* slate-50 */
.bg-freight-slate-light { background-color: #ffffff !important; }   /* surface */

/* Tailwind-like classes used in markup but not backed by a Tailwind config on most pages */
.bg-freight-slate\/90 { background-color: rgba(255, 255, 255, 0.90) !important; }
.bg-freight-slate\/95 { background-color: rgba(255, 255, 255, 0.95) !important; }
.bg-freight-slate-light\/50 { background-color: rgba(255, 255, 255, 0.72) !important; }
.bg-freight-slate-light\/70 { background-color: rgba(255, 255, 255, 0.85) !important; }
.bg-freight-slate-light\/95 { background-color: rgba(255, 255, 255, 0.95) !important; }

/* Background gradients originally built for dark mode */
.hero-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
}
.gradient-bg {
  background:
    radial-gradient(1200px circle at 20% 10%, rgba(249, 115, 22, 0.10), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

/* Typography remap (the old dark theme leaned on very light grays / white) */
.text-white { color: #0f172a !important; }      /* slate-900 */
.text-slate-100 { color: #0f172a !important; }  /* slate-900 */
.text-slate-200 { color: #0f172a !important; }  /* slate-900 */
.text-slate-300 { color: #475569 !important; }  /* slate-600 */
.text-slate-400 { color: #64748b !important; }  /* slate-500 */
.text-slate-500 { color: #64748b !important; }  /* slate-500 */
.text-slate-600 { color: #475569 !important; }  /* slate-600 */

/* Borders: remap dark borders to light dividers */
.border-slate-800 { border-color: #e2e8f0 !important; } /* slate-200 */
.border-slate-700 { border-color: #e2e8f0 !important; } /* slate-200 */
.border-slate-600 { border-color: #cbd5e1 !important; } /* slate-300 */

/* Shadows: soften for light surfaces */
.card-hover:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
}

/* Plan chips (Index hero) */
.plan-chip {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.75) !important;
  color: #0f172a !important;
}
.plan-chip.is-active {
  border-color: rgba(249, 115, 22, 0.70) !important;
  background-color: rgba(249, 115, 22, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.18) !important;
}

/* Controls / inputs (login + signup) */
.bg-freight-slate.border {
  border-color: #cbd5e1 !important;
}

/* Ensure critical CTAs keep white text */
.bg-freight-orange,
.bg-freight-orange * ,
.bg-green-600,
.bg-green-600 *,
.bg-blue-600,
.bg-blue-600 * ,
.bg-red-600,
.bg-red-600 * {
  color: #ffffff !important;
}

/* Secondary button pattern used in pricing cards (bg-slate-700 / hover:bg-slate-600 + text-white) */
.bg-slate-700 { background-color: #0f172a !important; }
.hover\:bg-slate-600:hover { background-color: #1e293b !important; }
.bg-slate-700,
.bg-slate-700 * {
  color: #ffffff !important;
}

.marketing-shell {
  position: relative;
  isolation: isolate;
}

.site-atmosphere {
  background:
    radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.16), transparent 24rem),
    radial-gradient(circle at 82% 14%, rgba(148, 163, 184, 0.18), transparent 22rem),
    radial-gradient(circle at 72% 44%, rgba(59, 130, 246, 0.08), transparent 26rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.marketing-shell::before,
.marketing-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -2;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.65;
}

.marketing-shell::before {
  top: 6rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: rgba(249, 115, 22, 0.16);
}

.marketing-shell::after {
  top: 18rem;
  right: -4rem;
  width: 22rem;
  height: 22rem;
  background: rgba(37, 99, 235, 0.12);
}

.mesh-lines {
  position: absolute;
  inset: -2rem -1rem 1rem;
  pointer-events: none;
  opacity: 0.95;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.96) 0 8px, rgba(148, 163, 184, 0.22) 9px 10px, transparent 11px),
    radial-gradient(circle at 34% 56%, rgba(255, 255, 255, 0.96) 0 10px, rgba(249, 115, 22, 0.2) 11px 12px, transparent 13px),
    radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.96) 0 7px, rgba(148, 163, 184, 0.22) 8px 9px, transparent 10px),
    radial-gradient(circle at 72% 62%, rgba(255, 255, 255, 0.96) 0 9px, rgba(59, 130, 246, 0.16) 10px 11px, transparent 12px),
    radial-gradient(circle at 88% 28%, rgba(255, 255, 255, 0.96) 0 8px, rgba(148, 163, 184, 0.22) 9px 10px, transparent 11px),
    linear-gradient(118deg, transparent 17%, rgba(148, 163, 184, 0.16) 17.5%, transparent 18.1%),
    linear-gradient(142deg, transparent 28%, rgba(148, 163, 184, 0.14) 28.4%, transparent 29%),
    linear-gradient(103deg, transparent 53%, rgba(249, 115, 22, 0.14) 53.3%, transparent 54%),
    linear-gradient(128deg, transparent 74%, rgba(59, 130, 246, 0.12) 74.2%, transparent 74.8%);
  background-repeat: no-repeat;
  filter: saturate(0.95);
  mask-image: radial-gradient(circle at 62% 42%, rgba(0, 0, 0, 0.98), transparent 88%);
}

.mesh-lines::before,
.mesh-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mesh-lines::before {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.78), transparent 18rem),
    radial-gradient(circle at 66% 32%, rgba(249, 115, 22, 0.12), transparent 10rem),
    radial-gradient(circle at 92% 58%, rgba(59, 130, 246, 0.09), transparent 12rem);
  filter: blur(10px);
  opacity: 0.9;
}

.mesh-lines::after {
  background-image:
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-position: 66% 18%;
  background-size: 110px 110px;
  opacity: 0.38;
  mask-image: radial-gradient(circle at 70% 38%, rgba(0, 0, 0, 0.9), transparent 72%);
}

.hero-ambient {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
  opacity: 0.95;
}

.hero-ambient--warm {
  top: 2rem;
  left: -3.5rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, rgba(251, 146, 60, 0.12) 42%, rgba(255, 255, 255, 0) 78%);
}

.hero-ambient--cool {
  top: 4rem;
  right: 1rem;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(148, 163, 184, 0.11) 40%, rgba(255, 255, 255, 0) 76%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.88);
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  border: 1px solid var(--fiq-line);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(22px);
}

.story-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.09), transparent 35%, rgba(14, 165, 233, 0.06));
  pointer-events: none;
}

.editorial-grid {
  display: grid;
  gap: 1.5rem;
}

.editorial-grid--hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
}

.hero-stack {
  position: relative;
  min-height: 38rem;
  perspective: 1200px;
}

.hero-surface {
  position: absolute;
  z-index: 1;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.hero-surface--main {
  z-index: 2;
  inset: 2.25rem 0 1.5rem 4.5rem;
}

.hero-surface--note {
  z-index: 3;
  top: 0;
  left: 0;
  width: 16rem;
  padding: 1rem;
}

.hero-surface--metric {
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 17rem;
  padding: 1.1rem;
}

.is-magnetic {
  will-change: transform;
}

.nav-wordmark {
  height: 42px;
  width: auto;
  max-width: 220px;
}

.nav-wordmark--compact {
  height: 40px;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: var(--fiq-copy);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.hero-chip i,
.proof-chip i {
  color: #f97316;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--fiq-copy);
}

.accent-divider {
  width: 6.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.75), rgba(249, 115, 22, 0));
}

.feature-rail {
  display: grid;
  gap: 1rem;
}

.feature-rail article {
  padding: 1.2rem 1.25rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.05);
}

.feature-rail strong {
  color: var(--fiq-ink);
}

.module-feature {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
}

.module-feature:nth-child(even) {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.module-feature:nth-child(even) .module-feature__copy {
  order: 2;
}

.module-feature:nth-child(even) .module-feature__visual {
  order: 1;
}

.module-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.module-stat-strip > div,
.metric-block {
  border-radius: 1.1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.pricing-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.pricing-stage-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.07);
}

.pricing-stage-card--featured {
  border-color: rgba(249, 115, 22, 0.38);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.92));
  transform: translateY(-10px);
}

.pricing-stage-card ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.pricing-stage-card li {
  display: flex;
  gap: 0.6rem;
  color: var(--fiq-copy);
  font-size: 0.94rem;
}

.pricing-stage-card li::before {
  content: "•";
  color: #f97316;
  font-weight: 900;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.signup-aside {
  position: sticky;
  top: 7rem;
}

.checklist {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--fiq-copy);
}

.checklist li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 0.55rem;
  border-radius: 999px;
  background: #f97316;
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.12);
  margin-top: 0.42rem;
}

.quote-card {
  padding: 1.2rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}

.quote-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .editorial-grid--hero,
  .module-feature,
  .module-feature:nth-child(even),
  .signup-shell,
  .pricing-stage-grid {
    grid-template-columns: 1fr;
  }

  .module-feature:nth-child(even) .module-feature__copy,
  .module-feature:nth-child(even) .module-feature__visual {
    order: initial;
  }

  .signup-aside {
    position: static;
  }

  .hero-stack {
    min-height: 32rem;
  }

  .mesh-lines {
    inset: -1rem -0.5rem 0;
    opacity: 0.78;
  }

  .hero-ambient--cool {
    right: -3rem;
    width: 22rem;
    height: 22rem;
  }

  .hero-surface--main {
    inset: 4rem 0 0 0;
  }

  .hero-surface--note,
  .hero-surface--metric {
    width: 14rem;
  }
}

@media (max-width: 768px) {
  .marketing-shell::before,
  .marketing-shell::after {
    display: none;
  }

  .site-atmosphere {
    background:
      radial-gradient(circle at 20% 12%, rgba(249, 115, 22, 0.12), transparent 16rem),
      radial-gradient(circle at 80% 18%, rgba(148, 163, 184, 0.12), transparent 14rem),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  }

  .module-stat-strip {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 26rem;
  }

  .hero-surface--note {
    top: 0;
    left: 0;
  }

  .hero-surface--main {
    inset: 3.5rem 0 0 0.75rem;
  }

  .hero-surface--metric {
    right: 0;
    bottom: -0.75rem;
  }

  .mesh-lines {
    inset: 1rem 0 2rem;
    opacity: 0.46;
    mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.82), transparent 80%);
  }

  .mesh-lines::after {
    opacity: 0.22;
  }

  .hero-ambient {
    filter: blur(24px);
  }

  .hero-ambient--warm {
    top: 0;
    left: -4rem;
    width: 15rem;
    height: 15rem;
  }

  .hero-ambient--cool {
    top: 3rem;
    right: -4rem;
    width: 16rem;
    height: 16rem;
  }
}
