/* ==========================================================================
   FixMySender Landing Page Styles
   Scoped to .landing-page to avoid conflicts with base.html inline styles.
   See DESIGN.md for design system reference.
   ========================================================================== */

/* --- Typography overrides (landing page only) --- */
.landing-page {
  font-family: 'DM Sans', sans-serif;
}
.landing-page .landing-hero h1,
.landing-page .landing-section h2,
.landing-page .landing-final-cta h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Section rhythm --- */
.landing-section {
  padding: 52px 0;
}
.landing-section-alt {
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-left: -15px;
  margin-right: -15px;
  padding-left: 15px;
  padding-right: 15px;
}

/* --- Hero overrides --- */
.landing-page .landing-hero {
  padding: 80px 0 60px;
}
.landing-page .landing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}
.landing-page .landing-hero .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 22px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.landing-page .landing-hero .micro-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 22px;
}
.landing-page .landing-hero .badge-lite {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0.9;
  margin: 4px 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* --- Hero: inline free checker (the hero's focal point) --- */
.landing-page .hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 18px;
}

.hero-checker {
  max-width: 600px;
  margin: 28px auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 24px 50px rgba(16, 24, 64, 0.30);
}
.hero-checker-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.hero-checker-field {
  flex: 1 1 auto;
  min-width: 0; /* critical: lets the field shrink so the button never overflows */
  display: flex;
  align-items: center;
  background: #f6f7f9;
  border: 1px solid #e9ecef;
  border-radius: 9999px;
  padding: 0 8px 0 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero-checker-field:focus-within {
  border-color: #1b84e7;
  box-shadow: 0 0 0 3px rgba(27, 132, 231, 0.15);
  background: #fff;
}
.hero-checker-at {
  color: #9aa1ab;
  font-weight: 700;
  font-size: 1.05rem;
  margin-right: 8px;
  flex-shrink: 0;
}
.hero-checker-input {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  color: #1d2124;
  padding: 16px 4px;
  min-width: 0;
}
.hero-checker-input::placeholder {
  color: #9aa1ab;
}
.hero-checker-btn {
  flex: 0 0 auto;
  white-space: nowrap; /* button text never wraps; field shrinks instead */
  border: 0;
  background: #343a40;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 28px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hero-checker-btn:hover {
  background: #1d2124;
}
.hero-checker-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.hero-checker-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  padding: 4px 6px 2px;
  font-size: 0.82rem;
  color: #6b7280;
}
.hero-checker-trust i {
  color: #00d26a;
  margin-right: 5px;
}

.hero-secondary {
  margin-top: 22px;
}
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 6px;
  transition: color 0.15s ease;
}
.hero-secondary-link:hover {
  color: #fff;
}
.hero-secondary-link .arr {
  transition: transform 0.15s ease;
}
.hero-secondary-link:hover .arr {
  transform: translateX(3px);
}
.hero-badges {
  margin-top: 34px;
  text-align: center;
}

/* --- Hero two-column layout (mobile-first: single column, centered) --- */
.hero-col-left {
  text-align: center;
}

/* Sample product preview (desktop-only decoration; mirrors the real result) */
.hero-sample {
  display: none;
  background: #fff;
  border-radius: 16px;
  padding: 22px 24px;
  text-align: left;
  color: #343a40;
  box-shadow: 0 24px 50px rgba(16, 24, 64, 0.3);
}
.hero-sample-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f1f3f5;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 14px;
}
.hero-sample-domain {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 14px;
}
.hero-sample-at {
  color: #9aa1ab;
  margin-right: 2px;
}
.hero-sample-verdict {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff1f2;
  color: #9f1239;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
}
.hero-sample-verdict i {
  color: #ff3b57;
  font-size: 1.15rem;
}
.hero-sample-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.hero-sample-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-top: 1px solid #f0f1f3;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-sample-list li:first-child {
  border-top: 0;
}
.hero-sample-list li i {
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-sample-list li.ok i {
  color: #00d26a;
}
.hero-sample-list li.bad i {
  color: #ff3b57;
}
.hero-sample-list li .lbl {
  flex: 1;
}
.hero-sample-list li .st {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.hero-sample-list li.ok .st {
  color: #00a85a;
}
.hero-sample-list li.bad .st {
  color: #ff3b57;
}
.hero-sample-foot {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.5;
  padding-top: 4px;
}

/* Desktop: two real columns, left-aligned, content fills the container width */
@media (min-width: 992px) {
  .landing-page .landing-hero {
    padding: 88px 0 72px;
  }
  /* Center the columns for the balanced default (sample) state; top-align once
     a real result renders (it can be much taller than the left column). */
  .hero-row {
    align-items: center;
  }
  .hero-row.has-result {
    align-items: flex-start;
  }
  .hero-col-left {
    text-align: left;
    padding-right: 24px;
  }
  .landing-page .landing-hero .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 540px;
  }
  .hero-checker {
    max-width: none;
    margin: 28px 0 0;
  }
  .hero-checker-trust {
    justify-content: flex-start;
  }
  .hero-secondary {
    text-align: left;
  }
  .hero-result {
    max-width: none;
    margin: 0;
  }
  .hero-sample {
    display: block;
  }
}

/* Spread the hero wider than the default 1140px container on large screens so it
   fills the real estate (the rest of the site keeps the standard container). */
@media (min-width: 1200px) {
  .landing-page .landing-hero > .container {
    max-width: 1320px;
  }
}

/* --- Inline result card --- */
.hero-result {
  max-width: 600px;
  margin: 18px auto 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
.hero-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-result-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  text-align: left;
  color: #343a40;
  box-shadow: 0 20px 45px rgba(16, 24, 64, 0.28);
}
.hero-result-card--error {
  text-align: center;
  color: #9f1239;
  font-weight: 600;
}
.hero-verdict {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.hero-verdict code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.hero-verdict i {
  font-size: 1.25rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.hero-verdict--fail {
  background: #fff1f2;
  color: #9f1239;
}
.hero-verdict--fail i {
  color: #ff3b57;
}
.hero-verdict--pass {
  background: #ecfdf3;
  color: #066e3a;
}
.hero-verdict--pass i {
  color: #00d26a;
}
.hero-records {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-record {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 4px;
  border-top: 1px solid #f0f1f3;
}
.hero-record:first-child {
  border-top: 0;
}
.hero-record-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 1px;
}
.hero-record--correct .hero-record-icon {
  color: #00d26a;
}
.hero-record--missing .hero-record-icon {
  color: #ff3b57;
}
.hero-record--wrong .hero-record-icon {
  color: #f59e0b;
}
.hero-record-main {
  flex: 1;
  min-width: 0;
}
.hero-record-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}
.hero-record-opt {
  font-weight: 500;
  font-size: 0.78rem;
  color: #9aa1ab;
}
.hero-record-why {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 1px;
  line-height: 1.45;
}
.hero-record-value {
  display: inline-block;
  margin-top: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #343a40;
  background: #f8f9fa;
  border: 1px solid #eceef1;
  padding: 4px 8px;
  border-radius: 6px;
  word-break: break-all;
  max-width: 100%;
}
.hero-record-status {
  flex-shrink: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding-top: 2px;
}
.hero-record--correct .hero-record-status {
  color: #00d26a;
}
.hero-record--missing .hero-record-status {
  color: #ff3b57;
}
.hero-record--wrong .hero-record-status {
  color: #d97706;
}
.hero-reveal {
  margin-top: 18px;
  padding: 16px;
  background: #f8f9fa;
  border: 1px solid #eceef1;
  border-radius: 12px;
}
.hero-reveal-copy {
  font-size: 0.9rem;
  color: #374151;
  margin: 0 0 12px;
  line-height: 1.5;
}
.hero-reveal-err {
  color: #9f1239;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.hero-reveal-form {
  display: flex;
  gap: 8px;
}
.hero-reveal-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dee2e6;
  border-radius: 9999px;
  padding: 11px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
}
.hero-reveal-input:focus {
  border-color: #1b84e7;
  box-shadow: 0 0 0 3px rgba(27, 132, 231, 0.15);
}
.hero-reveal-btn {
  flex-shrink: 0;
  border: 0;
  background: #343a40;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0 20px;
  border-radius: 9999px;
  cursor: pointer;
}
.hero-reveal-btn:hover {
  background: #1d2124;
}
.hero-result-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f1f3;
}
.hero-result-fix {
  background: #343a40;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 11px 24px;
  border-radius: 9999px;
  text-decoration: none;
}
.hero-result-fix:hover {
  background: #1d2124;
  color: #fff;
  text-decoration: none;
}
.hero-result-monitor {
  color: #1b84e7;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.hero-result-monitor:hover {
  text-decoration: underline;
}
.hero-result-again {
  margin-top: 14px;
  text-align: center;
}
.hero-result-again a {
  color: #6b7280;
  font-size: 0.85rem;
}

/* --- Problem Recognition --- */
.landing-section .section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  max-width: 720px;
  margin: 16px auto 0;
}

/* Cost anchoring callout */
.cost-callout {
  background: #f8f9fa;
  border-left: 3px solid #343a40;
  padding: 26px 22px;
  border-radius: 0 8px 8px 0;
  max-width: 720px;
  margin: 30px auto 0;
}
/* When inside alt (gray) section, use white bg */
.landing-section-alt .cost-callout {
  background: #ffffff;
}
.cost-callout h4 {
  font-weight: 700;
  color: #343a40;
  margin-bottom: 10px;
  font-size: 1rem;
}
.cost-callout .cost-items {
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 14px;
}
.cost-callout .cost-anchor {
  font-weight: 700;
  color: #343a40;
  font-size: 1.05rem;
}

/* --- How It Works --- */
.landing-page .step-card {
  text-align: center;
}
.landing-page .step-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
}
.landing-page .step-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #374151;
}
.landing-page .howitworks-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Before/After Cards --- */
.before-after-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  max-width: 800px;
  margin: 30px auto 0;
}
.before-after-card {
  flex: 1;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 26px 22px;
  position: relative;
}
.before-after-card--failed {
  border-left: 3px solid #ff3b57;
}
.before-after-card--verified {
  border-left: 3px solid #00d26a;
}
.before-after-card .ba-header {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.before-after-card--failed .ba-header {
  color: #ff3b57;
}
.before-after-card--verified .ba-header {
  color: #00d26a;
}
.before-after-card .ba-domain {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}
.before-after-card .ba-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #343a40;
}
.before-after-card .ba-icon {
  width: 22px;
  text-align: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.before-after-card--failed .ba-icon {
  color: #ff3b57;
}
.before-after-card--verified .ba-icon {
  color: #00d26a;
}
.before-after-card .ba-label {
  flex: 1;
  font-weight: 500;
}
.before-after-card .ba-status {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: right;
}
.before-after-card--failed .ba-status {
  color: #ff3b57;
}
.before-after-card--verified .ba-status {
  color: #00d26a;
}
.before-after-card .ba-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.before-after-card--failed .ba-footer {
  color: #ff3b57;
}
.before-after-card--verified .ba-footer {
  color: #00d26a;
}

/* Arrow divider between cards (desktop only) */
.before-after-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #6b7280;
  flex-shrink: 0;
  width: 40px;
}

/* --- Browser Chrome Screenshot Frame --- */
.browser-chrome {
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.browser-chrome-bar {
  background: #f0f0f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.browser-chrome-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.browser-chrome-dot--red { background: #ff3b57; }
.browser-chrome-dot--yellow { background: #f59e0b; }
.browser-chrome-dot--green { background: #00d26a; }
.browser-chrome img {
  display: block;
  width: 100%;
  height: auto;
}
/* Placeholder for when screenshot not yet available */
.browser-chrome-placeholder {
  background: #f8f9fa;
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
  border-top: 1px solid #e9ecef;
}

/* --- Product proof caption --- */
.proof-caption {
  text-align: center;
  max-width: 720px;
  margin: 30px auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}

/* --- Why / Comparison table refinements --- */
.landing-page .dp-compare {
  overflow: visible;
}
.landing-page .dp-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Pricing title should use display font per DESIGN.md */
.landing-page .dp-pricing-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.landing-page .founder-credibility {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  max-width: 720px;
  margin: 0 auto 30px;
  text-align: center;
  line-height: 1.6;
}

/* --- Final CTA --- */
.landing-final-cta {
  background: #343a40;
  color: #fff;
  padding: 60px 0;
  margin-top: 52px;
  text-align: center;
}
.landing-final-cta h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 14px;
}
.landing-final-cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.landing-final-cta .btn-final-cta {
  display: inline-block;
  background: #fff;
  color: #343a40;
  font-weight: 900;
  padding: 14px 40px;
  border-radius: 9999px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.landing-final-cta .btn-final-cta:hover {
  background: #e9ecef;
  color: #1d2124;
  text-decoration: none;
}
.landing-final-cta .risk-reversal {
  margin-top: 18px;
  font-size: 0.85rem;
  opacity: 0.75;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* --- Sticky CTA Bar --- */
.sticky-cta {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #343a40;
  color: #fff;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1030;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta.visible.hidden-at-pricing {
  transform: translateY(-100%);
}
.sticky-cta-text {
  margin-right: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}
.landing-page .sticky-cta .btn.sticky-cta-btn {
  background: #fff;
  color: #343a40;
  font-weight: 900;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.85rem;
  text-decoration: none;
}
.landing-page .sticky-cta .btn.sticky-cta-btn:hover {
  background: #e9ecef;
  text-decoration: none;
}

/* --- FAQ in landing context --- */
.landing-page .faq-shell .section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Section titles --- */
.landing-section h2 {
  font-weight: 800;
  color: #343a40;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}
.landing-section .section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 720px;
  margin: 8px auto 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .landing-page .landing-hero h1 {
    font-size: 2rem;
  }
  .landing-page .landing-hero {
    padding: 50px 0 40px;
  }
  .landing-section {
    padding: 36px 0;
  }

  /* Before/After stacks vertically */
  .before-after-wrap {
    flex-direction: column;
    gap: 16px;
  }
  .before-after-arrow {
    display: none;
  }

  /* Cards */
  .before-after-card {
    padding: 20px 16px;
  }
  .cost-callout {
    padding: 20px 16px;
  }

  /* Sticky CTA → bottom bar on mobile */
  .sticky-cta {
    top: auto;
    bottom: 0;
    transform: translateY(100%);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sticky-cta.visible {
    transform: translateY(0);
  }
  .sticky-cta.visible.hidden-at-pricing {
    transform: translateY(100%);
  }

  /* Final CTA */
  .landing-final-cta {
    padding: 40px 0;
    margin-top: 36px;
  }
  .landing-final-cta h2 {
    font-size: 1.6rem;
  }
}

/* Stack the inline checker below the lg breakpoint so the input stays
   full-width on tablets (the Bootstrap container is only 540px from 576-767px,
   which would otherwise squeeze the input). Guarantees a generous field and no
   button overflow at every width. */
@media (max-width: 767px) {
  .hero-checker-form {
    flex-direction: column;
  }
  .hero-checker-field {
    border-radius: 12px;
    padding: 2px 8px 2px 16px;
  }
  .hero-checker-input {
    padding: 14px 6px;
  }
  .hero-checker-btn {
    padding: 14px 26px;
    width: 100%;
  }
  .hero-reveal-form {
    flex-direction: column;
  }
  .hero-reveal-btn {
    padding: 12px 20px;
  }
}

@media (max-width: 575px) {
  .landing-page .landing-hero .badge-lite {
    font-size: 0.75rem;
    margin: 3px 4px;
    padding: 3px 8px;
  }
  .hero-checker-trust {
    gap: 8px 16px;
  }
  /* Icon + label carry status on the narrowest screens */
  .hero-record-status {
    display: none;
  }
}
