@import url('tokens.css');

/* =========================================================
   Credit Card Detail Page
   Desktop: sticky header, scrollable left column, sticky right panel.
   Mobile (<= 960px): single column, hero first, white content below.
   ========================================================= */

/* Design tokens live in tokens.css */

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--panel);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Header (fixed; transparent over the blue panel so it reads as one surface) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: linear-gradient(90deg, var(--navy-top) 0, var(--navy-top) calc(100% - var(--side-w)), transparent calc(100% - var(--side-w)));
}
/* Fixed concave corner under the header, so the curve stays put while the left column scrolls */
.site-header::after {
  content: '';
  position: absolute;
  top: 100%;
  right: var(--side-w);
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 0 100%, transparent 63.5px, var(--navy-top) 64.5px);
}
.back { display: none; }   /* mobile only */

/* ---------- Page grid ---------- */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  min-height: 100vh;
}

/* Left column: a navy strip (same colour as the header) behind the rounded top-right corner */
.col-left {
  background: var(--navy-top) top / 100% calc(var(--header-h) + 140px) no-repeat;
  min-width: 0;
}
.col-left__inner {
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  background: linear-gradient(180deg, #F6F8FD 0%, var(--panel) 40%, #F1F5FC 100%);
  border-top-right-radius: 64px;
  padding: clamp(28px, 3.6vw, 56px) var(--pad-x) 72px;
}
.col-left__content { max-width: 900px; }

/* Right column: sticky panel, starts under the header, ends above the viewport bottom */
.col-right { min-width: 0; background: var(--panel); }
.side {
  position: sticky;
  top: 0;
  height: calc(100vh - var(--side-gap-b));
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vh, 34px);
  padding: 0 var(--side-px) clamp(24px, 3.4vh, 40px);
  border-bottom-left-radius: 64px;
  overflow: hidden auto;
  color: #fff;
  background: var(--navy-top);   /* flat: the cloud image's own alpha edges blend into it */
}
/* Content sits above the hero image and may overlap its lower part */
.side > :not(.hero) { position: relative; z-index: 1; }

/* ---------- Hero (cloud + card visual, full panel width, sits under the header) ---------- */
.hero {
  flex: 1 1 auto;
  min-height: 200px;
  margin: 0 calc(-1 * var(--side-px)) clamp(-40px, -4vh, -16px);
  container-type: size;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* Frame is always full width; height capped so the image (797x572) is never narrower than the panel */
.hero__frame {
  position: relative;
  width: 100%;
  height: min(100%, 71.8cqw);
}
.hero__stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;   /* crop the sky first so the podium and floor always stay visible */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
/* Card bottom anchored to the podium surface: surface at 76% of the image, image = 71.8cqw tall,
   cropped with object-position 62%  ->  y = 62% of frame + (0.76 - 0.62) * 71.8cqw */
.hero__card {
  position: absolute;
  left: 50%;
  top: calc(62% + 8.4cqw);   /* slightly above the podium surface */
  width: 40%;
  max-width: 300px;
  transform: translate(-50%, -100%);
  animation: float 5s ease-in-out infinite;
}
.hero__card img {
  width: 100%;
  height: auto;
  border-radius: 5.5% / 8.5%;
  filter: drop-shadow(0 26px 30px rgba(2, 10, 40, 0.55));
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -100%); }
  50%      { transform: translate(-50%, calc(-100% - 6px)); }
}

/* ---------- Identity ---------- */
.identity { text-align: center; }
.identity__name {
  font-size: clamp(20px, 1.75vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.identity__meta {
  margin-top: 8px;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 500;
  color: #BFD0F0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.identity__meta .sep { opacity: 0.45; }

/* ---------- Best for ---------- */
.bestfor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.bestfor__label {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #A9BEE6;
}
.bestfor__chips {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.bestfor__chips::-webkit-scrollbar { display: none; }
.bestfor__track { display: flex; width: max-content; }
.bestfor__group { display: flex; gap: 10px; }
/* Auto-scroll only when the chips overflow (class added by app.js) */
.bestfor__chips.is-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.bestfor__chips.is-marquee .bestfor__track { --shift: -50%; animation: marquee var(--dur, 20s) linear infinite; }
.bestfor__chips.is-marquee .bestfor__group { padding-right: 10px; }
.bestfor__chips.is-marquee:hover .bestfor__track { animation-play-state: paused; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(180deg, #2C5EBE 0%, #173E8C 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.chip .icon { font-size: 16px; }

/* ---------- USP marquee ---------- */
.usps {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.usps__track {
  --shift: -50%;
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 24s) linear infinite;
}
.usps:hover .usps__track { animation-play-state: paused; }
.usps__group { display: flex; gap: 16px; padding-right: 16px; }
@keyframes marquee { to { transform: translateX(var(--shift)); } }

.usp {
  flex: none;
  width: clamp(170px, 13.5vw, 210px);
  padding: 16px 16px 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.usp__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(180deg, #2F63C4, #1B3F8E);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.usp__title {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.usp__desc {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #C3D2EE;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Apply ---------- */
.apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #DCE8FF 100%);
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.apply:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 #fff; }
.apply .icon { font-size: 18px; }

/* ---------- Breadcrumb ---------- */
.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 1.7vw, 27px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.crumbs a:hover { color: var(--blue-400); }
.crumbs .icon { font-size: 0.8em; color: var(--ink-3); }
.crumbs__current { font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  background: linear-gradient(180deg, #FFFFFF, #F1F5FC);
  border: 1px solid #E3EAF6;
  box-shadow: 0 2px 6px rgba(20, 50, 110, 0.06);
  transition: background 0.15s ease, color 0.15s ease;
}
.tab .icon { font-size: 19px; color: var(--blue-400); }
.tab:hover { color: var(--ink); }
.tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #113476 0%, #0A1F52 100%);
  box-shadow: 0 12px 26px -10px rgba(10, 31, 82, 0.6);
}
.tab.is-active .icon { color: #fff; }

/* ---------- Benefits card (reusable; plane asset fixed top-right) ---------- */
.benefits__body { display: grid; gap: 18px; margin-top: 24px; }

.bcard {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 30px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #FFFFFF 0%, #F6F9FF 55%, #E9F0FF 100%);
  border: 1px solid #DFE7F6;
  box-shadow: 0 16px 40px -28px rgba(14, 42, 90, 0.35);
}
.bcard::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(44%, 290px);
  aspect-ratio: 488 / 396;
  background: var(--art-card-right, url('assets/art/card-right-3.webp')) right top / contain no-repeat;   /* per site, see SiteConfig.art */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 45%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 45%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}
.bcard__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}
.bcard__head .icon { font-size: 26px; color: var(--blue-500); }
.bcard__list {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: grid;
  gap: 14px;
  max-width: 82%;
}
.bcard__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.bcard__check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--blue-400);
  background: #E7EFFF;
  margin-top: -3px;
}

/* ---------- Section heading ---------- */
.sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.sec__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1C355E;
}
.sec__title::after { content: ''; width: 36px; height: 2px; border-radius: 2px; background: #C9D5EA; }

/* ---------- Fees ---------- */
.fees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 18px;
}
.fee {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #F2FBF6 0%, #EEF6FF 100%);
  border: 1px solid #DCEDE4;
}
.fee__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 6px 16px -8px rgba(27, 138, 75, 0.35);
}
.fee__label, .stat__label, .info__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6F8298;
}
.fee__value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fee--free .fee__value { color: var(--green); }
.fee__sub {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.fee__label.tipwrap { display: flex; align-items: center; gap: 8px; }

/* ---------- Segmented toggle ---------- */
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #E9EFF9;
}
.seg__btn {
  padding: 8px 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.seg__btn.is-active {
  color: var(--blue-400);
  background: #fff;
  box-shadow: 0 4px 12px rgba(20, 50, 110, 0.12);
}

/* ---------- Eligibility / stat cards ---------- */
.stats {
  margin-top: 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #F8FAFF, #F0F5FD);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.stat {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid #E6ECF7;
}
.stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: var(--blue-400);
  background: #EEF3FF;
}
.stat__value {
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- More info: bank fee structure table, slabs, exclusions, T&C ---------- */
.charges {
  margin-top: 18px;
  border-radius: var(--r-md);
  border: 1px solid #E6ECF7;
  background: #fff;
}
.crow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #EEF2F9;
}
.crow:nth-child(even) { background: #F7FAFF; }
.crow:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.crow:last-child { border-bottom: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.crow__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.crow__value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.info-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: var(--blue-400);
  background: #E7EFFF;
  transition: background 0.15s ease, color 0.15s ease;
}
.tipwrap { position: relative; }
.info-btn:hover, .tipwrap.is-open .info-btn { background: var(--blue-400); color: #fff; }
.tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 5;
  width: min(340px, 72vw);
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 12px 30px -12px rgba(14, 42, 90, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.tip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.info-btn:hover + .tip,
.info-btn:focus-visible + .tip,
.tipwrap.is-open .tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.table-wrap {
  margin-top: 18px;
  border-radius: var(--r-md);
  border: 1px solid #E6ECF7;
  background: #fff;
  overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid #EEF2F9; }
.table th { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #6F8298; background: #F7FAFF; }
.table td:last-child, .table th:last-child { text-align: right; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

.note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.note a { color: var(--blue-400); font-weight: 600; }

.tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid #E6ECF7;
}

.tnc { margin-top: 18px; display: grid; gap: 12px; }
.tnc li {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.tnc li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-400); margin-top: 7px; }

/* ---------- Mobile-only apply bar (hidden on desktop) ---------- */
.apply-bar { display: none; }

/* ---------- Error state ---------- */
.error {
  grid-column: 1 / -1;
  margin: 48px auto;
  max-width: 560px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: #FFF4F4;
  border: 1px solid #F3C9C9;
  color: #7A1F1F;
  font-size: 15px;
  line-height: 1.6;
}
.error code { background: #fff; padding: 2px 6px; border-radius: 6px; }

/* Short desktop viewports: tighten the panel so the card visual keeps its size */
@media (min-width: 961px) and (max-height: 820px) {
  .usp { padding: 14px 14px 16px; }
  .usp__title { margin-top: 10px; }
  .usp__desc { -webkit-line-clamp: 2; }
  .apply { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__card, .usps__track, .bestfor__track { animation: none; }
  .bestfor__chips.is-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .usps { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}

/* =========================================================
   MOBILE / TABLET  (single column, hero first)
   ========================================================= */
@media (max-width: 960px) {
  :root { --header-h: 64px; --pad-x: 16px; }

  /* Uniform "zoom out" of the whole mobile layout (layout-affecting, unlike transform) */
  body { zoom: 0.9; }

  /* Never let anything widen the page on phones (clip does not create a scroll container) */
  html, body { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
  .page { max-width: 100%; overflow-x: hidden; overflow-x: clip; }

  .site-header { position: fixed; left: 0; right: 0; width: 100%; justify-content: center; background: var(--navy-top); }
  .site-header::after { display: none; }
  .back {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }
  .back svg { width: 22px; height: 22px; }
  .back:active { background: rgba(255, 255, 255, 0.18); }

  .page { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .col-right { background: none; }

  /* Flatten wrappers so sections can be re-ordered */
  .col-left, .col-left__inner, .col-left__content, .col-right, .side { display: contents; }

  .block { padding-inline: var(--pad-x); }

  .crumbs { display: none; }

  /* 1. Hero */
  .hero {
    order: 1;
    flex: none;
    min-height: 0;
    height: min(64vw, 400px);
    margin: var(--header-h) 0 0;   /* header is fixed */
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    color: #fff;
    background: var(--navy-top);
  }
  .hero__card { width: 56%; max-width: none; }
  .usp { width: 236px; padding: 18px 18px 20px; }
  .usp__title { font-size: 14px; }
  .usp__desc { font-size: 13px; -webkit-line-clamp: 4; }
  .chip { height: 40px; font-size: 14px; }
  .identity__meta { font-size: 15px; }

  /* 2. Name + bank | network */
  .identity { order: 2; margin-top: 26px; text-align: center; color: var(--ink); }
  .identity__name { font-size: 27px; }
  .identity__meta { justify-content: center; color: var(--ink-3); font-size: 15px; }

  /* 3. Best for */
  .bestfor {
    order: 3;
    margin-top: 28px;
    margin-inline: var(--pad-x);
    padding-left: 18px;
    background: linear-gradient(180deg, #F3F6FC, #EAF0FA);
    border-color: var(--line);
  }
  .bestfor__label { color: var(--ink-3); }

  /* 4. USPs */
  .usps { order: 4; margin-top: 18px; }
  .usps__group { padding-left: 0; }
  .usps .usps__track { padding-left: var(--pad-x); }
  .usp {
    width: 236px;
    background: linear-gradient(180deg, #14357A 0%, #0B2152 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px -18px rgba(8, 26, 71, 0.6);
  }

  /* 5. Benefits, 6. Fees, 7. Eligibility, 8. More */
  .benefits { order: 5; margin-top: 42px; }
  .tabs { margin-top: 0; gap: 10px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
  .benefits__body { margin-top: 18px; }
  .bcard { padding: 22px 20px 24px; border-radius: 20px; }
  .bcard::after { width: 52%; }
  .bcard__list { max-width: none; }
  .bcard__item { font-size: 14px; }

  .fees-block { order: 6; }
  .elig-block { order: 7; }
  .more-block { order: 8; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }   /* room for the fixed apply bar */
  .sec { margin-top: 30px; }
  /* Fees: both cards in one row, stacked content */
  .fees { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fee { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 16px; }
  .fee__icon { width: 40px; height: 40px; font-size: 20px; }
  .fee__value { font-size: 20px; }
  .fee__sub { font-size: 12.5px; }

  /* Tooltips must stay inside the viewport: hidden absolute boxes still widen the page on iOS */
  .tip { width: min(300px, calc(100vw - 48px)); }
  .fee:nth-child(even) .tip { left: auto; right: 0; }
  .fee:nth-child(even) .tip::before { left: auto; right: 18px; }
  .stats { grid-template-columns: 1fr; gap: 10px; padding: 10px; }

  /* 9. Fixed apply bar (selector beats .side > :not(.hero) which sets position: relative) */
  .apply { display: none; }
  .side > .apply-bar {
    order: 9;
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 40;
    padding: 12px var(--pad-x) calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(243, 246, 252, 0), var(--panel) 45%);
  }
  .apply-bar .apply {
    display: flex;
    height: 54px;
    color: #fff;
    background: linear-gradient(180deg, #1F5EDC, #123A93);
    box-shadow: 0 14px 30px -12px rgba(18, 58, 147, 0.7);
  }
}

@media (max-width: 420px) {
  .identity__name { font-size: 24px; }
  .crow { padding: 12px 14px; }
  .crow__label, .crow__value { font-size: 13.5px; }
}

/* Site logo in the detail-page header (same markup as home.css: per-domain white WebP, /assets/logos/<site>.webp) */
.site-header .wordmark { --logo-h: 32px; display: flex; align-items: center; min-width: 0; height: 40px; text-decoration: none; }
.site-header .wordmark__img { display: block; height: calc(var(--logo-h) * var(--logo-scale, 1)); width: auto; max-width: min(100%, 440px); object-fit: contain; object-position: left center; }
@media (max-width: 960px) {
  /* Header is centered on phones with an absolute back button at the left: keep the logo clear of it on both sides */
  .site-header .wordmark { --logo-h: 26px; height: 36px; max-width: calc(100% - 112px); }
  .site-header .wordmark__img { object-position: center; }
}
