/* ============================================================
   ROOMRR — index.css v4.0
   Redesigned design system: consistent spacing scale, unified
   container/alignment, refined type, restrained motion.
   ============================================================ */

/* ============================================================
   FONTS — self-hosted Manrope, WOFF2 first with an .otf fallback.
   Only the five weights the type scale uses (400–800) are declared.
   ============================================================ */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-regular.woff2') format('woff2'),
       url('../fonts/manrope-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-medium.woff2') format('woff2'),
       url('../fonts/manrope-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-semibold.woff2') format('woff2'),
       url('../fonts/manrope-semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-bold.woff2') format('woff2'),
       url('../fonts/manrope-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-extrabold.woff2') format('woff2'),
       url('../fonts/manrope-extrabold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: block;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --orange: #ff4400;
  --orange-strong: #d23d16;
  --yellow: #fc9b04;
  --green: #16a34a;
  --red: #ef4444;

  --grad-brand: linear-gradient(135deg, #e84b19, #fc9b04);
  --grad-brand-text: linear-gradient(100deg, var(--orange), var(--yellow));

  /* Spacing scale (8pt-based) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --space-16: 7rem;

  /* Section + layout rhythm */
  --section-py: clamp(4.5rem, 9vw, 7.5rem);
  --container: 1180px;
  --container-pad: clamp(1.25rem, 5vw, 2.25rem);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --t-fast: 0.16s ease;
  --t: 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ── Typography ─────────────────────────────────────────────────────────
     One scale for every page that loads this sheet. Fluid sizes interpolate
     from a 320px viewport up to roughly 1440px and stop growing there, so no
     size is tied to a device. Everything is in rem, so browser zoom and a
     reader's own default font size scale the whole scale with them.
     Component CSS should use these tokens; the only deliberate exceptions are
     the miniature app mock-ups (aria-hidden illustrations, not reading text)
     and the height-fitted pinned solutions card further down. */
  --fs-display: clamp(2.25rem, 1.6rem + 3.25vw, 4rem);      /* 36 → 64  homepage hero  */
  --fs-display-sm: clamp(2.125rem, 1.6rem + 2.4vw, 3.5rem); /* 34 → 56  long hero H1s  */
  --fs-h1: clamp(1.875rem, 1.5rem + 1.9vw, 3rem);           /* 30 → 48 */
  --fs-h2: clamp(1.625rem, 1.4rem + 1.1vw, 2.375rem);       /* 26 → 38 */
  --fs-h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);      /* 22 → 28 */
  --fs-h4: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);     /* 18 → 22  card titles   */
  --fs-body-lg: clamp(1rem, 0.93rem + 0.36vw, 1.125rem);    /* 16 → 18 */
  --fs-body: 1rem;                                          /* 16 */
  --fs-body-sm: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem); /* 14 → 15  card copy  */
  --fs-btn: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);        /* 15 → 16 */
  --fs-nav: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);    /* 14 → 15  the homepage bar holds 5 links + 3 actions */
  --fs-input: 1rem;      /* 16px: anything smaller makes iOS Safari zoom on focus */
  --fs-label: 0.8125rem; /* 13: eyebrows, badges, tags, helper text */
  --fs-caption: 0.75rem; /* 12: the floor for any text meant to be read */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;   /* component headings, buttons, links */
  --fw-bold: 700;       /* section headings */
  --fw-extrabold: 800;  /* the hero display line and the wordmark only */

  --lh-display: 1.08;
  --lh-heading: 1.18;
  --lh-snug: 1.35;
  --lh-body: 1.6;
  --lh-relaxed: 1.7;

  --ls-display: -0.035em;
  --ls-heading: -0.025em;
  --ls-snug: -0.015em;
  --ls-label: 0.12em;   /* uppercase labels only */

  --measure: 65ch;        /* comfortable paragraph width */
  --measure-narrow: 46ch; /* hero and intro copy */
}

[data-theme="light"] {
  --bg: #f9f8f6;
  --bg-2: #f2f1ed;
  --bg-3: #eae8e2;
  --bg-card: #ffffff;
  --bg-card-2: #faf9f7;
  --border: rgba(20, 18, 15, 0.08);
  --border-2: rgba(20, 18, 15, 0.16);
  --text: #16140f;
  --text-2: #5c594f;
  --text-3: #8f8b80;
  --nav-bg: rgba(249, 248, 246, 0.78);
  --form-bg: #ffffff;
  --input-bg: #f5f4f0;
  --tint: rgba(255, 68, 0, 0.07);
  --tint-2: rgba(255, 68, 0, 0.12);
  --glow: rgba(255, 68, 0, 0.16);
  --band: rgba(20, 18, 15, 0.022);
  --ambient-1: rgba(255, 68, 0, 0.09);
  --ambient-2: rgba(247, 148, 12, 0.072);
  --shadow-sm: 0 1px 2px rgba(20, 18, 15, 0.05);
  --shadow-md: 0 10px 30px rgba(20, 18, 15, 0.07);
  --shadow-lg: 0 24px 60px rgba(20, 18, 15, 0.10);
}

[data-theme="dark"] {
  --orange: #ef8000;
  --bg: #080808;
  --bg-2: #0d0d0d;
  --bg-3: #161616;
  --bg-card: #111111;
  --bg-card-2: #181818;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #f3f3f2;
  --text-2: #a3a3a0;
  --text-3: #6c6c69;
  --nav-bg: rgba(8, 8, 8, 0.72);
  --form-bg: #101010;
  --input-bg: #171717;
  --tint: rgba(239, 128, 0, 0.1);
  --tint-2: rgba(239, 128, 0, 0.16);
  --glow: rgba(239, 128, 0, 0.22);
  --band: rgba(255, 255, 255, 0.018);
  --ambient-1: rgba(239, 128, 0, 0.17);
  --ambient-2: rgba(247, 148, 12, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  /* Decorative blobs, the testimonial marquee and the mobile nav drawer all
     stick out sideways, so the page must clip horizontally. `overflow-x: hidden`
     alone makes <body> a scroll container, which silently kills `position: sticky`
     for every descendant (that is what stopped the solutions section pinning).
     `clip` clips without creating one; the `hidden` line above it is the
     fallback for browsers too old for `clip`. */
  overflow-x: hidden;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--t-slow), color var(--t-slow);
  font-size: var(--fs-body);
}

/* Fixed warm wash anchored to the viewport (top corners + bottom) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 100% -6%, var(--ambient-1), transparent 62%),
    radial-gradient(820px 600px at -4% 6%, var(--ambient-2), transparent 58%),
    radial-gradient(1100px 760px at 50% 114%, var(--ambient-1), transparent 60%);
}

/* Document-anchored glows distributed down the page (reveal on scroll) */
body::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 520px at 6% 30%, var(--ambient-2), transparent 55%),
    radial-gradient(760px 580px at 96% 48%, var(--ambient-1), transparent 52%),
    radial-gradient(720px 560px at 2% 70%, var(--ambient-1), transparent 55%),
    radial-gradient(640px 520px at 92% 87%, var(--ambient-2), transparent 55%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

section {
  position: relative;
}

.section-pad {
  padding-block: var(--section-py);
}

.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

/* Tinted icon container used across steps / features / badges */
.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--tint);
  color: var(--orange);
  flex: none;
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

/* ============================================================
   DECORATIVE OVERLAYS
   ============================================================ */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

[data-theme="light"] .noise-overlay {
  opacity: 0.015;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--orange);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--orange);
  border-radius: 2px;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  text-wrap: balance;
}

.section-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-4);
  max-width: var(--measure);
  text-wrap: pretty;
}

.section-head.center .section-sub {
  margin-inline: auto;
}

.gradient-text {
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Content remains readable if JavaScript fails. Opt into motion only after
   the observer has been created and every target registered successfully. */
html.reveal-ready .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Same entrance, but never opacity:0 — the browser ignores fully transparent
   elements as LCP candidates, so fading in the hero headline pushes LCP out to
   whenever the JS observer happens to run. Use this on above-the-fold text. */
.reveal-slide {
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-slide.visible {
  transform: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius-full);
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-nav {
  font-size: var(--fs-nav);
  padding: 0.55rem 1.1rem;
}

.btn-large {
  font-size: var(--fs-body);
  padding: 0.95rem 1.8rem;
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  transition: transform var(--t);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 1rem;
  transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t), padding var(--t);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
  padding-block: 0.7rem;
}

.nav-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  line-height: 1;
}

.logo-letter {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.logo-img {
  height: 1.2rem;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  color: var(--text-2);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: inline-flex;
}

.theme-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  display: flex;
  align-items: center;
  width: 48px;
  height: 26px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  transition: background var(--t);
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  color: var(--text-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow);
  position: relative;
}

.toggle-thumb svg {
  width: 12px;
  height: 12px;
  position: absolute;
  transition: opacity var(--t), transform var(--t);
}

.toggle-icon.sun {
  opacity: 0;
  transform: scale(0.4) rotate(-40deg);
}

.toggle-icon.moon {
  opacity: 1;
  transform: scale(1);
}

input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(22px);
  color: var(--orange);
}

input:checked ~ .toggle-track .toggle-icon.moon {
  opacity: 0;
  transform: scale(0.4) rotate(40deg);
}

input:checked ~ .toggle-track .toggle-icon.sun {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  position: relative;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--t-slow);
  backdrop-filter: blur(2px);
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7rem, 14vh, 9.5rem);
  padding-bottom: var(--space-12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.13;
}

[data-theme="light"] .mesh-blob {
  opacity: 0.08;
}

.blob-1 {
  width: 560px;
  height: 560px;
  background: var(--orange);
  top: -18%;
  left: -10%;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--yellow);
  top: 30%;
  right: -8%;
}

/* Warm glow directly behind the hero headline */
.hero-glow {
  position: absolute;
  left: -2%;
  top: 30%;
  width: 560px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 68, 0, 0.31), transparent);
  filter: blur(74px);
  pointer-events: none;
}

[data-theme="light"] .hero-glow {
  background: radial-gradient(closest-side, rgba(255, 68, 0, 0.2), rgba(247, 148, 12, 0.08), transparent);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, black 30%, transparent 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--tint);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-5);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--tint-2);
}

.hero-headline {
  font-size: var(--fs-display);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  margin-bottom: var(--space-5);
}

.hero-sub {
  font-size: var(--fs-body-lg);
  color: var(--text-2);
  line-height: var(--lh-body);
  max-width: var(--measure-narrow);
  margin-bottom: var(--space-7);
}

.hero-sub em {
  font-style: normal;
  color: var(--text-3);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
}

.social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.proof-avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
  background: var(--bg-3);
}

.avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--text-2);
}

.proof-text strong {
  color: var(--text);
  font-weight: 700;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

/* Hero photo stack: shows small first, then slides in from the
   right while growing to full size */
/* Animated backdrop behind the card stack */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  background: var(--grad-brand);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.16;
  pointer-events: none;
  animation: heroGlowDrift 9s ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  border: 1.5px dashed var(--orange);
  border-radius: 50%;
  opacity: 0.25;
  pointer-events: none;
  animation: heroRingSpin 40s linear infinite;
}

@keyframes heroGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(26px, -20px) scale(1.12); }
  66% { transform: translate(-20px, 16px) scale(0.92); }
}

@keyframes heroRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-photos {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  /* reserve room for the fanned deck (all cards are absolutely positioned) */
  aspect-ratio: 1 / 1;
  animation: heroStackIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
    heroFloat 6s ease-in-out 1.6s infinite;
}

.polaroid {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

/* ── 5-card fanned "hand" ─────────────────────────────────────────────
   All five cards are absolutely positioned and pivot from their bottom
   edge, so their tops fan out and every card stays clearly visible.
   Visual order left → right:
     deck-2 (far left) · back/Aditya · front/Shreeja (centre) · deck-3 · deck-1
   The two originals stay the most prominent (Shreeja centre, Aditya beside).
   Every card shares the same .polaroid base, so hover feel, sizing and the
   click-to-front behaviour are identical. */
.polaroid-front,
.polaroid-back,
.polaroid-deck {
  position: absolute;
  top: 2%;
  width: 54%;
  transform-origin: bottom center;
  /* --r = resting rotation, --sway = how far this card drifts */
  transform: rotate(var(--r, 0deg));
  animation: deckSway 5.5s ease-in-out infinite;
}

/* Each card sways a little differently (out of phase) so the fan looks
   like a gently shuffling hand of cards rather than moving in unison. */
.polaroid-deck-2 { --r: -23deg;   --sway: -1.6deg; left: 6%;    z-index: 1; animation-delay: -0.3s; }  /* far left  */
.polaroid-back   { --r: -11.5deg; --sway:  1.2deg; left: 14.5%; z-index: 3; animation-delay: -1.7s; }  /* near left */
.polaroid-front  { --r: 0deg;     --sway: -1deg;   left: 23%;   z-index: 5; animation-delay: -3.1s; }  /* centre    */
.polaroid-deck-3 { --r: 11.5deg;  --sway:  1.5deg; left: 31.5%; z-index: 3; animation-delay: -2.4s; }  /* near right */
.polaroid-deck-1 { --r: 23deg;    --sway: -1.4deg; left: 40%;   z-index: 1; animation-delay: -0.9s; }  /* far right  */

@keyframes deckSway {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50%      { transform: rotate(calc(var(--r, 0deg) + var(--sway, 1deg))) translateY(-5px); }
}

/* Pause the shuffle while the visitor inspects the deck */
.hero-photos:hover .polaroid { animation-play-state: paused; }

/* Tap any card → bring it upright, enlarged and to the very front
   (the sway animation is dropped so it holds still while featured). */
.polaroid.is-active {
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--orange);
}
.hero-photos .polaroid.is-active {
  z-index: 10;
  transform: rotate(0deg) scale(1.06);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-photos .polaroid { animation: none; }
}

.polaroid-photo {
  position: relative;
}

.polaroid-photo img {
  display: block;
  width: 100%;
  /* The intrinsic width/height attributes on these <img>s are what reserve space
     before the file lands, but they also set a presentational height that would
     otherwise beat aspect-ratio. height:auto hands sizing back to aspect-ratio. */
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

/* Soft vignette so any photo gets a little depth */
.polaroid-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 30%, rgba(60, 25, 5, 0.14) 100%);
  pointer-events: none;
}

.polaroid-pct {
  position: absolute;
  right: -8px;
  bottom: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg-card);
  animation: pctPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}

@keyframes pctPop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Front-card tags pop in one by one after the card lands */
.polaroid-front .polaroid-tags span {
  opacity: 0;
  translate: 0 8px;
  animation: tagIn 0.35s ease forwards;
}

.polaroid-front .polaroid-tags span:nth-child(1) { animation-delay: 1.3s; }
.polaroid-front .polaroid-tags span:nth-child(2) { animation-delay: 1.38s; }
.polaroid-front .polaroid-tags span:nth-child(3) { animation-delay: 1.46s; }
.polaroid-front .polaroid-tags span:nth-child(4) { animation-delay: 1.54s; }
.polaroid-front .polaroid-tags span:nth-child(5) { animation-delay: 1.62s; }

@keyframes tagIn {
  to { opacity: 1; translate: 0 0; }
}

.polaroid-info {
  padding: 12px 4px 4px;
}

.polaroid-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg-card);
  flex: none;
}

.verified svg {
  width: 9px;
  height: 9px;
}

.polaroid-age {
  font-size: 0.74rem;
  color: var(--text-3);
  margin-top: 1px;
}

.polaroid-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.polaroid-tags span {
  background: var(--tint);
  color: var(--text-2);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-full);
}

/* The card is only ~170px wide inside its padding, which is too narrow to hold
   budget · city · move-in on one line — it used to break mid-word ("₹15k-/20k").
   Budget + city sit on the first line, the move-in date on its own line under
   it, and nothing is allowed to wrap inside a chunk. */
.polaroid-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 12px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.polaroid-meta .pm-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

.polaroid-meta strong {
  color: var(--text);
  font-weight: 700;
}

.polaroid-meta span {
  color: var(--text-3);
}

@keyframes heroStackIn {
  0% { opacity: 0; transform: translateX(110px) scale(0.88) rotate(5deg); }
  60% { opacity: 1; }
  80% { transform: translateX(-4px) scale(1.01) rotate(-0.5deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes heroBackSpread {
  0% { transform: rotate(0deg) translateX(10%); }
  70% { transform: rotate(-12.5deg) translateX(-2%); }
  100% { transform: rotate(-10deg) translateX(0); }
}

/* fillBar is still used by the waitlist spots bar */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--pct); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding-block: var(--space-4);
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: var(--band);
}

.marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-inner {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  animation: marqueeL 40s linear infinite;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marqueeL {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.m-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-strip {
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stat-block {
  text-align: center;
  padding-inline: var(--space-4);
  position: relative;
}

.stat-block:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border);
}

.stat-number {
  display: block;
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
  margin-bottom: var(--space-2);
}

.stat-unit {
  font-size: 0.5em;
  font-weight: 700;
  margin-left: 1px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.45;
}

/* ============================================================
   CARD GRID PRIMITIVE (memes / problems)
   ============================================================ */
.problems {
  background: transparent;
}

.problems .section-title .gradient-text {
  display: block;
}

/* Skeleton-to-card entrance (shared by .card-grid and .steps-grid):
   cards start as small pulsing tint boxes gathered in a centered row,
   then slide out, slide wide, and slide down open into the full cards */
.skeleton-grid > * {
  position: relative;
}

.skeleton-grid:not(.cards-in) > * {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.skeleton-grid > * > * {
  transition: opacity 0.3s ease, translate 0.3s ease;
}

.skeleton-grid:not(.cards-in) > * > * {
  opacity: 0;
  translate: 0 -16px;
}

.skeleton-grid.cards-in > * > * {
  translate: 0 0;
  transition-delay: calc(0.1s + var(--d, 0s));
}

.skeleton-grid > *::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 50%;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  border-radius: 16px;
  background: var(--tint);
  pointer-events: none;
  /* Boxes start gathered in a centered row (offsets set from JS).
     Reveal: slide to the card, slide wide, then slide down open —
     each card offset by var(--d) for a left-to-right wave */
  transform: translate(var(--gather-x, 0px), var(--gather-y, 0px));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s),
    left 0.25s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--d, 0s)),
    width 0.25s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--d, 0s)),
    margin-left 0.25s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--d, 0s)),
    border-radius 0.25s ease calc(0.15s + var(--d, 0s)),
    top 0.3s cubic-bezier(0.22, 1, 0.36, 1) calc(0.25s + var(--d, 0s)),
    height 0.3s cubic-bezier(0.22, 1, 0.36, 1) calc(0.25s + var(--d, 0s)),
    opacity 0.25s ease calc(0.45s + var(--d, 0s));
}

.skeleton-grid > *:nth-child(2) { --d: 0.06s; }
.skeleton-grid > *:nth-child(3) { --d: 0.12s; }
.skeleton-grid > *:nth-child(4) { --d: 0.18s; }

.skeleton-grid.skeleton-live:not(.cards-in) > *::after {
  animation: skelPulse 0.6s ease-in-out infinite;
}

.skeleton-grid.cards-in > *::after {
  animation: none;
  transform: translate(0, 0);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-left: 0;
  border-radius: var(--radius-xl);
  opacity: 0;
}

@keyframes skelPulse {
  0%, 100% {
    transform: translate(var(--gather-x, 0px), var(--gather-y, 0px)) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(var(--gather-x, 0px), var(--gather-y, 0px)) scale(1.08);
    opacity: 1;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5);
}

/* Problem cards: each has its own accent (--pc) used for a soft wash at
   the top, the icon, the big number and a group-chat line at the bottom. */
.problem-card {
  --pc: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background:
    radial-gradient(70% 55% at 100% 0%, color-mix(in srgb, var(--pc) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--pc) 7%, transparent), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.pc--mess   { --pc: #ff4400; }
.pc--alarm  { --pc: #d97706; }
.pc--guests { --pc: #ff4400; }
.pc--quiet  { --pc: #fc9b04; }

.problem-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--pc) 35%, var(--border));
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--pc) 45%, transparent);
}

.pc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.problem-card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--pc), color-mix(in srgb, var(--pc) 60%, #fbbf24));
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--pc);
  animation: iconFloat 3.2s ease-in-out infinite;
}

.card-grid .problem-card:nth-child(2) .icon-box { animation-delay: 0.4s; }
.card-grid .problem-card:nth-child(3) .icon-box { animation-delay: 0.8s; }
.card-grid .problem-card:nth-child(4) .icon-box { animation-delay: 1.2s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(-3deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-3px) rotate(3deg); }
}

.problem-card:hover .icon-box {
  animation: iconWiggle 0.5s ease-in-out;
}

@keyframes iconWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(8deg) scale(1.1); }
}

.pc-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pc) 40%, transparent);
  transition: color var(--t);
}

.problem-card:hover .pc-num {
  color: color-mix(in srgb, var(--pc) 14%, transparent);
}

.problem-card h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-2);
}

.problem-card > p {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
}

/* Group-chat line pinned to the card bottom */
.pc-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--space-5);
}

.pc-meta {
  font-size: var(--fs-caption);
  color: var(--text-3);
}

.pc-bubble {
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 16px 16px 16px 4px;
  background: color-mix(in srgb, var(--pc) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--pc) 22%, transparent);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  transform-origin: bottom left;
  transition: transform var(--t);
}

.problem-card:hover .pc-bubble {
  transform: scale(1.04) rotate(-1deg);
}

@media (prefers-reduced-motion: reduce) {
  .problem-card .icon-box { animation: none; }
}

/* ============================================================
   WITH ROOMRR — SOLUTIONS (horizontal snap rail of three cards)
   ============================================================ */
/* Pull the section closer to the problems cards above it */
.problems.section-pad {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.solutions.section-pad {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}


.solutions-head {
  position: relative;
}

.title-doodle {
  display: inline-block;
  width: 22px;
  height: 22px;
  color: var(--text);
  vertical-align: super;
  margin-left: 4px;
}

.title-doodle svg {
  width: 100%;
  height: 100%;
}

.head-arrow {
  position: absolute;
  left: -52px;
  top: calc(100% - 34px);
  width: 58px;
  color: var(--text);
  z-index: 1;
}

.head-arrow svg .arrow-line {
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
}

.head-arrow svg .arrow-head {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.head-arrow.visible svg .arrow-line {
  animation: drawArrow 0.8s cubic-bezier(0.65, 0, 0.35, 1) 0.4s forwards;
}

.head-arrow.visible svg .arrow-head {
  animation: drawArrow 0.3s ease-out 1.15s forwards;
}

@keyframes drawArrow {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 1100px) {
  .head-arrow {
    display: none;
  }
}

/* ── The rail ─────────────────────────────────────────────────────────────
   Native horizontal scrolling with CSS scroll snapping. Nothing here hijacks
   the wheel: a wheel handler is what makes a carousel feel wrong on a trackpad,
   because macOS delivers momentum as a long tail of small deltas while a
   Windows mouse delivers a few large ones. Left to the browser, both feel
   native, and the compositor does the snapping off the main thread.

   How many cards are on screen is a function of the rail's width, not of a
   device breakpoint: each track is at least a comfortable reading width and
   grows to fill whatever is left over, so the rail only scrolls once the cards
   genuinely stop fitting. One card on a phone, two on a tablet, three on a
   laptop — with no media query deciding any of it. */
.solution-carousel {
  --card-min: 21rem;   /* narrowest a card may get before the rail starts scrolling */
  --rail-gap: clamp(0.9rem, 2vw, 1.5rem);
  position: relative;
}

.solution-rail {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* A horizontal flick inside the rail must not become the browser's Back
     gesture — the default on a macOS trackpad once the rail hits its end. */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;

  /* Bleed to the screen edge so a swipe can carry a card off-screen, while the
     matching padding + scroll-padding keep a snapped card aligned to the
     container's text column. */
  margin-inline: calc(var(--container-pad) * -1);
  padding-inline: var(--container-pad);
  scroll-padding-inline: var(--container-pad);
  /* overflow-y is hidden, so the cards' shadow and hover lift need room. */
  padding-block: clamp(0.5rem, 1.4vw, 0.9rem) clamp(1rem, 2.4vw, 1.6rem);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.solution-rail::-webkit-scrollbar { display: none; }

/* The track holds the cards and is the thing that moves while the section is
   pinned. In the unpinned fallback it never moves and the rail scrolls it. */
.solution-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(100%, var(--card-min)), 1fr);
  gap: var(--rail-gap);
  align-items: stretch;          /* every card is as tall as the tallest one */
}

.solution-rail:focus-visible {
  outline-offset: -2px;
  border-radius: var(--radius-xl);
}

/* ── A card ───────────────────────────────────────────────────────────── */
.solution-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;      /* one card per flick, never two */
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.25rem, 2.6vw, 1.85rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);

  /* Entrance state — .is-in releases it once the section comes into view.
     Nothing transforms the card once it has settled: a transform moves the
     element's snap area, and a snap area that moves mid-swipe is exactly what
     makes a carousel jitter. Everything that reacts to scrolling below is
     opacity and shadow, or a transform on a child. */
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.solution-carousel.entrance-ready:not(.is-in) .solution-card {
  opacity: 0;
  transform: translateY(22px);
}

/* Stagger only the entrance: the delay is listed per transitioned property so
   a later hover or dim still reacts instantly. */
.solution-carousel.is-in .solution-card:nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.solution-carousel.is-in .solution-card:nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }

/* While the rail scrolls, a card fades in proportion to how much of it is
   actually in the scrollport. --seen is written by the IntersectionObserver in
   js/index.js and defaults to 1, so a card is never dimmed if the JS never
   runs. A half-peeking card reads as "there is more this way" without any
   scroll handler doing arithmetic on every frame. */
.solution-carousel.is-in.is-scrollable .solution-card {
  opacity: calc(0.4 + 0.6 * var(--seen, 1));
}

.solution-carousel.is-scrollable .solution-card.is-current {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}

@media (hover: hover) and (pointer: fine) {
  .solution-carousel.is-in .solution-card:hover {
    transform: translateY(-5px);   /* Y only — an X shift would move the snap area */
    box-shadow: var(--shadow-lg);
    border-color: var(--border-2);
  }
}

.card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--orange);
  margin-bottom: var(--space-3);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-icon svg {
  width: 21px;
  height: 21px;
}

.solution-carousel.is-scrollable .solution-card.is-current .card-icon,
.solution-card:hover .card-icon {
  transform: scale(1.08);
}

.card-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body);
  color: var(--text-2);
}

/* The visual soaks up the height difference between cards, which is what keeps
   all three feature lists starting on the same line. The two mock-ups are sized
   so their heights land close together — otherwise the tallest one sets the
   height of all three cards and the other two float in empty space. */
.card-visual {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding-block: clamp(0.75rem, 1.8vw, 1.15rem);
}

.card-visual .mini-polaroid { max-width: min(100%, 13rem); }
.card-visual .listing-card { max-width: min(100%, 20rem); }

/* Five lifestyle tags wrap to three rows at card width, which on its own made
   the polaroid 200px taller than the listing mock-up — and that difference
   became dead space in the other two cards, because all three are one height. */
.card-visual .mini-polaroid { padding: 7px; }
.card-visual .polaroid-info { padding: 8px 3px 2px; }
.card-visual .polaroid-name { font-size: 0.86rem; }
.card-visual .polaroid-age { font-size: 0.68rem; }
.card-visual .polaroid-tags { gap: 4px; margin-top: 7px; }
.card-visual .polaroid-tags span { font-size: 0.55rem; padding: 0.16rem 0.38rem; }
.card-visual .polaroid-meta { margin-top: 8px; font-size: 0.68rem; }
.card-visual .polaroid-pct { width: 38px; height: 38px; font-size: 0.62rem; bottom: -11px; }
/* A 4:3 crop rather than the hero's square, for the same reason. */
.card-visual .polaroid-photo img { aspect-ratio: 4 / 3; }

/* …and the listing mock-up grows a little to meet it in the middle. */
.card-visual .listing-top img { width: 88px; height: 88px; }

/* The listing mock-up was drawn at 360px; at card width its row has to give. */
.card-visual .listing-card { padding: var(--space-3); }
.card-visual .listing-top { gap: var(--space-3); margin-bottom: var(--space-3); }
.card-visual .listing-top img { width: 74px; height: 74px; }
.card-visual .listing-title { font-size: 0.9rem; white-space: nowrap; }
.card-visual .listing-rent { font-size: 1rem; }
.card-visual .listing-ghost-btn,
.card-visual .listing-primary-btn {
  padding: 0.5rem 0.55rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.card-visual .listing-icon-btn { width: 34px; height: 34px; }

/* A card is a narrow column, so the list runs tighter than it does full-width. */
.solution-card .feature-list { gap: 0.4rem; }
.solution-card .feature-list li { font-size: var(--fs-body-sm); }
.solution-card .feature-list li.sub { margin-left: var(--space-6); font-size: var(--fs-label); }

.card-foot-title {
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

/* ── Controls ─────────────────────────────────────────────────────────────
   Shown only while the rail actually overflows, which is the same question the
   layout asks itself — so they appear on a phone and a tablet and disappear on
   a desktop that already shows all three. */
.rail-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1.4vw, 0.85rem);
  margin-top: clamp(0.9rem, 2.2vw, 1.35rem);
}

.solution-carousel.is-scrollable .rail-controls {
  display: flex;
}

.rail-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-2);
  transition: background var(--t), color var(--t), border-color var(--t), opacity var(--t);
}

.rail-arrow svg {
  width: 18px;
  height: 18px;
}

.rail-arrow:hover:not(:disabled) {
  background: var(--tint);
  border-color: var(--border-2);
  color: var(--orange);
}

.rail-arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

/* Touch devices swipe; the arrows would only be two more things to mis-tap. */
@media (hover: none) {
  .rail-arrow { display: none; }
}

.rail-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rail-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
}

.rail-dot span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--text-3);
  opacity: 0.4;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity var(--t), background var(--t);
}

.rail-dot:hover span { opacity: 0.75; }

.rail-dot[aria-current="true"] span {
  width: 22px;
  opacity: 1;
  background: var(--grad-brand);
}

/* Keep the static presentation readable when scripting is disabled. */
@media (scripting: none) {
  .solution-card { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* No entrance, no dimming, no smooth scrolling — the rail still snaps,
     because snapping is a position, not an animation. */
  .solution-rail { scroll-behavior: auto; }
  .solution-carousel .solution-card,
  .solution-carousel.is-in.is-scrollable .solution-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-icon,
  .rail-dot span { transition: none; }
}

/* Feature list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
}

.feature-list li.sub {
  margin-left: var(--space-8);
  font-weight: var(--fw-medium);
  font-size: var(--fs-label);
  color: var(--text-2);
}

.fi {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
}

.fi.spark {
  color: var(--orange);
}

.fi.spark svg {
  width: 18px;
  height: 18px;
}

.fi.check {
  background: var(--grad-brand);
  border-radius: 50%;
  color: #fff;
}

.fi.check svg {
  width: 10px;
  height: 10px;
}

.feature-list li.sub .fi.check {
  width: 16px;
  height: 16px;
}

.feature-list li.sub .fi.check svg {
  width: 8px;
  height: 8px;
}

/* Mini polaroid (panel 1) reuses the hero polaroid parts */
.mini-polaroid {
  position: relative;
  width: 100%;
  max-width: 270px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.mini-polaroid .polaroid-pct {
  animation-delay: 0.5s;
}

/* Listing card (panels 2 & 3) */
.listing-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
}

.listing-top {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.listing-top img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex: none;
}

.listing-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.listing-badge {
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--orange);
  background: var(--tint);
  padding: 0.16rem 0.4rem;
  border-radius: 6px;
  flex: none;
}

.listing-label {
  font-size: 0.66rem;
  color: var(--text-3);
}

.listing-rent {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.listing-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-meta div {
  display: flex;
  flex-direction: column;
}

.listing-meta span {
  font-size: 0.62rem;
  color: var(--text-3);
}

.listing-meta strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.listing-actions {
  display: flex;
  gap: var(--space-2);
}

.listing-icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}

.listing-icon-btn svg {
  width: 16px;
  height: 16px;
}

.listing-icon-btn:hover {
  background: var(--tint);
  color: var(--orange);
}

.listing-ghost-btn {
  flex: 1;
  padding: 0.6rem 0.9rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  transition: background var(--t), border-color var(--t);
}

.listing-ghost-btn:hover {
  border-color: var(--border-2);
}

.listing-primary-btn {
  flex: 1.2;
  padding: 0.6rem 0.9rem;
  background: var(--grad-brand);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  transition: transform var(--t), box-shadow var(--t);
}

.listing-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px var(--glow);
}

/* Little sparkle doodle on the visual cards */
.doodle {
  position: absolute;
  top: -18px;
  right: -6px;
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.doodle svg {
  width: 100%;
  height: 100%;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: var(--band);
  border-top: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.step-num {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.step-card h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
}

/* ============================================================
   TESTIMONIALS — MARQUEE
   ============================================================ */
.testimonials {
  background: transparent;
  border-top: 1px solid var(--border);
  /* The marquee bleeds past the container to the window edges */
  overflow-x: hidden;
  overflow-x: clip;
}

.testi-marquee {
  --testi-gap: var(--space-5);
  margin-inline: calc(50% - 50vw);
  padding-block: var(--space-2) var(--space-4);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.testi-marquee-inner {
  display: flex;
  gap: var(--testi-gap);
  width: max-content;
  /* The trailing gap keeps the -50% seam the same width as every other gap */
  padding-right: var(--testi-gap);
  animation: testiMarquee 70s linear infinite;
  animation-play-state: paused;
}

.testi-marquee.is-running .testi-marquee-inner {
  animation-play-state: running;
}

.testi-marquee:hover .testi-marquee-inner,
.testi-marquee.is-paused .testi-marquee-inner {
  animation-play-state: paused;
}

@keyframes testiMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testi-marquee img {
  -webkit-user-drag: none;
  user-select: none;
}

.testi-card {
  flex: 0 0 360px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.testi-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testi-stars {
  display: flex;
  gap: 2px;
  color: var(--yellow);
  margin-bottom: var(--space-4);
}

.testi-stars svg {
  width: 16px;
  height: 16px;
}

.testi-quote {
  font-size: var(--fs-body);
  color: var(--text);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-5);
}

.testi-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}

.testi-avatar {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg-3);
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.testi-info {
  flex: 1;
  min-width: 0;
}

.testi-info strong {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
}

.testi-info span {
  display: block;
  font-size: var(--fs-label);
  color: var(--text-3);
  margin-top: 2px;
}

.testi-badge {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  color: var(--green);
}

.testi-badge svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 720px) {
  .testi-marquee {
    --testi-gap: var(--space-4);
  }

  .testi-card {
    flex-basis: min(300px, 82vw);
    padding: var(--space-5);
  }
}

/* Reduced motion: no drift — the row becomes a plain swipeable strip */
@media (prefers-reduced-motion: reduce) {
  .testi-marquee {
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
    padding-inline: var(--container-pad);
  }

  .testi-marquee-inner {
    animation: none;
  }

  .testi-marquee-inner > [aria-hidden="true"] {
    display: none;
  }
}

/* ============================================================
   QUIZ CTA
   ============================================================ */
.quiz-cta {
  background: var(--band);
  border-top: 1px solid var(--border);
}

.quiz-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-box::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 80%;
  background: var(--grad-brand);
  filter: blur(120px);
  opacity: 0.07;
  pointer-events: none;
}

/* Rectangular member gallery sitting behind the TOP HALF of the CTA card.
   Clipped by .quiz-box (overflow:hidden); the content above sits at a
   higher z-index so the text stays fully legible. The strip drifts
   endlessly right→left: two identical image sets are laid side by side and
   the track slides exactly one set-width (-50%), so the loop is seamless
   and new photos keep appearing from the right forever. */
.quiz-gallery {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;                 /* covers the top half of the card */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* fade the strip out toward the centre so the copy underneath stays clean */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, transparent 100%);
}

.quiz-gallery-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  padding: clamp(14px, 3vw, 26px) 0;
  animation: qgScroll 55s linear infinite;
  will-change: transform;
}

.quiz-gallery .qg {
  flex: none;
  width: clamp(150px, 20vw, 240px);
  height: 100%;
  margin-right: 16px;          /* uniform gap → -50% is exactly one set */
  object-fit: cover;
  border-radius: 16px;
  opacity: 0.14;
  filter: grayscale(22%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

@keyframes qgScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-gallery-track { animation: none; }
}

@media (max-width: 640px) {
  .quiz-gallery { height: 46%; }
  .quiz-gallery-track { animation-duration: 42s; }
  .quiz-gallery .qg { margin-right: 12px; }
}

.quiz-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-inline: auto;
}

.quiz-content .icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
}

.quiz-content .icon-box svg {
  width: 28px;
  height: 28px;
}

/* Vibe loop: icon tiles slide in from the left one by one into a
   staircase, drop away downward, then the roomrr logo appears */
.vibe-anim {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto var(--space-5);
}

.vibe-tile {
  position: absolute;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--orange);
  border-radius: 16px;
  opacity: 0;
  animation: vibeTile 3.2s ease-in-out infinite;
}

.vibe-tile svg {
  width: 56%;
  height: 56%;
}

.vt-1 { top: 8px; left: 112px; width: 62px; height: 62px; }
.vt-2 { top: 62px; left: 32px; width: 68px; height: 68px; animation-delay: 0.14s; }
.vt-3 { top: 120px; left: 86px; width: 58px; height: 58px; animation-delay: 0.28s; }
.vt-4 { top: 172px; left: 134px; width: 42px; height: 42px; border-radius: 12px; animation-delay: 0.42s; }

@keyframes vibeTile {
  0% { opacity: 0; transform: translateX(-70px); }
  7% { opacity: 1; transform: translateX(0); }
  52% { opacity: 1; transform: translate(0, 0); }
  60%, 100% { opacity: 0; transform: translateY(60px); }
}

.vibe-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  font-size: 4.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0;
  animation: vibeLogo 3.2s ease-in-out infinite;
}

.vibe-logo img {
  height: 3rem;
  width: auto;
}

@keyframes vibeLogo {
  0%, 76% { opacity: 0; transform: scale(0.7) translateY(14px); }
  83% { opacity: 1; transform: scale(1) translateY(0); }
  96% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .vibe-tile {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .vibe-logo {
    animation: none;
    opacity: 0;
  }
}

.quiz-content h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-heading);
  line-height: var(--lh-heading);
  margin-bottom: var(--space-4);
}

.quiz-content p {
  font-size: var(--fs-body);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-7);
}

.quiz-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
  position: relative;
  z-index: 1;
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
}

.quiz-badge svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-body {
  font-size: var(--fs-body-lg);
  color: var(--text-2);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-7);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), box-shadow var(--t);
}

.about-feature:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

.about-feature .icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
}

.about-feature .icon-box svg {
  width: 20px;
  height: 20px;
}

.about-feature strong {
  display: block;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  margin-bottom: 3px;
}

.about-feature p {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
}

/* Phone mockup */
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.phone-frame::before {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  background: var(--bg-3);
  border-radius: 3px;
  margin: 0 auto var(--space-4);
}

.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  padding: var(--space-4);
  border: 1px solid var(--border);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.app-brand {
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-header svg {
  width: 18px;
  height: 18px;
  color: var(--text-2);
}

.app-match {
  background: var(--tint);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  margin-bottom: var(--space-3);
}

.app-match .icon-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  background: var(--grad-brand);
  color: #fff;
}

.app-match .icon-box svg {
  width: 18px;
  height: 18px;
}

.app-match p {
  font-weight: 700;
  font-size: 0.86rem;
}

.app-match small {
  font-size: 0.72rem;
  color: var(--text-2);
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.app-tags span {
  background: var(--bg-3);
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.app-actions {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.app-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform var(--t);
}

.app-btn svg {
  width: 14px;
  height: 14px;
}

.app-btn.pass {
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.app-btn.match {
  background: var(--grad-brand);
  color: #fff;
}

.app-nav {
  display: flex;
  justify-content: space-around;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-3);
}

.app-nav svg {
  width: 19px;
  height: 19px;
}

.app-nav svg:first-child {
  color: var(--orange);
}

.stat-pill {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}

.stat-pill svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

.pill-num {
  font-weight: 800;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill-1 {
  top: 14px;
  right: -16px;
}

.pill-2 {
  bottom: 32px;
  left: -24px;
}

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist {
  background: var(--band);
  border-top: 1px solid var(--border);
}

.waitlist-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.waitlist-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-block: var(--space-6);
}

.perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  color: var(--text-2);
}

.perk svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex: none;
}

.spots-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.spots-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border);
}

.spots-bar-fill {
  height: 100%;
  width: var(--fill);
  background: var(--grad-brand);
  border-radius: var(--radius-full);
  animation: fillBar 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.spots-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  color: var(--text-3);
}

.waitlist-form {
  background: var(--form-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-5);
  position: relative;
}

.form-group.floating input,
.form-group.floating textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem 0.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
  min-height: 58px;
}

.form-group.floating label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: var(--text-3);
  font-weight: 500;
  pointer-events: none;
  transition: all var(--t);
}

.form-group.floating textarea ~ label {
  top: 1.25rem;
  transform: none;
}

.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
  top: 0.5rem;
  transform: translateY(0);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--tint);
}

.form-group.floating input.error,
.form-group.floating textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error {
  display: block;
  font-size: 0.74rem;
  color: var(--red);
  margin-top: var(--space-2);
  font-weight: 600;
  min-height: 1em;
}

.char-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.66rem;
  color: var(--text-3);
  font-weight: 500;
  pointer-events: none;
}

.optional {
  font-weight: 400;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.form-success {
  text-align: center;
  padding: var(--space-6);
  border: 1px solid rgba(22, 163, 74, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(22, 163, 74, 0.06);
  margin-top: var(--space-5);
}

.form-success .icon-box {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  margin: 0 auto var(--space-3);
}

.form-success h3 {
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.form-success p {
  font-size: 0.88rem;
  color: var(--text-2);
}

.form-error-msg {
  text-align: center;
  padding: var(--space-3);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.06);
  font-size: 0.85rem;
  color: var(--red);
  margin-top: var(--space-4);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding-block: var(--space-10) var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 6vw, 5rem);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.footer-logo-letter {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.footer-logo-img {
  height: 1.4rem;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
  max-width: 300px;
  margin-bottom: var(--space-5);
}

.footer-socials {
  display: flex;
  gap: var(--space-2);
}

.social-link {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: color var(--t), border-color var(--t), transform var(--t);
}

.social-link:hover {
  color: var(--orange);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.footer-col h2,
.footer-col h4 {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--text-3);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  transition: color var(--t);
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-label);
  color: var(--text-3);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px var(--glow);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t), visibility var(--t), transform var(--t-slow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-8);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-glow {
    left: 50%;
    transform: translateX(-50%);
    top: 12%;
    width: 460px;
    height: 360px;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-ctas,
  .social-proof {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    /* The fanned cards hang about 76px below .hero-photos' square box, past
       the grid gap, and would otherwise sit on the badge under them. */
    margin-bottom: 3.25rem;
  }

  .about-grid,
  .waitlist-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .about-visual {
    order: -1;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    visibility: hidden;
    top: 0;
    right: -100%;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 82vw);
    background: var(--bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem var(--space-5) var(--space-6);
    gap: var(--space-1);
    transition: right var(--t-slow);
    border-left: 1px solid var(--border);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    right: 0;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
  }

  .hamburger {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6) var(--space-4);
  }

  .stat-block:nth-child(2)::after {
    display: none;
  }

  .stat-block::after {
    height: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .hero-visual {
    display: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
  }

  /* The avatars and the line don't fit side by side on a phone. */
  .social-proof {
    flex-direction: column;
    gap: var(--space-2);
  }

  .proof-avatars {
    flex: none;
  }

  .proof-text {
    text-wrap: balance;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stat-block::after {
    display: none;
  }

  .pill-1,
  .pill-2 {
    display: none;
  }

  .quiz-badges {
    gap: var(--space-2);
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-slide {
    opacity: 1;
    transform: none;
  }
}

/* ── Pinned scroll-through ────────────────────────────────────────────────
   The section sticks to the viewport and vertical scrolling advances the
   cards — the one gesture every device has, which is why this is the primary
   behaviour on phones, tablets and desktops alike rather than a desktop
   flourish. Where the cards cannot all be on screen at once the track slides
   horizontally, one card per step; where they can (a wide desktop) nothing
   slides and the active card simply steps along, which is what the section
   did before it was a rail.

   .can-pin is added by js/index.js, and only after it has measured that the
   pinned layout fits this window. Too short — a phone in landscape, a squat
   browser window, or a reader who prefers reduced motion — and the section
   stays in normal flow as the swipeable rail, which needs no height at all.
   That measurement is the gate: no viewport-size guess is involved. */
.solutions-scroll { position: relative; }

.solutions.can-pin {
  --dwell: 68vh;    /* scroll distance per card transition */
  --dwell: 68svh;   /* svh so a mobile URL bar appearing does not resize the run */
  --cards: 3;
}

.solutions.can-pin .solutions-scroll {
  height: calc(100vh + (var(--cards) - 1) * var(--dwell));
  height: calc(100svh + (var(--cards) - 1) * var(--dwell));
}

.solutions.can-pin .solutions-pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  /* The navbar is fixed, so the pinned content starts below it. */
  padding-block: clamp(64px, 2vh + 50px, 92px) clamp(8px, 1.8vh, 20px);
  box-sizing: border-box;
}

.solutions.can-pin .solutions-pin > .container { width: 100%; }

/* While pinned the rail is a window, not a scroller: the track is positioned
   from scroll progress, so native scrolling and snapping would only fight it.
   It also stops bleeding to the screen edge — one card fills the container and
   the next is clipped at its edge, instead of a slice of the next card hanging
   in the margin. */
.solutions.can-pin .solution-rail {
  overflow: hidden;
  scroll-snap-type: none;
  margin-inline: 0;
  padding-inline: 0;
  scroll-padding-inline: 0;
}

/* No transition: the offset is a continuous function of scroll position,
   written every frame by js/index.js. A transition on top of that would only
   add lag between the scroll and the card. */
.solutions.can-pin .solution-track {
  transform: translate3d(var(--shift, 0px), 0, 0);
  will-change: transform;
}

/* The card being read is lit and the ones leaving step back — driven by the
   same continuous position as the offset (--focus is 1 for the card in place,
   0 for one a full card away), so a card brightens as it slides in rather than
   flicking at a threshold. */
.solutions.can-pin .solution-carousel.is-in .solution-card {
  opacity: calc(0.42 + 0.58 * var(--focus, 1));
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.solutions.can-pin .solution-carousel.is-in .solution-card.is-current {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-2);
}

/* Pinned, the page scroll *is* the control: the dots stay as a progress
   readout (and a shortcut), but the arrows would only invite clicking at
   something that scrolling already does. They come back in the fallback, where
   the rail genuinely needs them on a device with no touch. */
.solution-carousel.is-pinned .rail-controls { display: flex; }
.solution-carousel.is-pinned .rail-arrow { display: none; }

/* ── The pinned card ──────────────────────────────────────────────────────
   One card per screen while pinned. That is not a style choice: three cards
   side by side are a tall column of card + photo + list, and on a 13" laptop
   or a phone that column does not fit in one viewport — which is exactly why
   the pin used to be restricted to tall desktops. A single card can use the
   full width, put its mock-up beside its list, and stay short enough to pin
   on nearly anything. The multi-card rail is still what the unpinned fallback
   shows. */
.solutions.can-pin .solution-track { grid-auto-columns: 100%; }

.solutions.can-pin .solution-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "visual" "foot";
  align-content: center;
}

.solutions.can-pin .card-top { grid-area: top; }
.solutions.can-pin .card-visual { grid-area: visual; }
.solutions.can-pin .card-foot { grid-area: foot; }

/* Narrow: heading across the top, then the mock-up beside the feature list.
   Stacking all three is what makes the card twice a phone's height, and putting
   the mock-up beside the *heading* does not work either — the listing mock-up is
   a photo next to a price, so it cannot shrink below ~200px and spills over the
   words. Beside the list it has the room, and the listing tile turns vertical to
   fit the column. */
@media (max-width: 699px) {
  .solutions.can-pin .solution-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "top    top"
      "visual foot";
    align-items: center;
    column-gap: clamp(0.6rem, 2.5vw, 1rem);
  }
  .solutions.can-pin .card-top { padding-bottom: clamp(0.4rem, 1.4vh, 0.9rem); }
  .solutions.can-pin .card-visual { padding-block: 0; }
  /* 92%, not 100%: the mock-ups are rotated 3deg, and the corners of a tall
     card swing about 12px wider than its layout box. */
  .solutions.can-pin .card-visual .mini-polaroid { max-width: min(92%, clamp(6rem, 17vh, 10rem)); }
  .solutions.can-pin .card-visual .listing-card { max-width: min(92%, clamp(6.5rem, 18vh, 11rem)); }
  .solutions.can-pin .card-visual .mini-polaroid,
  .solutions.can-pin .card-visual .listing-card { transform: rotate(-2deg); }
  /* Both mock-ups have to be able to shrink to the column: a button row that
     cannot wrap and a nowrap price line are what set their minimum width. */
  .solutions.can-pin .card-visual .listing-actions { flex-wrap: wrap; }
  .solutions.can-pin .card-visual .polaroid-meta { white-space: normal; }
  .solutions.can-pin .card-visual .pm-line { flex-wrap: wrap; }
  .solutions.can-pin .card-visual .pm-line > * { white-space: nowrap; }
  .solutions.can-pin .card-visual .listing-top {
    flex-direction: column;
    gap: clamp(3px, 0.9vh, 8px);
    margin-bottom: clamp(4px, 1.1vh, 10px);
  }
  .solutions.can-pin .card-visual .listing-top img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .solutions.can-pin .card-visual .listing-title { white-space: normal; }
  /* The action row is what actually sets the tile's minimum width — two nowrap
     buttons and an icon. Shrink those and the tile fits the column. */
  .solutions.can-pin .card-visual .listing-actions { gap: 3px; }
  .solutions.can-pin .card-visual .listing-icon-btn { width: 24px; height: 24px; }
  .solutions.can-pin .card-visual .listing-icon-btn svg { width: 12px; height: 12px; }
  .solutions.can-pin .card-visual .listing-ghost-btn,
  .solutions.can-pin .card-visual .listing-primary-btn {
    padding: clamp(0.26rem, 0.7vh, 0.4rem) 0.3rem;
    font-size: clamp(0.52rem, 1vh, 0.66rem);
  }
  .solutions.can-pin .card-visual .listing-label,
  .solutions.can-pin .card-visual .listing-meta span { font-size: clamp(0.5rem, 0.9vh, 0.62rem); }
  .solutions.can-pin .card-visual .listing-meta strong { font-size: clamp(0.62rem, 1.1vh, 0.8rem); }
  .solutions.can-pin .card-visual .listing-meta { gap: 6px; }
}

/* Wide enough for the mock-up to sit beside the words — the layout the detail
   panel used to have, which is what keeps the card short. */
@media (min-width: 700px) {
  .solutions.can-pin .solution-card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    grid-template-rows: auto auto;
    grid-template-areas:
      "visual top"
      "visual foot";
    align-items: center;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1rem, 2.6vh, 2.2rem) clamp(1.3rem, 3vw, 2.6rem);
  }
  .solutions.can-pin .card-top { align-self: end; padding-bottom: clamp(0.5rem, 1.6vh, 1.1rem); }
  .solutions.can-pin .card-foot { align-self: start; }
  .solutions.can-pin .card-visual { padding-block: 0; }
  .solutions.can-pin .card-desc { max-width: 42ch; }
  /* The mock-up grows to hold its half of a full-width card — at rail size it
     left a lot of air around itself. */
  .solutions.can-pin .card-visual .mini-polaroid { max-width: min(100%, clamp(9rem, 30vh, 19rem)); }
  .solutions.can-pin .card-visual .listing-card { max-width: min(100%, clamp(13rem, 44vh, 26rem)); }
  /* Hug the middle: on a wide card, columns that each centre their own content
     leave a lake of empty card on both sides. */
  .solutions.can-pin .card-visual { justify-self: end; }
  .solutions.can-pin .card-top,
  .solutions.can-pin .card-foot { max-width: 32rem; }
}

/* ── Fitting it into whatever height there is ─────────────────────────────
   Sized from the viewport height so the whole card fits without clipping,
   which is what lets the pin run on a laptop and a phone rather than only on
   a tall desktop. */
.can-pin .solutions-head { margin-bottom: clamp(0.55rem, 2vh, var(--space-8)); }
.can-pin .solutions-head .eyebrow { margin-bottom: clamp(0.2rem, 0.9vh, 0.75rem); }
.can-pin .solutions-head .section-title { font-size: clamp(1.375rem, 1.5vh + 0.9vw, 2.375rem); }
.can-pin .solutions-head .section-sub {
  margin-top: clamp(0.15rem, 0.7vh, 0.5rem);
  font-size: clamp(0.875rem, 1.4vh, 1.0625rem);
}

.can-pin .solution-rail { padding-block: clamp(0.35rem, 1vh, 0.9rem) clamp(0.5rem, 1.4vh, 1.6rem); }
.can-pin .solution-card { padding: clamp(0.9rem, 2.2vh, 1.85rem); }
.can-pin .card-icon {
  width: clamp(34px, 5vh, 46px);
  height: clamp(34px, 5vh, 46px);
  margin-bottom: clamp(0.3rem, 1vh, var(--space-3));
}
.can-pin .card-icon svg { width: clamp(16px, 2.5vh, 22px); height: clamp(16px, 2.5vh, 22px); }
.can-pin .card-title { font-size: clamp(1rem, 2vh, 1.5rem); margin-bottom: clamp(0.15rem, 0.7vh, 0.5rem); }
.can-pin .card-desc { font-size: clamp(0.8125rem, 1.5vh, 1rem); line-height: 1.55; }
.can-pin .card-visual { padding-block: clamp(0.5rem, 1.5vh, 1.15rem); }
.can-pin .card-visual .mini-polaroid { max-width: clamp(7.5rem, 22vh, 15rem); }
.can-pin .card-visual .listing-card { max-width: clamp(12rem, 34vh, 22rem); }
.can-pin .card-visual .listing-top img { width: clamp(52px, 10vh, 96px); height: clamp(52px, 10vh, 96px); }
.can-pin .card-visual .listing-title { font-size: clamp(0.78rem, 1.4vh, 0.98rem); }
.can-pin .card-visual .listing-rent { font-size: clamp(0.86rem, 1.6vh, 1.05rem); }
.can-pin .card-visual .listing-ghost-btn,
.can-pin .card-visual .listing-primary-btn { padding: clamp(0.34rem, 0.9vh, 0.6rem) 0.6rem; font-size: clamp(0.7rem, 1.3vh, 0.85rem); }
.can-pin .card-visual .polaroid-name { font-size: clamp(0.72rem, 1.35vh, 0.95rem); }
.can-pin .card-visual .polaroid-age { font-size: clamp(0.58rem, 1.05vh, 0.74rem); }
.can-pin .card-visual .polaroid-tags { gap: clamp(2px, 0.6vh, 6px); margin-top: clamp(3px, 1vh, 10px); }
.can-pin .card-visual .polaroid-tags span { font-size: clamp(0.46rem, 0.85vh, 0.62rem); padding: clamp(0.06rem, 0.25vh, 0.22rem) clamp(0.24rem, 0.6vh, 0.55rem); }
.can-pin .card-visual .polaroid-meta { margin-top: clamp(3px, 1.1vh, 12px); font-size: clamp(0.58rem, 1.05vh, 0.74rem); }
.can-pin .card-foot-title {
  font-size: var(--fs-caption);
  margin-bottom: clamp(0.25rem, 1vh, var(--space-3));
}
.can-pin .solution-card .feature-list { gap: clamp(0.18rem, 0.85vh, 0.55rem); }
.can-pin .solution-card .feature-list li { font-size: clamp(0.8125rem, 1.4vh, 0.9375rem); }
.can-pin .solution-card .feature-list li.sub {
  font-size: clamp(0.75rem, 1.3vh, 0.875rem);
  margin-left: clamp(0.9rem, 3vh, var(--space-8));
}
.can-pin .rail-controls { margin-top: clamp(0.35rem, 1.2vh, 1.35rem); }
.can-pin .rail-dot { height: clamp(24px, 4vh, 34px); }

/* Very short windows — a small phone, a half-height browser. Every one of these
   is chrome around the card rather than the card itself, and together they are
   the difference between this pinning and falling back to the rail. */
@media (max-height: 700px) {
  .can-pin .solutions-pin { padding-block: 62px 6px; }
  .can-pin .solutions-head { margin-bottom: 0.35rem; }
  .can-pin .solution-rail { padding-block: 4px 6px; }
  .can-pin .solution-card { padding: 0.7rem 0.85rem; }
  .can-pin .rail-controls { margin-top: 0.25rem; }
  .can-pin .rail-dot { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  /* The pin is never applied under reduced motion (the JS checks too), but if
     the class is ever on the element, nothing about it should animate. */
  .solutions.can-pin .solution-track { transition: none; }
}

/* ============================================================
   FIND — "Find your people and your place" bento
   Lead roommate card runs tall on the left, Hyderabad runs wide underneath.
   Breakpoints key on the section container, not the window.
   ============================================================ */
.find-homes .container {
  container-type: inline-size;
  container-name: fh;
}

.fh-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-areas:
    "lead flats student"
    "lead city city";
  gap: var(--space-5);
}

.fh-bento > :nth-child(1) { grid-area: lead; }
.fh-bento > :nth-child(2) { grid-area: flats; }
.fh-bento > :nth-child(3) { grid-area: student; }
.fh-bento > :nth-child(4) { grid-area: city; }

.fh-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform var(--t-slow),
    border-color var(--t), box-shadow var(--t);
}

/* Soft brand glow that follows the corner; brightens on hover */
.fh-card::before {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 68%);
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.fh-card.reveal.visible:hover {
  transform: translateY(-4px);
}

.fh-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}

.fh-card:hover::before {
  opacity: 1;
}

.fh-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.fh-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fh-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--orange);
  margin-right: var(--space-1);
}

.fh-icon svg {
  width: 18px;
  height: 18px;
}

.fh-card h3 {
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-snug);
  line-height: var(--lh-snug);
}

.fh-card p {
  font-size: var(--fs-body-sm);
  color: var(--text-2);
  line-height: var(--lh-body);
}

/* CTA row pinned to the card bottom */
.fh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: auto;
}

.fh-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  align-self: flex-start;
  margin-top: auto;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--tint);
  color: var(--mg-accent-text);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
  transition: background var(--t), color var(--t);
}

.fh-ctas .fh-cta {
  margin-top: 0;
}

.fh-cta svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform var(--t);
}

.fh-cta:hover {
  background: var(--grad-brand);
  color: #fff;
}

.fh-cta:hover svg {
  transform: translateX(3px);
}

.fh-cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.fh-cta--ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}

.fh-cta--ghost:hover {
  background: transparent;
  border-color: var(--orange);
  color: var(--text);
}

/* Lead card — match visual */
.fh-card--lead {
  background:
    radial-gradient(120% 60% at 50% 0%, var(--tint-2), transparent 70%),
    var(--bg-card);
}

.fh-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-3);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: var(--band);
}

/* Desktop: the visual soaks up the lead card's extra height */
.fh-card--lead .fh-match {
  flex: 1 1 auto;
  justify-content: center;
}

.fh-match-pair {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.fh-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-2);
}

.fh-avatar--b {
  background: var(--tint-2);
  border-color: transparent;
  color: var(--orange);
}

.fh-ring {
  --p: 0;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--bg-card) 78%, transparent 80%),
    conic-gradient(var(--orange) calc(var(--p) * 1%), var(--border) 0);
  transition: --p 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.fh-card--lead.visible .fh-ring {
  --p: 96;
}

.fh-ring-num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

.fh-traits {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
}

.fh-traits li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
}

.fh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* City card — wide: copy on the left; area map over the CTAs on the right */
.fh-card--city {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-6);
}

.fh-city-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.fh-card--city .fh-ctas {
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
}

/* Area map (decorative) */
.fh-map {
  position: relative;
  flex: 1 1 auto;
  min-height: 170px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 16px 16px,
    var(--band);
  overflow: hidden;
}

.fh-map-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fh-map-lines path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.fh-road {
  stroke: var(--border-2);
  stroke-width: 6;
  stroke-linecap: round;
}

.fh-route {
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  opacity: 0;
  transition: opacity 0.5s ease 0.9s;
}

.fh-card--city.visible .fh-route {
  opacity: 0.9;
  animation: fhRoute 1.2s linear infinite;
}

@keyframes fhRoute {
  to { stroke-dashoffset: -22; }
}

/* Durgam Cheruvu */
.fh-lake {
  position: absolute;
  left: 78%;
  top: 14%;
  width: 18%;
  aspect-ratio: 2 / 1;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.3);
  transform: rotate(-12deg);
}

.fh-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.22rem 0.55rem 0.22rem 0.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.12));
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  translate: -50% -50%;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.45s ease var(--d), transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--d);
}

.fh-pin::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  animation: fhPinPulse 2.4s ease-out infinite;
  animation-delay: var(--d);
}

.fh-pin--sm {
  color: var(--text-2);
}

.fh-pin--sm::before {
  background: var(--text-3);
  animation: none;
}

.fh-card--city.visible .fh-pin {
  opacity: 1;
  transform: none;
}

@keyframes fhPinPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 68, 0, 0.45); }
  100% { box-shadow: 0 0 0 7px rgba(255, 68, 0, 0); }
}

.fh-card--city .fh-ctas .fh-cta {
  align-self: stretch;
  justify-content: space-between;
}

.fh-card--city .fh-cta--ghost {
  justify-content: center;
}

.fh-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: fhLive 2s ease-out infinite;
}

@keyframes fhLive {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.fh-places {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
  padding: 0;
}

.fh-places li {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* Tablet: lead goes full width on top, then two, then city full width */
@container fh (max-width: 900px) {
  .fh-bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "lead lead"
      "flats student"
      "city city";
  }

  .fh-card--lead {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    column-gap: var(--space-6);
  }

  .fh-card--lead .fh-match {
    grid-row: 1 / 3;
    justify-content: center;
  }
}

@container fh (max-width: 760px) {
  .fh-card--city {
    grid-template-columns: 1fr;
  }

  .fh-map {
    flex: none;
    height: 180px;
  }
}

/* Phone: one column, everything stacked */
@container fh (max-width: 620px) {
  .fh-bento {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "flats" "student" "city";
    gap: var(--space-4);
  }

  .fh-card {
    padding: var(--space-5);
  }

  .fh-card--lead {
    display: flex;
  }

  .fh-card--lead,
  .fh-card--city {
    flex-direction: column;
    align-items: stretch;
  }

  .fh-cta {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fh-ring { transition: none; }
  .fh-live { animation: none; }
  .fh-pin { transition: none; }
  .fh-pin::before,
  .fh-card--city.visible .fh-route { animation: none; }
}
