/* Simple Honest Loans: the home page and the parts every page shares (buttons, footer).
   Section order follows the client's reference site; the look is the brand's own. */

/* ---- shared ---- */
.skip { position: absolute; left: var(--space-md); top: -200px; z-index: 10; padding: var(--space-xs) var(--space-md); border-radius: var(--radius-control); background: var(--color-ink); color: var(--color-on-accent); }
.skip:focus-visible { top: var(--space-md); }
.sr_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--button-width); min-height: var(--button-height); padding: 0 var(--space-lg); border: 2px solid var(--color-accent); border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-md); font-weight: 600; line-height: 1.5; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn--hero { width: 100%; min-height: var(--button-height-hero); }

.section { padding-top: var(--section-gap); }
.section h2 { font-size: var(--text-section); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--color-ink); }
.section h2 .accent { color: var(--color-accent); }
.section__text { margin-top: var(--space-lg); color: var(--color-muted); }
.section__text a { color: var(--color-accent-deep); }
.section__text a:hover { color: var(--color-ink); }
.section .btn { margin-top: var(--space-lg); }

/* the picture column is as wide as the picture; the text column takes the rest */
.split { display: grid; grid-template-columns: minmax(0, 512fr) minmax(0, 674fr); column-gap: var(--space-2xl); align-items: center; }
.split--picture-end { grid-template-columns: minmax(0, 674fr) minmax(0, 512fr); }
.split__picture img { width: 100%; max-width: var(--picture-measure); }
.split__picture--end { justify-self: end; }

/* ---- hero: logo, banner, sentence and the request card, one centred column on white.
   Fine rays leave the card towards both edges of the screen; the picture keeps the centre column clear. ---- */
/* --hero-space widens every gap between the hero's items by the same share; the card's own size is not touched */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: calc(var(--space-xl) * var(--hero-space)) calc(var(--space-2xl) * var(--hero-space)); }
.hero__column { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__logo { display: block; border-radius: var(--radius-control); }
.hero__logo img { width: 190px; }
.banner { margin-top: calc(var(--space-xlg) * var(--hero-space)); padding: var(--space-xs) var(--space-lg); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-banner); font-weight: 600; line-height: 1.35; max-width: var(--hero-measure); text-wrap: balance; }
.hero__lead { max-width: var(--hero-measure); margin-top: calc(var(--space-ml) * var(--hero-space)); font-weight: 600; color: var(--color-ink); text-wrap: balance; }
/* the rate counts up in main.js; fixed-width digits keep it steady while it runs */
.hero__rate { display: inline-block; color: var(--color-accent); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }

.request { width: 100%; max-width: var(--hero-measure); margin-top: calc(var(--space-ml) * var(--hero-space)); scroll-margin-top: var(--space-lg); }
.request__card { position: relative; padding: var(--space-lg); border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-page); box-shadow: var(--shadow-card); }
.request__rays { position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--rays-width); max-width: none; height: var(--rays-height); transform: translate(-50%, -50%); pointer-events: none; }
.request__label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink); text-wrap: balance; }
.request__amount { display: block; margin-top: var(--space-2xs); font-size: var(--text-readout); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

.request__slider { --pct: 0.1667; display: grid; grid-template-columns: var(--button-height) minmax(0, 1fr) var(--button-height); align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.step { position: relative; width: var(--button-height); height: var(--button-height); padding: 0; border: 1px solid var(--color-rule); border-radius: 50%; background: var(--color-page); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.step::before, .step--up::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.step--up::after { transform: translate(-50%, -50%) rotate(90deg); }
.step:hover { border-color: var(--color-ink); background: var(--color-shape); }
.step:active { transform: translateY(1px); }
.step:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.step:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.request__range { display: block; width: 100%; height: var(--button-height); margin: 0; padding: 0; border-radius: var(--radius-control); background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
.request__range:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.request__range::-webkit-slider-runnable-track { height: var(--thumb); border-radius: var(--radius-pill); background: linear-gradient(to right, var(--color-accent) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--pct)), var(--color-ring) 0) center / 100% 8px no-repeat; }
.request__range::-moz-range-track { height: 8px; border-radius: var(--radius-pill); background: var(--color-ring); }
.request__range::-moz-range-progress { height: 8px; border-radius: var(--radius-pill); background: var(--color-accent); }
.request__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb); border: 3px solid var(--color-page); border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 2px 6px oklch(25.9% 0.062 254.8 / 0.25); transition: transform var(--dur-micro) var(--ease-out); }
.request__range::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border: 3px solid var(--color-page); border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), 0 2px 6px oklch(25.9% 0.062 254.8 / 0.25); transition: transform var(--dur-micro) var(--ease-out); }
.request__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.request__range:active::-moz-range-thumb { transform: scale(1.12); }

.request__ends { display: flex; justify-content: space-between; padding-inline: calc(var(--button-height) + var(--space-sm)); font-size: var(--text-xs); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.request .btn--hero { margin-top: var(--space-md); }
.request__secure { display: flex; align-items: center; justify-content: center; gap: var(--space-xs); margin-top: calc(var(--space-xl) * var(--hero-space)); font-size: var(--text-sm); color: var(--color-muted); }
.request__secure strong { font-weight: 700; color: var(--color-ink); }
.request__secure img { width: 16px; height: 16px; }
.request__encrypted { margin-top: calc(var(--space-sm) * var(--hero-space)); font-size: var(--text-xs); line-height: 1.6; color: var(--color-muted); }
.request__disclosures { margin-top: calc(var(--space-sm) * var(--hero-space)); font-size: var(--text-sm); }
.request__disclosures a { display: inline-block; padding: var(--space-xs) var(--space-md); color: var(--color-accent-deep); }
.request__disclosures a:hover { color: var(--color-ink); }

/* ---- benefits: three cards, the picture panel apart from the text ---- */
/* the user asked for 40px less space above the small line (20px, then 20px more) */
.benefits { padding-top: calc(var(--section-gap) - 40px); }
.benefits__lead_in { margin-bottom: var(--space-xs); font-size: var(--text-sm); text-align: center; text-transform: uppercase; color: var(--color-muted); }
.benefits h2 { max-width: 24ch; margin-inline: auto; text-align: center; }
.benefits__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.benefits__item { overflow: hidden; border: 1px solid var(--color-rule); border-radius: var(--radius-panel); background: var(--color-page); }
.benefits__picture { aspect-ratio: 16 / 9; background: var(--color-shape); }
.benefits__picture img { width: 100%; height: 100%; object-fit: cover; }
.benefits__body { padding: var(--space-lg); }
.benefits__item h3 { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-lg); font-weight: 600; line-height: 1.4; color: var(--color-ink); }
.benefits__item h3 img { flex: none; width: 24px; height: 24px; }
.benefits__item p { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.9; color: var(--color-muted); }

/* ---- about: the figures under the paragraph ---- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; margin: var(--space-xl) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.facts__item { padding-inline: var(--space-md); }
.facts__item:first-child { padding-left: 0; }
.facts__item + .facts__item { border-left: 1px solid var(--color-rule); }
.facts dt { font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); }
.facts dd { margin: var(--space-2xs) 0 0; font-size: var(--text-md); font-weight: 600; line-height: 1.4; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- band: one sentence and the button, on navy ---- */
.band { --color-focus: var(--color-on-accent); display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); padding: var(--space-xl) var(--space-2xl); border-radius: var(--radius-panel); background: var(--color-ink); color: var(--color-on-accent); }
.band__statement { font-size: var(--text-band); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.section .band .btn { flex: none; margin-top: 0; }

/* ---- faq: one tinted panel ---- */
.faq__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-2xl); align-items: start; padding: var(--space-2xl); border-radius: var(--radius-panel); background: var(--color-shape); }
.faq__rows { border: 1px solid var(--color-rule); border-radius: var(--radius-control); background: var(--color-page); overflow: clip; }
.faq__rows details + details { border-top: 1px solid var(--color-rule); }
.faq__rows summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 60px; padding: var(--space-sm) var(--space-lg); color: var(--color-ink); cursor: pointer; list-style: none; transition: background-color var(--dur-short) var(--ease-out); }
.faq__rows summary::-webkit-details-marker { display: none; }
.faq__rows summary h3 { font-size: var(--text-md); font-weight: 500; line-height: 1.5; }
.faq__rows summary::after { content: ""; flex: none; width: 14px; height: 14px; color: var(--color-accent); background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.faq__rows summary:hover { background: var(--color-shape); }
.faq__rows summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.faq__rows details[open] summary h3 { font-weight: 600; }
.faq__rows details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.faq__rows details p { padding: 0 var(--space-lg) var(--space-lg); font-size: var(--text-sm); line-height: 1.9; color: var(--color-muted); }
.faq__rows details p a { color: var(--color-accent-deep); }
.faq__rows details p a:hover { color: var(--color-ink); }

/* ---- footer: disclosures, copyright, legal links ---- */
.footer { padding-block: var(--section-gap) var(--space-xl); font-size: var(--text-legal); line-height: 1.6; color: var(--color-text); }
.footer__legal p + p { margin-top: var(--space-sm); }
.footer__close { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); margin-top: var(--space-lg); text-align: center; }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-lg); margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-block; padding-block: var(--space-xs); color: var(--color-accent-deep); }
.footer__links a:hover { color: var(--color-ink); }

/* ---- the figures row may wrap its values where the text column is narrow ---- */
@media (max-width: 68rem) {
  .facts dd { white-space: normal; }
}

/* ---- tablets ---- */
@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .split__picture { justify-self: center; }
  .split__picture img { margin-inline: auto; }
  .benefits__list { gap: var(--space-md); }
  .benefits__body { padding: var(--space-md); }
  .band { padding: var(--space-xl); }
  .faq__card { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); padding: var(--space-xl); }
}

/* ---- phones ---- */
@media (max-width: 40rem) {
  .hero { padding-block: calc(var(--space-md) * var(--hero-space)) calc(var(--space-xl) * var(--hero-space)); }
  .request__rays { display: none; }
  .hero__logo img { width: 160px; }
  .banner { padding-inline: var(--space-md); }
  .request__card { padding: var(--space-md); }
  .benefits__list { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .facts__item, .facts__item + .facts__item { padding-inline: 0; border-left: 0; }
  .band { flex-direction: column; align-items: stretch; gap: var(--space-lg); padding: var(--space-lg); text-align: center; }
  .section .band .btn { align-self: center; }
  .faq__card { padding: var(--space-lg) var(--space-md); }
  .faq__rows summary { padding-inline: var(--space-md); }
  .faq__rows details p { padding-inline: var(--space-md); }
}
