/* =========================================================
   Holloway Consumer Research — custom layer
   Loaded after lindy-uikit.css. Three responsibilities:
     1. iOS-style typography + color system
     2. Mobile-first layout (90% of traffic is phones)
     3. Premium scroll-triggered reveal animations
   ========================================================= */

/* ---- Design tokens ------------------------------------- */

:root {
  --brand-900: #15294a;
  --brand-700: #1f3a5f;
  --brand-500: #2a4d7a;
  --brand-100: #e8eef7;
  --ink-900:  #0f172a;
  --ink-700:  #334155;
  --ink-500:  #64748b;
  --ink-300:  #cbd5e1;
  --paper:    #ffffff;
  --paper-50: #f8fafc;
  --shadow-sm: 0 2px 8px -2px rgba(15, 42, 95, 0.08);
  --shadow-md: 0 12px 32px -12px rgba(15, 42, 95, 0.18);
  --shadow-lg: 0 24px 48px -16px rgba(15, 42, 95, 0.22);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Global polish ------------------------------------- */

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  color: var(--ink-700);
  background: var(--paper);
}

p { font-size: 1.05rem; }

h1, h2, h3, h4, h5, h6,
.section-title h3,
.hero-content-wrapper h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--brand-900);
  letter-spacing: -0.025em;
  font-weight: 800;
}

p { color: var(--ink-700); }

a { -webkit-tap-highlight-color: rgba(31, 58, 95, 0.12); }

/* ---- Buttons (brand-tinted, iOS depth) ----------------- */

.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--brand-700) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  transition:
    transform 250ms var(--ease),
    box-shadow 250ms var(--ease),
    background-color 250ms var(--ease);
}
.button:hover {
  background-color: var(--brand-500) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}
.button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.button.button-lg {
  padding: 20px 32px;
  font-size: 22px;
  border-radius: 18px !important;
}
.button .lni { font-size: 0.85em; line-height: 1; }

/* "scroll-top" floating button */
.scroll-top {
  background-color: var(--brand-700) !important;
  border-radius: 50% !important;
  box-shadow: var(--shadow-md);
}

/* ---- Floating Apply CTA (mobile only) ----------------- */

/* Hidden on desktop entirely */
.floating-apply { display: none; }

@media (max-width: 768px) {
  .floating-apply {
    display: flex;
    position: fixed;
    /* Centered with translateX(-50%) so left/right insets can't drift the button.
       Width caps at 460px on bigger phones / tablets so it doesn't span edge-to-edge. */
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 100;
    width: calc(100% - 32px);
    max-width: 460px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--brand-700);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: -0.01em;
    padding: 18px 26px;
    border-radius: 18px;
    /* Layered shadow: brand-tinted ambient halo + sharper drop + hairline border */
    box-shadow:
      0 24px 48px -12px rgba(15, 42, 95, 0.55),
      0 10px 20px -6px rgba(15, 42, 95, 0.35),
      0 0 0 1px rgba(31, 58, 95, 0.08);

    /* Hidden state — must include translateX(-50%) so transform animations don't
       jump the button off-center when (.is-visible) toggles. */
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 36px) scale(0.9);
    pointer-events: none;
    transition:
      opacity 420ms cubic-bezier(.16, 1, .3, 1),
      transform 520ms cubic-bezier(.34, 1.56, .64, 1),
      box-shadow 420ms var(--ease),
      visibility 0s linear 520ms;
    will-change: opacity, transform;
  }
  .floating-apply .lni { font-size: 0.9em; }
  .floating-apply.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
    transition:
      opacity 420ms cubic-bezier(.16, 1, .3, 1),
      transform 520ms cubic-bezier(.34, 1.56, .64, 1),
      box-shadow 420ms var(--ease),
      visibility 0s linear 0s;
  }
  .floating-apply:active {
    transform: translate(-50%, 0) scale(0.96);
    background: var(--brand-500);
    box-shadow:
      0 12px 24px -8px rgba(15, 42, 95, 0.45),
      0 0 0 1px rgba(31, 58, 95, 0.08);
  }
  /* Reserve room at the bottom of the page so the floating CTA never
     permanently obscures the footer copyright/legal content */
  .footer .copyright-wrapper { padding-bottom: 96px; }
}

/* Respect reduced motion — keep centering, drop the spring animation */
@media (prefers-reduced-motion: reduce) {
  .floating-apply { transition: none !important; }
  .floating-apply,
  .floating-apply.is-visible {
    transform: translate(-50%, 0) !important;
  }
}

/* ---- Header --------------------------------------------- */

.header.header-6 {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
  padding: 6px 0;
}
.navbar-brand img { height: 38px; width: auto; }
.toggler-icon { background: var(--brand-700) !important; }

/* ---- Nav links: clean, no template "outline pill" ----- */

.navbar-nav .nav-item .page-scroll {
  color: var(--ink-700) !important;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 8px 14px !important;
  margin: 0 8px;
  position: relative;
  transition: color 200ms var(--ease);
}
.navbar-nav .nav-item .page-scroll:hover { color: var(--brand-700) !important; }
.navbar-nav .nav-item .page-scroll.active {
  color: var(--brand-700) !important;
  background: transparent !important;
  border: 0 !important;
}
.navbar-nav .nav-item .page-scroll.active::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  background: var(--brand-700);
  border-radius: 2px;
}

/* ---- Desktop Apply CTA (header pill) ------------------ */

.apply-cta-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-700);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: background-color 200ms var(--ease),
              transform 200ms var(--ease),
              box-shadow 200ms var(--ease);
}
.apply-cta-desktop:hover {
  background: var(--brand-500);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.apply-cta-desktop:active { transform: translateY(0); }

/* ---- Language toggle (visual only — no real i18n yet) - */

.lang-toggle-li { padding: 0; margin: 0; list-style: none; }

.lang-toggle {
  display: inline-flex;
  background: rgba(15, 42, 95, 0.07);
  border-radius: 10px;
  padding: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--ink-500);
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.lang-toggle button:hover { color: var(--brand-700); }
.lang-toggle button.active {
  background: var(--paper);
  color: var(--brand-900);
  box-shadow: 0 1px 3px rgba(15, 42, 95, 0.14);
}

/* Desktop placement — sits between nav links and Apply pill,
   with breathing room on both sides. */
@media (min-width: 992px) {
  .lang-toggle-li {
    margin-left: 20px !important;
    margin-right: 20px !important;
    align-self: center;
  }
}

/* Mobile placement — full-width inside hamburger menu */
@media (max-width: 991.98px) {
  .lang-toggle-li {
    margin: 16px 0 8px !important;
    padding: 0 !important;
    border-top: 1px solid rgba(15, 42, 95, 0.08);
    padding-top: 16px !important;
  }
  .lang-toggle {
    display: flex;
    width: 100%;
    padding: 4px;
    font-size: 15px;
  }
  .lang-toggle button {
    flex: 1;
    padding: 12px 14px;
  }
}

/* ---- Hamburger button (mobile) ---- */

.hamburger-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 10px 8px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.hamburger-btn .hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--brand-900);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(.22,1,.36,1),
              opacity 200ms ease;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Side drawer (mobile menu) ----
   Slides in from the right. Two layers: backdrop (full-viewport scrim) and
   panel (the actual menu). Both fade/slide via the .is-open class on the
   wrapper. The wrapper is position:fixed at the viewport — it lives OUTSIDE
   the header element specifically so the header's backdrop-filter doesn't
   hijack the containing block. */

.side-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s linear 320ms;
}
.side-menu.is-open {
  pointer-events: auto;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.side-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 95, 0.45);
  opacity: 0;
  transition: opacity 280ms cubic-bezier(.22,1,.36,1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.side-menu.is-open .side-menu-backdrop { opacity: 1; }

.side-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: 86%;
  max-width: 380px;
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(15, 42, 95, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 320ms cubic-bezier(.22,1,.36,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.side-menu.is-open .side-menu-panel { transform: translateX(0); }

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
  flex-shrink: 0;
}
.side-menu-logo { height: 36px; width: auto; }
.side-menu-close {
  appearance: none;
  background: rgba(15, 42, 95, 0.05);
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--brand-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease;
}
.side-menu-close:hover { background: rgba(15, 42, 95, 0.1); }

.side-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.side-menu-link {
  display: block;
  padding: 18px 24px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-900);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 42, 95, 0.05);
  transition: background 180ms ease, color 180ms ease;
}
.side-menu-link:last-child { border-bottom: 0; }
.side-menu-link:active { background: rgba(15, 42, 95, 0.06); }
.side-menu-link.active {
  color: var(--brand-700);
  background: rgba(31, 58, 95, 0.04);
  position: relative;
}
.side-menu-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--brand-700);
  border-radius: 0 3px 3px 0;
}

.side-menu-foot {
  flex-shrink: 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(15, 42, 95, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper-50);
}
.side-menu-foot .lang-toggle {
  display: flex;
  width: 100%;
  padding: 4px;
  font-size: 14px;
}
.side-menu-foot .lang-toggle button {
  flex: 1;
  padding: 11px 14px;
  font-size: 15px;
}
.side-menu-apply {
  display: block;
  background: var(--brand-700);
  color: #fff !important;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 24px -8px rgba(15, 42, 95, 0.4);
  transition: background 200ms ease, transform 150ms ease;
}
.side-menu-apply:active {
  background: var(--brand-500);
  transform: scale(0.985);
  color: #fff !important;
}

/* Lock body scroll while drawer is open — applied by JS */
body.side-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Hide drawer + hamburger on desktop (≥992px) — desktop uses inline nav */
@media (min-width: 992px) {
  .side-menu, .hamburger-btn { display: none !important; }
}

/* ---- Mobile Apply CTA (lives inside hamburger menu) --- */

.nav-item-cta { padding: 18px 0 8px; margin-top: 8px; border-top: 1px solid rgba(15, 42, 95, 0.08); }
.apply-cta-mobile {
  display: block;
  background: var(--brand-700);
  color: #fff !important;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.apply-cta-mobile:active {
  background: var(--brand-500);
  color: #fff !important;
  transform: scale(0.985);
}

/* ---- Hero ---------------------------------------------- */

.hero-content-wrapper h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--brand-900);
}
.hero-content-wrapper p {
  color: var(--ink-700);
  line-height: 1.55;
}
.hero-content-wrapper .hero-lede strong {
  color: var(--brand-900);
  font-weight: 700;
}
.hero-content-wrapper .hero-lede + .hero-lede { margin-top: 14px; }

/* Desktop hero — override lindy-uikit's tall default padding, zero out the
   nested .hero-content-wrapper padding, and vertically center the text column
   so it doesn't float at the top while the bottom-aligned illustration
   stretches the row taller than the copy needs. */
@media (min-width: 769px) {
  .hero-section.hero-style-5 {
    padding-top: 70px !important;
    padding-bottom: 60px !important;
  }
  .hero-section-wrapper-5 .hero-style-5 .hero-content-wrapper {
    padding: 0 !important;
  }
  .hero-section.hero-style-5 > .container > .row {
    align-items: center;
  }
  /* Re-pin the illustration to the bottom of its column even after
     the row gets align-items:center. */
  .hero-section.hero-style-5 .col-lg-6.align-self-end {
    align-self: flex-end !important;
  }
}

/* ---- Section titles ------------------------------------ */

.section-title h3 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section-title p { color: var(--ink-500); line-height: 1.6; }

/* ---- "How it works" cards ------------------------------ */

.single-feature {
  background: var(--paper);
  border: 1px solid rgba(15, 42, 95, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
.single-feature .icon i { color: var(--brand-700); }
.single-feature .content h5 {
  color: var(--brand-900);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.single-feature .content p { color: var(--ink-700); line-height: 1.6; }

@media (hover: hover) and (min-width: 769px) {
  .single-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 768px) {
  .single-feature:active { transform: scale(0.985); }
}

/* ---- About bullets ------------------------------------- */

.about-content-wrapper ul li {
  color: var(--ink-700);
  font-size: 19px;
  line-height: 1.55;
  padding-left: 38px;
  margin-bottom: 16px;
  position: relative;
}
.about-content-wrapper ul li i {
  color: var(--brand-700);
  font-size: 24px;
  position: absolute;
  left: 0;
  top: 2px;
}

/* ---- FAQ accordion (iOS card) -------------------------- */

#faqAccordion .accordion-item {
  border-radius: var(--radius-lg) !important;
  margin-bottom: 14px;
  border: 1px solid rgba(15, 42, 95, 0.08) !important;
  background: var(--paper) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
#faqAccordion .accordion-button {
  background: var(--paper) !important;
  color: var(--brand-900) !important;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  padding: 24px 26px;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
#faqAccordion .accordion-button:not(.collapsed) {
  background: var(--paper) !important;
  color: var(--brand-700) !important;
}
#faqAccordion .accordion-button:focus {
  box-shadow: none !important;
  border-color: transparent !important;
}
#faqAccordion .accordion-body {
  padding: 4px 26px 28px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-700);
}
#faqAccordion .accordion-body p {
  margin-bottom: 14px;
}
#faqAccordion .accordion-body p:last-child {
  margin-bottom: 0;
}
#faqAccordion .accordion-body a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 58, 95, 0.3);
}
#faqAccordion .accordion-body a:hover { border-bottom-color: var(--brand-700); }

/* ---- Contact info card (fix squished icon) ------------- */

.contact-section .left-wrapper {
  background: var(--paper);
  border: 1px solid rgba(15, 42, 95, 0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-section .single-item {
  display: flex !important;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
}
.contact-section .single-item:last-child { border-bottom: 0; }
.contact-section .single-item .icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-100) !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-section .single-item .icon i {
  color: var(--brand-700) !important;
  font-size: 24px;
}
.contact-section .single-item .text {
  flex: 1;
  min-width: 0;
}
.contact-section .single-item .text p {
  margin: 0 0 4px;
  font-size: 19px;
  word-break: break-word;
  line-height: 1.45;
}
.contact-section .single-item .text p:last-child { margin-bottom: 0; }
.contact-section .single-item .text a {
  color: var(--brand-700);
  text-decoration: none;
  font-weight: 500;
}
.contact-section .single-item .text a:hover { color: var(--brand-500); }

/* ---- Form inputs --------------------------------------- */

.contact-section .form-input {
  border-radius: 14px !important;
  border: 1px solid rgba(15, 42, 95, 0.12) !important;
  padding: 18px 22px 18px 52px;
  font-size: 20px;
  background: var(--paper);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.contact-section .form-input:focus {
  outline: none;
  border-color: var(--brand-700) !important;
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.08) !important;
}
.contact-section .single-input { position: relative; margin-bottom: 16px; }
.contact-section .single-input i {
  color: var(--brand-700);
  position: absolute;
  left: 20px;
  top: 20px;
  font-size: 20px;
}
.contact-section textarea.form-input { padding-top: 18px; min-height: 140px; }

/* ---- Legal pages (terms / refund / privacy) ----------- */

.legal-hero {
  padding: 90px 0 30px;
  background: var(--paper-50);
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
}
.legal-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand-900);
  margin-bottom: 8px;
  text-align: center;
}
.legal-meta {
  text-align: center;
  color: var(--ink-500);
  font-size: 15px;
  margin-bottom: 0;
}
.legal-page {
  padding: 56px 0 96px;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
}
.legal-content > p:first-child { font-size: 19px; color: var(--ink-700); }
.legal-content h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-900);
  margin-top: 48px;
  margin-bottom: 14px;
  line-height: 1.25;
}
.legal-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-900);
  margin-top: 32px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.legal-content p { margin-bottom: 16px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin-bottom: 18px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--brand-700); border-bottom: 1px solid rgba(31, 58, 95, 0.3); text-decoration: none; }
.legal-content a:hover { border-bottom-color: var(--brand-700); }
.legal-content strong { color: var(--brand-900); }
.legal-content .all-caps {
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--ink-500);
  background: var(--paper-50);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: block;
  line-height: 1.55;
}
.legal-content .contact-block {
  background: var(--paper-50);
  border: 1px solid rgba(15, 42, 95, 0.06);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-hero { padding: 70px 0 24px; }
  .legal-hero h1 { font-size: 34px; }
  .legal-page { padding: 40px 0 80px; }
  .legal-content { font-size: 17px; line-height: 1.7; padding: 0 4px; }
  .legal-content h2 { font-size: 24px; margin-top: 40px; }
  .legal-content h3 { font-size: 18px; margin-top: 28px; }
}

/* ---- Apply page (the application form) ---------------- */

.apply-hero {
  padding: 80px 0 28px;
  background: var(--paper-50);
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
  text-align: center;
}
.apply-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--brand-900);
  margin-bottom: 14px;
}
.apply-hero .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 560px;
  margin: 0 auto;
}

.trust-strip {
  background: var(--paper);
  padding: 22px 0;
  border-bottom: 1px solid rgba(15, 42, 95, 0.06);
}
.trust-strip .item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-700);
  font-weight: 500;
  padding: 6px 12px;
}
.trust-strip .item i {
  color: var(--brand-700);
  font-size: 20px;
}

.apply-page {
  padding: 48px 0 96px;
  background: var(--paper-50);
}
.apply-form-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 42, 95, 0.06);
  box-shadow: var(--shadow-md);
  padding: 44px;
}
.form-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  margin: 28px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 42, 95, 0.08);
}
.form-section-label:first-child { margin-top: 0; }

.apply-form-card label.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.apply-form-card label.field-label .req { color: #d04545; margin-left: 4px; }

.apply-form-card .form-input,
.apply-form-card select.form-input {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 42, 95, 0.15);
  padding: 14px 18px;
  font-size: 16px;
  background: var(--paper);
  color: var(--ink-900);
  font-family: inherit;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.apply-form-card select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231f3a5f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 44px;
}
.apply-form-card .form-input:focus {
  outline: none;
  border-color: var(--brand-700);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.1);
}
.apply-form-card textarea.form-input { min-height: 110px; resize: vertical; line-height: 1.5; }
.apply-form-card .form-row { margin-bottom: 18px; }
.apply-form-card .field-help {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
  line-height: 1.45;
}

/* Custom checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  background: var(--paper-50);
  border: 1px solid rgba(15, 42, 95, 0.08);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.checkbox-row:hover { border-color: rgba(31, 58, 95, 0.25); }
.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--brand-700);
  cursor: pointer;
}
.checkbox-row .text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-700);
}
.checkbox-row .text strong { color: var(--brand-900); display: block; margin-bottom: 4px; font-weight: 600; }
.checkbox-row .text a { color: var(--brand-700); text-decoration: underline; }

.apply-submit {
  display: block;
  width: 100%;
  padding: 22px;
  font-size: 19px;
  font-weight: 700;
  background: var(--brand-700);
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin-top: 28px;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-md);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.apply-submit:hover {
  background: var(--brand-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.apply-submit:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
.form-footer-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 18px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .apply-hero { padding: 60px 0 22px; }
  .apply-hero h1 { font-size: 34px; }
  .apply-hero .lede { font-size: 16px; }
  .trust-strip { padding: 16px 0; }
  .trust-strip .item { font-size: 14px; padding: 4px 8px; }
  .apply-page { padding: 32px 0 80px; }
  .apply-form-card { padding: 28px 22px; border-radius: 18px; }
  .apply-form-card .form-input { font-size: 16px; padding: 14px 16px; }
  .apply-submit { font-size: 17px; padding: 20px; }
}

/* ---- Footer -------------------------------------------- */

.footer.footer-style-4 { background: var(--paper-50); }
.footer .footer-widget h6 { color: var(--brand-900); font-weight: 700; }
.footer .footer-widget .desc { color: var(--ink-500); line-height: 1.6; }
.footer .footer-widget .links a {
  color: var(--ink-700);
  text-decoration: none;
  transition: color 200ms ease;
}
.footer .footer-widget .links a:hover { color: var(--brand-700); }
.footer .copyright-wrapper {
  border-top: 1px solid rgba(15, 42, 95, 0.06);
  color: var(--ink-500);
}

/* =========================================================
   Mobile: phones (<= 768px)
   ========================================================= */

@media (max-width: 768px) {

  /* Generous insets for iOS feel */
  .container { padding-left: 22px; padding-right: 22px; }

  /* Section rhythm — tighter on mobile so flow feels intentional.
     Both layers of padding from lindy-uikit need flattening:
     .hero-style-5 (outer) AND .hero-content-wrapper (inner 100px). */
  .hero-section.hero-style-5 { padding: 0 !important; }
  .hero-section-wrapper-5 .hero-style-5 .hero-content-wrapper {
    padding: 28px 0 24px !important;
  }
  .feature-section.feature-style-5 { padding: 28px 0 80px; }
  .about-section.about-style-4,
  .pricing-section.pricing-style-4,
  .contact-section.contact-style-3 { padding: 80px 0; }

  /* Hero — center, big, breathable */
  .hero-content-wrapper { text-align: center; }
  .hero-content-wrapper h2 {
    font-size: 52px;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 26px !important;
  }
  .hero-content-wrapper .hero-lede {
    font-size: 21px;
    line-height: 1.5;
    max-width: 30ch;
    margin: 0 auto 18px;
    color: var(--ink-700);
  }
  .hero-content-wrapper .hero-lede strong {
    color: var(--brand-900);
    font-weight: 700;
  }
  .hero-content-wrapper .hero-lede:last-of-type { margin-bottom: 28px; }

  /* Hero illustration is decorative — text-first on mobile */
  .hero-image { display: none; }

  /* About — center on mobile, list keeps left-align for readability */
  .about-content-wrapper { text-align: center; }
  .about-content-wrapper .section-title { text-align: center; }
  .about-content-wrapper ul {
    text-align: left;
    max-width: 380px;
    margin: 0 auto 28px;
  }
  .about-image { margin-top: 40px; }

  /* Section titles — punchy + centered */
  .section-title { text-align: center; }
  .section-title h3 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
  }
  .section-title p {
    font-size: 20px;
    line-height: 1.55;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
  }

  /* Big CTAs — full-width, fat-finger friendly */
  .button.button-lg {
    display: flex !important;
    width: 100%;
    padding: 22px 26px;
    font-size: 22px;
    margin-left: auto;
    margin-right: auto;
    max-width: 460px;
  }

  /* Hide header pill on mobile (Apply lives in menu + hero CTA) */
  .header-action { display: none !important; }

  /* Open mobile menu — generous spacing (page-scroll links only;
     the Apply CTA has its own .apply-cta-mobile styling) */
  .navbar-nav .nav-item .page-scroll {
    padding: 16px 0 !important;
    font-size: 22px;
    color: var(--brand-900) !important;
    font-weight: 500;
    margin: 0;
  }
  .navbar-nav .nav-item .page-scroll.active::after { display: none; }

  /* Feature card spacing when stacked */
  .single-feature {
    margin-bottom: 18px;
    padding: 32px 26px;
  }
  .single-feature .content h5 { font-size: 25px; line-height: 1.2; }
  .single-feature .content p { font-size: 18px; line-height: 1.55; }

  /* FAQ — bigger taps */
  #faqAccordion .accordion-button {
    font-size: 22px;
    padding: 24px 22px;
    line-height: 1.3;
  }
  #faqAccordion .accordion-body { padding: 4px 22px 24px; font-size: 20px; line-height: 1.55; }

  /* About bullets a touch bigger on mobile */
  .about-content-wrapper ul li { font-size: 19px; }

  /* Contact info card slides under form on mobile */
  .left-wrapper { margin-top: 32px; }

  /* Footer — center-align column titles for the stacked look */
  .footer-widget { margin-bottom: 36px; text-align: left; }
  .footer .copyright-wrapper { padding-top: 24px; }
}

/* ---- Tiny phones (<= 380px) ---------------------------- */

@media (max-width: 380px) {
  .hero-content-wrapper h2 { font-size: 44px; }
  .hero-content-wrapper p { font-size: 20px; }
  .section-title h3 { font-size: 35px; }
  .section-title p { font-size: 18px; }
  .button.button-lg { font-size: 20px; padding: 20px 22px; }
  .single-feature .content h5 { font-size: 22px; }
  .single-feature .content p { font-size: 17px; }
  #faqAccordion .accordion-button { font-size: 20px; padding: 22px 20px; }
  #faqAccordion .accordion-body { font-size: 18px; padding: 4px 20px 22px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .single-feature { padding: 28px 22px; }
}

/* =========================================================
   Premium scroll-reveal animations (vanilla CSS)
   The .js class is set on <html> the moment the script tag runs,
   guaranteeing reveal styles apply only when JS is alive (so
   no-JS users see content immediately).
   ========================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 850ms var(--ease),
    transform 850ms var(--ease),
    filter 850ms var(--ease);
  will-change: opacity, transform, filter;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease),
    filter 700ms var(--ease);
  will-change: opacity, transform, filter;
}
.js .reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 360ms; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 450ms; }
.js .reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 540ms; }

.js .reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(8px);
  transition:
    opacity 950ms var(--ease),
    transform 950ms var(--ease),
    filter 950ms var(--ease);
  will-change: opacity, transform, filter;
}
.js .reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal-scale,
  .js .reveal-stagger > * {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
