/* landing.css — styles for all new landing-page sections */

/* ===== HERO UPDATES ===== */
.hero-headline-range {
  color: var(--amber);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--amber-light); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.45); color: var(--white); }

/* Nav apply button */
.nav-apply-btn {
  display: inline-block;
  background: var(--amber);
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s;
}
.nav-apply-btn:hover { background: var(--amber-light); }

/* ===== DIFFERENTIATORS ===== */
.differentiators {
  background: rgba(245,158,11,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 24px;
}
.diff-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.differentiators .section-headline { margin-bottom: 52px; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.diff-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 16px;
  padding: 36px 32px;
}
.diff-icon { margin-bottom: 20px; }
.diff-title { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.diff-body { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== COMPARISON TABLE ===== */
.comparison {
  padding: 96px 24px;
  background: var(--navy);
}
.comparison-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.comparison .section-headline { margin-bottom: 12px; }
.comparison .section-sub { margin-bottom: 44px; }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}
.comp-table thead tr { background: rgba(255,255,255,0.05); }
.comp-table th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comp-th-feature { text-align: left; color: var(--cream); }
.comp-th-fpg { color: var(--amber) !important; background: rgba(245,158,11,0.06); }
.comp-table td {
  padding: 14px 16px;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.comp-feature { text-align: left !important; color: var(--cream) !important; font-weight: 500; }
.comp-fpg { background: rgba(245,158,11,0.05); }
.comp-neutral { color: var(--cream) !important; font-size: 13px; }
.check-yes { color: #34d399; font-size: 18px; font-weight: 700; }
.check-no { color: #f87171; font-size: 18px; font-weight: 700; }
.check-partial { color: #fbbf24; font-size: 18px; font-weight: 700; }
.comp-footnote {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}
.comp-cta-row {
  margin-top: 40px;
  text-align: center;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  padding: 96px 24px;
}
.social-proof-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.social-proof .section-headline { margin-bottom: 52px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.proof-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 30px;
}
.proof-icon { margin-bottom: 18px; }
.proof-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.proof-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.proof-tag {
  display: inline-block;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.proof-mission {
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 28px 32px;
  max-width: 700px;
}
.proof-mission-text {
  font-size: 17px;
  color: var(--cream);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 12px;
}
.proof-mission-source {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== APPLY SECTION ===== */
.apply-section {
  padding: 96px 24px;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.apply-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.apply-inner .section-headline { margin-bottom: 12px; }
.apply-inner .section-sub { margin: 0 auto 40px; max-width: 520px; }
.apply-embed-placeholder {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(245,158,11,0.25);
  border-radius: 16px;
  padding: 60px 40px;
}
.embed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.embed-loading p { font-size: 15px; color: var(--text-muted); }

/* ===== DOCUSEAL IFRAME EMBED — Task #1944709 ===== */
.apply-embed-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(245,158,11,0.2);
  background: rgba(255,255,255,0.03);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}
.apply-embed-wrap .docuseal-iframe {
  width: 100%;
  flex: 1;
  min-height: 680px;
  border: none;
  display: block;
}
.apply-embed-wrap .apply-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px;
  background: rgba(255,255,255,0.03);
}
.apply-embed-wrap .apply-fallback p {
  font-size: 15px;
  color: var(--text-muted);
}
/* Show fallback only if iframe fails to load */
.apply-embed-wrap.is-errored .docuseal-iframe { display: none; }
.apply-embed-wrap.is-errored .apply-fallback { display: flex; }

/* ===== FAQ ===== */
.faq {
  padding: 96px 24px;
  background: var(--navy);
}
.faq-inner {
  max-width: 760px;
  margin: 0 auto;
}
.faq .section-headline { margin-bottom: 48px; }
.faq-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 48px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
  background: rgba(255,255,255,0.02);
}
.faq-question {
  display: block;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--amber);
  font-weight: 300;
  transition: transform 0.2s;
}
details[open] .faq-question::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}
.faq-answer strong { color: var(--cream); }
.faq-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.faq-cta p { font-size: 16px; color: var(--text-muted); }

/* ===== STICKY APPLY BAR — mobile ===== */
.sticky-apply-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy-mid);
  border-top: 1px solid rgba(245,158,11,0.3);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: none; /* desktop hides this */
}
.sticky-apply-bar.visible { transform: translateY(0); }
.sticky-apply-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.sticky-apply-text { display: flex; flex-direction: column; }
.sticky-apply-text strong { font-size: 14px; color: var(--white); }
.sticky-apply-sub { font-size: 11px; color: var(--text-muted); }
.sticky-apply-btn {
  flex-shrink: 0;
  background: var(--amber);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
}

/* ===== DESKTOP RIGHT RAIL ===== */
.rail-cta {
  display: none; /* hidden by default, shown on wide screens */
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) translateX(120%);
  z-index: 150;
  width: 220px;
  background: var(--navy-mid);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 16px;
  padding: 24px 20px;
  transition: transform 0.35s ease;
}
.rail-cta.visible { transform: translateY(-50%) translateX(0); }
.rail-amount {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.rail-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber); margin-bottom: 16px; }
.rail-divider { height: 1px; background: var(--border); margin-bottom: 14px; }
.rail-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.rail-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--cream);
}
.rail-btn { width: 100%; text-align: center; justify-content: center; font-size: 13px; padding: 11px 16px; margin-bottom: 10px; }
.rail-advisor-link {
  display: block;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
}
.rail-advisor-link:hover { color: var(--amber); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) {
  .rail-cta { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1180px) {
  .sticky-apply-bar { display: block; }
}
@media (max-width: 768px) {
  .sticky-apply-bar { display: block; }
  .diff-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .apply-inner { text-align: left; }
  .apply-inner .section-sub { margin-left: 0; }
  .faq-inner { max-width: 100%; }
  .comp-table { min-width: 560px; }
}
@media (min-width: 1180px) {
  .sticky-apply-bar { display: none; }
  .rail-cta { display: block; }
}
