/* ============================================
   V2 extras — apply-only mode, wordmarks, exit link
   ============================================ */

/* Wordmark fallback for brands/banks — unified mono style */
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
  color: inherit;
  white-space: nowrap;
}
.strip-dark .wordmark { color: #FFF; }

/* Apply-only mode */
.apply-only-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 5;
  pointer-events: none;
}
.apply-only-backdrop::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80vmin; height: 80vmin;
  background: radial-gradient(50% 50% at 50% 50%, var(--accent-glow), transparent 70%);
  filter: blur(60px);
}
.apply-only-backdrop .aob-inner {
  position: absolute;
  left: 50%; top: 44px;
  transform: translateX(-50%);
  color: #FFF;
  font-family: var(--font-display);
}
.apply-only-backdrop .logo { font-size: 22px; color: #FFF; }

body.apply-only-mode { overflow: hidden; }
body.apply-only-mode > :not(.apply-only-backdrop):not(.form-modal):not(.wa-fab):not(.tweaks-panel) {
  display: none !important;
}
body.apply-only-mode .apply-only-backdrop { display: block; }
body.apply-only-mode .form-modal .fm-close { display: none; }
body.apply-only-mode .apply-only-exit { display: inline-flex; }

.apply-only-exit {
  display: none;
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  z-index: 110;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 2px;
  transition: color 220ms var(--ease), border-color 220ms var(--ease);
}
.apply-only-exit:hover { color: #FFF; border-color: #FFF; }

/* "Other brand" card — dashed border, inviting */
.o-card-other {
  background: transparent !important;
  border-style: dashed !important;
  border-color: rgba(0,0,0,0.18) !important;
}
.o-card-other:hover {
  border-style: solid !important;
  border-color: var(--accent) !important;
  background: rgba(229,9,20,0.02) !important;
}
.o-card-other .o-mark .wordmark { color: var(--slate); }
.o-card-other:hover .o-mark .wordmark { color: var(--ink); }

/* ============================================
   Success screen — clean & simple
   ============================================ */
.f-ok {
  text-align: center;
  padding: 36px 8px 8px;
  max-width: 460px;
  margin: 0 auto;
}
.f-ok-badge {
  width: 84px; height: 84px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFF;
  display: grid; place-items: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px rgba(229, 9, 20, 0.28);
  animation: ok-pop 500ms var(--ease-out) backwards;
}
.f-ok-badge svg { width: 44px; height: 44px; }
.f-ok-badge .ring {
  stroke-dasharray: 202; stroke-dashoffset: 202;
  animation: ok-ring 520ms var(--ease) 120ms forwards;
}
.f-ok-badge .check {
  stroke-dasharray: 58; stroke-dashoffset: 58;
  animation: ok-check 380ms var(--ease-out) 540ms forwards;
}
@keyframes ok-pop   { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes ok-ring  { to { stroke-dashoffset: 0; } }
@keyframes ok-check { to { stroke-dashoffset: 0; } }

.f-ok-t {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  animation: ok-in 420ms var(--ease-out) 700ms forwards;
}
.f-ok-d {
  font-size: 16px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(8px);
  animation: ok-in 420ms var(--ease-out) 820ms forwards;
}
.f-ok-ctas {
  opacity: 0;
  transform: translateY(8px);
  animation: ok-in 420ms var(--ease-out) 940ms forwards;
}
.f-ok-ig {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate);
  opacity: 0;
  transform: translateY(8px);
  animation: ok-in 420ms var(--ease-out) 1060ms forwards;
  transition: color 180ms var(--ease);
}
.f-ok-ig:hover { color: var(--accent); }
@keyframes ok-in { to { opacity: 1; transform: none; } }

/* ============================================ Modal — mobile full-screen */
@media (max-width: 600px) {
  .form-modal { padding: 0; }
  .form-modal .fm-box {
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .fm-box .form-host { padding: 72px 20px 24px; }
}

/* ============================================
   MOBILE OPTIMIZATION — 90% of traffic (Meta Ads)
   Treat mobile as the PRIMARY canvas
   ============================================ */
@media (max-width: 768px) {

  /* ----- Global: tighter sections, punchier rhythm ----- */
  .container { padding-left: 20px; padding-right: 20px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: clamp(34px, 9vw, 44px); line-height: 1.02; letter-spacing: -0.035em; }
  .section-sub { font-size: 15px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }

  /* ----- Buttons: thumb-friendly, no wrap ----- */
  .btn { min-height: 48px; font-size: 15px; padding: 0 20px; }
  .btn-lg { min-height: 54px; font-size: 16px; padding: 0 22px; }
  .btn-xl { min-height: 58px; font-size: 17px; padding: 0 24px; }

  /* ----- HERO: compact, full-attention, CTAs above the fold ----- */
  .hero {
    min-height: auto;
    padding: 88px 0 48px; /* room for fixed header */
  }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-left { text-align: left; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-title {
    font-size: clamp(44px, 12vw, 64px) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.045em !important;
    margin-bottom: 14px !important;
  }
  .hero-sub {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-visual {
    order: -1;
    aspect-ratio: 4 / 3;
    min-height: auto;
    max-height: 260px;
  }
  .trust-row { gap: 10px 14px; font-size: 12px; margin-top: 18px; }
  .hero-badge { font-size: 12px; padding: 6px 10px; }

  /* ----- Logo strips (brands/banks): smaller marks, keep scroll ----- */
  .strip-track { gap: 32px; }
  .strip .wordmark { font-size: 18px; }
  .strip-title { font-size: 11px; letter-spacing: 0.16em; }

  /* ----- Qualify/Process/Offer: single column, tighter ----- */
  .q-grid, .p-grid { grid-template-columns: 1fr; gap: 12px; }
  .q-card, .p-card { padding: 20px; }
  .q-card h3, .p-card h3 { font-size: 20px; }

  .o-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .o-card { padding: 18px 14px; }
  .o-card .wordmark { font-size: 20px; }
  .o-cta { font-size: 13px; }

  /* ----- Social proof grid: 2 cols, cleaner on small screens ----- */
  .s-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .s-tile { min-height: 140px; }
  .s-tile-caption { font-size: 12px; padding: 12px; }

  /* ----- Video section ----- */
  .video-wrap { border-radius: 18px; }
  .v-quote { font-size: 18px; line-height: 1.35; padding: 20px; }

  /* ----- FORM: mobile-first, big tap targets ----- */
  .apply-sec { padding-top: 48px; padding-bottom: 48px; }
  .apply-title { font-size: clamp(32px, 9vw, 42px); }

  .f-top { margin-bottom: 20px; }
  .f-prog { height: 4px; }
  .f-prog-label { font-size: 12px; letter-spacing: 0.08em; }

  .f-q { font-size: 22px; line-height: 1.15; margin-bottom: 6px; }
  .f-q-sub { font-size: 14px; margin-bottom: 18px; }
  .f-lab { font-size: 13px; }

  .f-typecards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .f-typecard { padding: 16px 10px; min-height: 92px; }
  .f-typecard .tc-ic svg { width: 42px; height: 22px; }
  .f-typecard .tc-t { font-size: 13px; margin-top: 6px; }

  .f-opts { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .f-opts.c4 { grid-template-columns: repeat(2, 1fr) !important; }
  .f-opt { min-height: 50px; font-size: 14px; padding: 0 10px; }

  .f-2col { grid-template-columns: 1fr; gap: 14px; }
  .f-inp { min-height: 52px; font-size: 16px; /* 16px = no iOS zoom */ padding: 0 14px; }
  .f-field .f-lab { margin-bottom: 6px; }
  .f-consent { font-size: 13px; align-items: flex-start; }
  .f-consent input { margin-top: 3px; flex-shrink: 0; }

  .f-nav { margin-top: 20px; gap: 10px; }
  .f-nav .btn { flex: 1; }
  .f-back { min-width: auto; }

  /* ----- FAQ: tighter, single column ----- */
  .faq-item { padding: 16px 14px; }
  .faq-q { font-size: 15px; }
  .faq-a { font-size: 14px; }

  /* ----- Final CTA ----- */
  .final-cta { padding: 56px 0; }
  .fc-title { font-size: clamp(36px, 10vw, 52px) !important; line-height: 1 !important; }
  .fc-sub { font-size: 15px; }
  .fc-ctas { flex-direction: column; width: 100%; gap: 10px; }
  .fc-ctas .btn { width: 100%; justify-content: center; }

  /* ----- Footer: compact ----- */
  .site-footer { padding: 40px 0 24px; }
  .ft-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .ft-col h4 { font-size: 12px; }
  .ft-disclaim-row { font-size: 11px; line-height: 1.45; }

  /* ----- WhatsApp FAB: prominent, not obtrusive ----- */
  .wa-fab {
    width: 56px; height: 56px;
    right: 16px; bottom: 16px;
  }
  .wa-fab svg { width: 28px; height: 28px; }

  /* ----- Header: clean mobile bar ----- */
  .site-header { height: 60px; }
  .site-header .brand { font-size: 18px; }
  .nav-apply { min-height: 40px; font-size: 13px; padding: 0 14px; }

  /* ----- Modal sheet: already full-screen, polish ----- */
  .fm-box .fm-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .fm-box .form-host { padding: 64px 18px 20px; }

  /* ----- Success: slightly smaller on phones ----- */
  .f-ok { padding: 20px 4px 4px; }
  .f-ok-badge { width: 72px; height: 72px; margin-bottom: 18px; }
  .f-ok-badge svg { width: 38px; height: 38px; }
  .f-ok-t { font-size: 30px; margin-bottom: 10px; }
  .f-ok-d { font-size: 15px; margin-bottom: 20px; }
}

/* ============================================
   Hero portrait — defensive reset on mobile
   ============================================ */
.hero-portrait,
.hero-portrait * {
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}
.hero-portrait::before,
.hero-portrait::after {
  display: none !important;
  content: none !important;
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-title { font-size: 40px !important; }
  .o-grid { grid-template-columns: 1fr; }
  .s-grid { grid-template-columns: 1fr !important; }
  .f-typecards { grid-template-columns: 1fr; }
}

/* Fix iOS input zoom universally */
input, select, textarea { font-size: 16px; }

/* ============================================
   Success-cases images — real client photos
   ============================================ */
.s-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: auto !important;
  gap: 14px !important;
}
@media (max-width: 860px) {
  .s-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 440px) {
  .s-grid { grid-template-columns: 1fr !important; }
}
.s-card {
  aspect-ratio: 1 / 1 !important;
  grid-row: span 1 !important;
  grid-column: span 1 !important;
  height: auto !important;
}
.s-card.tall,
.s-card.wide {
  grid-row: span 1 !important;
  grid-column: span 1 !important;
  aspect-ratio: 1 / 1 !important;
}
.s-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
  transition: transform 600ms var(--ease);
}
.s-card:hover .s-img { transform: scale(1.04); }
.s-card .s-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 60%, transparent 100%);
  z-index: 2;
  color: #fff;
}
.s-card .s-glow { z-index: 1; }
.s-card .s-ph-label { display: none; } /* hide placeholder text when real img present */
