/* ============================================================
   RD-CTA — redesign item 7 (owner-approved 2026-11-10)
   Home closing band (#getstarted, just above the footer), in the
   final prototype's design (#homeCta): giant condensed rows (the
   accent words blue), then the subtitle and the button, all on the
   start edge. Owner change list 2026-11-11: headline "Know Your
   Budget Before You Shop" (KNOW YOUR / BUDGET / BEFORE / YOU SHOP),
   and the paragraph home-a3 moved here from the removed #endtoend
   section, as a quieter second paragraph under the subtitle (the
   subtitle and the button stay the band's clear focus). Linked ?v=rd4 (rd4, seo-h1: the rows drawn inside the h2 itself). The prototype's eyebrow is NOT used: owner rule 2026-11-10,
   no new words — only how things look. The owner's edits:
     - the rows slide sideways at different speeds as the band
       crosses the screen, like the Home hero (rd-cta.r716.js);
     - the title is a little smaller than the prototype's (80% of
       its size — set in rd-cta.r716.js);
     - the subtitle and the button are clearly readable and a
       little bigger than the prototype's (18px / 52px there).
   Same text, keys, heading and link as before, unchanged in the
   HTML; the h2 is the real heading and, once drawn, IS the rows
   (seo-h1): its content becomes the row spans — its own words, a
   space between rows, the accent phrase still <em class="ac"> — no
   hidden heading, no aria-hidden copy. Without JS, or if the script
   fails, the h2 itself shows in this layout.
   ============================================================ */

/* Archivo (variable: wdth 62–125, wght 100–900; owner-approved 2026-11-10, self-hosted). The same face is
   declared in rd-home.css; declaring it here keeps this band whole on its own. Bricolage 800 is the fallback. */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-variable.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* ---------- the band ---------- */
#getstarted.rdct {
  text-align: start;
  overflow: hidden; overflow: clip;          /* the drifting rows never widen the page */
  padding-block: clamp(40px, 7vh, 84px) clamp(64px, 12vh, 128px);
  /* the prototype's blue glow up and to the end side; the top starts on the FAQ's own bottom
     tint so there is no seam, and the bottom keeps the site's soft glow into the footer */
  background:
    linear-gradient(180deg, rgba(21, 26, 35, .5), rgba(21, 26, 35, 0) 140px),
    radial-gradient(70% 55% at 80% 30%, rgba(61, 139, 255, .15), transparent 70%),
    radial-gradient(70% 90% at 50% 115%, rgba(30, 94, 255, .16), transparent 62%),
    var(--obsidian, #08090d);
}
html[dir="rtl"] #getstarted.rdct {
  background:
    linear-gradient(180deg, rgba(21, 26, 35, .5), rgba(21, 26, 35, 0) 140px),
    radial-gradient(70% 55% at 20% 30%, rgba(61, 139, 255, .15), transparent 70%),
    radial-gradient(70% 90% at 50% 115%, rgba(30, 94, 255, .16), transparent 62%),
    var(--obsidian, #08090d);
}
@media (max-width: 760px) {
  #getstarted.rdct { padding-block: clamp(34px, 5.5svh, 56px) clamp(52px, 9svh, 84px); }
}

/* the real heading. Without the rows (no JS / script failed) it shows here, start-aligned and large. */
#getstarted.rdct .wrap > h2 {
  margin: 0; max-width: none; text-align: start;
  font-size: clamp(2.4rem, 7.2vw, 5.6rem); line-height: .96; font-weight: 800; letter-spacing: -.022em;
  text-transform: uppercase; color: #f4f6fa;
}
/* (seo-h1) the h2 is the rows box once they are drawn (rd-cta.r716.js); this only covers an h2 marked .rdct-on before that */
#getstarted.rdct.rdct-on .wrap > h2:not(.rdct-rows) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- the rows (drawn and sized by rd-cta.r716.js) ----------
   (seo-h1) The rows box is the h2 itself (class .rdct-rows on the h2, the row spans its content). The site's scroll reveal
   (.rv: faded and 34px low until in view) never applied to the rows box: the h2 as the rows box is drawn as that box was. */
#getstarted.rdct.rdct-on .wrap > h2.rdct-rows { opacity: 1; transform: none; }
#getstarted .rdct-vh { position: absolute; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
#getstarted.rdct-on .rdct-rows {
  display: block; margin: 0;
  font-family: "Archivo", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800; color: #f4f6fa;
  -webkit-user-select: none; user-select: none;
}
/* each row is a flex line holding its text at the start edge; the text is what drifts */
#getstarted .rdct-row {
  display: flex; white-space: nowrap;
  font-size: 100px; line-height: .84; letter-spacing: -.005em; text-transform: uppercase;
}
#getstarted .rdct-ht { display: block; flex: none; will-change: transform; }
/* until the rows' font is in (rd-cta.r716.js, at most 3 s): space kept, nothing painted */
#getstarted .rdct-rows.wait { visibility: hidden; }
/* Archivo not in after that wait: the rows stay in the fallback while on screen (no late swap) */
#getstarted.rdct-on .rdct-rows.fb { font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
#getstarted .rdct-a { color: #3d8bff; }
/* the accent runs are the heading's own <em class="ac">: the row's font, the accent blue as before (not the site's gradient) */
#getstarted .rdct-rows em.ac {
  font-style: normal; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
/* if Archivo is unavailable, the Bricolage fallback reads better a touch tighter */
#getstarted .rdct-rows:not(.af):not(.nl) .rdct-row { letter-spacing: -.022em; }
/* accented capitals (É, Á …) need a little more room between rows */
#getstarted .rdct-rows.acc .rdct-row { line-height: .96; }
/* Gurmukhi, Chinese, Arabic: no case, no tracking (it breaks Arabic joining), taller lines */
#getstarted .rdct-rows.nl .rdct-row { line-height: 1.2; letter-spacing: 0; text-transform: none; }
/* Punjabi and Arabic rows without Archivo: it is Latin only, yet it would still supply the space between words,
   and its condensed space (.11em at wdth 62) runs the device font's wide words together. Bricolage's space (.22em)
   is the word gap of the site's headings. Chinese has no spaces between words. */
#getstarted.rdct-on .rdct-rows:lang(pa), #getstarted.rdct-on .rdct-rows:lang(ar) { font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
/* proto.css's reduced-motion rule gives every property a .01ms transition, which makes freshly set
   sizes read back stale; the rows are measured, so they never transition (seo-h1: nor their accent runs, which are
   measured with them - now built in the same fit that first measures them, so a stale size would be read) */
#getstarted .rdct-rows, #getstarted .rdct-row, #getstarted .rdct-ht, #getstarted .rdct-ht > * { transition: none !important; }
/* the sideways drift as a scroll-driven animation (r702, smoothness): rd-cta.r716.js adds .rdct-sda only where
   the browser has view timelines (and not under reduced motion) and gives each row its two end offsets. The
   band's view timeline runs from its top meeting the bottom of the screen (cover 0%) to its bottom leaving the
   top (cover 100%); the offset is linear in between and held outside: the very curve the per-frame script
   draws elsewhere, now moved by the compositor with the scroll itself. The inset is 0 (the whole screen), as
   the script measures it. */
#getstarted.rdct-sda { view-timeline-name: --rdct-band; view-timeline-axis: block; view-timeline-inset: 0px; }
#getstarted.rdct-sda .rdct-ht {
  animation: rdct-drift linear both;
  animation-timeline: --rdct-band; animation-range: cover 0% cover 100%;
}
@keyframes rdct-drift {
  from { transform: translate3d(var(--rdct-a, 0px), 0, 0); }
  to { transform: translate3d(var(--rdct-b, 0px), 0, 0); }
}
@media (prefers-reduced-motion: reduce) { #getstarted.rdct-sda .rdct-ht { animation: none; } }

/* ---------- subtitle: clearly readable, a little bigger than the prototype's 18px ---------- */
#getstarted.rdct .wrap > p.sec-rich {
  margin: 28px 0 0; max-width: 50ch; text-align: start;
  font-size: clamp(17px, calc(15px + .4vw), 20px); line-height: 1.55; font-weight: 500;
  color: #e6e9ef;
}

/* ---------- home-a3 (owner 2026-11-11: moved from the removed #endtoend, word for word, with its key):
   a quieter second paragraph under the subtitle — smaller and softer, so the subtitle and the button stay
   the clear focus ---------- */
#getstarted.rdct .wrap > p.rdct-a3 {
  margin: 14px 0 0; max-width: 62ch;
  font-size: clamp(15px, calc(14px + .25vw), 17px); line-height: 1.6; font-weight: 400;
  color: #a9b1be;
}
@media (min-width: 900px) { #getstarted.rdct .wrap > p.rdct-a3 { max-width: 72ch; } }

/* ---------- the button: full size, start-aligned, a little bigger than the prototype's 52px ---------- */
#getstarted.rdct .cta-row { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 30px; }
#getstarted.rdct .cta-row .btn-primary {
  min-height: 58px; max-width: 100%; padding: 0 30px; gap: 12px; justify-content: center;
  font-size: 17.5px; line-height: 1.2; white-space: normal; text-align: center;
  box-shadow: 0 12px 34px -10px rgba(61, 139, 255, .85), 0 0 0 1px rgba(61, 139, 255, .35);
}
/* the prototype's arrow, drawn in CSS (the label itself is the translated text, untouched) */
#getstarted.rdct .cta-row .btn-primary::before {
  content: ""; order: 1; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
html[dir="rtl"] #getstarted.rdct .cta-row .btn-primary::before { transform: scaleX(-1); }
@media (hover: hover) {
  #getstarted.rdct .cta-row .btn-primary:hover { box-shadow: 0 16px 44px -8px rgba(61, 139, 255, 1), 0 0 0 1px rgba(61, 139, 255, .55); }
  #getstarted.rdct .cta-row .btn-primary:hover::before { transform: translateX(4px); }
  html[dir="rtl"] #getstarted.rdct .cta-row .btn-primary:hover::before { transform: scaleX(-1) translateX(4px); }
}
@media (max-width: 760px) {
  #getstarted.rdct .cta-row { margin-top: 26px; }
  #getstarted.rdct .cta-row .btn-primary { min-height: 54px; padding: 0 24px; font-size: 16.5px; }
}
@media (max-width: 359px) {
  #getstarted.rdct .cta-row .btn-primary { padding: 0 20px; font-size: 16px; }
}
