/* ==========================================================================
   Homepage (avhishek.in)
   Site tokens from site.css. Headline foil shared with the cards and support
   pages; accent is the brand orange #fc6e20 from the wordmark dot.
   The search is the one memorable element; everything else stays quiet.
   ========================================================================== */

.hm {
  --hm-gutter: 20px;
  --hm-orange: #fc6e20;
  --hm-orange-text: #c2410c;
  --hm-ease: cubic-bezier(0.2, 0, 0, 1);
  width: min(1180px, 100% - 2 * var(--hm-gutter));
  margin-inline: auto;
  padding-block: 48px 104px;
}
html[data-theme="dark"] .hm { --hm-orange-text: #ff9a5c; }
@media (min-width: 720px) { .hm { --hm-gutter: 32px; } }
.hm:focus { outline: none; }
.hm :where(h1, h2, h3, p, ul) { margin: 0; }
.hm :where(ul) { padding: 0; list-style: none; }

/* ---------- Hero ---------- */
.hm-hero {
  display: grid;
  justify-items: center;
  padding-block: 40px 8px;
  text-align: center;
}
/* Announcement pill above the headline, linked to the follow section: orange "New" text,
   a hairline divider, the message and an arrow. A thin orange light travels round the
   border (conic gradient on an animated @property angle); reduced motion keeps it still. */
@property --hm-soon-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.hm-soon {
  --soon-bg: var(--surface);
  --soon-edge: var(--line-strong);
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  max-width: 100%;
  min-height: 34px;
  margin-bottom: 16px !important;
  padding: 0 13px 0 0;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background:
    linear-gradient(var(--soon-bg), var(--soon-bg)) padding-box,
    conic-gradient(from var(--hm-soon-a), var(--soon-edge) 0deg, var(--soon-edge) 250deg, var(--hm-orange) 300deg, #ffd2b0 320deg, var(--soon-edge) 360deg) border-box;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  text-decoration: none;
}
html[data-theme="dark"] .hm-soon { --soon-bg: #111113; --soon-edge: #2a2a2e; box-shadow: none; }
.hm-soon-label {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: none;
  margin-right: 10px;
  padding: 0 10px 0 13px;
  border-right: 1px solid var(--line);
  color: var(--hm-orange-text);
  font-weight: 600;
}
.hm-soon-text { white-space: nowrap; }
.hm-soon-arrow { flex: none; width: 14px; height: 14px; margin-left: 8px; color: var(--muted); transition: transform 200ms var(--hm-ease), color 200ms var(--hm-ease); }
@media (hover: hover) {
  .hm-soon:hover .hm-soon-arrow { transform: translateX(2px); color: var(--text); }
}
@media (prefers-reduced-motion: no-preference) {
  .hm-soon { animation: hm-soon-in 640ms var(--hm-ease) both, hm-soon-spin 4s linear infinite; }
}
@media (max-width: 640px) {
  .hm-soon { min-height: 32px; margin-bottom: 12px !important; padding-right: 11px; font-size: 0.75rem; }
  .hm-soon-label { margin-right: 8px; padding: 0 8px 0 11px; }
  .hm-soon-arrow { width: 13px; height: 13px; margin-left: 6px; }
}
@keyframes hm-soon-spin { to { --hm-soon-a: 360deg; } }
@keyframes hm-soon-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
.hm-title {
  max-width: 14ch;
  color: var(--text);
  font-size: clamp(2.75rem, 1.5rem + 5.2vw, 5.75rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hm-title > span { display: block; }
.hm-title-foil {
  padding-bottom: 0.06em;
  background: linear-gradient(180deg, #a8741b 0%, #6f4610 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="dark"] .hm-title-foil { background-image: linear-gradient(180deg, #f3d99a 0%, #b88a3e 100%); }
@media (forced-colors: active) { .hm-title-foil { background: none; color: CanvasText; } }

/* Headline motion: each word rises out of its own mask, then the foil shine sweeps the
   second line and comes back every few seconds. Replaces polish.css's one-off hero entrance
   and foil sweep on this headline only. */
.hm-w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.1em;
  padding-bottom: 0.08em; /* keeps descenders inside the mask */
  margin-bottom: -0.08em;
  vertical-align: top;
}
.hm-w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hm-hero .hm-title { animation: none; }
  .hm-w > span { animation: hm-word-rise 900ms var(--ease-out) calc(80ms + var(--i) * 75ms) backwards; }
  /* The foil line is painted with background-clip: text on its parent. Safari leaves
     children with their own layer (transform, opacity, position) out of that text mask,
     so these words rise with margins only: no layer, and the paired negative margin
     keeps the line height still while they move. */
  .hm-title-foil .hm-w > span { vertical-align: top; animation-name: hm-word-rise-foil; }
  html[data-theme] .hm-hero .hm-title-foil { animation: hm-foil-loop 6s ease-out 1.4s infinite backwards; }
}
@keyframes hm-word-rise {
  from { opacity: 0; transform: translateY(105%); }
}
@keyframes hm-word-rise-foil {
  from { margin-top: 1.05em; margin-bottom: -1.05em; }
}
@keyframes hm-foil-loop {
  0% { background-position: 100% 0, 0 0; }
  24%, 100% { background-position: 0% 0, 0 0; }
}
.hm-lead {
  max-width: 52ch;
  margin-top: 22px !important;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}
.hm-lead [data-count] { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Search */
.hm-search {
  position: relative;
  width: min(680px, 100%);
  margin-top: 36px;
  text-align: start;
}
.hm-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding-inline: 22px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 16px 40px -20px rgb(0 0 0 / 0.22);
  cursor: text;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.hm-search-field:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 20%, transparent), 0 16px 40px -20px rgb(0 0 0 / 0.22);
}
.hm-search-icon { flex: none; width: 22px; height: 22px; color: var(--muted); }
.hm-search-field input {
  flex: 1;
  min-width: 0;
  height: 62px;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
  outline: none;
}
.hm-search-field input::placeholder { color: var(--muted); }
.hm-search-field input::-webkit-search-cancel-button { cursor: pointer; }
.hm-search-key {
  flex: none;
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding-inline: 8px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
}
.hm-search-field:focus-within .hm-search-key { display: none; }

.hm-results {
  position: absolute;
  z-index: 30;
  inset-inline: 0;
  top: calc(100% + 10px);
  max-height: min(62vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.04), 0 28px 60px -24px rgb(0 0 0 / 0.35);
}
.hm-group + .hm-group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.hm-group-label {
  padding: 10px 12px 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.hm-opt {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.hm-opt[aria-selected="true"] { background: var(--surface-muted); }
.hm-opt-logo,
.hm-opt-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.hm-opt-logo { background: #fff; border: 1px solid rgb(0 0 0 / 0.08); }
.hm-opt-logo img { width: 26px; height: 26px; object-fit: contain; }
.hm-opt-icon { background: var(--surface-muted); color: var(--muted); }
.hm-opt-icon svg { width: 20px; height: 20px; }
.hm-opt-text { display: grid; min-width: 0; }
.hm-opt-title { overflow: hidden; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.hm-opt-sub { overflow: hidden; color: var(--muted); font-size: 0.8125rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hm-noresult { padding: 16px 14px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.hm-try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px !important;
  color: var(--muted);
  font-size: 0.875rem;
}
.hm-try > span { margin-inline-end: 2px; }
.hm-try-chip {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: border-color, background-color, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}
.hm-try-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .hm-try-chip:hover { border-color: var(--line-strong); background: var(--surface-soft); } }

/* ---------- Sections ---------- */
.hm-tools,
.hm-latest,
.hm-about { margin-top: 112px; }
.hm-section-head { display: grid; gap: 8px; }
.hm-section-head h2,
.hm-about h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hm-section-head p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.hm-section-head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.hm-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hm-orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Tools grid */
.hm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 28px !important;
}
.hm-tile { min-width: 0; }
.hm-tile-link {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100%;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.hm-tile-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) {
  .hm-tile-link:hover {
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.03), 0 18px 40px -22px rgb(0 0 0 / 0.22);
  }
}
.hm-tile-copy { display: grid; gap: 8px; }
.hm-tile-title { font-size: 1.375rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.02em; }
.hm-tile-text { max-width: 42ch; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
.hm-tile-text [data-count] { font-variant-numeric: tabular-nums; }
.hm-tile-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.9375rem;
  font-weight: 600;
}
.hm-tile-go svg { flex: none; transition: translate 200ms var(--hm-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-tile-link:hover .hm-tile-go svg { translate: 3px 0; }
}

/* Tile visuals */
.hm-ladder { display: grid; gap: 6px; padding: 0; counter-reset: none; }
.hm-ladder > span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}
.hm-ladder > span:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 13.5px;
  inset-block-start: 28px;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
}
.hm-ladder b {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: var(--page);
  font-size: 0.8125rem;
  font-weight: 650;
}
.hm-ladder .is-rbi { font-weight: 650; }
.hm-ladder .is-rbi b { background: var(--hm-orange); color: #1a1206; }
.hm-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; }
.hm-logos img,
.hm-logos-more {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgb(0 0 0 / 0.08);
  background: #fff;
  object-fit: contain;
}
.hm-logos-more {
  display: grid;
  place-items: center;
  padding: 0;
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hm-fan {
  position: relative;
  display: block;
  height: 300px;
}
.hm-fan img {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 50%;
  width: 168px;
  height: auto;
  aspect-ratio: 54 / 85.6;
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08), 0 12px 24px -10px rgb(0 0 0 / 0.4);
  transform-origin: 50% 90%;
  transition: rotate 300ms var(--hm-ease), translate 300ms var(--hm-ease);
}
.hm-fan img:nth-child(1) { translate: -86% 4px; rotate: -10deg; filter: brightness(0.8); }
.hm-fan img:nth-child(2) { translate: -14% 2px; rotate: 9deg; filter: brightness(0.86); }
.hm-fan img:nth-child(3) { translate: -50% 0; rotate: 0deg; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-about-fan:hover .hm-fan img:nth-child(1) { translate: -96% 6px; rotate: -14deg; }
  .hm-about-fan:hover .hm-fan img:nth-child(2) { translate: -4% 4px; rotate: 13deg; }
}
.hm-tile-soon .hm-tile-link {
  border: 1.5px dashed color-mix(in srgb, var(--hm-orange) 50%, var(--line));
  background: color-mix(in srgb, var(--hm-orange) 4%, var(--surface));
}
.hm-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 4px;
  color: var(--hm-orange-text);
  font-size: 0.8125rem;
  font-weight: 600;
}
.hm-soon-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hm-orange);
}
@media (prefers-reduced-motion: no-preference) {
  .hm-soon-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--hm-orange);
    opacity: 0;
    animation: hm-pulse 2.4s ease-out infinite;
  }
}
@keyframes hm-pulse {
  0% { scale: 0.6; opacity: 0.7; }
  70%, 100% { scale: 1.6; opacity: 0; }
}


/* Bill payment tile: a small, real example of the transfer details */
.hm-paymock {
  display: grid;
  gap: 6px;
  max-width: 360px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.hm-paymock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 4px;
  font-size: 0.875rem;
  font-weight: 600;
}
.hm-paymock-head img { width: 20px; height: 20px; padding: 2px; border-radius: 6px; background: #fff; border: 1px solid rgb(0 0 0 / 0.08); }
.hm-paymock-time {
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, #15803d 12%, transparent);
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
}
html[data-theme="dark"] .hm-paymock-time { background: color-mix(in srgb, #4ade80 16%, transparent); color: #86efac; }
.hm-paymock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.8125rem;
}
.hm-paymock-row > span { color: var(--muted); }
.hm-paymock-row b { font-family: var(--site-mono); font-size: 0.8125rem; font-weight: 650; letter-spacing: 0.02em; }
.hm-paymock-row i {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px dashed var(--line-strong);
  background: var(--surface-muted);
  color: var(--muted);
  font-family: var(--site-font, inherit);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
}

/* Latest reviews */
.hm-reviews { display: grid; gap: 28px; margin-top: 28px !important; }
.hm-review {
  display: grid;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.hm-review:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 20px; }
.hm-review-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: var(--surface-muted);
  outline: 1px solid oklch(0 0 0 / 0.08);
  outline-offset: -1px;
}
html[data-theme="dark"] .hm-review-media { outline-color: oklch(1 0 0 / 0.1); }
.hm-review-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 400ms var(--hm-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-review:hover .hm-review-media img { scale: 1.02; }
}
.hm-review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.hm-review-tag {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font-weight: 600;
}
.hm-review-title { font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
@media (hover: hover) {
  .hm-review:hover .hm-review-title { text-decoration: underline; text-decoration-color: var(--hm-orange); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
}
.hm-review-text { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }

/* About */
.hm-about { display: grid; gap: 28px; align-items: center; }
.hm-about-fan { display: block; max-width: 420px; }
.hm-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 24px;
  padding-inline: 22px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: scale 150ms ease-out;
}
.hm-about-cta svg { transition: translate 200ms var(--hm-ease); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-about-cta:hover svg { translate: 3px 0; }
}
.hm-about-cta:active { scale: 0.97; }
.hm-about-cta + p { margin-top: 24px !important; }
.hm-about-copy { max-width: 58ch; }
.hm-about-copy p {
  margin-top: 16px !important;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}
.hm-about-copy p a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--hm-orange);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.hm-about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.hm-about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}
@media (hover: hover) { .hm-about-links a:hover { border-color: var(--line-strong); } }
.hm a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.hm .hm-follow { margin-top: 96px; }

/* ---------- Layouts ---------- */
@media (min-width: 640px) {
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-tile-support { grid-column: 1 / -1; }
  .hm-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hm-reviews > li:nth-child(3):last-child { display: none; }
}
@media (min-width: 960px) {
  .hm { padding-block: 64px 120px; }
  .hm-hero { padding-block: 56px 8px; }
  .hm-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
  .hm-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-reviews > li:nth-child(3):last-child { display: list-item; }
  .hm-tile-support { grid-column: span 7; }
  .hm-tile-escalate { grid-column: span 4; }
  .hm-tile-pay { grid-column: span 4; }
  .hm-tile-loan { grid-column: span 4; }
  .hm-tile-nocost { grid-column: span 6; }
  .hm-tile-upi { grid-column: span 6; }
  .hm-tile-soon { grid-column: 1 / -1; }
  .hm-tile-link { padding: 30px; min-height: 260px; }
  .hm-tile-support .hm-tile-link,
  .hm-tile-escalate .hm-tile-link { min-height: 340px; }
  .hm-tile-pay .hm-tile-link { min-height: 320px; }
  .hm-tile-support .hm-logos { grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 7px; }
  .hm-about { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
  .hm-about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
@media (max-width: 639px) {
  .hm { padding-block: 24px 88px; }
  .hm-hero { padding-block: 24px 0; }
  .hm-search { margin-top: 28px; }
  .hm-search-field { min-height: 56px; padding-inline: 18px 12px; }
  .hm-search-field input { height: 54px; font-size: 1rem; }
  .hm-search-key { display: none; }
  .hm-tools, .hm-latest, .hm-about { margin-top: 80px; }
  .hm-tile-link { padding: 22px; border-radius: 24px; }
  .hm .hm-follow { margin-top: 72px; }
  .hm-fan { height: 240px; }
  .hm-fan img { width: 132px; border-radius: 10px; }
}
@media (hover: none) { .hm-search-key { display: none; } }

/* ---------- Latest updates (generated by scripts/updates/build.mjs) ---------- */
.hm-updates { margin-top: 112px; }
.hm-updates-list { margin-top: 24px !important; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.hm-updates-list > li { border-bottom: 1px solid var(--line); }
.hm-update {
  display: grid;
  gap: 4px;
  padding-block: 16px;
}
.hm-update:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 8px; }
.hm-update-kicker { color: var(--hm-orange-text); font-size: 0.8125rem; font-weight: 600; }
.hm-update-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.hm-update-date { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .hm-update:hover .hm-update-title { text-decoration: underline; text-decoration-color: var(--hm-orange); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
}
@media (min-width: 720px) {
  .hm-update { grid-template-columns: 160px minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding-block: 18px; }
}

/* ==========================================================================
   Visual refresh (2026-10): warmer surfaces and a little depth.
   Extends the brand orange and the headline's gold foil rather than adding
   new colours. Every effect has a light and dark value and respects
   prefers-reduced-motion.
   ========================================================================== */
.hm {
  --hm-gold: #a8741b;
  --hm-glow-a: color-mix(in srgb, var(--hm-orange) 16%, transparent);
  --hm-glow-b: color-mix(in srgb, #e8b04a 18%, transparent);
  --hm-lift: 0 1px 2px rgb(0 0 0 / 0.04), 0 22px 44px -24px rgb(0 0 0 / 0.28);
}
html[data-theme="dark"] .hm {
  --hm-gold: #f3d99a;
  --hm-glow-a: color-mix(in srgb, var(--hm-orange) 22%, transparent);
  --hm-glow-b: color-mix(in srgb, #e8b04a 14%, transparent);
  --hm-lift: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.9);
}

/* ---------- Hero ---------- */
/* No colour glow behind the hero: the dot grid in backdrop.css shows through. */
.hm-hero { position: relative; isolation: isolate; }
/* Search gets a faint warm ring so it reads as the place to start */
.hm-search-field {
  border-color: color-mix(in srgb, var(--hm-orange) 22%, var(--line-strong));
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 0 0 6px color-mix(in srgb, var(--hm-orange) 6%, transparent), 0 18px 44px -20px color-mix(in srgb, var(--hm-orange) 30%, rgb(0 0 0 / 0.3));
}


/* ---------- 3D card wall hero ----------
   Copy on the left; on the right a tilted plane of card faces in four columns
   that glide up and down in turn (each column holds its set twice, so a 50%
   shift loops without a seam). Edges fade into the page. Phones get the wall
   as a band under the search. The wall pauses on hover and when the hero is
   off screen (home.js); reduced motion keeps it still. */
.hm-hero--wall {
  display: grid;
  align-items: center;
  min-height: max(560px, min(calc(100svh - 140px), 760px));
  padding-block: 32px 0;
}
.hm-hero--wall .hm-hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.hm-hero--wall .hm-search { width: min(540px, 100%); }
.hm-hero--wall .hm-search-field { min-height: 54px; padding-inline: 18px 10px; gap: 10px; }
.hm-hero--wall .hm-search-field input { height: 52px; font-size: 1rem; }
.hm-hero--wall .hm-search-icon { width: 20px; height: 20px; }

.hm-wall {
  --cw: 120px;
  --gap: 18px;
  position: relative;
  justify-self: stretch;
  height: 380px;
  margin-top: 28px;
  margin-inline: calc(var(--hm-gutter) * -1);
  overflow: hidden;
  perspective: 1400px;
  -webkit-mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 72% at 50% 50%, #000 45%, transparent 100%);
}
.hm-wall-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: repeat(4, var(--cw));
  gap: var(--gap);
  transform: translate(-50%, -50%) rotateX(52deg) rotateZ(-38deg);
  transform-style: preserve-3d;
}
.hm-wall-col:nth-child(even) { margin-top: 70px; }
.hm-wall-track { display: grid; gap: var(--gap); will-change: transform; }
.hm-wc {
  position: relative;
  display: block;
  aspect-ratio: 400 / 634;
  overflow: hidden;
  border-radius: 7.5% / 4.7%;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.06), -10px 18px 26px -12px rgb(28 18 10 / 0.35);
}
html[data-theme="dark"] .hm-wc { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), -12px 20px 30px -12px rgb(0 0 0 / 0.85); }
.hm-wc img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* a glossy print edge */
.hm-wc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg, rgb(255 255 255 / 0.22), rgb(255 255 255 / 0) 40%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hm-wall-track { animation: hm-wall-move var(--dur) linear infinite; }
  .hm-wall-col:nth-child(even) .hm-wall-track { animation-direction: reverse; }
  .hm-wall.is-paused .hm-wall-track { animation-play-state: paused; }
}
@media (hover: hover) { .hm-wall:hover .hm-wall-track { animation-play-state: paused; } }
/* Every column holds the same number of cards (two identical halves). The loop runs
   from +¼ to -¼ of the track (one half's height) so the middle of each column, where
   the visible window sits, always has cards above and below it: no empty stretch. */
@keyframes hm-wall-move {
  from { transform: translateY(calc((100% + var(--gap)) / 4)); }
  to { transform: translateY(calc((100% + var(--gap)) / -4)); }
}
/* the wall bleeds to the right edge on desktop; don't let that scroll the page */
body.home-page { overflow-x: clip; }
@media (min-width: 960px) {
  .hm-hero--wall { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); padding-block: 24px; }
  .hm-hero--wall .hm-hero-copy { justify-items: start; text-align: left; }
  .hm-hero--wall .hm-title { font-size: clamp(3rem, 1rem + 4.2vw, 5rem); }
  .hm-hero--wall .hm-search { width: min(520px, 100%); }
  .hm-wall {
    --cw: 170px;
    --gap: 24px;
    height: min(calc(100svh - 160px), 700px);
    margin: 0 calc((min(1180px, 100vw - 2 * var(--hm-gutter)) - 100vw) / 2) 0 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 26%, #000 100%), linear-gradient(180deg, transparent 0, #000 18%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .hm-wall-plane { left: 56%; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .hm-wall { --cw: 136px; --gap: 20px; }
}
@media (max-width: 640px) {
  .hm-hero--wall { min-height: 0; padding-block: 24px 0; }
  .hm-hero--wall .hm-search { width: min(330px, 100%); }
  .hm-hero--wall .hm-search-field { min-height: 48px; padding-inline: 16px 10px; }
  .hm-hero--wall .hm-search-field input { height: 46px; font-size: 0.95rem; }
  .hm-wall {
    --cw: 78px;
    --gap: 12px;
    height: 280px;
    margin-top: 14px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 70%, transparent 100%);
  }
}

/* ---------- Section titles end in the wordmark's orange square ---------- */
.hm-section-head h2::after,
.hm-about h2::after {
  content: "";
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-inline-start: 0.06em;
  background: var(--hm-orange);
}

/* ---------- Tool tiles: an icon and a tinted corner per tool ---------- */
.hm-tile-support { --tile: #0a84ff; }
.hm-tile-escalate { --tile: var(--hm-orange); }
.hm-tile-pay { --tile: #16a34a; }
.hm-tile-loan { --tile: #7c3aed; }
.hm-tile-nocost { --tile: #0d9488; }
.hm-tile-upi { --tile: #db2777; }
.hm-tile-soon { --tile: var(--hm-orange); }
.hm-tile-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tile) 9%, transparent), transparent 55%),
    var(--surface);
  transition: border-color 200ms ease-out, box-shadow 250ms ease-out, translate 250ms var(--hm-ease);
}
html[data-theme="dark"] .hm-tile-link {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tile) 16%, transparent), transparent 55%),
    var(--surface);
}
.hm-tile-soon .hm-tile-link {
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--hm-orange) 12%, transparent), transparent 60%),
    color-mix(in srgb, var(--hm-orange) 4%, var(--surface));
}
@media (hover: hover) {
  .hm-tile-link:hover {
    border-color: color-mix(in srgb, var(--tile) 35%, var(--line-strong));
    box-shadow: var(--hm-lift);
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-tile-link:hover { translate: 0 -3px; }
}
.hm-tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tile) 12%, var(--surface));
  color: color-mix(in srgb, var(--tile) 82%, var(--text));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tile) 22%, transparent);
}
html[data-theme="dark"] .hm-tile-icon {
  background: color-mix(in srgb, var(--tile) 20%, var(--surface));
  color: color-mix(in srgb, var(--tile) 60%, #fff);
}
.hm-tile-go { color: color-mix(in srgb, var(--tile) 70%, var(--text)); }
html[data-theme="dark"] .hm-tile-go { color: color-mix(in srgb, var(--tile) 45%, var(--text)); }
.hm-logos img { transition: translate 250ms var(--hm-ease), box-shadow 250ms ease-out; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-tile-support .hm-tile-link:hover .hm-logos img { translate: 0 -2px; box-shadow: 0 6px 12px -8px rgb(0 0 0 / 0.35); }
  .hm-tile-support .hm-tile-link:hover .hm-logos img:nth-child(odd) { transition-delay: 40ms; }
}
.hm-ladder .is-rbi b { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hm-orange) 20%, transparent); }
.hm-paymock { box-shadow: 0 16px 32px -24px rgb(0 0 0 / 0.35); }

/* ---------- Latest reviews as raised cards ---------- */
.hm-review {
  height: 100%;
  align-content: start;
  padding: 10px 10px 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 200ms ease-out, box-shadow 250ms ease-out, translate 250ms var(--hm-ease);
}
.hm-review > :not(.hm-review-media) { padding-inline: 10px; }
.hm-review-media { border-radius: 20px; }
.hm-review:focus-visible { border-radius: 28px; outline-offset: 3px; }
@media (hover: hover) {
  .hm-review:hover { border-color: var(--line-strong); box-shadow: var(--hm-lift); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hm-review:hover { translate: 0 -3px; }
  .hm-review:hover .hm-review-media img { scale: 1.04; }
}
.hm-reviews > li { min-width: 0; }
.hm-review-tag {
  background: color-mix(in srgb, var(--hm-orange) 12%, var(--surface));
  color: var(--hm-orange-text);
}

/* ---------- Latest updates as one card ---------- */
.hm-updates-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.hm-updates-list > li:last-child { border-bottom: 0; }
.hm-update { padding-inline: 20px; transition: background-color 150ms ease-out; }
.hm-update:focus-visible { outline-offset: -3px; border-radius: 22px; }
@media (hover: hover) { .hm-update:hover { background: var(--surface-soft); } }
.hm-update-kicker {
  justify-self: start;
  width: max-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hm-orange) 12%, transparent);
  font-size: 0.75rem;
}
/* Devaluation, Revaluation, Card launch, Cashback deal, Spend-based offer and Announcement stand out as solid badges with an icon. */
.hm-update-kicker[data-cat="devaluation"] { --hm-badge: #dc2626; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 17l-8.5-8.5-5 5L2 7'/%3E%3Cpath d='M16 17h6v-6'/%3E%3C/svg%3E"); }
.hm-update-kicker[data-cat="revaluation"] { --hm-badge: #047857; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 7l-8.5 8.5-5-5L2 17'/%3E%3Cpath d='M16 7h6v6'/%3E%3C/svg%3E"); }
.hm-update-kicker[data-cat="launch"] { --hm-badge: #4f46e5; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.4 7.1L21.5 12l-7.1 2.4L12 21.5l-2.4-7.1L2.5 12l7.1-2.9z'/%3E%3C/svg%3E"); }
.hm-update-kicker[data-cat="cashback"] { --hm-badge: #15803d; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='2.5'/%3E%3Ccircle cx='17' cy='17' r='2.5'/%3E%3Cpath d='M19 5L5 19'/%3E%3C/svg%3E"); }
.hm-update-kicker[data-cat="spend-offer"] { --hm-badge: #1d4ed8; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6z'/%3E%3Cpath d='M9 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E"); }
.hm-update-kicker[data-cat="announcement"] { --hm-badge: #7e22ce; --hm-badge-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H2v6h4l5 4z' fill='black'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.hm-update-kicker:is([data-cat="devaluation"], [data-cat="revaluation"], [data-cat="launch"], [data-cat="cashback"], [data-cat="spend-offer"], [data-cat="announcement"]) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-inline-start: 8px;
  background: var(--hm-badge);
  color: #fff;
  font-weight: 700;
}
.hm-update-kicker:is([data-cat="devaluation"], [data-cat="revaluation"], [data-cat="launch"], [data-cat="cashback"], [data-cat="spend-offer"], [data-cat="announcement"])::before {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--hm-badge-icon) center / contain no-repeat;
  mask: var(--hm-badge-icon) center / contain no-repeat;
}
@media (min-width: 720px) {
  .hm-update { padding-inline: 24px; align-items: center; }
  .hm-update-kicker { align-self: center; }
}

/* ---------- About: a warm panel ---------- */
.hm-about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 22px 32px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 15% 50%, var(--hm-glow-b), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, var(--hm-glow-a), transparent 70%),
    var(--surface);
}
.hm-about-fan { width: 100%; margin-inline: auto; }
.hm-about-links a { background: color-mix(in srgb, var(--surface) 80%, transparent); }
@media (min-width: 960px) {
  .hm-about { padding: 48px 56px 48px 32px; }
}

/* ---------- Gentle reveal as sections scroll into view ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hm-tile,
    .hm-reviews > li,
    .hm-updates-list,
    .hm-about,
    .hm .hm-follow {
      animation: hm-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes hm-rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---------- Latest reviews: a sideways-scrolling row with arrow buttons ---------- */
.hm-latest-actions { display: flex; align-items: center; gap: 12px; }
.hm-scroll-btns { display: flex; gap: 8px; }
.hm-scroll-btns[hidden] { display: none; }
.hm-scroll-btn {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 200ms ease-out, opacity 200ms ease-out, scale 160ms var(--hm-ease);
}
.hm-scroll-btn:disabled { opacity: 0.35; cursor: default; }
.hm-scroll-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) { .hm-scroll-btn:not(:disabled):hover { border-color: var(--muted); } }
@media (prefers-reduced-motion: no-preference) { .hm-scroll-btn:not(:disabled):active { scale: 0.94; } }

.hm .hm-reviews {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  scrollbar-width: none;
  /* Room for the hover lift, shadow and focus ring inside the scroller. */
  padding: 6px 6px 18px;
  margin-inline: -6px;
  margin-bottom: -12px;
}
.hm .hm-reviews::-webkit-scrollbar { display: none; }
.hm .hm-reviews > li,
.hm .hm-reviews > li:nth-child(3):last-child { display: list-item; scroll-snap-align: start; }
@media (min-width: 640px) {
  .hm .hm-reviews { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
}
@media (min-width: 960px) {
  .hm .hm-reviews { grid-auto-columns: calc((100% - 48px) / 3); }
}
@media (prefers-reduced-motion: no-preference) {
  .hm .hm-reviews { scroll-behavior: smooth; }
}
/* The view() reveal would track the sideways scroller, so keep the cards visible. */
.hm .hm-reviews > li { animation: none; }
