/* =========================================
   PERSONAL LOAN
   Page-level styles for /personal-loan (personal-loan/index.html).
   Also loaded by the segment pages /personal-loan/for-salaried, /for-self-employed,
   /for-gig-workers-and-freelancers and /without-salary-slip, which use only .reading-layout--single from here,
   plus the sal- prefixed "Salaried page" block, which only /for-salaried uses.
   Loads after: tailwind, site, launch, consumer-bar.
   Sections: Hero · Who can apply · How it works · Documents and KYC · Salaried page · Self-employed page · Get the app
   Add new styles for this page here, inside the matching section.
   ========================================= */

/* ---------- Hero ---------- */
/* /personal-loan hero: "Loan overview" visual on the left, copy on the right.
   Scoped to .page-hero--visual so other pages that share .page-hero are unaffected. */
.page-hero--visual .page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}
/* Avoid a one-word last line ("sign.") in the hero paragraphs. */
.page-hero--visual .intro-copy p {
  text-wrap: pretty;
}
/* Visual first on wide screens only; stacked below that, the copy (and h1) stays on top. */
@media (min-width: 900px) {
  .page-hero--visual .page-hero__visual {
    order: -1;
  }
}
.page-hero__copy {
  min-width: 0;
}
.page-hero__visual {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 480px;
}
.page-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* No "On this page" sidebar: one reading column, left-aligned with the hero copy. */
.reading-layout--single {
  grid-template-columns: minmax(0, 940px);
}
/* Reading-column polish for /for-gig-workers-and-freelancers and /without-salary-slip (scoped to .reading-layout--single). */
/* "Pending confirmation" notes: readable size, and a gap from the paragraph above instead of touching it. */
.reading-layout--single .pending-fact {
  display: block;
  width: fit-content;
  max-width: 70ch;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
}
.reading-layout--single li .pending-fact {
  display: inline-block;
  margin: 0 0 0 6px;
  padding: 3px 9px;
  font-size: 13px;
}
/* Numbered steps: centre each number on the first line of text, and drop the last rule so it does not double up with the section divider. */
.reading-layout--single .timeline-number {
  top: -6px;
}
.reading-layout--single .timeline-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
/* Table: header cells share one tint (the sticky first cell was lighter than the rest of the header row). */
.reading-layout--single .table-scroll thead tr > :first-child {
  background: var(--mist);
}
/* Related-page cards: avoid a lone trailing arrow on its own line, and give the link a hover state now that it has no underline. */
.reading-layout--single .segment-card a {
  text-wrap: pretty;
}
.reading-layout--single .segment-card a:hover {
  color: #0b4836;
}

/* Stack below the copy once two columns would squeeze the headline. */
@media (max-width: 899px) {
  .page-hero--visual .page-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .page-hero__visual {
    max-width: 380px;
  }
}
@media (max-width: 479px) {
  .page-hero__visual {
    max-width: min(320px, 100%);
  }
}

/* The copy's forced line break only suits the wide column; let it flow naturally below that. */
@media (max-width: 1279px) {
  .page-hero--visual .desktop-break {
    display: none;
  }
}

/* Keep "self-employed" in one piece in segment-page headings instead of breaking after the hyphen. */
.nowrap {
  white-space: nowrap;
}

/* ---------- Who can apply ---------- */
/* /personal-loan #who-its-for: the four "find the page that sounds like you" cards. Scoped to #who-its-for and to the
   .sal-related ("Not salaried?") block on /personal-loan/for-salaried; Home, /eligibility and the other segment pages keep the plain
   .segment-card from launch.css. Reuses --navy, --forest, --line,
   --muted, --mist, the 15px card radius and the .button-primary colours. Markup: segmentCards(…,{enhanced:true}). */
#who-its-for .segment-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
#who-its-for .segment-card,
.sal-related .segment-card,
.se-related .segment-card {
  position: relative;
  padding: 28px 28px 26px;
  border-color: var(--line);
  box-shadow: none;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s,
    box-shadow 0.22s;
}
#who-its-for .segment-card h3,
.sal-related .segment-card h3,
.se-related .segment-card h3 {
  margin: 20px 0 8px;
  max-width: none;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
#who-its-for .segment-card p,
.sal-related .segment-card p,
.se-related .segment-card p {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}
#who-its-for .segment-card__icon,
.sal-related .segment-card__icon,
.se-related .segment-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--forest);
  transition: background-color 0.22s;
}
#who-its-for .segment-card__icon svg,
.sal-related .segment-card__icon svg,
.se-related .segment-card__icon svg {
  width: 24px;
  height: 24px;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
#who-its-for .segment-card__cta,
.sal-related a.segment-card__cta,
.se-related a.segment-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin-top: auto;
  padding: 12px 18px 12px 20px;
  border-radius: 7px;
  background: var(--forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color 0.2s;
}
#who-its-for .segment-card__arrow,
.sal-related .segment-card__arrow,
.se-related .segment-card__arrow {
  flex: none;
  width: 19px;
  height: 19px;
  transition: transform 0.2s;
}
#who-its-for .segment-card__cta:hover,
.sal-related a.segment-card__cta:hover,
.se-related a.segment-card__cta:hover {
  background: #0b4836;
  text-decoration: none;
}
#who-its-for .segment-card__cta:focus-visible,
.sal-related a.segment-card__cta:focus-visible,
.se-related a.segment-card__cta:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

@media (hover: hover) {
#who-its-for .segment-card:hover,
.sal-related .segment-card:hover,
.se-related .segment-card:hover {
    transform: translateY(-2px);
    border-color: #9fc9bb;
    box-shadow: 0 12px 28px -14px rgba(23, 40, 62, 0.22);
  }
#who-its-for .segment-card:hover .segment-card__icon,
.sal-related .segment-card:hover .segment-card__icon,
.se-related .segment-card:hover .segment-card__icon {
    background: #e3f1ec;
  }
#who-its-for .segment-card:hover .segment-card__icon svg,
.sal-related .segment-card:hover .segment-card__icon svg,
.se-related .segment-card:hover .segment-card__icon svg {
    transform: scale(1.06);
  }
#who-its-for .segment-card__cta:hover .segment-card__arrow,
.sal-related a.segment-card__cta:hover .segment-card__arrow,
.se-related a.segment-card__cta:hover .segment-card__arrow {
    transform: translateX(3px);
  }
}

@media (max-width: 639px) {
  #who-its-for .segment-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
#who-its-for .segment-card,
.sal-related .segment-card,
.se-related .segment-card {
    padding: 22px 20px 20px;
  }
#who-its-for .segment-card h3,
.sal-related .segment-card h3,
.se-related .segment-card h3 {
    margin-top: 16px;
    font-size: 20px;
  }
#who-its-for .segment-card p,
.sal-related .segment-card p,
.se-related .segment-card p {
    margin-bottom: 22px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
#who-its-for .segment-card,
#who-its-for .segment-card__icon,
#who-its-for .segment-card__icon svg,
#who-its-for .segment-card__cta,
#who-its-for .segment-card__arrow,
.sal-related .segment-card,
.sal-related .segment-card__icon,
.sal-related .segment-card__icon svg,
.sal-related a.segment-card__cta,
.sal-related .segment-card__arrow,
.se-related .segment-card,
.se-related .segment-card__icon,
.se-related .segment-card__icon svg,
.se-related a.segment-card__cta,
.se-related .segment-card__arrow {
    transition: none;
  }
#who-its-for .segment-card:hover,
#who-its-for .segment-card:hover .segment-card__icon svg,
#who-its-for .segment-card__cta:hover .segment-card__arrow,
.sal-related .segment-card:hover,
.sal-related .segment-card:hover .segment-card__icon svg,
.sal-related a.segment-card__cta:hover .segment-card__arrow,
.se-related .segment-card:hover,
.se-related .segment-card:hover .segment-card__icon svg,
.se-related a.segment-card__cta:hover .segment-card__arrow {
    transform: none;
  }
}

/* ---------- How it works ---------- */
/* /personal-loan "How it works": six stage cards that each open a panel of detailed steps,
   a "Who does what" callout and a collapsed missed-payments note.
   Reuses the Rinncrest tokens (--navy, --forest, --teal, --line, --mist, --muted), the 15px card radius and
   the shared .timeline-step / .timeline-number step markup from launch.css. Behaviour: how-it-works.js.
   Without JavaScript every panel stays visible below the cards, so no content is hidden. */

/* Stage cards */
.prose .journey {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.prose .journey > .journey-step {
  margin-top: 0;
}
.journey-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.journey-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 0 auto;
  width: 100%;
  padding: 26px 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(23, 40, 62, 0.05);
  font: inherit;
  text-align: left;
  color: var(--navy);
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s,
    box-shadow 0.22s,
    background-color 0.22s;
}
.journey-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  border-radius: 15px;
}
.journey-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 22px;
}
.journey-num {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 36px;
  padding-inline: 10px;
  border: 1px solid #bad3c9;
  border-radius: 10px;
  background: var(--mist);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--forest);
  transition:
    background-color 0.22s,
    color 0.22s,
    border-color 0.22s;
}
.journey-card__icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.journey-card__summary {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.journey-card__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
}
.journey-card__cta .icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

/* A short link between neighbouring cards signals one journey without becoming a flowchart. */
.journey-card::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 100%;
  width: 20px;
  border-top: 1px solid #9fc9bb;
}
.journey-step:nth-child(even) .journey-card::after {
  content: none;
}

.journey-card:hover,
.journey-card:focus-visible {
  border-color: #9fc9bb;
}
@media (hover: hover) {
  .journey-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -18px rgba(15, 92, 69, 0.4);
  }
  .journey-card:hover .journey-card__cta .icon {
    transform: translateX(3px);
  }
}
.journey-card[aria-expanded="true"] {
  background: var(--mist);
  border-color: var(--forest);
}
.journey-card[aria-expanded="true"] .journey-num {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.journey-card[aria-expanded="true"] .journey-card__cta .icon {
  transform: rotate(90deg);
}

/* Detail panel */
.journey-details {
  margin-top: 24px;
}
.journey-panel {
  margin: 0;
  padding: 26px 32px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  scroll-margin-top: 110px;
  animation: journey-reveal 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.journey-panel[hidden] {
  display: none;
}
.journey-panel + .journey-panel {
  margin-top: 20px;
}
.prose .journey-panel h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding-bottom: 18px;
  max-width: none;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}
.journey-panel .timeline-step {
  margin-block: 0;
  padding: 22px 0 22px 60px;
}
.journey-panel .timeline-number {
  top: 22px;
}
.journey-panel .timeline-step:last-child {
  border-bottom: 0;
}
.journey-panel .timeline-step p + p {
  margin-top: 8px;
}
.journey-panel .timeline-step p {
  font-size: 16px;
  line-height: 1.7;
}

.journey-more {
  margin-top: 14px;
  max-width: 75ch;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.journey-more > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
}
.journey-more[open] > summary {
  border-bottom: 1px solid var(--line);
}
.journey-more__body {
  padding: 6px 16px 14px;
}
.journey-more__body p {
  margin-block: 10px 0;
  font-size: 15px;
  line-height: 1.65;
}
.journey-more__body ul {
  margin: 8px 0 0;
  padding-left: 22px;
  list-style: disc;
  font-size: 15px;
  line-height: 1.65;
}
.journey-more__body li + li {
  margin-top: 4px;
}

/* Who does what */
.journey-roles {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.journey-roles__icon {
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prose .journey-roles h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.prose .journey-roles p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
}

@keyframes journey-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .prose .journey {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .journey-card {
    padding: 22px 22px 20px;
  }
  .journey-card__head {
    margin-bottom: 16px;
  }
  /* Single column: the link runs down between stacked cards, under the step number. */
  .journey-step:nth-child(even) .journey-card::after {
    content: "";
  }
  .journey-step:last-child .journey-card::after {
    content: none;
  }
  .journey-card::after {
    top: 100%;
    left: 44px;
    width: 0;
    height: 18px;
    border-top: 0;
    border-left: 1px solid #9fc9bb;
  }
  /* The script moves each panel to sit directly under its card. */
  .journey-step > .journey-panel {
    margin-top: 18px;
  }
  .journey-panel {
    padding: 20px 18px 4px;
  }
  .prose .journey-panel h3 {
    font-size: 20px;
  }
  .journey-panel .timeline-step {
    padding: 18px 0 18px 46px;
  }
  .journey-panel .timeline-number {
    top: 18px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .journey-roles {
    flex-direction: column;
    gap: 12px;
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-card,
  .journey-card__cta .icon {
    transition: none;
  }
  .journey-card:hover {
    transform: none;
  }
  .journey-panel {
    animation: none;
  }
}
@media print {
  .journey-panel[hidden] {
    display: block !important;
  }
  .journey-card::after {
    content: none !important;
  }
}

/* ---------- Documents and KYC ---------- */
/* /personal-loan "Documents and KYC": reassurance row, required-document cards, lighter "may also be asked for"
   cards and a security callout. Scoped to #documents; reuses the Rinncrest tokens and the 15px card radius. */
#documents .doc-assurance {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
}
#documents .doc-assurance li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
#documents .doc-assurance strong {
  display: block;
  font-weight: 700;
  color: var(--navy);
}
.doc-assurance__icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#documents .doc-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
#documents .doc-grid > li {
  margin: 0;
}
.doc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 1px 2px rgba(23, 40, 62, 0.05);
}
.doc-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid #bad3c9;
  border-radius: 12px;
  background: var(--mist);
}
.doc-card__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#documents .doc-card h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
}
#documents .doc-card p {
  margin: 0;
  max-width: none;
}
#documents .doc-card .doc-card__why {
  margin: 8px 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
#documents .doc-card__how {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#documents .doc-card .doc-card__label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest);
}
#documents .doc-card__how p:not(.doc-card__label) {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
}

/* Conditional requests: lighter and smaller than the four required cards. */
#documents .doc-more-intro {
  margin-block: 6px 0;
  color: var(--muted);
}
#documents .doc-grid--light {
  margin-top: 18px;
}
.doc-card--light {
  padding: 20px 22px;
  background: var(--mist);
  box-shadow: none;
}
#documents .doc-card--light h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
}
.doc-card__mini {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--forest);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#documents .doc-card--light .doc-card__why {
  margin-bottom: 14px;
  font-size: 15px;
}
#documents .doc-card--light .doc-card__how {
  padding-top: 12px;
}
#documents .doc-card--light .doc-card__how p:not(.doc-card__label) {
  font-size: 15px;
}
#documents .doc-repayment-note {
  margin-top: 18px;
  font-size: 15px;
  color: var(--muted);
}

/* Security callout: navy like the trust blocks elsewhere on the site, calm rather than alarming. */
.doc-safety {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 32px;
  background: #E3F2EE;
  border-radius: 15px;
  /* color: #dbe6ee; */
}
.doc-safety__icon {
  width: 34px;
  height: 34px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: #0F5C45;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#documents .doc-safety h3 {
  margin: 0 0 10px;
  font-size: 21px;
  /* color: #fff; */
  max-width: none;
}
#documents .doc-safety p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: inherit;
}
#documents .doc-safety p + p {
  margin-top: 14px;
}
#documents .doc-safety a:not(.button) {
  color: #0F5C45;
  font-weight: 600;
}
#documents .doc-safety a:focus-visible {
  outline-color: #fff;
}

@media (max-width: 1023px) {
  #documents .doc-assurance {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .doc-card {
    padding: 24px;
  }
}
@media (max-width: 639px) {
  #documents .doc-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .doc-card {
    padding: 22px 20px;
  }
  .doc-card--light {
    padding: 18px 20px;
  }
  .doc-safety {
    flex-direction: column;
    gap: 14px;
    padding: 24px 22px;
  }
}
@media print {
  .doc-safety {
    background: none;
    color: #000;
    border: 1px solid #000;
  }
  #documents .doc-safety h3,
  #documents .doc-safety a:not(.button) {
    color: #000;
  }
}

/* ---------- Salaried page ---------- */
/* /personal-loan/for-salaried only. Loan snapshot, eligibility checklist with the new-to-credit callout, and the
   documents split. Every class is sal- prefixed and written at .prose specificity so the shared prose rules (list
   bullets, paragraph margins) do not leak in, and nothing here reaches /personal-loan or the other segment pages.
   Reuses --navy, --forest, --teal, --line, --muted and --mist; 12px radius like the eligibility page. */

/* ========================================
   Salaried Loan Overview
   ======================================== */
.prose .sal-glance h2,
.prose .sal-check h2 {
  margin-bottom: 10px;
}
.prose .sal-lede {
  max-width: 60ch;
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ========================================
   Salaried Eligibility
   ======================================== */
.prose ul.sal-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.prose .sal-check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sal-tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--forest);
}
.sal-tick svg {
  width: 15px;
  height: 15px;
}
.sal-check-item strong {
  display: block;
  font-size: 17px;
  line-height: 1.4;
  color: var(--navy);
}
.sal-check-item div > span {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.prose .sal-reassure {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding: 22px 26px 18px 22px;
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  background: var(--teal-wash);
}
.sal-reassure-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--teal-line);
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
}
.sal-reassure-icon svg {
  width: 19px;
  height: 19px;
}
.prose .sal-reassure h3 {
  max-width: none;
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.prose .sal-reassure p {
  max-width: 62ch;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
}
.sal-reassure .text-link .icon,
.sal-docs .text-link .icon,
.sal-sign .text-link .icon,
.sal-apps .text-link .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.sal-reassure .text-link:hover .icon,
.sal-docs .text-link:hover .icon,
.sal-sign .text-link:hover .icon,
.sal-apps .text-link:hover .icon {
  transform: translateX(3px);
}

/* ========================================
   Salaried Documents
   ======================================== */
.sal-docs-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 32px 56px;
  align-items: start;
}
.prose .sal-docs-core p {
  max-width: 44ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}
.prose ol.sal-docs-list {
  max-width: none;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: sal-doc;
  border-top: 1px solid var(--line);
}
.prose .sal-docs-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  counter-increment: sal-doc;
}
.sal-docs-list li::before {
  content: counter(sal-doc, decimal-leading-zero);
  flex: 0 0 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--forest);
}
.prose .sal-docs-proof {
  padding: 26px 28px 20px;
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  background: var(--teal-wash);
}
.prose .sal-docs-proof h3 {
  max-width: none;
  margin: 0 0 10px;
  font-size: 21px;
}
.prose .sal-docs-proof p {
  max-width: 52ch;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-body);
  text-wrap: pretty;
}
.prose .sal-docs-proof ul {
  max-width: none;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.prose .sal-docs-proof li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.sal-docs-proof li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-3px);
}
.prose .sal-docs-proof .sal-docs-alt {
  margin: 18px 0 2px;
  padding-top: 16px;
  border-top: 1px solid var(--teal-rule);
  color: var(--muted);
}

/* ========================================
   Salaried: loan size, employer types, steps
   ======================================== */
/* Same grammar as the top of the page: hairline rows, mono numerals, 12px radius, teal wash for reassurance. */
.prose .sal-table {
  margin: 24px 0 0;
  overflow: hidden;
  border-radius: 12px;
}
.sal-table table {
  font-size: 15.5px;
  line-height: 1.5;
}
.sal-table :is(th, td) {
  padding: 16px 20px;
}
.prose .sal-table thead th {
  background: var(--mist);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.prose .sal-table tr > :first-child {
  position: static;
  background: #fff;
}
.prose .sal-table thead tr > :first-child {
  background: var(--mist);
}
.sal-table tbody th {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.sal-table td {
  color: var(--ink-body);
}
.sal-table td:nth-child(3) {
  font-weight: 700;
  color: var(--navy);
}
.prose .sal-table + p {
  margin: 14px 0 0;
}
.sal-table + p em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.prose .sal-rows {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.sal-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 8px 40px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.prose .sal-row h3 {
  max-width: none;
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.prose .sal-row p {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  color: var(--ink-body);
}
.prose .sal-row p + p {
  margin-top: 12px;
}
.prose .sal-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  background: var(--teal-wash);
}
.prose .sal-note p {
  max-width: 60ch;
  margin: 0;
  font-size: 16px;
  color: var(--ink-body);
}
.prose ol.sal-steps {
  max-width: none;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: sal-step;
  border-top: 1px solid var(--line);
}
.prose .sal-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: sal-step;
}
.sal-step::before {
  content: counter(sal-step, decimal-leading-zero);
  padding-top: 3px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--forest);
}
.sal-step div {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.65;
}
.sal-step strong {
  color: var(--navy);
}
.prose .sal-sign .sal-lead {
  font-size: 18px;
  color: var(--navy);
}
.prose .sal-more {
  margin: 20px 0 0;
}

/* ========================================
   Salaried: closing call to action
   ======================================== */
.sal-cta {
  padding-bottom: 0;
  border-bottom: 0;
}
.prose .sal-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 28px 48px;
  align-items: center;
  padding: 40px 44px;
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  background: var(--teal-wash);
  color: var(--navy);
}
.prose .sal-cta h2 {
  max-width: none;
  margin-bottom: 14px;
  color: #17283E;
}
.prose .sal-cta-copy p {
  max-width: 52ch;
  margin: 0 0 12px;
  font-size: 16.5px;
  color: #2b3f53;
}
.prose .sal-cta-panel a:not(.button) {
  color: var(--forest);
  font-weight: 600;
  text-underline-offset: 4px;
}
.sal-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prose .sal-cta .button {
  min-height: 56px;
  justify-content: space-between;
  background: var(--forest);
  color: #fff;
}
.prose .sal-cta .button:hover {
  background: #0b4836;
}
.prose .sal-cta-actions .text-link {
  justify-content: center;
}
.sal-cta-panel :focus-visible {
  outline-color: #2563eb;
}
/* "Not salaried?": the three sibling-segment cards share the "Who can apply" card treatment above (icon tile + button CTA).
   The grid is auto-fit so three cards sit in a row on desktop and wrap on tablet. */
.sal-related .segment-card,
.se-related .segment-card {
  border-radius: 12px;
}
.prose .sal-related ul.segment-cards,
.prose .se-related ul.segment-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 28px;
}
/* Self-employed "Other ways people earn" and /personal-loan #who-its-for: the card link is a plain text link (forest, arrow after the label, no underline), not a filled button. */
#who-its-for a.segment-card__cta,
.se-related a.segment-card__cta {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--forest);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}
#who-its-for a.segment-card__cta:hover,
.se-related a.segment-card__cta:hover {
  background: none;
}
#who-its-for a.segment-card__cta .segment-card__arrow,
.se-related a.segment-card__cta .segment-card__arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: -3px;
}

/* Three narrow columns: a slightly tighter card and button keep every label to two lines, so the buttons line up across the row. */
@media (min-width: 640px) {
  .sal-related .segment-card,
  .se-related .segment-card {
    padding: 26px 24px 24px;
  }
  .sal-related a.segment-card__cta {
    gap: 12px;
    min-height: 68px;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* One authored moment: each card rises into place as it scrolls into view, a beat after its neighbour. Scroll-driven, so no
   JavaScript; browsers without animation-timeline, and reduced-motion visitors, just see the cards. */
@keyframes segment-card-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sal-related .segment-cards > li,
    .se-related .segment-cards > li {
      animation: segment-card-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    .sal-related .segment-cards > li:nth-child(2),
    .se-related .segment-cards > li:nth-child(2) {
      animation-range: entry 6% entry 46%;
    }
    .sal-related .segment-cards > li:nth-child(3),
    .se-related .segment-cards > li:nth-child(3) {
      animation-range: entry 12% entry 52%;
    }
  }
}

/* ---------- Salaried page: responsive ---------- */
@media (max-width: 899px) {
  .sal-docs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .prose ul.sal-checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  .sal-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .prose .sal-cta-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 24px;
  }
}
@media (max-width: 600px) {
  /* The loan-size table becomes one block per salary, label left and value right, instead of scrolling sideways. */
  .sal-table table,
  .sal-table tbody,
  .sal-table tr {
    display: block;
  }
  .sal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .sal-table tr {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
  }
  .sal-table tbody tr:last-child {
    border-bottom: 0;
  }
  .sal-table :is(th, td),
  .prose .sal-table tbody tr > :last-child {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    text-align: right;
  }
  .sal-table :is(th, td)::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--muted);
    text-align: left;
  }
  .prose .sal-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .prose .sal-step {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .prose .sal-cta-panel {
    padding: 26px 20px;
  }
  .prose .sal-reassure {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 20px 18px 14px;
  }
  .prose .sal-docs-proof {
    padding: 22px 18px 14px;
  }
}

/* ---------- Salaried page: motion ---------- */
/* Scroll-driven entrance where supported (items rise a few pixels, staggered by --i); elsewhere content just sits in
   place. Reduced motion gets no entrance and no hover movement. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sal-glance .glance-card__fact,
    .sal-check-item,
    .sal-reassure,
    .sal-docs-core,
    .sal-docs-proof,
    .sal-table,
    .sal-row,
    .sal-step,
    .sal-note,
    .sal-cta-panel {
      animation: sal-rise linear backwards;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 4%) entry calc(36% + var(--i, 0) * 4%);
    }
    :is(.sal-glance .glance-card__fact, .sal-check-item, .sal-row, .sal-step):nth-child(2) { --i: 1; }
    :is(.sal-glance .glance-card__fact, .sal-check-item, .sal-row, .sal-step):nth-child(3) { --i: 2; }
    :is(.sal-glance .glance-card__fact, .sal-check-item, .sal-step):nth-child(4) { --i: 3; }
    :is(.sal-glance .glance-card__fact, .sal-check-item):nth-child(5) { --i: 4; }
    :is(.sal-glance .glance-card__fact, .sal-check-item):nth-child(6) { --i: 5; }
    .sal-docs-proof { --i: 2; }
  }
  @keyframes sal-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .sal-reassure .text-link .icon,
  .sal-docs .text-link .icon,
  .sal-sign .text-link .icon,
  .sal-apps .text-link .icon {
    transition: none;
  }
  .sal-reassure .text-link:hover .icon,
  .sal-docs .text-link:hover .icon,
  .sal-sign .text-link:hover .icon,
  .sal-apps .text-link:hover .icon {
    transform: none;
  }
}

/* ---------- Self-employed page ---------- */
/* /personal-loan/for-self-employed: eligibility checklist
   (.check-list, .info-note). Markup: selfEmployedGlance / selfEmployedEligibility in tools/lib/segment-pages.cjs.
   Reuses --navy, --forest, --teal, --teal-tint, --teal-wash, --teal-line, --ink-body, --line, --muted and --mist. */
.prose .check-lead {
  max-width: 62ch;
  font-size: 17px;
}
.prose ul.check-list {
  list-style: none;
  max-width: none;
  margin: 24px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.prose .check-list__item {
  display: grid;
  grid-template-columns: 28px 168px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  margin: 0;
  padding: 18px 24px;
  line-height: 1.5;
  transition: background-color 0.2s;
}
.prose .check-list__item + .check-list__item {
  margin-top: 0;
  border-top: 1px solid var(--line);
}
.check-list__tick {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--forest);
}
.check-list__tick svg {
  width: 15px;
  height: 15px;
}
.check-list__label {
  padding-top: 3px;
  color: var(--navy);
}
.check-list__text {
  padding-top: 3px;
  color: var(--ink-body);
}
.prose .info-note {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--teal-line);
  border-radius: 12px;
  background: var(--teal-wash);
}
.info-note__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--forest);
}
.info-note__icon svg {
  width: 20px;
  height: 20px;
}
.prose .info-note p {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-body);
}
.prose .info-note .info-note__title {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}

@media (hover: hover) {
  .check-list__item:hover {
    background: var(--teal-wash);
  }
}
@media (max-width: 599px) {
  .prose .check-list__item {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 16px 18px;
  }
  .check-list__tick {
    grid-row: span 2;
  }
  .check-list__label,
  .check-list__text {
    grid-column: 2;
    padding-top: 0;
  }
  .check-list__label {
    padding-top: 3px;
  }
  .prose .info-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .check-list__item {
    transition: none;
  }
}

/* ---------- At-a-glance cards ---------- */
/* "At a glance" on /personal-loan/for-salaried, /for-self-employed and /for-gig-workers-and-freelancers (.glance-card): two tinted lead
   facts, three white facts and the lender strip, each its own card with space between. Markup: glanceCards in tools/lib/segment-pages.cjs. Reuses --navy, --forest,
   --teal-wash, --teal-line, --ink-body, --line and --muted. */
.prose .glance-card {
  max-width: none;
  margin: 28px 0 0;
}
.prose .glance-card__facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: none;
  margin: 0;
  padding: 0;
}
.glance-card__fact {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.glance-card__fact--lead {
  grid-column: span 3;
  border-color: var(--teal-line);
  background: var(--teal-wash);
}
.glance-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #e3f1ec;
  color: var(--forest);
}
.glance-card__icon svg {
  width: 22px;
  height: 22px;
}
.glance-card__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}
.glance-card__value {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-wrap: balance;
  color: var(--navy);
}
.glance-card__value--free {
  color: var(--forest);
}
.glance-card__note {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.prose .glance-card__lender {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  max-width: none;
  margin: 20px 0 0;
  padding: 20px 30px;
  border: 1px solid var(--teal-line);
  border-radius: 16px;
  background: var(--teal-wash);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-body);
}
.glance-card__lender-icon {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--forest);
}
.glance-card__lender-icon svg {
  width: 100%;
  height: 100%;
}
.glance-card__lender-label {
  padding-right: 18px;
  border-right: 1px solid var(--teal-line);
  color: var(--navy);
}
.glance-card__lender a {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 899px) {
  .prose .glance-card__facts {
    gap: 16px;
  }
  .glance-card__fact {
    padding: 24px 24px 26px;
  }
}
@media (max-width: 599px) {
  .prose .glance-card__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .glance-card__fact,
  .glance-card__fact--lead {
    grid-column: 1;
    padding: 22px 22px 24px;
  }
  .prose .glance-card__lender {
    margin-top: 14px;
    padding: 18px 22px;
  }
  .glance-card__lender-label {
    padding-right: 0;
    border-right: 0;
  }
}

/* ---------- Get the app ---------- */
/* The download heading is the /personal-loan#app target; keep it clear of the sticky header. */
#app {
  scroll-margin-top: 108px;
}

/* "Get the Rinn personal loan app" (#download): copy and one primary CTA on the left, the Rinn mark on a white tile on the right.
   Beats the shared .download-content block in launch.css (including its !important padding). Reuses --forest, --teal-line,
   --teal-wash, --navy and the .button-primary colours. Hand-added markup: not produced by the page generator. */
#download.download-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px clamp(32px, 6vw, 72px);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4.5vw, 56px) !important;
  overflow: hidden;
  border: 1px solid var(--teal-line);
  border-radius: 20px;
  background: var(--teal-tint);
}
.download-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}
#download .download-card__body h2 {
  max-width: 18ch;
  margin-bottom: 16px;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}
#download .download-card__body p {
  max-width: 52ch;
  margin-block: 0 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
}
#download .download-card__body p a:not(.button) {
  text-decoration: none;
  text-underline-offset: 4px;
}
#download .download-card__action {
  margin: 28px 0 0;
}
#download a.download-card__cta {
  min-height: 60px;
  gap: 28px;
  padding: 16px 28px 16px 32px;
  border-radius: 10px;
  font-size: 17px;
  box-shadow: 0 10px 22px -14px rgba(15, 92, 69, 0.7);
  color: #fff;
  text-decoration: none;
  transition:
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
#download a.download-card__cta:hover {
  box-shadow: 0 14px 26px -14px rgba(15, 92, 69, 0.8);
}
#download a.download-card__cta:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
#download .download-card__cta .icon {
  width: 22px;
  height: 22px;
}

/* The mark sits on a white tile inside two faint rings: the open circle from the Rinncrest brand, clipped by the card edge. */
.download-card__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(176px, 22vw, 232px);
  aspect-ratio: 1;
}
.download-card__mark::before,
.download-card__mark::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(15, 92, 69, 0.16);
  border-radius: 50%;
}
.download-card__mark::before {
  inset: 0;
}
.download-card__mark::after {
  inset: -34px;
  border-color: rgba(15, 92, 69, 0.09);
}
.download-card__tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid var(--teal-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 34px -22px rgba(15, 92, 69, 0.45);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}
.download-card__tile img {
  display: block;
  width: 46%;
  height: auto;
}

@media (hover: hover) {
  #download.download-content:hover .download-card__tile {
    transform: translateY(-4px);
    box-shadow: 0 24px 38px -22px rgba(15, 92, 69, 0.5);
  }
}

/* Stacked: the mark moves above the heading as a small tile, so the card stays short and the CTA stays full width. */
@media (max-width: 719px) {
  #download.download-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px 20px 26px !important;
  }
  .download-card__mark {
    order: -1;
    justify-self: start;
    width: 76px;
  }
  .download-card__mark::before,
  .download-card__mark::after {
    content: none;
  }
  .download-card__tile {
    width: 100%;
    border-radius: 18px;
  }
  #download .download-card__body h2 {
    max-width: none;
    margin-bottom: 12px;
    font-size: 28px;
  }
  #download .download-card__body p {
    font-size: 16px;
  }
  #download .download-card__action {
    margin-top: 24px;
  }
  #download a.download-card__cta {
    display: flex;
    width: 100%;
  }
}

/* One quiet entrance: the tile settles into place as the card scrolls into view. Scroll-driven, so no JavaScript. */
@keyframes download-tile-settle {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .download-card__tile {
      animation: download-tile-settle linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 70%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  #download a.download-card__cta,
  .download-card__tile {
    transition: none;
  }
  #download.download-content:hover .download-card__tile {
    transform: none;
  }
}
