/* 247EmergencyLoans - main.css */
:root {
  --yellow: #FECD15;
  --yellow-dark: #E8BA0A;
  --yellow-soft: #FFF6D1;
  --ink: #1A1A1A;
  --muted: #5C5C5C;
  --faint: #8A8A8A;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-strong: #D9DBDF;
  --cta: #2D2DFF;
  --cta-light: #3D3DFF;
  --cta-dark: #1F1FE0;
  --success: #1B7F4C;
  --error: #B3261E;
  --font: 'Exo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --logo-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img { display: block; max-width: 100%; }

button, input, textarea { font-family: inherit; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Header + logo lockup */
.site-header { background: var(--bg); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 14px;
}
.logo {
  position: relative;
  display: inline-block;
  height: var(--logo-h);
  text-decoration: none;
}
.logo__word { height: var(--logo-h); width: auto; }
.logo__watch {
  position: absolute;
  left: 0;
  top: calc(var(--logo-h) * -0.09);
  height: calc(var(--logo-h) * 1.148);
  width: auto;
}

/* Hero */
.hero {
  padding: 12px 0 56px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  grid-template-rows: auto auto;
  gap: 24px 12px;
  align-items: center;
}
.hero__intro { grid-column: 1; grid-row: 1; }
.hero__visual { grid-column: 2; grid-row: 1; }
.hero__form { grid-column: 1 / -1; grid-row: 2; padding-right: 20px; display: flex; flex-direction: column; gap: 24px; }
.hero__intro { display: flex; flex-direction: column; gap: 14px; }
.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: 28px;
  line-height: calc(1.2em + 5px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__highlight {
  background: var(--yellow);
  padding: 0 .14em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero__sub {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40em;
  text-wrap: pretty;
}

/* Loan form */
.loan-form { display: flex; flex-direction: column; gap: 18px; max-width: 580px; }
.loan-form__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.loan-form__label { font-size: 15px; font-weight: 700; }
.loan-form__amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.loan-form__slider { display: flex; flex-direction: column; gap: 8px; }
.loan-form__range {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--yellow) var(--pct, 0%), var(--border) var(--pct, 0%));
  -webkit-appearance: none;
  appearance: none;
  margin: 10px 0;
  cursor: pointer;
  display: block;
}
.loan-form__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.loan-form__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid #fff;
  cursor: pointer;
}
.loan-form__range:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.loan-form__bounds {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.presets__btn {
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-left: 1px solid var(--border);
  margin-left: -1px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.presets__btn:hover { background: #F1F2F4; }
.presets__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.presets__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; position: relative; z-index: 1; }

/* CTA */
.cta {
  width: 100%;
  height: 66px;
  background: linear-gradient(135deg, var(--cta-light) 0%, var(--cta) 55%, var(--cta-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-top: 29px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 70px 0 22px;
  animation: cta-ring 2.8s ease-out infinite;
  transition: filter .18s ease, transform .15s ease;
}
.cta:hover { filter: brightness(1.08); animation: none; box-shadow: 0 0 0 4px rgba(45, 45, 255, .25); }
.cta:active { transform: scale(.98); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta__icon {
  position: absolute;
  right: 8px;
  top: 46%;
  height: 58px;
  width: auto;
  transform: translateY(-47%);
  pointer-events: none;
}
@keyframes cta-ring {
  0% { box-shadow: 0 0 0 0 rgba(45, 45, 255, .55); }
  70% { box-shadow: 0 0 0 16px rgba(45, 45, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 45, 255, 0); }
}

/* Trustpilot */
.trust {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}
.trust__link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }
.trust__row { display: flex; align-items: center; gap: 10px; }
.trust__logo { height: 22px; width: auto; position: relative; top: -2px; }
.trust__stars { display: flex; gap: 3px; }
.trust__star {
  width: 20px;
  height: 20px;
  background: #00B67A;
  display: grid;
  place-items: center;
}
.trust__star--half { background: linear-gradient(90deg, #00B67A 50%, #DCDCE6 50%); }
.trust__text { margin: 4px 0 0; font-size: 13px; font-weight: 600; line-height: 1; }
a.trust__link:hover .trust__text { text-decoration: underline; }

/* SSL badges */
.secure {
  list-style: none;
  margin: -8px 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.secure__item { display: flex; align-items: center; gap: 8px; }
.secure__item img { width: 24px; height: 24px; }
.secure__item span { display: flex; flex-direction: column; line-height: 1.15; }
.secure__item b { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.secure__item small { font-size: 11px; font-weight: 500; color: var(--muted); }

/* Hero visual */
.hero__visual {
  min-width: 0;
  position: relative;
}
.hero__shape {
  position: relative;
  width: 100%;
  aspect-ratio: 1.3;
  background: var(--yellow);
  border-radius: 999px 0 0 999px;
}
.hero__ring, .hero__ring--sm, .hero__dot, .hero__wave, .hero__photo, .stat { position: absolute; }
.hero__ring { top: 8%; left: calc(10% + 20px); width: 36%; aspect-ratio: 1; border: 2px solid rgba(26, 26, 26, .18); border-radius: 50%; animation: ring-breathe 7s ease-in-out infinite; }
.hero__ring--sm { top: 16%; left: calc(18% + 20px); width: 20%; aspect-ratio: 1; border: 2px solid rgba(26, 26, 26, .18); border-radius: 50%; animation: ring-breathe 5s ease-in-out infinite reverse; }
.hero__dot { bottom: 12%; left: 8%; width: 6%; aspect-ratio: 1; background: var(--ink); border-radius: 50%; animation: dot-float 6s ease-in-out infinite; }
.hero__wave { top: 10%; right: 10%; width: 12%; height: auto; animation: wave-drift 4s ease-in-out infinite; }
@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: .55; }
}
@keyframes dot-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(18%, -40%); }
  66% { transform: translate(-12%, -20%); }
}
@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14%); }
}
.hero__photo { left: -8%; right: 0; top: -14%; bottom: 4%; }
.hero__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.stat {
  left: 12px;
  bottom: 10%;
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(26, 26, 26, .1);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat__num { margin: 0; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); max-width: 9em; line-height: 1.3; }

/* As seen on */
.press {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 20px 0 0;
  border-top: 1px solid var(--border);
  margin-right: 20px;
}
.press__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.press__logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}
.press__logos li { display: flex; }
.press__logos img { width: auto; filter: grayscale(1); opacity: .7; }
.press__logo--bloomberg { height: 24px; }
.press__logo--fox { height: 40px; }
.press__logo--forbes { height: 26px; }
.press__logo--yahoo { height: 22px; }
.press__logo--marketwatch { height: 52px; margin: -14px 0; }

/* Inner pages */
.page-hero {
  padding: 20px 0 8px;
}
.page-hero__title {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.page-hero__title .hero__highlight { padding: 0 .14em; }
.page-hero__lead { margin: 0; font-size: 17px; color: var(--muted); text-wrap: pretty; }

.page-body { padding: 24px 0 64px; }
.page-body h2 {
  margin: 36px 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 700; }
.page-body p { margin: 0 0 14px; line-height: 1.65; text-wrap: pretty; }
.page-body ul { margin: 0 0 14px; padding-left: 22px; }
.page-body li { margin-bottom: 8px; line-height: 1.6; }
.page-body .highlight-box {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0 24px;
}
.page-body .highlight-box p:last-child { margin-bottom: 0; }

.page-cta {
  margin: 36px 0 0;
  padding: 24px;
  background: var(--yellow);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.page-cta p { margin: 0; font-size: 17px; font-weight: 600; max-width: 30em; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter .18s ease, transform .15s ease;
}
.btn:hover { color: #fff; filter: brightness(1.25); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--cta {
  background: linear-gradient(135deg, var(--cta-light) 0%, var(--cta) 55%, var(--cta-dark) 100%);
}
.btn--cta:hover { filter: brightness(1.08); }
.btn--cta { position: relative; padding-right: 72px; min-height: 56px; }
.btn__icon { position: absolute; right: 6px; top: 50%; height: 50px; width: auto; transform: translateY(-50%); pointer-events: none; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
.contact-aside p { margin: 0 0 14px; }
.contact-points { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-points li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; }
.contact-points b { font-weight: 700; }
.contact-points span { color: var(--muted); font-size: 15px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(26, 26, 26, .06);
}
.contact-card h2 { margin-top: 0; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; }
.inp {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 16px;
  color: var(--ink);
}
.inp:focus { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
textarea.inp { min-height: 150px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  border: 1px solid;
}
.form-message h3 { margin: 0 0 6px; font-size: 16px; }
.form-message p, .form-message ul { margin: 0; }
.form-message ul { padding-left: 18px; }
.form-message--success { background: #EAF6EF; border-color: #BFE3CC; color: var(--success); }
.form-message--error { background: #FBEDEC; border-color: #F1C7C4; color: var(--error); }

/* Apply placeholder */
.page-apply .site-header .container { justify-content: center; }
.apply-placeholder {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.apply-placeholder p { margin: 0; font-size: 24px; font-weight: 700; color: var(--muted); }

/* 404 */
.not-found { text-align: center; padding: 40px 0 64px; }
.not-found .page-hero__title { font-size: 40px; }
.not-found p { max-width: 36em; margin: 0 auto 14px; color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.site-footer .container {
  max-width: 1280px;
  padding-top: 32px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.legal, .disclosure {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 1100px;
  text-wrap: pretty;
}
.legal p, .disclosure p { margin: 0; }
.legal a, .disclosure a { color: var(--muted); }
.disclosure { padding-top: 20px; border-top: 1px solid var(--border); }
.disclosure__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.disclosure__lead { color: var(--ink); font-weight: 700; }
.disclosure__lead::after { content: "."; }
.disclosure__table-wrap { overflow-x: auto; }
.disclosure__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.disclosure__table th, .disclosure__table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.disclosure__table th { background: var(--yellow-soft); color: var(--ink); font-weight: 700; }
.disclosure__table tbody tr:last-child td { border-bottom: 0; }
.disclosure__line { padding-top: 6px; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; font-weight: 500; }
.site-footer__nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-footer__nav a:hover { color: var(--ink); text-decoration: underline; }

/* Phones: compact hero visual beside the title */
@media (max-width: 767px) {
  .hero__shape { aspect-ratio: 1.05; }
  .hero__visual { padding-bottom: 26px; }
  .hero__photo { left: -14%; right: -2%; top: -6%; bottom: 12%; }
  .hero__ring { width: 44%; top: 6%; left: calc(6% + 10px); }
  .hero__ring--sm { width: 26%; top: 14%; left: calc(14% + 10px); }
  .stat { left: 0; bottom: -22px; padding: 6px 10px; border-radius: 8px; gap: 0; flex-direction: row; align-items: center; column-gap: 6px; }
  .stat__num { font-size: 16px; }
  .stat__label { font-size: 9px; max-width: 7em; line-height: 1.15; }
  .hero__wave { width: 18%; top: 6%; right: 6%; }
  .hero__dot { width: 5%; bottom: 8%; left: 60%; }
}

/* Small phones: stack the cost table */
@media (max-width: 599px) {
  .disclosure__table thead { display: none; }
  .disclosure__table, .disclosure__table tbody, .disclosure__table tr, .disclosure__table td { display: block; }
  .disclosure__table tr { border-bottom: 2px solid var(--border); }
  .disclosure__table td { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
  .disclosure__table td::before { content: attr(data-label); font-weight: 700; color: var(--ink); }
}

/* Tablet */
@media (min-width: 768px) {
  :root { --logo-h: 48px; }
  .site-header .container { padding-top: 22px; padding-bottom: 18px; }
  .hero { gap: 36px; padding-top: 24px; padding-bottom: 80px; }
  .hero__row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; gap: 24px 0; }
  .hero__intro { grid-column: 1; grid-row: 1; align-self: end; max-width: 660px; padding-right: 20px; }
  .hero__form { grid-column: 1; grid-row: 2; align-self: start; max-width: 660px; }
  .hero__visual { grid-column: 2; grid-row: 1 / span 2; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 17px; }
  .loan-form__amount { font-size: 34px; }
  .hero__visual { padding-left: 24px; }
  .stat { left: 24px; }
  .stat__num { font-size: 32px; }
  .press { padding-top: 30px; gap: 20px; }
  .press__logos { gap: 20px 44px; }
  .press__logo--bloomberg { height: 28px; }
  .press__logo--fox { height: 46px; }
  .press__logo--forbes { height: 31px; }
  .press__logo--yahoo { height: 26px; }
  .press__logo--marketwatch { height: 61px; }
  .page-hero { padding-top: 36px; }
  .page-hero__title { font-size: 42px; }
  .page-body { padding-bottom: 88px; }
  .page-body h2 { font-size: 26px; }
  .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .contact-card { padding: 32px; }
  .site-footer .container { padding-top: 44px; padding-bottom: 32px; }
}

/* Desktop */
@media (min-width: 1280px) {
  :root { --logo-h: 56px; }
  .site-header .container { padding-top: 28px; padding-bottom: 24px; }
  .hero { gap: 44px; padding-top: 40px; padding-bottom: 112px; padding-left: max(20px, calc((100% - 1320px) / 2)); }
  .hero__row { gap: 32px 0; }
  .hero__intro { gap: 20px; }
  .hero__form { gap: 32px; }
  .hero__title { font-size: 52px; }
  .hero__sub { font-size: 19px; }
  .loan-form__amount { font-size: 40px; }
  .hero__visual { padding-left: 48px; }
  .stat { left: 40px; }
  .stat__num { font-size: 36px; }
  .press { padding-top: 36px; margin-right: max(20px, calc((100% - 1320px) / 2)); }
  .press__logos { gap: 20px 64px; }
  .press__logo--bloomberg { height: 32px; }
  .press__logo--fox { height: 52px; }
  .press__logo--forbes { height: 36px; }
  .press__logo--yahoo { height: 30px; }
  .press__logo--marketwatch { height: 70px; }
  .page-hero__title { font-size: 48px; }
  .site-footer .container { padding-top: 56px; padding-bottom: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
