/* =================================================================
   Crash2Claim — Homepage / Brand Site Styles
   -----------------------------------------------------------------
   Deliberately SEPARATE from styles.css (old case-eval funnel,
   archived) and styles-apply.css (/apply, must never be touched).
   Shares the same design tokens so the brand stays consistent, but
   nothing here can affect either of those pages, and nothing there
   can affect this one.
   ================================================================= */

:root {
  --navy: #0f2540;
  --navy-2: #16324f;
  --coral: #ff5a36;
  --coral-dark: #e04321;
  --teal: #0ea5a4;
  --teal-tint: #eafbfa;
  --gray-50: #f7f9fc;
  --gray-100: #eef1f6;
  --gray-200: #dfe4ec;
  --gray-400: #98a2b3;
  --gray-600: #5b6472;
  --white: #ffffff;
  --lblue: #eaf4fb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 12px 32px rgba(15, 37, 64, 0.1);
  --shadow-soft: 0 4px 16px rgba(15, 37, 64, 0.08);
  --max-width: 1280px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.hp-page {
  font-family: var(--font);
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.hp-page img,
.hp-page svg {
  display: block;
  max-width: 100%;
}

.hp-page button {
  font-family: inherit;
}

.hp-page a {
  color: inherit;
}

.hp-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--coral);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
  font-weight: 700;
}
.hp-skip-link:focus {
  left: 0;
}

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

/* ---------------------------------------------------------------
   Sticky nav
   --------------------------------------------------------------- */
.hp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-100);
}

.hp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.hp-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-decoration: none;
  flex: none;
}

.hp-wordmark .hp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-size: 21px;
  font-weight: 800;
  margin: 0 2px;
}

.hp-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hp-nav-link {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  opacity: 0.85;
}
.hp-nav-link:hover {
  opacity: 1;
  color: var(--coral);
}

.hp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.hp-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 90, 54, 0.35);
}

.hp-hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hp-hamburger:hover {
  background: var(--gray-100);
}
.hp-hamburger span,
.hp-hamburger span::before,
.hp-hamburger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease;
}
.hp-hamburger span::before,
.hp-hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.hp-hamburger span::before {
  top: -6px;
}
.hp-hamburger span::after {
  top: 6px;
}

.hp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 18px;
  border-top: 1px solid var(--gray-100);
}
.hp-mobile-menu.open {
  display: flex;
}
.hp-mobile-menu .hp-nav-link {
  padding: 12px 4px;
  border-bottom: 1px solid var(--gray-100);
  opacity: 1;
}
.hp-mobile-menu .hp-nav-cta {
  margin-top: 10px;
  justify-content: center;
}

@media (max-width: 860px) {
  .hp-nav-links {
    display: none;
  }
  .hp-hamburger {
    display: inline-flex;
  }
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hp-hero {
  background: linear-gradient(180deg, var(--lblue) 0%, var(--white) 100%);
  padding: 52px 0 40px;
  text-align: center;
}

.hp-hero-eyebrow,
.hp-eyebrow-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-tint);
  border: 1px solid #b9e8e6;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hp-hero-headline {
  font-size: clamp(32px, 6.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--navy);
}

.hp-hero-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 8px;
  line-height: 1.5;
}

.hp-hero-secondary {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 32px;
}

.hp-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hp-nav-inner {
    position: relative;
    justify-content: flex-end;
  }
  /* Scoped to the header nav only. Previously this was a bare
     .hp-wordmark selector, which also matched the footer's reuse of
     the same class and absolutely-positioned/oversized the footer
     logo on top of the footer copy. See .hp-footer-brand rules below
     for the footer's own, separately-scoped mobile treatment. */
  .hp-nav-inner .hp-wordmark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 29px;
  }
  .hp-nav-inner .hp-wordmark .hp-badge {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hp-btn:hover {
  transform: translateY(-1px);
}
.hp-btn.hp-btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.hp-btn.hp-btn-primary:hover {
  box-shadow: 0 10px 24px rgba(15, 37, 64, 0.3);
}
.hp-btn.hp-btn-secondary {
  background: var(--white);
  color: var(--coral);
  border-color: var(--coral);
}
.hp-btn.hp-btn-secondary:hover {
  background: #fff5f2;
}

/* ---------------------------------------------------------------
   Section shell
   --------------------------------------------------------------- */
.hp-section {
  padding: 64px 0;
}
.hp-section-alt {
  background: transparent;
}
.hp-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.hp-section-navy {
  background: linear-gradient(180deg, var(--lblue) 0%, var(--white) 100%);
  padding: 96px 0 68px;
}
.hp-section-navy .hp-section-title {
  color: var(--navy);
}
.hp-section-navy .hp-section-sub {
  color: var(--gray-600);
}
.hp-section-navy .hp-swipe-hint {
  color: var(--gray-400);
}
.hp-section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 12px;
}
/* ---------------------------------------------------------------
   Why Crash2Claim (Option J — Crash2Claim Explainer)
   Subtle three-step progression rail: Scale -> Aftermath -> Story.
   --------------------------------------------------------------- */
.hp-intro-j {
  padding: 40px 0 36px;
  background: var(--lblue);
}
.hp-intro-j-inner {
  max-width: 1150px;
  margin: 0 auto;
}
.hp-intro-j-headline {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 14px auto 28px;
  max-width: 640px;
  text-align: center;
}
.hp-intro-j-rail-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.hp-intro-j-step {
  display: flex;
  gap: 20px;
}
.hp-intro-j-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 12px;
  flex-shrink: 0;
}
.hp-intro-j-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 5px;
}
.hp-intro-j-line {
  flex: 1;
  width: 1px;
  background: rgba(15, 37, 64, 0.14); /* darkened for contrast vs the lblue section background */
  margin: 4px 0;
}
.hp-intro-j-content {
  padding-bottom: 20px;
  flex: 1;
}
.hp-intro-j-step-last .hp-intro-j-content {
  padding-bottom: 0;
}
.hp-intro-j-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 6px;
}
.hp-intro-j-stat {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
  margin: 0;
  line-height: 1.5;
}
.hp-intro-j-content p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.hp-section-sub {
  font-size: 17px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   Featured stories carousel
   --------------------------------------------------------------- */
.hp-carousel-wrap {
  position: relative;
}

.hp-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.hp-carousel::-webkit-scrollbar {
  height: 8px;
}
.hp-carousel::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 8px;
}

/* REDESIGN — typographic story cards (replaces the former AI-portrait
   photo/avatar/play-button treatment). No images are loaded for these
   cards at all: the card face is pure CSS (brand gradient + a subtle
   road-line texture) plus editorial typography (quote mark, hook line,
   tag, state, "Story coming soon"). Card size/spacing/typography
   intentionally match the approved "Preview A: Typographic Story
   Carousel" concept exactly. Cards are plain, non-interactive list
   items (see index.html) — no cursor:pointer, no click target. */
.hp-story-card {
  scroll-snap-align: start;
  flex: none;
  width: 220px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal) 140%);
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  color: var(--white);
}
@media (max-width: 640px) {
  .hp-story-card {
    width: 58vw;
    min-width: 190px;
    max-width: 240px;
  }
}

/* Subtle road/lane-line texture — abstract, brand-colored, no imagery. */
.hp-story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 2px, transparent 2px, transparent 34px),
    linear-gradient(0deg, rgba(255, 90, 54, 0.1), transparent 55%);
  pointer-events: none;
}

.hp-story-quotemark {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
  opacity: 0.9;
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
}

.hp-story-quote {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 auto;
  position: relative;
  z-index: 1;
}

.hp-story-meta {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hp-story-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
}

.hp-story-state {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.hp-story-cta {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}


.hp-carousel-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.hp-carousel-arrow svg {
  width: 17px;
  height: 17px;
}
.hp-carousel-arrow:hover {
  background: var(--gray-50);
}
.hp-carousel-arrow.prev {
  left: -14px;
}
.hp-carousel-arrow.next {
  right: -14px;
}
@media (max-width: 860px) {
  .hp-carousel-arrow {
    display: none;
  }
}

.hp-swipe-hint {
  text-align: center;
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
  display: none;
}
@media (max-width: 640px) {
  .hp-swipe-hint {
    display: block;
  }
}

/* ---------------------------------------------------------------
   Categories
   --------------------------------------------------------------- */
.hp-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hp-category-chip {
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* ---------------------------------------------------------------
   Editorial cards ("What People Talk About")
   --------------------------------------------------------------- */
.hp-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.hp-editorial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
}
.hp-editorial-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.hp-editorial-card-icon svg {
  width: 22px;
  height: 22px;
}
.hp-editorial-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--navy);
}
.hp-editorial-card p {
  font-size: 14.5px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   How it works
   --------------------------------------------------------------- */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.hp-step {
  text-align: center;
  padding: 8px;
}
.hp-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.hp-step h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--navy);
}
.hp-step p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   About
   --------------------------------------------------------------- */
.hp-about {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hp-about p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0 0 16px;
}
.hp-about .hp-about-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
}
.hp-about-link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Testimonials
   --------------------------------------------------------------- */
.hp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.hp-testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.hp-testimonial-tag {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.hp-testimonial-quote {
  font-size: 15px;
  color: var(--navy);
  line-height: 1.6;
  margin: 6px 0 18px;
}
.hp-testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lblue);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.hp-testimonial-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin: 0;
}
.hp-testimonial-state {
  font-size: 12.5px;
  color: var(--gray-400);
  margin: 0;
}

/* ---------------------------------------------------------------
   Share your story CTA band
   --------------------------------------------------------------- */
.hp-cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 72px 0;
}
.hp-cta-band .hp-section-title {
  color: var(--white);
}
.hp-cta-band-sub {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 14px;
  font-size: 16px;
  line-height: 1.5;
}
.hp-cta-band-emphasis {
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto 26px;
  line-height: 1.4;
}
.hp-cta-band-fine {
  color: rgba(255, 255, 255, 0.55);
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.hp-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  padding: 48px 0 32px;
}
.hp-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.hp-footer-brand {
  max-width: 320px;
}
.hp-footer-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin: 10px 0 0;
  line-height: 1.5;
}
.hp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.hp-footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin: 0 0 12px;
}
.hp-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 10px;
  opacity: 0.85;
}
.hp-footer-col a:hover {
  opacity: 1;
  color: var(--coral);
}
.hp-footer-social {
  display: flex;
  gap: 10px;
}
.hp-footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.hp-footer-social a:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--white);
}
.hp-footer-social svg {
  width: 16px;
  height: 16px;
}
.hp-footer-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.5;
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  margin: 0;
}

/* Mobile-only footer layout fix. Reorders the description copy above
   the logo (via flex + order, no HTML change) so the visual sequence
   reads: description, spacing, logo, spacing, social icons — all in
   normal document flow, horizontally centered. The logo itself is
   scaled down to a footer-appropriate size (it's a text+badge
   wordmark, not an image, so there's no literal max-width to set;
   this is the visual equivalent of a small footer logo rather than
   the larger header-sized one). No absolute/fixed positioning,
   negative margins, or transforms are used anywhere in this block. */
@media (max-width: 640px) {
  .hp-footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hp-footer-brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hp-footer-brand .hp-wordmark {
    order: 2;
    font-size: 22px;
    margin-top: 18px;
  }
  .hp-footer-brand .hp-wordmark .hp-badge {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .hp-footer-desc {
    order: 1;
    margin-top: 0;
  }
  .hp-footer-social {
    order: 3;
    justify-content: center;
    margin-top: 20px !important;
  }
  .hp-footer-links {
    justify-content: center;
    text-align: center;
    margin-top: 8px;
  }
  .hp-footer-col a {
    margin-bottom: 8px;
  }
}

/* ---------------------------------------------------------------
   Utility
   --------------------------------------------------------------- */
.hp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
