/* =============================================================
   יסוד ביטוח וחסכון | דף נחיתה: ביטוח חיים למשכנתא
   v6: white hero with the couple and a house-shaped key tag,
   metallic gold, three stacked cards.
   Navy + one gold. Secular One + Assistant.
   ============================================================= */

:root {
  color-scheme: light;

  --navy-950: #061A33;
  --navy-900: #0A2140;
  --navy-800: #0F2D55;
  --navy-700: #143A6B;
  --navy-200: #C9D7EA;
  --navy-100: #E6EDF7;
  --navy-50:  #F2F6FB;
  --paper:    #EDF1F7;

  --gold-300: #FFE58C;
  --gold-400: #FBD34D;
  --gold-500: #F4C01E;
  --gold-600: #E3A70B;
  --gold-100: #FFF5D6;

  /* metallic gold: yellow, with highlights, never brown */
  --metal: linear-gradient(105deg, #FFE48A 0%, #F9CF3A 24%, #F0B514 48%, #FAD452 70%, #FFEFB4 85%, #F6C52A 100%);
  --foil:  linear-gradient(100deg, #F6C430 0%, #FFE68F 20%, #F2B918 40%, #FFF3C4 55%, #F4BE1E 72%, #FFDB66 88%, #F6C430 100%);

  --ink: #13213A;
  --ink-2: #2E3E58;
  --muted: #56667E;
  --line: #D9E1EC;
  --white: #FFFFFF;
  --err: #C53030;
  --err-bg: #FDECEC;

  --font: "Assistant", "Segoe UI", Arial, sans-serif;
  --display: "Secular One", "Assistant", "Segoe UI", Arial, sans-serif;

  --hero:   clamp(2.8rem, 1rem + 5vw, 5.8rem);
  --card-t: clamp(2.5rem, .8rem + 4.7vw, 6.2rem);

  --r: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.5;
  color: var(--ink); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
picture { display: block; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.show-m { display: none; }

/* Secular One draws ₪ like the letters ש+ח, so the sign is always set in Assistant */
.cur { font-family: var(--font); font-weight: 800; }

/* ---------- emphasis devices (no boxes outside the hero) ---------- */
.foil {
  font-style: normal; display: inline-block; padding: .1em 0 .14em; margin: -.1em 0 -.14em;
  background: var(--foil); background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.foil--on-white {   /* the same flat foil as on navy, without the near-white highlights that would vanish on white */
  background-image: linear-gradient(100deg, #F4BE1E 0%, #FAD24C 20%, #EEB211 40%, #FBD655 58%, #F1B816 76%, #F8CC38 88%, #F4BE1E 100%);   /* same colour at both ends: the sliding loop has no seam */
}
@media (prefers-reduced-motion: no-preference) {
  .foil { animation: foil 9s linear infinite paused; }
  .card.is-visible .foil { animation-play-state: running; }
  @keyframes foil { to { background-position: -240% 0; } }
}

/* ---------- buttons: metallic gold ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 56px; padding: 0 1.8rem; border-radius: var(--r);
  font-family: var(--display); font-size: 1.15rem; line-height: 1; white-space: nowrap;
  background: var(--metal); background-size: 200% 100%; background-position: 100% 0; color: var(--navy-950);
  box-shadow: inset 0 -3px 0 rgba(176, 116, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 24px -14px rgba(214, 150, 0, .9);
  transition: background-position .8s var(--ease), transform .12s, box-shadow .2s;
}
.btn:hover { background-position: 0 0; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.btn--sm { min-height: 46px; padding: 0 1.25rem; font-size: 1.02rem; }
.btn--lg { min-height: 58px; padding: 0 1.7rem; font-size: 1.25rem; }
.btn__arrow { width: 20px; height: 20px; flex: none; transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(-4px); }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(6, 26, 51, .25); border-top-color: var(--navy-950); animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spinner { display: inline-block; }
.btn[aria-busy="true"] .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 90px; pointer-events: none; }
.site-header { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: var(--header-h); background: var(--white); border-bottom: 1px solid transparent; transition: border-color .25s; }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: block; height: 46px; }
.brand img { height: 100%; width: auto; }
.site-header.is-scrolled { border-bottom-color: var(--line); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--white); color: var(--ink);
  min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 1rem);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: end; gap: 1.5rem; }
.hero__copy { align-self: center; padding-block: 1.5rem 4.5rem; }

.eyebrow { margin-bottom: 1rem; font-weight: 800; font-size: 1.12rem; letter-spacing: .01em; color: var(--navy-700); }

.hero__title { font-family: var(--display); font-weight: 400; font-size: var(--hero); line-height: 1; letter-spacing: -.01em; color: var(--navy-950); }
.hero__title .w { display: block; }
.hero__title .dot { color: var(--gold-500); }
.hero__title .w--mark { margin-top: .16em; font-size: 1.1em; }
.foil-box {
  position: relative; overflow: hidden; display: inline-block; padding: .03em .24em .1em; border-radius: .1em; transform: rotate(-1.6deg);
  color: var(--navy-950); background: var(--metal); background-size: 160% 100%;
  box-shadow: inset 0 -.06em 0 rgba(190, 125, 0, .35), inset 0 .03em 0 rgba(255, 255, 255, .7), 0 .22em .4em -.18em rgba(214, 150, 0, .85);
}
.foil-box::after {   /* glint that sweeps across the gold */
  content: ""; position: absolute; top: -30%; bottom: -30%; left: 0; width: 32%; will-change: transform;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: translateX(-160%) skewX(-18deg);   /* parked outside the box until the sweep starts */
}
@media (prefers-reduced-motion: no-preference) {
  .foil-box::after { animation: glint 6.5s 1.6s ease-in-out infinite both; }
  @keyframes glint { 0% { transform: translateX(-160%) skewX(-18deg); } 16%, 100% { transform: translateX(420%) skewX(-18deg); } }
}

.hero__lead { margin-top: 1.4rem; max-width: 33rem; text-wrap: pretty; font-size: clamp(1.12rem, 1rem + .5vw, 1.42rem); line-height: 1.45; font-weight: 600; color: var(--muted); }
.hero__lead strong { display: block; color: var(--navy-950); font-weight: 800; text-wrap: balance; }

/* the couple, on clean white with a soft gold glow at their feet */
.hero__figure {
  position: relative; align-self: end; justify-self: start; margin: 0; z-index: 2; container-type: inline-size;
  width: min(100%, 620px, calc((100dvh - var(--header-h) - 1rem) * .707));
}
.hero__figure::before { content: ""; position: absolute; z-index: 0; left: -8%; right: -8%; bottom: -12%; height: 46%; background: radial-gradient(50% 50% at 50% 60%, rgba(244, 192, 30, .2), rgba(244, 192, 30, 0) 70%); pointer-events: none; }
.hero__figure picture { position: relative; z-index: 1; }

/* background accent behind the couple (never behind the text): a cool studio backlight, no gold */
.hero__fx { position: absolute; z-index: 0; inset: -8% -16% 0; pointer-events: none; will-change: transform; }

.fx-light {
  position: absolute; left: 50%; top: 4%; width: 150cqw; height: 80cqw; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(160, 191, 237, .92) 0%, rgba(172, 199, 239, .78) 38%, rgba(194, 214, 245, .48) 64%, rgba(220, 232, 249, .18) 84%, rgba(255, 255, 255, 0) 100%);
}


@media (prefers-reduced-motion: no-preference) {
  .fx-light { animation: breathe 8s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { transform: scale(1); opacity: .88; } 50% { transform: scale(1.05); opacity: 1; } }
}
.hero__figure img { width: 100%; height: auto; filter: drop-shadow(0 22px 26px rgba(10, 33, 64, .22)); }

/* the house-shaped key tag, hung on a split ring straight from the key ring (ring at ~10.6% / 29.6% of the photo) */
.tag {
  --tw: clamp(150px, 38cqw, 236px);
  position: absolute; left: 10.6%; top: 29.6%; width: 0; height: 0; z-index: 3;
  font-size: calc(var(--tw) / 15); transform-origin: 0 0; transform: rotate(7deg);
}
.tag__ring {
  position: absolute; left: calc(var(--tw) * -.062); top: calc(var(--tw) * -.03); width: calc(var(--tw) * .124); height: calc(var(--tw) * .19);
  border-radius: 50%; border: calc(var(--tw) * .019) solid #E9AE10; z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 1px 2px rgba(6, 26, 51, .45);
}
.tag__body {
  position: absolute; left: calc(var(--tw) * -.5); top: calc(var(--tw) * -.083); width: var(--tw); height: calc(var(--tw) * 1.175);
  filter: drop-shadow(0 18px 22px rgba(6, 26, 51, .32));
}
.tag__shape { width: 100%; height: 100%; }
.tag__content {
  position: absolute; inset: 37% 6% 5%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--navy-950);
}
.tag__kicker { font-size: 1.16em; font-weight: 800; color: var(--ink-2); line-height: 1.1; white-space: nowrap; }
.tag__num { display: flex; align-items: flex-start; gap: .06em; margin-top: .18em; font-family: var(--display); font-size: 3.35em; line-height: 1; direction: ltr; white-space: nowrap; }
.tag__cur { font-size: .56em; margin-top: .1em; margin-inline-end: .04em; color: var(--navy-950); }
.tag__foot { margin-top: .34em; padding: .24em .8em .3em; border-radius: 99px; background: var(--navy-950); color: var(--gold-400); font-size: 1.12em; font-weight: 800; line-height: 1.1; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .tag { animation: hang 1.7s .9s both, sway 5s 2.6s ease-in-out infinite; }
  @keyframes hang {
    0%   { transform: rotate(46deg); opacity: 0; }
    12%  { opacity: 1; }
    38%  { transform: rotate(-6deg); }
    58%  { transform: rotate(14deg); }
    76%  { transform: rotate(3deg); }
    90%  { transform: rotate(8.5deg); }
    100% { transform: rotate(7deg); }
  }
  @keyframes sway { 0%, 100% { transform: rotate(7deg); } 30% { transform: rotate(9.5deg); } 70% { transform: rotate(4.5deg); } }
}

/* the keys, cut from the photo, dangle in front of the tag */
.hero__figure .keys-front { position: absolute; z-index: 4; left: 8.73%; top: 27.35%; width: 4.37%; height: auto; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(6, 26, 51, .35)); }

/* odometer digits inside the tag */
.odo { display: inline-flex; direction: ltr; overflow: hidden; height: 1em; line-height: 1; vertical-align: top; }
.odo__d { display: inline-block; height: 1em; overflow: hidden; }
.odo__col { display: block; transition: transform 1.6s cubic-bezier(.2, .9, .2, 1); transition-delay: var(--dd, 0s); transform: translateY(0); }
.odo.is-on .odo__col { transform: translateY(calc(var(--n) * -1em)); }
.odo__col span { display: block; height: 1em; }
.odo__sep { display: inline-block; height: 1em; }
@media (prefers-reduced-motion: reduce) { .odo__col { transition: none; } }

/* ---------- lead form: one bar ---------- */
.lead-strip { margin-top: 2rem; position: relative; max-width: 40rem; }
.lead-strip__title { font-weight: 800; font-size: 1.04rem; color: var(--navy-900); margin-bottom: .65rem; }
.lead-strip__row {
  display: flex; align-items: stretch; padding: 6px; background: var(--white);
  border: 2px solid var(--navy-950); border-radius: 18px;
  box-shadow: 0 24px 44px -26px rgba(6, 26, 51, .55);
  transition: margin .2s;
}
.field { position: relative; flex: 1 1 0; min-width: 0; }
.field + .field::before { content: ""; position: absolute; inset-inline-start: 0; top: 14px; bottom: 14px; width: 1.5px; background: var(--line); }
.field input {
  width: 100%; height: 58px; padding: 0 1.1rem; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-size: 1.1rem; font-weight: 700; transition: background-color .15s;
}
.field input::placeholder { color: #7D8BA0; font-weight: 600; }
.field input:focus { outline: none; background: var(--navy-50); }
.field input[aria-invalid="true"] { background: var(--err-bg); }
.field input[type="tel"] { direction: ltr; text-align: right; }
.field__error { display: none; position: absolute; top: calc(100% + 14px); inset-inline-start: .3rem; white-space: nowrap; font-size: .86rem; color: var(--err); font-weight: 700; }
.field.has-error .field__error { display: block; }
.lead-strip:has(.field.has-error) .lead-strip__row { margin-bottom: 1.9rem; }
.lead-strip__row .btn { flex: none; min-height: 58px; border-radius: 13px; }
.lead-strip__note { display: flex; align-items: center; gap: .45rem; margin-top: .8rem; font-size: .92rem; font-weight: 600; color: var(--muted); }
.lead-strip__note svg { width: 17px; height: 17px; flex: none; color: var(--navy-700); }
.lead-strip__status { display: none; margin-top: .7rem; font-size: .95rem; border-radius: var(--r); padding: .7rem 1rem; }
.lead-strip__status.is-error { display: block; background: var(--err-bg); color: var(--err); }
.hp-field { position: absolute; inset-inline-start: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* three quiet zeros under the hero form: navy type, hairline dividers, no gold */
.zeros { margin-top: 1.35rem; display: flex; align-items: center; }
.zeros li { display: flex; align-items: center; gap: .6rem; padding-inline: 1.25rem; }
.zeros li:first-child { padding-inline-start: 0; }
.zeros li + li { border-inline-start: 1.5px solid var(--line); }
.zeros b { display: inline-flex; align-items: flex-start; direction: ltr; font-family: var(--display); font-weight: 400; font-size: 2.15rem; line-height: 1; color: var(--navy-950); }
.zeros b .cur { font-size: .6em; margin-top: .1em; margin-inline-end: .04em; }
.zeros__label { font-size: .9rem; font-weight: 700; line-height: 1.15; color: var(--muted); }

.lead-success { display: none; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: var(--navy-50); border: 2px solid var(--navy-950); text-align: start; }
.lead-strip.is-success .lead-strip__row, .lead-strip.is-success .lead-strip__note, .lead-strip.is-success .lead-strip__title, .lead-strip.is-success .zeros, .lead-strip.is-success .turnstile-holder { display: none; }
.turnstile-holder { margin-top: .7rem; }
.lead-strip.is-success .lead-success { display: flex; }
.lead-success__icon { width: 52px; height: 52px; border-radius: 50%; flex: none; background: var(--metal); color: var(--navy-950); display: grid; place-items: center; }
.lead-success__icon svg { width: 26px; height: 26px; }
.lead-success h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--navy-950); }
.lead-success h3:focus { outline: none; }
.lead-success p { margin-top: .15rem; color: var(--ink-2); font-size: 1rem; text-wrap: pretty; }
.lead-success__again {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; padding: .35rem 0;
  font-weight: 800; font-size: .95rem; color: var(--navy-800);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--gold-500);
}
.lead-success__again svg { width: 17px; height: 17px; flex: none; transition: transform .5s var(--ease); }
.lead-success__again:hover svg { transform: rotate(-180deg); }

/* ---------- the spot: three cards that stack ---------- */
.story { position: relative; background: var(--paper); padding-block: clamp(1rem, 2.5vw, 2rem) clamp(3rem, 6vw, 5rem); }
.card {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto;
  border-radius: 30px;
  box-shadow: 0 34px 70px -36px rgba(6, 26, 51, .55), 0 0 0 1px rgba(6, 26, 51, .05);
}
.card__dim { position: absolute; inset: 0; z-index: 6; background: var(--navy-950); opacity: 0; pointer-events: none; will-change: opacity; }
.card {
  position: sticky; top: min(calc(var(--header-h) + 12px + var(--i, 0) * 12px), calc(100svh - var(--h, 0px) - 12px));
  transform-origin: 50% 0; will-change: transform;
}
.card__title { font-family: var(--display); font-weight: 400; font-size: var(--card-t); line-height: 1.02; letter-spacing: -.01em; }
.card__sub { margin-top: 1.15rem; max-width: 22em; text-wrap: pretty; font-size: clamp(1.1rem, .95rem + .6vw, 1.5rem); font-weight: 600; opacity: .86; }

.card--navy { color: var(--white); background: radial-gradient(60% 78% at 25% 80%, #1D5194 0%, #0F2D55 46%, var(--navy-950) 100%); }
.card--gold { color: var(--navy-950); background: linear-gradient(118deg, #FFE17A 0%, #F8CB36 28%, #F3BC1D 52%, #FAD254 78%, #FFE38A 100%); }
.card--white { color: var(--navy-950); background: var(--white); }
.card--white { background: radial-gradient(42% 55% at 26% 92%, rgba(244, 192, 30, .16), rgba(244, 192, 30, 0) 70%), var(--white); }
.card--navy .card__sub { color: rgba(255, 255, 255, .9); }
.card--white .card__sub { color: var(--ink-2); opacity: 1; }

.card__copy, .card__form { position: relative; z-index: 2; }
.card__figure { position: relative; z-index: 1; margin: 0; }
.card__figure img { position: relative; z-index: 1; }
.card--navy .card__figure img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .4)); }
.card--white .card__figure img { filter: drop-shadow(0 22px 26px rgba(10, 33, 64, .2)); }
.card__form .lead-strip { margin-top: 0; }

/* card 2 art: a fan of monthly bills, the top one stamped "full price" */
.bills { position: relative; z-index: 1; width: 21em; height: 25em; font-size: clamp(12px, .8vw + 5px, 18px); }
.bill {
  position: absolute; inset: 0; background: var(--white); border-radius: 1em;
  box-shadow: 0 1.6em 2.6em -1.3em rgba(120, 78, 0, .55), 0 0 0 1px rgba(6, 26, 51, .06);
}
.bill--b2 { transform: rotate(-13deg) translate(-5.2em, 1.9em); background: #F7F9FC; }
.bill--b1 { transform: rotate(-6.5deg) translate(-2.7em, .8em); background: #FBFCFE; }
.bill__month { position: absolute; top: 1.4em; left: 1.1em; font-weight: 800; font-size: .9em; color: #8D99AD; }
.bill--front { transform: rotate(3deg); padding: 1.9em 1.8em; display: flex; flex-direction: column; gap: 1em; }
.bill__head { display: flex; align-items: center; gap: .8em; padding-bottom: 1em; border-bottom: 2px solid var(--navy-100); }
.bill__logo { width: 2.7em; height: 2.7em; flex: none; border-radius: .7em; background: var(--navy-800); box-shadow: inset 0 0 0 .55em var(--navy-800), inset 0 0 0 1.35em #2A5A99; }
.bill__titles { display: flex; flex-direction: column; line-height: 1.2; }
.bill__titles b { font-size: 1.12em; font-weight: 800; color: var(--navy-950); }
.bill__titles span { font-size: .9em; font-weight: 600; color: var(--muted); }
.bill__line { display: block; height: .62em; border-radius: .31em; background: #E8EDF4; }
.bill__line--s { width: 68%; }
.bill__row { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .98em; font-weight: 700; color: var(--ink-2); }
.bill__bar { width: 6.5em; height: .8em; border-radius: .4em; background: #DCE3ED; }
.bill__bar--s { width: 4.6em; }
.bill__row--zero { margin-top: .2em; padding-top: 1em; border-top: 2px dashed var(--line); font-size: 1.1em; color: var(--navy-950); }
.bill__row--zero b { display: inline-flex; align-items: flex-start; font-family: var(--display); font-weight: 400; font-size: 1.9em; line-height: 1; direction: ltr; }
.bill__row--zero .cur { font-size: .5em; margin-top: .14em; margin-inline-end: .05em; }
.stamp {
  position: absolute; left: .45em; bottom: .75em; z-index: 2;
  padding: .12em .5em .2em; border: .14em solid currentColor; border-radius: .22em;
  font-family: var(--display); font-size: 2.7em; line-height: 1.05; white-space: nowrap; color: #163F78;
  box-shadow: inset 0 0 0 .07em #fff, inset 0 0 0 .13em currentColor;
  transform: rotate(-15deg); opacity: .9; mix-blend-mode: multiply;
  -webkit-mask-image: url("../img/stamp-mask.png");
  mask-image: url("../img/stamp-mask.png");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}

/* card motion */
@media (prefers-reduced-motion: no-preference) {
  .card__figure, .card__art { opacity: 0; translate: 0 6%; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .card.is-in .card__figure, .card.is-in .card__art { opacity: 1; translate: 0 0; }
  .card__copy > *, .card__form { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .card.is-in .card__copy > *, .card.is-in .card__form { opacity: 1; transform: none; }
  .card.is-in .card__copy > :nth-child(2) { transition-delay: .12s; }
  .card.is-in .card__form { transition-delay: .24s; }
  .stamp { opacity: 0; }
  .card.is-in .stamp { animation: stamp .55s .75s cubic-bezier(.3, 1.4, .6, 1) forwards; }
  .card.is-in .bill--front { animation: thump .4s 1.08s ease-out; }
  @keyframes stamp {
    0%   { opacity: 0; transform: rotate(-8deg) scale(2.3); }
    60%  { opacity: .95; transform: rotate(-15deg) scale(.95); }
    100% { opacity: .9; transform: rotate(-15deg) scale(1); }
  }
  @keyframes thump { 0%, 100% { transform: rotate(3deg); } 35% { transform: rotate(3deg) translateY(.18em) scale(.988); } }
}

/* desktop: full cards that pin and stack, the covered one sinks back */
@media (min-width: 901px) and (min-height: 620px) {
  .card {
    height: min(760px, calc(100svh - var(--header-h) - 64px));
    margin-bottom: 14vh; display: flex; flex-direction: column; justify-content: center;
    container-type: inline-size;
  }
  .card:last-child { margin-bottom: 0; }
  .card__title { font-size: min(var(--card-t), 6.2cqw); white-space: nowrap; }
  .card__copy, .card__form { padding-inline: clamp(2.5rem, 5vw, 5.5rem) 51%; }
  .card--gold .card__copy { padding-inline-end: 47%; }
  .card--white .card__form { margin-top: 2rem; padding-inline-end: 47%; }
  .card__figure { position: absolute; bottom: 0; inset-inline-end: 5%; height: 94%; }
  .card__figure picture, .card__figure img { height: 100%; width: auto; max-width: none; }
  .card--white .card__figure { inset-inline-end: 6%; height: 90%; }
  .card__art { position: absolute; inset-inline-end: 10%; top: 50%; margin-top: -12.5em; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .7); padding-block: 2.5rem 6.5rem; font-size: .95rem; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__logo { height: 44px; width: auto; }
.footer__cta { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.1rem; color: var(--gold-400); }
.footer__cta svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.footer__cta:hover svg { transform: translateX(-4px); }
.footer__copy { margin-top: 1.25rem; font-size: .84rem; color: rgba(255, 255, 255, .45); }
@media (min-width: 761px) { .site-footer { padding-bottom: 2.5rem; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: none;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; min-height: 54px; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- reveal on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
  [data-reveal].in-view { opacity: 1; transform: none; }
  .hero__figure[data-reveal] { transform: translateY(40px); }
  .hero__figure[data-reveal].in-view { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lead-strip__row .btn { padding: 0 1.2rem; }
}
@media (max-width: 900px) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: calc(var(--header-h) + 1.4rem); padding-bottom: 2.4rem; }
  .hero__grid { grid-template-columns: 1fr; align-items: start; gap: 0; }
  .hero__copy { display: contents; }
  .eyebrow { order: 0; margin-bottom: .9rem; }
  .hero__title { order: 1; }
  .hero__lead { order: 2; margin-top: 1rem; }
  .hero__figure { order: 3; width: min(78%, 400px); margin: .9rem 0 0; justify-self: start; }   /* right side: free space on the left for the tag */
  .hero__figure::after { content: ""; position: absolute; z-index: 2; left: -6%; right: -6%; bottom: -34px; height: calc(15% + 34px); background: linear-gradient(rgba(255, 255, 255, 0), #fff 62%); pointer-events: none; }
  .lead-strip { order: 4; margin: .9rem 0 0; max-width: none; z-index: 3; }
  .hero__figure img { filter: drop-shadow(0 14px 16px rgba(10, 33, 64, .16)); }

  .story { padding: 14px 0 18px; }
  .card { width: calc(100% - 24px); margin-bottom: 9vh; border-radius: 24px; }
  .card:last-child { margin-bottom: 0; }
  .card__copy { padding: 2.6rem 1.5rem 0; }
  .card__figure { width: min(84%, 360px); margin: 1.6rem auto 0; }
  .card__figure img { width: 100%; height: auto; }
  .card__art { margin: 2.4rem auto 3.6rem; left: 2.2em; }
  .bills { font-size: clamp(11px, 3.15vw, 14px); }
  .card--white .card__figure::after { content: ""; position: absolute; z-index: 2; left: -10%; right: -10%; bottom: -1px; height: 22%; background: linear-gradient(rgba(255, 255, 255, 0), #fff 80%); }
  .card--white .card__form { padding: 0 1.1rem 1.6rem; margin-top: -1.2rem; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand { height: 38px; }
  .hide-m { display: none; }
  .show-m { display: inline; }
  .site-header .btn--sm { min-height: 42px; padding: 0 1rem; font-size: .98rem; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; --hero: clamp(2.6rem, 11.5vw, 3.4rem); --card-t: clamp(2.3rem, 10vw, 3rem); }
  body { font-size: 17px; }
  .hero__lead { font-size: 1.08rem; }
  .lead-strip__row { flex-direction: column; border-radius: 18px; }
  .field + .field::before { inset-inline: 14px; top: 0; bottom: auto; width: auto; height: 1.5px; }
  .field__error { position: static; white-space: normal; padding: 0 1.1rem .55rem; }
  .lead-strip:has(.field.has-error) .lead-strip__row { margin-bottom: 0; }
  .lead-strip__row .btn { width: 100%; margin-top: 6px; }
  .zeros { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; margin-top: 1.3rem; }
  .zeros li { flex-direction: column; justify-content: flex-start; text-align: center; gap: .4rem; padding-inline: .4rem; }
  .zeros li:first-child { padding-inline-start: .4rem; }
  .zeros b { position: relative; font-size: 2.2rem; }
  .zeros b .cur { position: absolute; right: 100%; top: 0; margin: .1em .06em 0 0; }   /* keeps the 0 centred like the others */
  .zeros__label { font-size: 1rem; line-height: 1.2; }
  .card__sub { font-size: 1.1rem; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}

@media print { .site-header, .sticky-cta { display: none; } .card { position: relative; } }
