/* Fully Approved Finance: shared visual polish.
   Loaded after page-level styles so the brand system stays consistent across
   the homepage, loan guides and legal pages. */

@font-face {
  font-family: "Fully Display";
  src: url("/assets/fonts/saira-condensed-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Fully Body";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Fully Mono";
  src: url("/assets/fonts/courier-prime-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --display: "Fully Display", "Arial Narrow", sans-serif;
  --body: "Fully Body", Arial, sans-serif;
  --mono: "Fully Mono", "Courier New", monospace;
  --paper: #f7f7f2;
  --muted-ink: #434842;
  --line-soft: #cdd2ca;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

body {
  font-family: var(--body);
  font-weight: 500;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.d,
h1,
h2,
h3,
.btn,
.button,
.loan-type-name,
.review-meta strong,
.footer-links {
  font-family: var(--display);
}

.mono,
.kicker,
.eyebrow,
.section-kicker,
.f-no,
.step,
.number,
.copyright,
.f-note {
  font-family: var(--mono);
}

h1,
h2,
h3,
.d {
  letter-spacing: -.012em;
  text-wrap: balance;
}

p,
li,
blockquote {
  text-wrap: pretty;
}

.hero-sub,
.hero-lead,
.section-intro,
.legal-copy,
.prose,
.sub,
.loan-options-intro,
.reviews-head p {
  letter-spacing: -.006em;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 3px var(--green);
}

:where(.loan-options-sec, .cta, .page-cta, .info-panel) :where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--white);
  box-shadow: 0 0 0 3px var(--green);
}

.btn,
.button {
  line-height: 1;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.btn:active,
.button:active {
  transition-duration: 80ms;
}

.nav-links a,
.header-links a:not(.button),
.footer-links a,
.loan-guide-links a,
.breadcrumbs a,
.legal-copy a {
  text-decoration-thickness: 2px;
  text-underline-offset: .25em;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    background-color 180ms ease;
}

.footer-links a,
.header-links a:not(.button),
.nav-links a {
  text-decoration-line: underline;
  text-decoration-color: transparent;
}

.footer-links a:hover,
.header-links a:not(.button):hover,
.nav-links a:hover {
  color: var(--ink);
  text-decoration-color: var(--green);
}

footer .footer-logo img,
.site-footer .footer-top > a:first-child img {
  display: block;
  background: transparent;
}

footer .footer-links,
.site-footer .footer-links {
  font-size: 15px;
  letter-spacing: .045em;
  line-height: 1.1;
}

footer .f-note,
.site-footer .copyright {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

footer .legal-note,
.site-footer .legal {
  color: var(--muted-ink);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.58;
}

.loan-type-button {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.loan-type-button:hover {
  box-shadow: inset 5px 0 0 var(--green);
  transform: translateX(4px);
}

.loan-type-button:active {
  transform: translateX(2px);
}

.loan-type-button.active {
  box-shadow: 5px 5px 0 #fff;
}

.related-links a {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.related-links a:hover {
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.related-links a:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink);
}

/* Decorative panels should not look clickable. */
.fine:hover {
  background: inherit;
}

@media (min-width: 701px) {
  .hero-inner,
  .sec-inner {
    max-width: 1320px;
  }

  .wrap {
    width: min(1180px, calc(100% - 64px));
  }

  .site-nav,
  .site-header {
    box-shadow: 0 4px 0 rgba(10, 10, 10, .06);
  }

  .site-nav,
  .site-header .inner {
    min-height: 72px;
  }

  .nav-logo::after,
  .site-logo::after {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-left: 12px;
    border: 2px solid var(--ink);
    background: var(--paper);
    font-size: 16px;
  }

  .nav-links,
  .header-links {
    gap: clamp(20px, 2.2vw, 34px);
  }

  .nav-links a,
  .header-links a:not(.button) {
    font-size: 14px;
    letter-spacing: .07em;
  }

  .hero::before,
  .loan-hero::before,
  .legal-hero::before {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(90deg, rgba(10, 10, 10, .04) 1px, transparent 1px) 0 0 / 48px 48px,
      linear-gradient(rgba(10, 10, 10, .04) 1px, transparent 1px) 0 0 / 48px 48px;
    content: "";
    pointer-events: none;
  }

  .loan-hero,
  .legal-hero {
    position: relative;
  }

  .hero-inner,
  .loan-hero .wrap,
  .legal-hero .wrap {
    position: relative;
    z-index: 1;
  }

  .hero-inner {
    gap: clamp(48px, 6vw, 96px);
    padding-top: clamp(64px, 7vw, 104px);
    padding-bottom: clamp(72px, 8vw, 118px);
  }

  .hero h1 {
    font-size: clamp(72px, 7.4vw, 118px);
    line-height: .84;
    letter-spacing: -.02em;
  }

  .hero-sub {
    max-width: 58ch;
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.56;
  }

  .sec {
    padding-top: clamp(88px, 9vw, 128px);
    padding-bottom: clamp(96px, 9.5vw, 138px);
  }

  .sec h2,
  .content-section h2,
  .page-cta h2 {
    letter-spacing: -.018em;
  }

  .sub,
  .loan-options-intro,
  .reviews-head p,
  .section-intro {
    font-size: 19px;
    line-height: 1.6;
  }

  .pay-grid {
    margin-top: 68px;
  }

  .demo-phone-wrap .phone,
  .printer,
  .loan-type-detail,
  .info-panel {
    box-shadow: 8px 8px 0 var(--green);
  }

  .stats-inner {
    max-width: 1320px;
  }

  .stat {
    padding: 6px clamp(16px, 3vw, 44px) 10px;
  }

  .stat + .stat {
    border-left: 2px solid rgba(10, 10, 10, .25);
  }

  .reviews-wall {
    column-gap: 24px;
    margin-top: 58px;
  }

  .review-card {
    margin-bottom: 24px;
    padding: 28px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .review-card:nth-child(3n) {
    background: var(--paper);
  }

  .review-card blockquote {
    letter-spacing: -.01em;
  }

  .loan-selector-grid {
    margin-top: 62px;
  }

  .loan-type-button {
    min-height: 56px;
    padding: 14px 16px;
  }

  .loan-type-detail {
    min-height: 510px;
    padding: clamp(34px, 4vw, 52px);
  }

  .plate {
    box-shadow: 8px 8px 0 var(--ink);
  }

  .fine-grid,
  .process-grid,
  .faq-list {
    border-width: 2px;
  }

  .fine,
  .process-step {
    border-width: 2px;
  }

  .loan-hero {
    padding-top: clamp(76px, 8vw, 112px);
    padding-bottom: clamp(82px, 8.5vw, 120px);
  }

  .loan-hero h1,
  .legal-hero h1 {
    max-width: 12ch;
    letter-spacing: -.022em;
  }

  .hero-lead,
  .legal-hero p {
    max-width: 65ch;
    line-height: 1.58;
  }

  .fact {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .fact b {
    letter-spacing: -.005em;
  }

  .content-section {
    padding-top: clamp(76px, 8vw, 108px);
    padding-bottom: clamp(82px, 8.5vw, 116px);
  }

  .content-section.alt {
    background: var(--paper);
  }

  .two-col {
    gap: clamp(52px, 7vw, 92px);
  }

  .prose,
  .legal-copy {
    font-size: 17px;
    line-height: 1.72;
  }

  .prose h3 {
    line-height: 1;
  }

  .use-grid {
    gap: 22px;
  }

  .use-card {
    min-height: 210px;
    padding: 30px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .use-card p,
  .process-step p,
  .faq-item p {
    line-height: 1.62;
  }

  .process-step {
    padding: 34px;
  }

  .faq-item {
    padding: 28px 32px;
  }

  .faq-item:nth-child(even) {
    background: rgba(10, 10, 10, .025);
  }

  .related-links {
    gap: 18px;
  }

  .related-links a {
    min-height: 80px;
    display: flex;
    align-items: center;
    padding: 22px 24px;
  }

  .contact-card {
    padding: 34px;
  }

  .legal-copy h2 {
    letter-spacing: -.01em;
  }

  footer,
  .site-footer {
    background: var(--paper);
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .hero-inner {
    max-width: 760px;
    text-align: left;
  }

  .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-phone {
    margin-top: 10px;
  }

  .stat + .stat {
    border-left: 0;
    border-top: 2px solid rgba(10, 10, 10, .25);
    padding-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .curtain {
    display: none !important;
  }

  .rv,
  .rv.in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .receipt {
    transform: translateY(0) !important;
  }

  .btn,
  .button,
  .loan-type-button,
  .related-links a,
  .nav-links a,
  .header-links a,
  .footer-links a {
    transition: none !important;
  }
}
