/* Rankstar public site — paid-ads funnel pages (templates/site/funnel.html). Loaded only there.
   One blue-hour panel holds the promise and the action (form or calendar) in the first viewport;
   the chrome is the logo and a one-line footer. Tokens only (DESIGN.md). */
@layer components {
  .rs-page-funnel .rs-main { padding-top: 0; }
  .rs-fmast { display: flex; justify-content: center; padding: 1.25rem var(--gutter) 1rem; }
  .rs-fmast__brand { display: inline-flex; color: var(--tx); }
  .rs-fmast__brand .rs-logo { height: 1.5rem; width: auto; }

  .rs-funnel { padding-inline: .75rem; }
  .rs-funnel__panel {
    --promise: var(--lilac-400);
    position: relative; isolation: isolate; overflow: clip; max-width: var(--container-wide); margin-inline: auto;
    display: grid; gap: clamp(1.75rem, 1rem + 3vw, 3.5rem); align-items: start;
    padding: clamp(2rem, 1.25rem + 3.5vw, 4.5rem) clamp(1.25rem, .5rem + 4vw, 4.5rem) clamp(6rem, 4rem + 6vw, 9rem);
    border-radius: 28px; color: #fff; background: var(--grad-bluehour);
  }
  .rs-funnel__panel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: var(--grain-img) 0 0 / var(--grain-size); mix-blend-mode: soft-light; opacity: calc(var(--grain-opacity) * 2.5); border-radius: inherit; }
  .rs-funnel__panel > .rs-strata { height: 7rem; z-index: -1; top: auto; }
  .rs-funnel__halo { position: absolute; z-index: -1; right: -8rem; top: -10rem; width: 40rem; aspect-ratio: 1; background: var(--halo); opacity: .8; pointer-events: none; }
  .rs-funnel__copy { position: relative; z-index: 2; }
  .rs-funnel__step { display: inline-flex; align-items: center; gap: .625rem; font-size: .875rem; font-weight: 500; color: var(--lilac-200); background: rgb(255 255 255 / .09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); padding: .3125rem .875rem .3125rem .75rem; border-radius: 999px; margin-bottom: 1.25rem; }
  .rs-funnel__title { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: var(--ls-display); max-width: 17ch; text-wrap: balance; }
  .rs-funnel__title .rs-promise { display: block; font-weight: 330; margin-top: .08em; }
  .rs-funnel__lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--lilac-200); max-width: 48ch; margin-top: 1.25rem; }
  .rs-funnel__points { list-style: none; padding: 0; display: grid; gap: .75rem; margin-top: 1.75rem; color: var(--lilac-100, #fff); max-width: 46ch; }
  .rs-funnel__points li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .75rem; align-items: start; line-height: 1.45; }
  .rs-funnel__points .rs-i { color: var(--mint-300); width: 1.25rem; height: 1.25rem; stroke-width: 2; margin-top: .1rem; }

  /* The lifted form / calendar: its own section chrome is dropped, the card stays. */
  .rs-funnel__action { position: relative; z-index: 2; color: var(--tx); min-width: 0; }
  .rs-funnel__action .rs-section { padding: 0; }
  .rs-funnel__action .rs-wrap { width: 100%; max-width: none; }
  .rs-funnel__action .rs-form { grid-template-columns: 1fr; box-shadow: 0 30px 60px -30px rgb(13 10 46 / .7), var(--rim); }
  .rs-funnel__action .rs-formwrap > .rs-head { color: #fff; margin-bottom: 1.25rem; }
  .rs-funnel__action .rs-formwrap > .rs-head :is(p, .rs-lead) { color: var(--lilac-200); }
  .rs-funnel__action .rs-form__foot { flex-direction: column; align-items: stretch; }
  .rs-funnel__action .rs-form__foot .rs-beacon { justify-content: space-between; }
  .rs-funnel__action .rs-booking { box-shadow: 0 30px 60px -30px rgb(13 10 46 / .7), var(--rim); }
  @media (min-width: 960px) {
    .rs-funnel:not(.rs-funnel--booking) .rs-funnel__panel { grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 1fr); }
  }
  .rs-funnel--booking .rs-funnel__copy { max-width: 60rem; }

  .rs-ffoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem 1.5rem; padding: 2.5rem var(--gutter) 3rem; font-size: .8125rem; color: var(--t3); }
  .rs-ffoot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; }
  .rs-ffoot a, .rs-ffoot__cookies { color: var(--t2); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
  .rs-ffoot a:hover, .rs-ffoot__cookies:hover { text-decoration: underline; }
}
