/* ============================================================
   landing.css — Landing / home page styles
   ============================================================ */

body.landing-page {
  overflow: auto;
  background: var(--white);
  display: block;
}

.landing-page .app-header {
  height: var(--header-height);
  padding: 0 30px;
}

/* ============================================================
   HERO
   ============================================================ */
.landing-main { min-height: calc(100vh - var(--header-height)); }

.landing-hero {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(61,34,128,0.62) 0%, rgba(42,20,96,0.72) 60%, rgba(28,12,72,0.82) 100%),
    url('../assets/Philadelphia.jpg') center/cover no-repeat;
  color: var(--white);
  min-height: 38vh;
}

@media (max-width: 900px) {
  .landing-hero { flex-direction: column; min-height: auto; }
}

/* ── Hero stats panel (right column) ── */
.hero-stats-panel {
  order: 2;
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.14);
}

.hero-stat-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.hero-stat-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--bell-yellow);
  border-radius: 0 2px 2px 0;
  opacity: 0.85;
}

.hero-stat-row:last-child {
  border-bottom: none;
}

.hero-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero-stats-panel {
    order: 2;
    flex: none;
    flex-direction: row;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.18);
    width: 100%;
  }
  .hero-stat-row {
    flex: 1;
    padding: 20px 16px;
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    text-align: center;
  }
  .hero-stat-row::before { display: none; }
  .hero-stat-row:last-child { border-right: none; }
  .hero-stat-value { font-size: 28px; letter-spacing: 0; }
  .hero-stat-label { font-size: 9px; }
}

@media (max-width: 540px) {
  .hero-stats-panel {
    flex-wrap: wrap;
    padding-bottom: 64px;
  }
  .hero-stat-row { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .hero-stat-row:nth-child(even) { border-right: none; }
  .hero-stat-row:nth-child(3),
  .hero-stat-row:nth-child(4) { border-bottom: none; }
  .hero-stat-value { font-size: 26px; }
}

/* ── Hero curved bottom ── */
.hero-curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: 42px;
}

.hero-content {
  order: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 48px 70px 64px;
  max-width: 680px;
}

@media (max-width: 900px) {
  .hero-content { padding: 48px 28px 36px; max-width: none; }
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-ben-franklin);
  margin-bottom: 14px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--white);
  margin-bottom: 18px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-title { font-size: clamp(34px, 7.2vw, 40px); }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(24px, 7.4vw, 30px); }
}

@media (max-width: 540px) {
  .hero-content {
    padding: 42px 24px 34px;
  }

  .hero-title {
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.18;
  }

  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
  }
}

@media (max-width: 390px) {
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-title {
    font-size: clamp(18px, 5.6vw, 22px);
  }
}

.hero-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s;
  border: 2px solid transparent;
}

.btn-hero--primary {
  background: var(--bell-yellow);
  color: var(--dark-ben-franklin);
  border-color: var(--bell-yellow);
}
.btn-hero--primary:hover {
  background: #e0b500;
  border-color: #e0b500;
}

.btn-hero--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-hero--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* Hero visual */
.hero-visual {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.risk-bar-visual {
  display: flex;
  width: 100%;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.risk-bar-seg {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}

.risk-bar-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.risk-bar-caption {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-align: center;
  font-style: italic;
}


/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.feature-section,
.how-section,
.risk-section {
  padding: 56px 64px;
}

.how-section {
  padding-top: 28px;
  padding-bottom: 30px;
}

@media (max-width: 900px) {
  .feature-section, .how-section, .risk-section { padding: 36px 24px; }
}

.feature-section { background: var(--white); border-top: 1px solid var(--panel-border); }
.how-section     { background: var(--ghost-gray); border-bottom: 1px solid var(--panel-border); }
.risk-section    { background: var(--white); }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-ben-franklin);
  margin-bottom: 26px;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.feature-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.feature-card--link:hover {
  box-shadow: 0 6px 24px rgba(61,34,128,0.12);
  transform: translateY(-2px);
  border-color: var(--ben-franklin);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon--blue  { background: var(--light-blue);  color: var(--dark-ben-franklin); }
.feature-icon--orange{ background: rgba(249,147,0,0.12); color: #b06000; }
.feature-icon--green { background: #d4f5d0; color: var(--phanatic-green); }
.feature-icon--gray  { background: var(--ghost-gray); color: var(--dark-gray); }

.feature-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 10px;
}

.feature-body {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--ben-franklin);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 180px;
  padding: 0 14px;
}

.how-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-ben-franklin);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.how-step-arrow {
  font-size: 22px;
  color: var(--sidewalk);
  align-self: center;
  padding: 0 4px;
  margin-top: -20px;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .how-step-arrow { display: none; }
  .how-step { min-width: 100%; padding: 0 0 20px; }
}

.how-step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: 6px;
}

.how-step-body {
  font-size: 13px;
  color: var(--medium-gray);
  line-height: 1.65;
}

/* ============================================================
   RISK CARDS
   ============================================================ */
.risk-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .risk-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .risk-cards { grid-template-columns: 1fr; }
}

.risk-card {
  border-radius: var(--radius-md);
  padding: 20px;
  border: 2px solid transparent;
}

.risk-card--low       { background: #e8fae6; border-color: #b9f2b1; }
.risk-card--moderate  { background: #fffde8; border-color: var(--light-bell); }
.risk-card--high      { background: #fff4e5; border-color: rgba(249,147,0,0.3); }
.risk-card--very-high { background: var(--light-red); border-color: rgba(204,48,0,0.2); }

.risk-card-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.risk-card--low       .risk-card-badge { color: var(--phanatic-green); }
.risk-card--moderate  .risk-card-badge { color: #7a5e00; }
.risk-card--high      .risk-card-badge { color: #b06000; }
.risk-card--very-high .risk-card-badge { color: var(--love-park-red); }

.risk-card-pct {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.risk-card--low       .risk-card-pct { color: var(--phanatic-green); }
.risk-card--moderate  .risk-card-pct { color: #7a5e00; }
.risk-card--high      .risk-card-pct { color: #b06000; }
.risk-card--very-high .risk-card-pct { color: var(--love-park-red); }

.risk-card-body {
  font-size: 13px;
  line-height: 1.65;
  color: var(--dark-gray);
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
  background: #2a1660;
  color: rgba(255,255,255,0.6);
  padding: 18px 64px;
}

@media (max-width: 700px) {
  .landing-footer { padding: 18px 24px; }
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-sep { opacity: 0.3; }

.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--white); }
