/* Rankwyre navbar + hero on the Habitline mirror. Additive only, Habitline files untouched.
   Every value below is measured from Habitline (2026-12-01) unless marked "Rankwyre":
   bg #f7f7f7, ink #131515, body #494d4d, tab fill #e8e8e8, card radius 20px,
   card shadow 0 8px 20px rgba(19,21,21,.05), headings Stack Sans Headline 500,
   body Google Sans Flex 400. Buttons keep Habitline's size and colors but use 16px
   corners instead of its 100px pills (Hamza's no-pill rule). Accent #2557e6 = Rankwyre. */

:root {
  --rw-bg: #f7f7f7;
  --rw-ink: #131515;
  --rw-body: #494d4d;
  --rw-fill: #e8e8e8;
  --rw-blue: #2557e6;
  --rw-shadow: 0 8px 20px rgba(19, 21, 21, .05);
  --rw-head: "Stack Sans Headline", "Stack Sans Headline Placeholder", sans-serif;
  --rw-sans: "Google Sans Flex Variable", "Google Sans Flex", "Google Sans Flex Placeholder", sans-serif;
  --rw-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- hide Habitline's own hero and template widgets (its navbar stays) ---------- */
html:not(.rw-page) .framer-1m4b4ya,
[data-framer-name="Get It Button"],
#__framer-badge-container { display: none !important; }

/* ---------- navbar logo: approved bold lockup (rankwyre-lockup-bold-dark.png) drawn inside Habitline's own
   134x32 logo slot, so the logo block stays 166px and the scrolled navbar keeps Habitline's 6px gaps. ---------- */

/* ---------- buttons: Habitline's own button component (shared style for the whole site) ----------
   Measured on habitline-wbs.framer.website 2026-12-01: pill (radius 100px), padding 16px 34px,
   label Google Sans Flex 400 18px/23.4px, light = #fff on #131515 text, dark = #131515 with #fff text.
   Hover: the label rolls up. Two stacked copies, 33px apart, move up in about 250ms with a slight overshoot. */
.rw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; border-radius: 100px; overflow: hidden;
  font: 400 18px/23.4px var(--rw-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.rw-btn--dark { background: var(--rw-ink); color: #fff; }
.rw-btn--light { background: #fff; color: var(--rw-ink); }
.rw-btn__roll { display: block; height: 23px; overflow: hidden; }
.rw-btn__track { display: flex; flex-direction: column; gap: 10px; transition: transform 300ms cubic-bezier(.3, 1.25, .5, 1); }
.rw-btn:hover .rw-btn__track, .rw-btn:focus-visible .rw-btn__track { transform: translateY(-33px); }
.rw-btn:focus-visible { outline: 2px solid var(--rw-blue); outline-offset: 3px; }
/* Habitline's hero pair (Hamza 12/2): solid white pill + glass pill with the play icon.
   Habitline's glass button: transparent, 1px rgba(255,255,255,.2) outline, gap 10px, 16x18 icon that rolls
   with the label. Ours sits on light clouds, so the glass gets a frosted white fill, a brighter rim and dark
   text instead of white text (white on a light sky would disappear). */
.rw-btn { gap: 10px; }
.rw-btn--lift { box-shadow: 0 8px 20px rgba(19, 21, 21, .08); }
.rw-btn--glass {
  background: rgba(255, 255, 255, .28); color: var(--rw-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 8px 20px rgba(19, 21, 21, .05);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
}
.rw-btn__ico { display: block; width: 16px; height: 18px; overflow: hidden; flex: none; }
.rw-btn__ico .rw-btn__track { gap: 10px; }
.rw-btn__ico svg { display: block; width: 16px; height: 18px; flex: none; }
.rw-btn:hover .rw-btn__ico .rw-btn__track { transform: translateY(-28px); }
.rw-hero--dark .rw-btn--glass { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* the same component, scaled for the service cards */
.rw-btn--card { font-size: 16px; line-height: 20px; padding: 12px 24px; }
.rw-btn--card .rw-btn__roll { height: 20px; }
.rw-btn--card .rw-btn__track { gap: 10px; }
.rw-btn--card:hover .rw-btn__track { transform: translateY(-30px); }

/* ---------- hero ---------- */
.rw-hero {
  background: var(--rw-bg); color: var(--rw-ink);
  padding: clamp(112px, 14vh, 136px) 20px 64px; text-align: center; overflow: hidden; /* sits right under the 84px nav */
  font-family: var(--rw-sans);
}
/* Build / Grow: segmented toggle (Hamza 12/2: "needs to be more clear it's a toggle").
   Both options live inside one track; a dark thumb slides behind the selected one.
   Track and thumb reuse the premium toggle from his reference template (pasted code):
   track rgba(255,255,255,.8) fully round, inset rgba(176,176,176,.15) 0 -18px 15px,
   drops rgba(0,0,0,.07) .12px .12px .85px -.375px + rgba(0,0,0,.26) 1px 1px 7.07px -.75px,
   thumb rgb(27,27,27). */
.rw-toggle {
  position: relative; display: inline-flex; padding: 4px; margin: 0 auto 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  box-shadow: rgba(176, 176, 176, .15) 0 -18px 15px 0 inset, rgba(0, 0, 0, .07) .12px .12px .85px -.375px, rgba(0, 0, 0, .26) 1px 1px 7.07px -.75px;
}
.rw-toggle__thumb {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px;
  background: rgb(27, 27, 27); box-shadow: 0 2px 6px rgba(19, 21, 21, .18);
  transition: transform 300ms cubic-bezier(.3, 1.25, .5, 1), width 300ms cubic-bezier(.3, 1.25, .5, 1);
}
.rw-toggle__opt {
  all: unset; position: relative; z-index: 1; box-sizing: border-box; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 999px;
  font: 500 15px/1 var(--rw-sans); color: var(--rw-body); transition: color 200ms ease-out;
}
.rw-toggle__opt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rw-toggle__opt:not(.is-on):hover { color: var(--rw-ink); }
.rw-toggle__opt.is-on { color: #fff; }
.rw-toggle__opt:focus-visible { outline: 2px solid var(--rw-blue); outline-offset: 2px; }

.rw-hero h1 {
  font: 500 clamp(36px, min(6.4vw, 9.4vh), 84px)/1.04 var(--rw-head); letter-spacing: -.01em; /* shrinks on short windows so the carousel shows */
  margin: 0 auto; color: var(--rw-ink);
}
.rw-hero h1 .rw-line { display: block; white-space: nowrap; }
.rw-word {
  display: inline-flex; align-items: center; gap: .14em; vertical-align: bottom;
  color: var(--rw-blue); transition: width 220ms var(--rw-ease);
  overflow: hidden; height: 1.12em; position: relative;
}
.rw-word__inner { display: inline-flex; align-items: center; gap: .14em; white-space: nowrap; }
.rw-word svg:not(.kb) { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rw-word svg.kb { width: 1.05em; height: 1.05em; flex: none; } /* Kubai layered icons carry their own colours */
.rw-word__inner.is-out { animation: rwWordOut 200ms cubic-bezier(.42,0,.58,1) both; }
.rw-word__inner.is-in { animation: rwWordIn 300ms cubic-bezier(.42,0,.58,1) both; }
@keyframes rwWordOut { to { opacity: 0; } }
@keyframes rwWordIn { from { opacity: 0; } to { opacity: 1; } } /* reference: opacity 0 to 1, 300ms, cubic-bezier(.42,0,.58,1) */

.rw-hero__sub {
  max-width: 620px; margin: 18px auto 0;
  font: 400 22px/30.8px var(--rw-sans); color: var(--rw-body);
}
.rw-hero__cta { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- 3D service carousel ---------- */
.rw-carousel { position: relative; margin: clamp(32px, 5vh, 48px) auto 0; max-width: 1240px; }
.rw-stage {
  position: relative; height: calc(min(760px, 70vw) * .5625); perspective: 1200px;
  transition: opacity 200ms ease-out;
}
.rw-stage.is-swapping { opacity: 0; }
.rw-card {
  position: absolute; top: 0; left: 50%; width: min(760px, 70vw); aspect-ratio: 16 / 9;
  margin-left: calc(min(760px, 70vw) / -2);
  border-radius: 20px; overflow: hidden; background: #ddd; box-shadow: 0 20px 40px rgba(19, 21, 21, .12);
  transform-style: preserve-3d; cursor: pointer;
  transition: transform 520ms var(--rw-ease), opacity 400ms ease-out, filter 400ms ease-out;
  will-change: transform;
}
.rw-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rw-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, .72) 0%, rgba(10, 10, 10, .28) 38%, rgba(10, 10, 10, 0) 62%);
}
.rw-card__body {
  position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; color: #fff;
}
.rw-card__title { font: 500 30px/1.1 var(--rw-head); margin: 0; }
.rw-card__desc { font: 400 16px/22px var(--rw-sans); margin: 6px 0 0; color: rgba(255, 255, 255, .82); }
.rw-card__price { font: 500 13px/1 var(--rw-sans); letter-spacing: .08em; text-transform: uppercase; margin: 12px 0 0; color: rgba(255, 255, 255, .7); }
.rw-card .rw-btn { flex: none; }
.rw-card:not(.is-center) { cursor: pointer; }
.rw-card:not(.is-center) .rw-card__body { opacity: 0; }
.rw-card__body { transition: opacity 300ms ease-out; }

.rw-arrows { position: absolute; inset: 0; pointer-events: none; }
.rw-arrow {
  pointer-events: auto; position: absolute; top: calc(min(760px, 70vw) * .5625 / 2 - 24px);
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--rw-ink);
  box-shadow: var(--rw-shadow); display: grid; place-items: center; cursor: pointer; z-index: 5;
  transition: transform 160ms ease-out;
}
.rw-arrow:hover { transform: translateY(-1px); }
.rw-arrow--prev { left: 8px; }
.rw-arrow--next { right: 8px; }
.rw-arrow svg { width: 20px; height: 20px; }
.rw-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.rw-dots button { all: unset; width: 8px; height: 8px; border-radius: 50%; background: #cfcfcf; cursor: pointer; transition: background-color 160ms ease-out, transform 160ms ease-out; }
.rw-dots button.is-on { background: var(--rw-ink); transform: scale(1.15); }

/* short desktop windows (laptops with browser chrome): tighten so the carousel shows on screen one */
@media (min-width: 810px) and (max-height: 760px) {
  .rw-hero { padding-top: 104px; }
  .rw-toggle { margin-bottom: 16px; }
  .rw-hero h1 { font-size: clamp(36px, min(6.4vw, 8.4vh), 84px); }
  .rw-hero__sub { font-size: 18px; line-height: 26px; margin-top: 14px; max-width: 560px; }
  .rw-hero__cta { margin-top: 22px; }
  .rw-hero__cta .rw-btn { padding: 14px 30px; }
  .rw-carousel { margin-top: 28px; }
}

@media (max-width: 809.98px) {
  .rw-hero { padding: 118px 16px 56px; }
  .rw-toggle { margin-bottom: 20px; }
  .rw-hero h1 { font-size: min(8.4vw, 44px); } /* "Websites and software" measured 379px at 35.9px; box 358px at 390 */
  .rw-hero__sub { font-size: 17px; line-height: 25px; max-width: 360px; margin-top: 18px; }
  /* side by side (Hamza 12/2), at Habitline's phone button size: 16px/20.8px label, 12px 26px padding */
  .rw-hero__cta { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 10px; margin: 28px auto 0; }
  .rw-hero__cta .rw-btn { padding: 12px 26px; font-size: 16px; line-height: 20.8px; flex: none; }
  .rw-hero__cta .rw-btn__roll { height: 20.8px; }
  .rw-hero__cta .rw-btn:hover .rw-btn__track { transform: translateY(-30.8px); }
}
@media (max-width: 399.98px) {
  /* both labels at 26px padding need 367px; below 400px wide only, trim the side padding evenly so they fit */
  .rw-hero__cta .rw-btn { padding-left: max(12px, calc((100vw - 295px) / 4)); padding-right: max(12px, calc((100vw - 295px) / 4)); }
  /* reference phone carousel: wide center card (about 16:10), 16px corners, slivers each side */
  .rw-stage { height: calc(70vw * .625); }
  .rw-card { width: 70vw; margin-left: -35vw; aspect-ratio: 16 / 10; border-radius: 16px; }
  .rw-card__body { left: 14px; right: 12px; bottom: 12px; gap: 8px; align-items: flex-end; }
  .rw-card__title { font-size: 18px; }
  .rw-card__desc { display: none; }
  .rw-card__price { font-size: 12px; margin-top: 4px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
  .rw-btn--card { font-size: 13px; line-height: 16px; padding: 9px 14px; }
  .rw-btn--card .rw-btn__roll { height: 16px; }
  .rw-btn--card:hover .rw-btn__track { transform: translateY(-26px); }
  .rw-arrow { display: grid; width: 40px; height: 40px; top: calc(70vw * .625 / 2 - 20px); }
  .rw-arrow--prev { left: 2px; }
  .rw-arrow--next { right: 2px; }
  .rw-arrow svg { width: 18px; height: 18px; }
  .rw-dots { margin-top: 22px; gap: 10px; }
  .rw-dots button { width: 10px; height: 10px; }
  .rw-carousel { margin-top: 44px; }
}

/* ---------- hero backgrounds, A/B behind ?bg=cove and ?bg=grain (2026-12-02) ---------- */
.rw-hero { position: relative; isolation: isolate; }
.rw-hero > *:not(.rw-bg):not(.rw-bg-wash):not(.rw-bg-veil) { position: relative; z-index: 1; }
.rw-bg { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; pointer-events: none; }
/* A: Covelight light-streak shader, dark hero */
.rw-hero--dark { background: #0a0a0a; }
.rw-bg-wash { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,10,10,.70) 0%, rgba(10,10,10,.45) 40%, rgba(10,10,10,.25) 70%, rgba(10,10,10,.9) 100%); }
.rw-hero--dark h1 { color: #fff; }
.rw-hero--dark .rw-hero__sub { color: rgba(255, 255, 255, .72); }
.rw-hero--dark .rw-btn--dark { background: #fff; color: var(--rw-ink); }
.rw-hero--dark .rw-dots button { background: rgba(255, 255, 255, .3); }
.rw-hero--dark .rw-dots button.is-on { background: #fff; }
/* C: photographic background that fades into the page, like FintechX's sky and Habitline's original hero.
   Images are Higgsfield (GPT Image 2.6) originals in /assets/rw/bg/. Top stays calm for the headline,
   the detailed lower part sits behind the carousel, and a mask fades it into #f7f7f7 at the bottom. */
.rw-hero--photo { background: #f7f7f7; }
.rw-bg--photo {
  background-size: cover; background-position: center bottom; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.rw-bg--photo[data-bg="sky"] { background-image: url("/assets/rw/bg/sky.jpg"); }
.rw-bg--photo[data-bg="street"] { background-image: url("/assets/rw/bg/street.jpg"); }
.rw-bg--photo[data-bg="window"] { background-image: url("/assets/rw/bg/window.jpg"); }
.rw-bg--photo[data-bg="clouds"] { background-image: url("/assets/rw/bg/sky-clouds.jpg"); }
.rw-bg--photo[data-bg="haze"] { background-image: url("/assets/rw/bg/sky-haze.jpg"); }
/* sky-only backgrounds. Desktop: the sky is drawn at page width from the top (image height = 56.25vw),
   so its cloud band rises behind the buttons and around the carousel; it fades out at the image's bottom.
   Phones: cover from the bottom, so the clouds sit behind the buttons and carousel. */
.rw-bg--photo[data-bg="clouds"], .rw-bg--photo[data-bg="haze"] {
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 86%, transparent 100%);
}
@media (min-width: 810px) {
  .rw-bg--photo[data-bg="clouds"], .rw-bg--photo[data-bg="haze"] {
    background-size: 100% auto; background-position: center top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(56.25vw * .8), transparent calc(56.25vw * .99));
            mask-image: linear-gradient(to bottom, #000 0, #000 calc(56.25vw * .8), transparent calc(56.25vw * .99));
  }
}
/* D: Skyflow cloud shader. Light: Rankwyre Ice preset, fades into the page at the bottom.
   Dark: Rankwyre Midnight preset with a light wash so white text stays readable. */
.rw-hero--skylight { background: #f7f7f7; }
/* long eased fade (Hamza 12/2: the bottom must blend, not stop) - starts behind the carousel, reaches the
   page colour before the hero ends, with extra stops so there is no visible band */
.rw-bg--sky {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0,0,0,.9) 54%, rgba(0,0,0,.72) 62%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.3) 77%, rgba(0,0,0,.15) 84%, rgba(0,0,0,.05) 90%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0,0,0,.9) 54%, rgba(0,0,0,.72) 62%, rgba(0,0,0,.5) 70%, rgba(0,0,0,.3) 77%, rgba(0,0,0,.15) 84%, rgba(0,0,0,.05) 90%, transparent 95%);
}
.rw-hero--dark .rw-bg--sky { -webkit-mask-image: none; mask-image: none; }
.rw-bg-wash--sky { background: linear-gradient(180deg, rgba(6,10,22,.35) 0%, rgba(6,10,22,.15) 45%, rgba(6,10,22,0) 70%); }
/* readability on the light cloud hero (Hamza 12/2): a soft, shapeless glow of the page colour behind the
   toggle, headline, subhead and buttons, plus a darker subhead. The clouds stay visible around it. */
.rw-bg-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 50% 34%, rgba(247, 247, 247, .82) 0%, rgba(247, 247, 247, .55) 45%, rgba(247, 247, 247, 0) 100%);
}
@media (max-width: 809.98px) {
  .rw-bg-veil { background: radial-gradient(ellipse 90% 40% at 50% 42%, rgba(247, 247, 247, .82) 0%, rgba(247, 247, 247, .5) 50%, rgba(247, 247, 247, 0) 100%); }
}
.rw-hero--skylight .rw-hero__sub { color: #2f3333; }
/* B: light mesh-gradient shader keeps the light hero */
.rw-hero--grain { background: #f7f7f7; }
.rw-bg--grain canvas { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .rw-card, .rw-stage, .rw-word, .rw-toggle__thumb, .rw-btn__track { transition: none !important; }
  .rw-word__inner.is-out, .rw-word__inner.is-in { animation: none !important; }
}

/* ---------- dark hero bottom: Habitline's own "Blur Overlay Bottom" (Hamza 12/2) ----------
   Measured on the Habitline mirror: a curved #f7f7f7 shape (pUHkyH58LSJDgk8jqtzFiFqUyvY.svg, 1920x530) laid over
   the hero bottom, blurred 25px (10px under 810), with a solid strip under it (80 / 70 / 50px). The hero grows by
   the fade's visible height so the carousel never sits on it. */
.rw-hero--dark { padding-bottom: calc(11.8% + 18px); }  /* Hamza 12/2 "a little too tall": curve at 75% height, page colour starts ~110px under the dots */
.rw-hero > .hl-fade { position: absolute !important; left: 0; right: 0; bottom: 0; height: 0; z-index: 2 !important; pointer-events: none; }
.hl-fade__curve {
  position: absolute; left: -120px; right: -120px; bottom: -120px; aspect-ratio: 1920 / 397.5;
  background: url("/assets/framerusercontent.com/images/pUHkyH58LSJDgk8jqtzFiFqUyvY.svg") center / 100% 100% no-repeat;
  filter: blur(25px);
}
.hl-fade__strip { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: rgb(247, 247, 247); }
/* Hamza 12/2 "hard line": the solid strip's top edge cut across the curve's blur in the middle. Feather it: the strip
   grows upward by 120px and fades in, so the dark meets the page colour as one soft ramp. */
.hl-fade__strip { height: 200px !important; background: linear-gradient(to bottom, rgba(247,247,247,0) 0, rgba(247,247,247,.55) 35%, rgb(247,247,247) 60%); }
@media (max-width: 809.98px) { .hl-fade__strip { height: 110px !important; } }
@media (max-width: 1199.98px) {
  .rw-hero--dark { padding-bottom: calc(11.8% + 98px); }
  .hl-fade__curve { bottom: -40px; }
  .hl-fade__strip { height: 70px; }
}
@media (max-width: 809.98px) {
  .rw-hero--dark { padding-bottom: calc(11.4% + 64.5px); }
  .hl-fade__curve { left: calc(-10% - 24px); right: calc(-10% - 24px); bottom: calc(-2.75vw - 11.2px); filter: blur(10px); }
  .hl-fade__strip { height: 50px; }
}

/* Webestica background behind the Rankwyre hero (Hamza 12/2): their --black #040811 plus the cloned top glow */
.rw-hero--glow { background: #040811; overflow: clip; } /* clip, not hidden: hidden makes the hero a scroll container and offsets Webestica's sticky glow by the hero padding */
.rw-hero > .rw-bg--glow { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; }

/* ---------- calm hover (Hamza 12/2: "I don't like how these 2 button hovers look"). Replaces the rolling label
   on every Rankwyre button (hero CTAs, card "Start build"); the nav CTA follows in rw-nav.css.
   House motion standard: 160ms ease-out, 1px lift, fill/hairline shift only. ---------- */
html .rw-btn .rw-btn__track { transition: none !important; }
html .rw-btn:hover .rw-btn__track, html .rw-btn:hover .rw-btn__ico .rw-btn__track { transform: none !important; }
.rw-btn { transition: background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out; }
.rw-btn:hover { transform: translateY(-1px); }
.rw-btn--light:hover { background: #e8e8e8; }                     /* Habitline's own fill grey */
.rw-btn--dark:hover { background: #2a2d2d; }
.rw-hero--dark .rw-btn--glass:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.rw-btn--glass:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 20px rgba(19, 21, 21, .08); }
.rw-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .rw-btn, .rw-btn:hover { transition: none; transform: none; } }

/* subhead on exactly two lines (Hamza 12/2): break after "everything your"; the box is widened so neither line wraps.
   Under 600px the forced break is dropped and the text wraps naturally. */
.rw-hero__sub { max-width: none; }
@media (max-width: 599.98px) { .rw-hero__sub .rw-br { display: none; } .rw-hero__sub { max-width: 360px; } }

/* phone carousel card, simplified (Hamza 12/2: "too congested"): just the name, its price underneath, and one round
   arrow button; the "Start build" pill is the desktop version. Whole card stays tappable via the arrow. */
.rw-card__go { display: none; }
@media (max-width: 809.98px) {
  .rw-card .rw-btn--card { display: none; }
  .rw-card__body { left: 16px; right: 14px; bottom: 14px; align-items: center; }
  .rw-card__title { font-size: 20px; line-height: 24px; }
  .rw-card__price { font: 400 13px/17px var(--rw-sans); margin-top: 3px; color: rgba(255, 255, 255, .72); }
  .rw-card__go {
    flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: var(--rw-ink); transition: background-color 160ms ease-out;
  }
  .rw-card__go svg { width: 18px; height: 18px; }
  .rw-card__go:active { background: #e8e8e8; }
}

/* hero carousel cards below desktop (Hamza 12/2: "too much going on, one line each"): name and price only,
   each on a single line, plus the round arrow. Description and the "Start build" pill stay desktop-only. */
@media (max-width: 1199.98px) {
  .rw-card .rw-card__desc, .rw-card .rw-btn--card { display: none !important; }
  .rw-card__go { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--rw-ink); }
  .rw-card__go svg { width: 18px; height: 18px; }
  .rw-card__body { align-items: center; }
  .rw-card__body > div { min-width: 0; }
  .rw-card__title, .rw-card__price { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rw-card__price { font: 400 14px/18px var(--rw-sans); letter-spacing: 0; text-transform: none; margin-top: 4px; color: rgba(255, 255, 255, .72); }
}

/* ===== hero CTAs v3 (Hamza 12/2: "the font doesn't look premium, the play icon makes no sense") =====
   Same pill and height as before; label in Google Sans Flex 500 16px (the Build/Grow toggle's medium weight).
   Primary: white pill + ink arrow chip, matching the navbar "Start a project". Secondary: clear pill with a hairline,
   no icon; on hover a faint fill and a small arrow slides in. Motion 160ms ease-out, 1px lift, no bounce. */
.rw-hero__cta { align-items: center; }
.rw-cta {
  display: inline-flex; align-items: center; box-sizing: border-box; height: 54px; border-radius: 100px;
  font: 500 16px/20px var(--rw-sans); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out, padding 160ms ease-out;
}
.rw-cta svg { width: 18px; height: 18px; }
.rw-cta--main { gap: 14px; padding: 6px 6px 6px 26px; background: #fff; color: var(--rw-ink); box-shadow: 0 8px 20px rgba(19, 21, 21, .08); }
.rw-cta__chip { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--rw-ink); color: #fff; }
.rw-cta__chip svg { transition: transform 160ms ease-out; }
.rw-cta--main:hover { background: #e8e8e8; transform: translateY(-1px); }
.rw-cta--main:hover .rw-cta__chip svg { transform: translateX(2px); }
.rw-cta--ghost { position: relative; padding: 0 28px; color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
/* the arrow fades into the right padding and the label nudges left, so the button never changes width (no layout shift) */
.rw-cta--ghost .rw-cta__label { transition: transform 160ms ease-out; }
.rw-cta__arrow { position: absolute; right: 14px; top: 50%; display: flex; opacity: 0; transform: translate(-4px, -50%); transition: opacity 160ms ease-out, transform 160ms ease-out; }
.rw-cta--ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); transform: translateY(-1px); }
.rw-cta--ghost:hover .rw-cta__label { transform: translateX(-10px); }
.rw-cta--ghost:hover .rw-cta__arrow { opacity: 1; transform: translate(0, -50%); }
.rw-hero:not(.rw-hero--dark) .rw-cta--ghost { color: var(--rw-ink); box-shadow: inset 0 0 0 1px rgba(19, 21, 21, .18); }
.rw-cta:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 809.98px) {
  .rw-hero__cta { gap: 10px; }
  .rw-cta { height: 48px; font-size: 15px; }
  .rw-cta--main { gap: 10px; padding: 5px 5px 5px 20px; }
  .rw-cta__chip { width: 38px; height: 38px; }
  .rw-cta--ghost { padding: 0 20px; }
}
@media (max-width: 379.98px) {
  .rw-cta--main { padding-left: 16px; gap: 8px; }
  .rw-cta--ghost { padding: 0 16px; }
}
@media (hover: none) { .rw-cta--ghost:hover .rw-cta__arrow { opacity: 0; } .rw-cta--ghost:hover .rw-cta__label { transform: none; } }
@media (prefers-reduced-motion: reduce) { .rw-cta, .rw-cta * { transition: none !important; } .rw-cta:hover { transform: none; } }

/* "See our work" = Habitline's own "Watch demo" button, measured on the Habitline mirror: fill
   linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.1)), 1px rgba(255,255,255,.2) hairline, pill, icon + 10px gap.
   Icon swapped from play to a solid photo frame (Hamza 12/2). Hover: hairline brightens, fill lifts slightly, 1px rise. */
.rw-cta--ghost { gap: 10px; padding: 0 28px 0 24px; background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .1) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.rw-cta__ico { display: flex; width: 18px; height: 18px; }
.rw-cta__ico svg { width: 18px; height: 18px; }
.rw-cta--ghost:hover { background: linear-gradient(rgba(255, 255, 255, .04) 0%, rgba(255, 255, 255, .16) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.rw-cta--ghost:hover .rw-cta__label { transform: none; }
@media (max-width: 809.98px) { .rw-cta--ghost { padding: 0 20px 0 17px; gap: 8px; } .rw-cta__ico, .rw-cta__ico svg { width: 16px; height: 16px; } }
@media (max-width: 379.98px) { .rw-cta--ghost { padding: 0 15px 0 13px; } }

/* phone / iPad (Hamza 12/2: "arrows on the carousel AND on the cards is confusing"): no side arrows; people swipe,
   the dots show position, and the card's own arrow is the one action. Desktop keeps side arrows + "Start build" pill. */
@media (max-width: 1199.98px) { .rw-arrows, .rw-arrow { display: none !important; } }

/* Hamza 12/3 round 2 (item 7): the white fade overlapped the last bullet / dots. One variable holds the fade strip's
   height; the hero's bottom padding is never less than that height plus 44px, so the last piece of hero content always
   ends above the fade strip (qa/fade-check.mjs measures this on every layout at 390, 768, 1024 and 1440). */
.rw-hero { --fade-h: 200px; }
@media (max-width: 809.98px) { .rw-hero { --fade-h: 110px; } }
.rw-hero--dark { padding-bottom: max(calc(11.8% + 18px), calc(var(--fade-h) + 44px)); }
@media (max-width: 1199.98px) { .rw-hero--dark { padding-bottom: max(calc(11.8% + 98px), calc(var(--fade-h) + 44px)); } }
@media (max-width: 809.98px) { .rw-hero--dark { padding-bottom: max(calc(11.4% + 64.5px), calc(var(--fade-h) + 44px)); } }

/* ROUND-3 Website card: the design reads from the left, so keep its left edge when the card crops. */
.rw-card img[src*="website-card"] { object-position: 0% 50%; }
.rw-card img[src*="-card.jpg"] { object-position: 0% 50%; }
