/* PaySalaryLoan — homepage (editorial layer on top of styles.css) */
.page-home {
  --paper: #f6f4ef;
  --paper-2: #efebe2;
  --ink: #0b1b3f;
  --ink-2: #3d4760;
  --muted: #6a7184;
  --rule: #e2ddd1;
  --rule-ink: rgba(11, 27, 63, .14);
  --blue: #0f5bf0;
  --blue-soft: #e4ebfb;
  --green: #0f8a5f;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--paper);
  color: var(--ink);
}
.page-home .header { background: rgba(246, 244, 239, .92); border-bottom-color: var(--rule); }
.page-home main a:not(.h-btn):not([class*="h-index"]) { color: var(--blue); }

/* ---------- Type ---------- */
.h-display { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 7.2vw, 6.1rem); line-height: .94; letter-spacing: -0.04em; color: var(--ink); margin: 0 0 28px; }
.h-display em, .h-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--blue); }
.h-display em { font-size: 1.04em; }
.h-display--sm { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.h-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); margin: 0 0 20px; }
.h-title em { font-size: 1.06em; }
.h-title--light { color: #fff; }
.h-title--light em { color: #9dbbff; }
.h-kicker { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 600; color: var(--muted); margin: 0 0 22px; }
.h-kicker::before { content: ""; width: 8px; height: 8px; background: var(--blue); }
.h-link { font-weight: 700; color: var(--ink) !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.h-link:hover { color: var(--blue) !important; }
.h-link--light { color: #fff !important; }

/* ---------- Buttons ---------- */
.h-btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 24px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem; border: 0; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, transform .15s; }
.h-btn:active { transform: translateY(1px); }
.h-btn--ink { background: var(--ink); color: #fff !important; }
.h-btn--ink:hover { background: #18306b; }
.h-btn--blue { background: var(--blue); color: #fff !important; }
.h-btn--blue:hover { background: #0a4cd0; }
.h-btn--block { width: 100%; }

/* ---------- Hero ---------- */
.h-hero { padding: 72px 0 88px; }
.h-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.h-hero__lead { font-size: 1.16rem; line-height: 1.6; color: var(--ink-2); max-width: 520px; margin-bottom: 32px; }
.h-start { display: flex; gap: 8px; max-width: 500px; }
.h-start__field { background: #fff; border: 1.5px solid var(--rule-ink); border-radius: 12px; height: 54px; }
.h-start__field:focus-within { border-color: var(--ink); }
.h-hero__fine { font-size: .82rem; color: var(--muted); margin: 12px 0 40px; }
.h-hero__facts { display: flex; gap: 0; margin: 0; max-width: 500px; border-top: 1px solid var(--rule); }
.h-hero__facts div { flex: 1; padding: 16px 0 0; }
.h-hero__facts div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.h-hero__facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.h-hero__facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; }

.h-hero__visual { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: flex-end; }
.h-hero__visual::before { content: ""; position: absolute; inset: 36px 0 36px 56px; background: var(--blue-soft); border-radius: 28px; }
.h-hero__visual::after { content: ""; position: absolute; inset: 36px 0 36px 56px; border-radius: 28px; background-image: linear-gradient(var(--rule-ink) 1px, transparent 1px), linear-gradient(90deg, var(--rule-ink) 1px, transparent 1px); background-size: 40px 40px; opacity: .35; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%); }
.ui-offer { position: relative; z-index: 1; width: 340px; margin-right: 40px; background: #fff; border: 1px solid var(--rule); border-radius: 22px; padding: 22px; box-shadow: 0 1px 0 rgba(11,27,63,.04), 0 30px 60px -30px rgba(11,27,63,.35); }
.ui-offer__top { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; margin-bottom: 18px; }
.ui-chip { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--green); background: #e3f4ec; padding: 4px 8px; border-radius: 6px; }
.ui-offer__label { font-size: .78rem; color: var(--muted); margin: 0; }
.ui-offer__amount { font-family: var(--display); font-weight: 700; font-size: 2.9rem; letter-spacing: -0.04em; margin: 0 0 14px; line-height: 1.05; }
.ui-offer__rows div { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--rule); font-size: .88rem; color: var(--ink-2); }
.ui-offer__rows b { font-family: var(--mono); font-weight: 600; font-size: .86rem; color: var(--ink); }
.ui-offer__total { border-top: 1px solid var(--ink) !important; color: var(--ink) !important; font-weight: 700; }
.ui-offer__total b { font-size: 1rem !important; }
.ui-offer__apr { font-size: .72rem; color: var(--muted); margin: 6px 0 16px; }
.ui-offer__btn { background: var(--ink); color: #fff; text-align: center; padding: 13px; border-radius: 12px; font-weight: 700; font-size: .92rem; }
.ui-toast { position: absolute; z-index: 2; top: 22px; left: 8px; display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 16px; box-shadow: 0 18px 36px -20px rgba(11,27,63,.35); animation: toastIn .6s .5s both cubic-bezier(.2,.8,.2,1); }
.ui-toast__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #d7f0e5; }
.ui-toast b { display: block; font-size: .9rem; }
.ui-toast small { color: var(--muted); font-size: .75rem; }
.ui-payday { position: absolute; z-index: 2; bottom: 14px; left: 20px; background: var(--ink); color: #c9d2e6; border-radius: 14px; padding: 14px 18px; display: grid; gap: 1px; animation: toastIn .6s .9s both cubic-bezier(.2,.8,.2,1); }
.ui-payday small { font-size: .72rem; }
.ui-payday b { color: #fff; font-family: var(--mono); font-weight: 600; font-size: .95rem; }
.ui-payday span { color: #6ee3ae; font-size: .76rem; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Ledger strip ---------- */
.h-ledger { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.h-ledger .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: 18px; }
.h-ledger p { margin: 0; font-size: .86rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.h-ledger p::before { content: ""; width: 5px; height: 5px; background: var(--green); }

/* ---------- The gap (month timeline) ---------- */
.h-gap { padding: 112px 0 104px; }
.h-gap__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.h-gap__head p { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 20px; }
.month { position: relative; }
.month__track { display: grid; grid-template-columns: repeat(31, 1fr); gap: 3px; }
.month__day { height: 72px; background: var(--paper-2); border-radius: 3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; }
.month__day i { font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.month__day.is-pay { background: var(--green); }
.month__day.is-pay i { color: #fff; }
.month__day.is-covered { background: var(--blue); }
.month__day.is-covered i { color: rgba(255,255,255,.8); }
.month__day.is-start { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--blue); }
.month__marks { position: relative; height: 70px; margin-top: 14px; }
.month__mark { position: absolute; top: 0; left: calc((var(--at) + .5) / 31 * 100%); padding-left: 12px; border-left: 1px solid var(--ink); height: 100%; }
.month__mark b { display: block; font-family: var(--display); font-size: 1.05rem; }
.month__mark small { color: var(--muted); font-size: .82rem; }
.month__mark--pay { left: 0; }
.month__mark--end { left: auto; right: 0; padding: 0 12px 0 0; border-left: 0; border-right: 1px solid var(--ink); text-align: right; }
.month__caption { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-weight: 600; color: var(--ink); }
.month__caption span { width: 22px; height: 12px; background: var(--blue); border-radius: 2px; }

/* ---------- Calculator ---------- */
.h-calc { padding: 104px 0; background: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.h-calc__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.h-calc__copy > p { color: var(--ink-2); font-size: 1.05rem; max-width: 440px; }
.h-calc__formula { list-style: none; padding: 0; margin: 32px 0 0; max-width: 460px; }
.h-calc__formula li { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink); }
.h-calc__formula li:last-child { border-bottom: 1px solid var(--rule); }
.h-calc__formula span { color: var(--muted); font-size: .86rem; font-weight: 600; }
.h-calc__box { border: 1px solid var(--rule); border-radius: 20px; padding: 32px; background: var(--paper); }
.h-slider { margin-bottom: 26px; }
.h-slider__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.h-slider label { font-size: .95rem; color: var(--muted); font-weight: 600; }
.h-slider output { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; }
.page-home input[type=range] { height: 4px; background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--rule) var(--fill, 50%)); margin: 6px 0; }
.page-home input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; border: 2px solid var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(11,27,63,.2); }
.page-home input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid var(--ink); background: #fff; }
.h-calc__out { border-top: 1px solid var(--ink); padding-top: 22px; margin: 8px 0 24px; }
.h-calc__big small { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; }
.h-calc__big strong { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.1; color: var(--ink); }
.h-calc__out dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 18px 0 0; }
.h-calc__out dl div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--rule); font-size: .9rem; }
.h-calc__out dt { color: var(--muted); }
.h-calc__out dd { margin: 0; font-family: var(--mono); font-weight: 600; font-size: .88rem; }

/* ---------- First ten minutes ---------- */
.h-steps { padding: 112px 0; }
.h-steps__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.h-steps__head { position: sticky; top: 120px; }
.h-steps__head p { color: var(--ink-2); font-size: 1.05rem; max-width: 360px; margin-bottom: 22px; }
.h-timeline { list-style: none; margin: 0; padding: 0; }
.h-timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--rule-ink); }
.h-timeline li:last-child { border-bottom: 1px solid var(--rule-ink); }
.h-timeline time { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; color: var(--blue); padding-top: 4px; }
.h-timeline li:last-child time { color: var(--green); }
.h-timeline h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.025em; margin: 0 0 6px; }
.h-timeline p { color: var(--ink-2); margin: 0; max-width: 480px; }

/* ---------- Product index ---------- */
.h-index { padding: 104px 0; background: #fff; border-top: 1px solid var(--rule); }
.h-index__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.h-index__head p { color: var(--ink-2); margin: 0 0 22px; }
.h-index__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.h-index__list li { border-top: 1px solid var(--ink); }
.h-index__list a { display: grid; grid-template-columns: 64px 1fr 1.25fr 40px; gap: 24px; align-items: center; padding: 28px 0; color: var(--ink); text-decoration: none; transition: padding .25s, background .25s; }
.h-index__n { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.h-index__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.03em; transition: color .2s; }
.h-index__desc { color: var(--ink-2); font-size: .98rem; }
.h-index__go { font-size: 1.6rem; justify-self: end; transition: transform .25s, color .2s; }
.h-index__list a:hover { padding-left: 12px; }
.h-index__list a:hover .h-index__name, .h-index__list a:hover .h-index__go { color: var(--blue); }
.h-index__list a:hover .h-index__go { transform: translateX(6px); }

/* ---------- The bill ---------- */
.h-bill { padding: 112px 0; background: var(--ink); color: #c3cbe0; }
.h-bill__grid { display: grid; grid-template-columns: 1fr 420px; gap: 72px; align-items: center; }
.h-bill__copy > p { font-size: 1.05rem; max-width: 500px; margin-bottom: 26px; }
.receipt { --zz: 14px; background: #fbfaf6; color: var(--ink); padding: 28px 28px 40px; transform: rotate(1.2deg); box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--zz) 100%; }
.receipt__head { text-align: center; padding-bottom: 16px; border-bottom: 2px dashed var(--rule); margin-bottom: 8px; }
.receipt__head b { display: block; font-family: var(--mono); letter-spacing: .18em; font-size: .95rem; }
.receipt__head span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.receipt dl { margin: 0; font-family: var(--mono); font-size: .84rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 600; }
.receipt__sub { border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule); }
.receipt__total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px !important; font-size: 1.05rem; }
.receipt__total dt { color: var(--ink); font-weight: 600; }
.receipt__apr { color: var(--muted); }
.receipt__foot { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-align: center; margin: 14px 0 0; padding-top: 14px; border-top: 2px dashed var(--rule); }

/* ---------- Who + quote ---------- */
.h-who { padding: 112px 0; }
.h-who__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.h-who__list { list-style: none; padding: 0; margin: 12px 0 0; }
.h-who__list li { padding: 16px 0; border-top: 1px solid var(--rule-ink); color: var(--ink-2); }
.h-who__list li:last-child { border-bottom: 1px solid var(--rule-ink); }
.h-who__list b { color: var(--ink); }
.h-who__not { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.h-quote { margin: 0; padding: 8px 0 0 40px; border-left: 3px solid var(--blue); }
.h-quote blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.15rem); line-height: 1.25; color: var(--ink); }
.h-quote figcaption { font-size: .95rem; color: var(--ink-2); }
.h-quote figcaption b { color: var(--ink); }
.h-quote__note { font-size: .74rem; color: #a2650a; margin: 14px 0 0; }

/* ---------- Never ---------- */
.h-never { padding: 104px 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.h-never__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.h-never__list { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.h-never__list li { counter-increment: n; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-top: 1px solid var(--rule-ink); font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -0.02em; color: var(--ink); }
.h-never__list li::before { content: "0" counter(n); font-family: var(--mono); font-weight: 500; font-size: .8rem; color: #b42318; padding-top: 6px; }
.h-never__foot { grid-column: 2; color: var(--ink-2); margin: 8px 0 0; font-size: .95rem; }

/* ---------- FAQ ---------- */
.h-faq { padding: 112px 0; }
.h-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.h-faq__head { position: sticky; top: 120px; }
.h-faq__head p { color: var(--ink-2); }
.page-home .faq { max-width: none; margin: 0; gap: 0; border-bottom: 1px solid var(--rule-ink); }
.page-home .faq details { background: none; border: 0; border-top: 1px solid var(--rule-ink); border-radius: 0; box-shadow: none !important; }
.page-home .faq summary { padding: 22px 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.page-home .faq summary::after { background: none; width: auto; height: auto; color: var(--ink); font-size: 1.6rem; font-weight: 300; }
.page-home .faq details[open] summary::after { background: none; color: var(--blue); }
.page-home .faq .answer { padding: 0 48px 24px 0; color: var(--ink-2); }

/* ---------- Closer ---------- */
.h-close { padding: 120px 0 128px; border-top: 1px solid var(--rule); }
.h-close__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.page-home .footer { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .h-hero__grid, .h-calc__grid, .h-steps__grid, .h-bill__grid, .h-who__grid, .h-never__grid, .h-faq__grid, .h-gap__head, .h-index__head { grid-template-columns: 1fr; gap: 40px; }
  .h-steps__head, .h-faq__head { position: static; }
  .h-never__foot { grid-column: 1; }
  .h-hero__visual { justify-content: center; }
  .receipt { max-width: 420px; }
}
@media (max-width: 640px) {
  .h-hero { padding: 36px 0 56px; }
  .h-display { margin-bottom: 20px; }
  .h-hero__lead { font-size: 1.04rem; margin-bottom: 24px; }
  .h-start { flex-direction: column; }
  .h-hero__fine { margin-bottom: 28px; }
  .h-hero__facts dd { font-size: 1.15rem; }
  .h-hero__facts div + div { padding-left: 12px; }
  .h-hero__visual { min-height: 0; padding: 70px 0 90px; }
  .h-hero__visual::before, .h-hero__visual::after { inset: 24px 0 24px 0; }
  .ui-offer { width: 100%; max-width: 330px; margin: 0 auto; }
  .ui-toast { top: 0; left: 0; }
  .ui-payday { bottom: 0; left: auto; right: 0; }
  .h-ledger .container { justify-content: flex-start; }
  .h-gap, .h-calc, .h-steps, .h-index, .h-bill, .h-who, .h-never, .h-faq { padding: 72px 0; }
  .h-close { padding: 80px 0 96px; }
  .month__day { height: 54px; }
  .month__day i { display: none; }
  .month__marks { height: auto; display: grid; gap: 10px; }
  .month__mark, .month__mark--end { position: static; border: 0; border-left: 3px solid var(--ink); padding: 0 0 0 10px; text-align: left; height: auto; }
  .month__mark--pay { border-left-color: var(--green); }
  .month__mark--hit, .month__mark--end { border-left-color: var(--blue); }
  .month__mark b { display: inline; margin-right: 8px; }
  .h-calc__box { padding: 22px 18px; }
  .h-calc__out dl { grid-template-columns: 1fr; }
  .h-calc__formula li { grid-template-columns: 1fr; gap: 2px; }
  .h-timeline li { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .h-timeline h3 { font-size: 1.25rem; }
  .h-index__list a { grid-template-columns: 34px 1fr 24px; gap: 4px 12px; padding: 20px 0; }
  .h-index__desc { grid-column: 2 / 4; grid-row: 2; font-size: .9rem; }
  .h-index__list a:hover { padding-left: 0; }
  .receipt { transform: none; padding: 22px 18px 34px; }
  .h-quote { padding-left: 20px; }
  .h-never__list li { grid-template-columns: 40px 1fr; }
  .page-home .faq .answer { padding-right: 0; }
}

/* ---------- Overrides of global components on the homepage ---------- */
.page-home .h-index__list a { color: var(--ink) !important; }
.page-home .header .btn { border-radius: 10px; box-shadow: none; }
.page-home .header .btn--primary { background: var(--ink); }
.page-home .header .btn--primary:hover { background: #18306b; }
.page-home .header .btn--ghost { background: transparent; border-color: var(--rule-ink); }
.page-home .mobile-cta .btn--primary { background: var(--ink); border-radius: 10px; box-shadow: none; }
