/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --bg:         #F7F0E8;
  --bg2:        #EFE8DF;
  --bg3:        #E8E0D6;
  --orange:     #E85006;
  --orange-d:   #B63E07;
  --orange-l:   #FFEDE5;
  --black:      #111111;
  --dark:       #0D0B09;
  --dark2:      #1A1410;
  --gray:       #675B56;
  --gray-l:     #968983;
  --border:     #E1DAD6;
  --white:      #FFFFFF;
  --green:      #2E7D32;
  --green-l:    #E8F3DC;

  /* MUI theme tokens — profile cards and chips */
  --mui-text-primary:   #201A17;
  --mui-text-secondary: #675B56;
  --mui-paper:          #F8F6F5;
  --mui-card-bg:        #FDFBFA;
  --mui-divider:        #E1DAD6;

  --safe-top:     env(safe-area-inset-top, 0px);
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-left:    env(safe-area-inset-left, 0px);
  --safe-right:   env(safe-area-inset-right, 0px);

  --fs-xs:    clamp(11px, 2.8vw, 13px);
  --fs-sm:    clamp(13px, 3.4vw, 15px);
  --fs-base:  clamp(15px, 3.8vw, 17px);
  --fs-md:    clamp(16px, 4.2vw, 19px);
  --fs-lg:    clamp(20px, 5vw, 24px);
  --fs-xl:    clamp(26px, 7vw, 34px);
  --fs-2xl:   clamp(34px, 10vw, 52px);
  --fs-3xl:   clamp(40px, 11vw, 64px);
  --fs-4xl:   clamp(44px, 13vw, 74px);

  --sp-1:  4px;  --sp-2:  8px;  --sp-3:  12px; --sp-4:  16px;
  --sp-5:  20px; --sp-6:  24px; --sp-8:  32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  --touch:    48px;
  --touch-lg: 56px;
  --touch-xl: 64px;

  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* “How it works” cards: compact neutral elevation */
  --shadow-how-card:
    0 1px 2px rgba(18, 16, 15, 0.045),
    0 6px 20px -6px rgba(18, 16, 15, 0.085);
  --shadow-how-card-hover:
    0 1px 3px rgba(18, 16, 15, 0.055),
    0 10px 28px -8px rgba(18, 16, 15, 0.11);

  /* Primary CTA shared tokens */
  --btn-primary-radius: 14px;
  --btn-primary-shadow: 0 4px 16px rgba(182, 62, 7, 0.26);
  --btn-primary-font-size: 14px;

  /* Sticky CTA dock height (padding + button + safe area); clears footer padding */
  --sticky-cta-dock-h: calc(12px + var(--touch-xl) + 12px + var(--safe-bottom));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Funnel Display', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input { font-family: inherit; outline: none; }
button,
input:not([type="checkbox"]):not([type="radio"]) {
  border: none;
}
button {
  cursor: pointer;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

/* Primary orange CTA — hero form, final section, sticky bar */
.email-submit,
.final-cta-btn,
.sticky-cta-btn {
  border: none;
  border-radius: var(--btn-primary-radius);
  background: var(--orange);
  color: var(--white);
  font-size: var(--btn-primary-font-size);
  font-weight: 700;
  letter-spacing: -0.1px;
  box-shadow: var(--btn-primary-shadow);
  transition: transform 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.email-submit:focus-visible,
.final-cta-btn:focus-visible,
.sticky-cta-btn:focus-visible {
  outline: 2px solid var(--orange-l);
  outline-offset: 2px;
}

.email-submit:active,
.final-cta-btn:active,
.sticky-cta-btn:active {
  transform: scale(0.97);
  background: var(--orange-d);
}
input:not([type="checkbox"]):not([type="radio"]) {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

input[type="checkbox"],
input[type="radio"] {
  background-color: transparent;
}

.container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 9, 0.85);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: calc(var(--safe-top) + var(--sp-2));
  padding-bottom: var(--sp-3);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav.nav--scrolled {
  background: rgba(13, 11, 9, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  height: var(--touch);
  padding: 0 var(--sp-5);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Wrapper: desktop is transparent to layout; mobile anchors the lang dropdown */
.nav-lang-slot {
  display: contents;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Keeps desktop flex layout; mobile overrides to a real box for the dropdown */
.nav-lang-inner {
  display: contents;
}

.nav-lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.nav-lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-lang-btn.is-active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-lang-btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.nav-lang-btn:active {
  transform: scale(0.94);
}

.nav-lang-flag {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--white);
}

.logo-mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.logo-text { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }

/* Mobile: compact lang + dropdown */
@media (max-width: 720px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    height: var(--touch);
    min-height: var(--touch);
    gap: var(--sp-3);
    overflow: visible;
  }

  .logo {
    min-width: 0;
  }

  .nav {
    overflow: visible;
  }

  .nav-actions {
    position: relative;
    width: auto;
    justify-content: flex-end;
    overflow: visible;
  }

  /* Explicit height so `top` / `%` on the dropdown resolve against a definite box
     (otherwise the panel can sit too high and cover the hero). */
  .nav-lang-slot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    flex-shrink: 0;
    width: auto;
    height: var(--touch);
    min-height: var(--touch);
    min-width: 48px;
    box-sizing: border-box;
  }

  .nav-lang {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    padding-right: 22px;
    transition: box-shadow 0.2s ease, background 0.2s ease;
  }

  .nav-lang-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    width: 100%;
  }

  /* Chevron: menu opens below (classic dropdown) */
  .nav-lang::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.15s ease;
    transform-origin: 50% 35%;
  }

  .nav-lang:not(.is-open) .nav-lang-btn:not(.is-active) {
    display: none;
  }

  /* Overlay panel: does not change nav bar height */
  .nav-lang.is-open {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px;
    padding-right: 8px;
    min-width: 156px;
    max-width: min(220px, calc(100vw - var(--safe-left) - var(--safe-right) - var(--sp-4)));
    background: rgba(22, 19, 17, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
    z-index: 200;
  }

  .nav-lang.is-open .nav-lang-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-lang.is-open .nav-lang-btn {
    display: flex;
    width: 100%;
    height: 44px;
    border-radius: 10px;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .nav-lang.is-open .nav-lang-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }

  .nav-lang.is-open::after {
    top: 14px;
    margin-top: 0;
    transform: rotate(180deg);
  }
}

@media (max-width: 380px) {
  .nav-inner {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .nav-lang:not(.is-open) .nav-lang-btn {
    width: 36px;
    height: 36px;
  }

  .nav-lang:not(.is-open) .nav-lang-flag {
    font-size: 1.1rem;
  }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--dark);
  padding: var(--sp-8) 0 var(--sp-10);
  overflow: hidden;
  --hero-shift: 0px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -30%;
  width: 100vw; height: 100vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 26, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(
    calc(var(--hero-shift) * 0.35),
    calc(var(--hero-shift) * -0.45),
    0
  );
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -30%;
  width: 80vw; height: 80vw;
  max-width: 600px; max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 26, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(
    calc(var(--hero-shift) * -0.25),
    calc(var(--hero-shift) * 0.35),
    0
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-subtitle--tail {
  margin-top: 0;
  margin-bottom: var(--sp-8);
}

.hero-subtitle--tail p {
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--sp-6);
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

.hero-badge-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.02;
  margin-bottom: var(--sp-6);
}

/* ─── ROTATING WORD ─── */
.rotator {
  display: inline-flex;
  align-items: baseline;
  position: relative;
  color: var(--orange);
  min-width: 0;
  vertical-align: baseline;
}

.rotator-track {
  position: relative;
  display: inline-block;
  min-width: 2.6em;
  text-align: left;
}

.rotator-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.35, 1),
              transform 0.5s cubic-bezier(0.25, 0.8, 0.35, 1),
              filter 0.5s ease;
  filter: blur(4px);
}

.rotator-word.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  position: relative;
}

.rotator-word.exiting {
  opacity: 0;
  transform: translateY(-18px);
  filter: blur(4px);
}

.rotator.stopped::after {
  animation: none;
  opacity: 0;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
  max-width: 500px;
}

.hero-subtitle p {
  margin-bottom: 10px;
}

.hero-subtitle p:last-child {
  margin-bottom: 0;
}

.hero-subtitle strong {
  color: inherit;
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   EMAIL FORM — WIDE
═══════════════════════════════════════════ */
.hero-form-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: var(--sp-8);
  max-width: 100%;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.email-input {
  height: var(--touch-xl);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 16px;
  padding: 0 20px;
  width: 100%;
  min-width: 0;
  transition: border-color 0.18s, background 0.18s;
  -webkit-text-size-adjust: 100%;
  font-weight: 500;
  letter-spacing: -0.1px;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.email-input:focus {
  border-color: rgba(232, 83, 26, 0.7);
  background: rgba(255, 255, 255, 0.09);
}

.email-input.error {
  border-color: rgba(232, 83, 26, 0.9);
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.email-submit {
  position: relative;
  min-height: var(--touch-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 0 20px;
  line-height: 1.2;
  text-align: center;
}

.email-submit-spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: landing-spin 0.7s linear infinite;
}

.email-form.is-loading .email-submit-spinner {
  display: block;
}

.email-form.is-loading .email-submit-label {
  opacity: 0.2;
}

.email-form.is-loading .email-submit {
  pointer-events: none;
}

@keyframes landing-spin {
  to {
    transform: rotate(360deg);
  }
}

.email-submit .arr {
  font-size: 16px;
  transition: transform 0.2s;
}

.email-submit:hover .arr {
  transform: translateX(3px);
}

.form-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 14px;
  text-align: center;
  line-height: 1.5;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.form-consent input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: auto;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  margin: 0 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
  vertical-align: top;
  align-self: flex-start;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--orange-l);
  outline-offset: 2px;
}

.form-consent .consent-link {
  color: var(--orange-l);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent .consent-link:hover {
  color: #fff;
}

.form-consent.consent-error {
  color: #ffc9b8;
}

.form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(232, 83, 26, 0.1);
  border: 1px solid rgba(232, 83, 26, 0.25);
  border-radius: 12px;
  font-size: 13px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.5;
  animation: slideIn 0.4s ease-out;
  text-align: center;
}

.form-success.visible { display: block; }

.form-success.is-error {
  background: rgba(220, 60, 40, 0.12);
  border-color: rgba(255, 120, 100, 0.35);
  color: #ffd4cc;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   CAROUSEL — right side of hero
═══════════════════════════════════════════ */
.carousel-wrap {
  margin-top: var(--sp-8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 340px;
  perspective: 1000px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.45s cubic-bezier(0.25, 0.8, 0.35, 1),
              transform 0.45s cubic-bezier(0.25, 0.8, 0.35, 1);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.carousel-slide.exit-left {
  opacity: 0;
  transform: translateX(-30px) scale(0.98);
}

/* Card (shared with listings) */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ─── Public listing card (aligned with frontend PublicListingCard.tsx) ─── */
.plc {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-align: left;
}

.plc-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  flex-shrink: 0;
}

.plc-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f5f5f5;
  border-radius: 16px;
}

.plc-compat {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 30px;
  padding: 0 10px 0 6px;
  border-radius: 999px;
  background: #fff;
  color: #201a17;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.plc-compat--very { border-color: rgba(232, 80, 6, 0.45); }
.plc-compat--ok { border-color: rgba(46, 125, 50, 0.38); }
.plc-compat--low { border-color: #e0e0e0; }

.plc-compat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  font-size: 15px;
  line-height: 1;
}

.plc-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 100%);
  z-index: 1;
}

.plc-roommates {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0 0 10px;
  margin: 0 0 10px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.plc-roommates--static {
  cursor: default;
  pointer-events: none;
}

.plc-avatar-group {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.plc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  overflow: hidden;
  margin-right: -10px;
  flex-shrink: 0;
}

.plc-avatar:last-child { margin-right: 0; }

.plc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plc-living-with {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.plc-available {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.plc-available span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.96);
}

.plc-inline-ico {
  flex-shrink: 0;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.plc-inline-ico--muted {
  color: #675b56;
  opacity: 0.85;
  filter: none;
}

.plc-stack {
  margin-top: 10px;
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.card .plc-stack {
  padding-bottom: 20px;
}

.plc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--mui-divider);
  background: #fff;
  color: var(--mui-text-secondary);
  white-space: nowrap;
}

.plc-chip--accent {
  border-color: rgba(232, 80, 6, 0.35);
  background: #fff8f5;
  color: var(--orange-d);
  font-weight: 700;
}

.plc-title {
  margin: 0;
  font-family: 'Funnel Display', system-ui, sans-serif;
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.27;
  letter-spacing: 0;
  color: var(--mui-text-primary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plc-address {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

/* Pin address + price to bottom when cards share height (grid / carousel) */
.card .plc-stack .plc-address,
.listing .plc-stack .plc-address {
  margin-top: auto;
}

.plc-address-txt {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  font-style: normal;
  color: var(--mui-text-secondary);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plc-price-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.plc-price-block .plc-price {
  margin: 0;
}

.plc-listing-meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 14px 10px 12px;
  border-radius: 14px;
  width: 100%;
  box-sizing: border-box;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #4a423d;
  background: linear-gradient(145deg, #fff9f4 0%, #fff 55%, #faf7f5 100%);
  border: 1px solid rgba(232, 80, 6, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(232, 80, 6, 0.07);
}

.plc-listing-meta-ico {
  flex-shrink: 0;
  margin-top: 1px;
  color: #e85006;
  filter: drop-shadow(0 1px 2px rgba(232, 80, 6, 0.25));
}

.plc-listing-meta span {
  min-width: 0;
}

.plc-price {
  margin: 6px 0 0;
  font-family: inherit;
  font-size: 36px;
  font-weight: 400;
  line-height: 44px;
  letter-spacing: 0;
  color: #e85006;
}

.listing .plc-apply-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: var(--btn-primary-radius);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(165deg, #ff7a3a 0%, #e85006 55%, #c94305 100%);
  box-shadow: var(--btn-primary-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.listing .plc-apply-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 20px rgba(182, 62, 7, 0.32);
}

.listing .plc-apply-btn:active {
  transform: scale(0.98);
}

.listing .plc-apply-btn:focus-visible {
  outline: 2px solid rgba(232, 80, 6, 0.55);
  outline-offset: 2px;
}

.listing .plc-price-block + .plc-apply-btn {
  margin-top: 14px;
}

/* Compatibility tag — flatmate slide (tones aligned with app / listing detail) */
.compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.compat-tag--good {
  background: #eaf7e9;
  color: #1b5e20;
  border: 1px solid rgba(46, 125, 50, 0.28);
}

.compat-tag--great {
  background: #fff0ea;
  color: var(--orange-d);
  border: 1px solid rgba(232, 80, 6, 0.28);
}

.compat-tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.slide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}


/* ─── SLIDE 2 — “Who lives here” (shell like .listing, listing-detail vibe) ─── */
.listing--roommates {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Avoid scale on shell when tapping a row (conflicts with .listing:active) */
.listing.listing--roommates:active {
  transform: none;
}

/* Carousel slide: two profiles in one slide (only one visible) */
.listing--carousel-profiles {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.listing.listing--carousel-profiles:active {
  transform: none;
}

/*
 * [hidden] alone is not enough: .plc { display: flex } matches specificity and comes later,
 * so the second profile stayed in layout (stacked under Giulia) without this rule.
 */
.listing--carousel-profiles > .plc[hidden] {
  display: none !important;
}

.listing--roommates .slide-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--mui-divider);
  background: var(--white);
  flex-shrink: 0;
}

.slide-hdr-back {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--mui-divider);
  border-radius: var(--btn-primary-radius);
  background: #f5ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--mui-text-secondary);
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.14s;
}

.slide-hdr-back:focus-visible {
  outline: 2px solid rgba(232, 80, 6, 0.45);
  outline-offset: 2px;
}

.slide-hdr-back:hover {
  background: #efe6db;
  border-color: var(--gray-l);
  color: var(--mui-text-primary);
}

.slide-hdr-back:active {
  transform: scale(0.97);
}

.slide-hdr-title {
  flex: 1;
  min-width: 0;
}

.slide-hdr-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--mui-text-primary);
}

.slide-hdr-sub {
  margin: 4px 0 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mui-text-secondary);
}

.listing--roommates .people-list {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--mui-card-bg);
}

.person-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f8f3ed;
  border-radius: var(--radius-lg);
  border: 1px solid var(--mui-divider);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
  .person-row:hover {
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
    transform: translateY(-2px);
    border-color: rgba(225, 218, 214, 0.95);
  }
}

.person-row:active {
  transform: scale(0.99) translateY(0);
}

.person-row--featured {
  background: #fff0ea;
  border-color: rgba(232, 80, 6, 0.22);
}

.person-av {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
}

.person-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.person-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--mui-text-primary);
}

.person-role {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--mui-text-secondary);
  margin-top: 3px;
  line-height: 1.35;
}

.person-compat {
  margin-top: 8px;
}

.person-arrow {
  color: var(--gray-l);
  font-size: 20px;
  font-weight: 300;
  flex-shrink: 0;
  line-height: 1;
  opacity: 0.75;
}

.person-hint {
  margin-top: 4px;
  padding: 14px 16px;
  text-align: center;
  background: #ede6dc;
  border: 1px solid var(--mui-divider);
  border-radius: var(--radius-sm);
}

.person-hint__text {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--mui-text-secondary);
}

/* ─── SLIDE 3 — Full profile ─── */
/* Profile card — identity row inside plc-gradient */
.prf-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.prf-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  flex-shrink: 0;
}

.prf-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prf-name {
  font-family: 'Funnel Display', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.prf-role {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  margin-top: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Common-interest chip variant — aligned with ProfileCard memberCompact (frontend MUI) */
.plc-chip--common {
  background: #fff7f2;
  border-color: rgba(232, 80, 6, 0.16);
  color: var(--orange);
  font-weight: 800;
}

.profile-bio {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  color: var(--mui-text-secondary);
  font-style: italic;
  font-weight: 500;
  border-left: 2.5px solid var(--orange);
  padding: 2px 0 2px 10px;
  line-height: 1.66;
  margin-bottom: 0;
}

.profile-section-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  margin-top: 14px;
}

.profile-section-label:first-child {
  margin-top: 0;
}

.profile-prompt {
  padding: 12px 14px;
  background: var(--mui-paper);
  border-radius: 12px;
  margin-bottom: 8px;
}

.prompt-q {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 11px;
  color: var(--mui-text-secondary);
  font-weight: 600;
  margin-bottom: 3px;
}

.prompt-a {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  color: var(--mui-text-primary);
  font-weight: 600;
  line-height: 1.43;
}

.profile-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--btn-primary-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.carousel-btn:focus-visible {
  outline: 2px solid var(--orange-l);
  outline-offset: 2px;
}

.carousel-btn:active {
  transform: scale(0.96);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--btn-primary-shadow);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 7px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, width 0.25s;
  border: none;
  padding: 0;
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--orange-l);
  outline-offset: 2px;
}

.carousel-dot.active {
  background: var(--orange);
  width: 24px;
  border-radius: 999px;
}

.carousel-caption {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  min-height: 14px;
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how {
  background: var(--bg);
  padding: var(--sp-16) 0 var(--sp-12);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--black);
  text-align: center;
  margin-bottom: var(--sp-10);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: linear-gradient(145deg, var(--mui-card-bg) 0%, var(--mui-paper) 78%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 24px 24px 24px 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-how-card);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.step:active {
  transform: scale(0.99);
  border-color: rgba(232, 83, 26, 0.3);
}

@media (hover: hover) {
  .step:hover {
    box-shadow: var(--shadow-how-card-hover);
    border-color: rgba(225, 218, 214, 0.95);
  }
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--btn-primary-radius);
  background: linear-gradient(160deg, rgba(232, 83, 26, 0.18) 0%, rgba(232, 83, 26, 0.06) 100%);
  border: 1px solid rgba(232, 83, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--orange);
}

.step-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 40px;
  font-weight: 900;
  color: rgba(232, 83, 26, 0.14);
  letter-spacing: -1px;
  line-height: 1;
  font-style: italic;
}

.step-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 7px;
  line-height: 1.25;
}

.step-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   LISTINGS SHOWCASE
═══════════════════════════════════════════ */
.showcase {
  background: var(--bg2);
  padding: var(--sp-12) 0;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.showcase-desc {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

/* Tabs */
.showcase-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 30px;
}

.showcase-tab {
  padding: 10px 22px;
  border-radius: var(--btn-primary-radius);
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.14s;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.showcase-tab:focus-visible {
  outline: 2px solid rgba(232, 80, 6, 0.45);
  outline-offset: 2px;
}

.showcase-tab:active {
  transform: scale(0.97);
}

.showcase-tab.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.showcase-scroll-hint {
  display: none;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin: -12px 0 8px;
}

@media (max-width: 899px) {
  .showcase-scroll-hint {
    display: block;
  }
}

.showcase-content {
  display: none;
}

.showcase-content.active {
  display: block;
  animation: fadeUp 0.4s ease-out;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.listings {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 899px) {
  .showcase-content.active .listings {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sp-5);
    padding-bottom: var(--sp-2);
    margin-inline: calc(-1 * var(--sp-5));
    padding-inline: var(--sp-5);
    -webkit-overflow-scrolling: touch;
  }

  .showcase-content.active .listings .listing {
    flex: 0 0 min(320px, 88vw);
    scroll-snap-align: start;
    max-width: none;
  }
}

.listing {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.listing:active { transform: scale(0.99); }

.listing .plc-media {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.listing .plc-img {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 4 / 3;
  object-position: center 20%;
}

.listing:active .plc-img {
  transform: scale(1.02);
}

.listing .plc-stack {
  padding: 12px 18px 20px;
}

/* ═══════════════════════════════════════════
   FAQ (native details / summary accordion)
═══════════════════════════════════════════ */
.faq {
  background: var(--bg);
  padding: 20px 0;
}

.faq .section-title {
  margin-bottom: 14px;
}

.faq-intro {
  font-size: var(--fs-sm);
  color: var(--gray);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto var(--sp-10);
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: linear-gradient(145deg, var(--mui-card-bg) 0%, var(--mui-paper) 78%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-how-card);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: rgba(232, 83, 26, 0.28);
  box-shadow: var(--shadow-how-card-hover);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.35;
  color: var(--black);
  list-style: none;
  text-align: left;
  min-height: var(--touch-xl);
  box-sizing: border-box;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '';
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  opacity: 0.85;
}

.faq-item[open] .faq-q::after {
  transform: rotate(-135deg);
  margin-top: 8px;
}

.faq-q:focus-visible {
  outline: 2px solid rgba(232, 80, 6, 0.45);
  outline-offset: -2px;
}

.faq-q-text {
  flex: 1;
  min-width: 0;
}

.faq-panel {
  padding: 0 20px 18px;
}

.faq-a {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.faq-a .consent-link {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .faq-item:not([open]):hover {
    border-color: rgba(225, 218, 214, 0.95);
    box-shadow: var(--shadow-how-card-hover);
  }
}

/* ═══════════════════════════════════════════
   FINAL CTA with community on right
═══════════════════════════════════════════ */
.final {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: var(--sp-16) 0;
}

.final::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120vw; height: 120vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 26, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.final-inner { position: relative; z-index: 1; }

.final-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-8);
}

.final-title {
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.8px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.final-subtitle {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: var(--sp-6);
}

.final-cta-wrap {
  max-width: 400px;
  margin: var(--sp-4) auto 0;
  text-align: center;
}

.final-cta-btn {
  width: 100%;
  min-height: var(--touch-xl);
  padding: 0 24px;
  border: none;
  cursor: pointer;
}

.final-cta-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

/* Community card — RIGHT side on desktop, below on mobile */
.community-box {
  background: linear-gradient(135deg, #1A1410 0%, #241810 100%);
  border: 1px solid rgba(232, 83, 26, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-8);
}

.community-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 26, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.community-box::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 83, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.community-inner { position: relative; z-index: 1; }

/* Section eyebrow — product tone (no glass pill + template dot) */
.community-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.community-badge::before {
  content: '';
  width: 3px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--orange);
}

.community-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
  text-transform: none;
}

.community-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.8px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.community-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 20px;
}

.community-values {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.community-value {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.community-value-icon {
  width: 34px; height: 34px;
  border-radius: 12px;
  background: rgba(232, 83, 26, 0.12);
  border: 1px solid rgba(232, 83, 26, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}

.community-value-icon svg {
  display: block;
}

.community-value-text {
  flex: 1;
  min-width: 0;
}

.community-value-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.community-value-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: var(--dark);
  padding: var(--sp-6) 0 calc(var(--sp-6) + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-mark {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.footer-logo-text {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.footer-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.footer-links span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
}

/* ═══════════════════════════════════════════
   STICKY CTA
═══════════════════════════════════════════ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px var(--sp-5) calc(12px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(13, 11, 9, 0.95) 0%, rgba(13, 11, 9, 0.85) 70%, rgba(13, 11, 9, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
  transform: translateY(120%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.sticky-cta.visible {
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-btn {
  width: 100%;
  min-height: var(--touch-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  line-height: 1.2;
  text-align: center;
}

/* ═══════════════════════════════════════════
   COOKIE / ANALYTICS BANNER (above sticky CTA)
═══════════════════════════════════════════ */
.cookie-consent {
  position: fixed;
  left: var(--sp-5);
  right: var(--sp-5);
  bottom: calc(12px + var(--safe-bottom));
  z-index: 55;
  max-width: 720px;
  margin: 0 auto;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
}

body.sticky-cta-dock .cookie-consent {
  bottom: calc(var(--sticky-cta-dock-h) + 10px);
}

.cookie-consent-inner {
  padding: 14px 16px 14px;
  border-radius: 14px;
  background: rgba(13, 11, 9, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cookie-consent-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 6px;
}

.cookie-consent-text {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.cookie-consent-text .consent-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text .consent-link:hover {
  color: var(--white);
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-consent-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.cookie-consent-btn:focus-visible {
  outline: 2px solid var(--orange-l);
  outline-offset: 2px;
}

.cookie-consent-btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--btn-primary-shadow);
}

.cookie-consent-btn--primary:active {
  transform: scale(0.98);
  background: var(--orange-d);
}

.cookie-consent-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .cookie-consent-inner {
    padding: 16px 18px;
  }

  .cookie-consent-actions {
    align-items: center;
  }
}

/* Scroll reveal (main sections) — one-time, light motion */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.6s cubic-bezier(0.25, 0.8, 0.35, 1),
    transform 0.6s cubic-bezier(0.25, 0.8, 0.35, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@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-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .hero::before,
  .hero::after {
    transform: none !important;
    will-change: auto;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .container { max-width: 640px; }

  .email-form {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
  }

  .email-submit {
    flex-shrink: 0;
    width: auto;
    min-width: 260px;
    padding: 0 28px;
  }

  .email-input {
    flex: 1 1 200px;
    min-width: 0;
  }

  /* Checkbox + copy always full width under the bar (was squeezing the input in one row) */
  .email-form .form-consent {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero { padding: var(--sp-20) 0 var(--sp-20); min-height: auto; }

  .hero-inner {
    display: block;
  }

  .hero-text {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 80px;
    row-gap: 0;
    align-items: start;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-subtitle--lead {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-text > .carousel-wrap {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 380px;
    margin: 0;
  }

  .hero-subtitle--tail {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0;
    margin-bottom: var(--sp-8);
  }

  .hero-form-wrap {
    grid-column: 1;
    grid-row: 4;
  }

  .carousel {
    max-width: 380px;
    margin-left: auto;
  }

  .carousel-stage {
    height: 560px;
  }

  .listings {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    align-items: stretch;
  }

  .listings .listing {
    height: 100%;
  }

  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .step {
    padding: 28px;
  }

  /* FINAL section with community on right */
  .final-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .final-text {
    text-align: left;
    margin: 0;
  }

  .final .final-cta-wrap {
    max-width: 420px;
    margin: var(--sp-6) 0 0;
    text-align: left;
  }

  .community-box {
    margin-top: 0;
    padding: var(--sp-8);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .sticky-cta { display: none; }
}

@media (max-width: 899px) {
  .final-text { text-align: center; }

  /* Footer: extra bottom padding when fixed CTA is visible (body.sticky-cta-dock from landing-v5.js) */
  body.sticky-cta-dock .footer {
    padding-bottom: calc(var(--sp-6) + var(--sticky-cta-dock-h) + var(--sp-4));
  }
}

/* ═══════════════════════════════════════════
   PRIVACY / LEGAL (+ legal.css)
═══════════════════════════════════════════ */
.legal-subpage-main {
  padding: var(--sp-8) 0 var(--sp-16);
}

body.legal-use-landing-v5 .legal-doc a {
  color: var(--orange);
}

body.legal-use-landing-v5 .legal-doc a:hover {
  color: var(--orange-d);
}

/* ═══════════════════════════════════════════
   PROFILE CARDS (imported structure/style)
═══════════════════════════════════════════ */
#tab-profili .listings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

#tab-profili .card {
  font-family: "Funnel Display", sans-serif;
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

#tab-profili .photo {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

#tab-profili .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Source HTML has inline heights on .photo; force uniform height */
#tab-profili .card .photo[style] {
  height: 320px !important;
}

#tab-profili .card:nth-child(1) .photo img { object-position: center 20%; }
#tab-profili .card:nth-child(2) .photo img { object-position: center 18%; }
#tab-profili .card:nth-child(3) .photo img { object-position: center 20%; }

#tab-profili .photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.08) 50%, transparent 70%);
}

#tab-profili .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(255, 247, 228, 0.97);
  font-size: 13px;
  font-weight: 700;
  color: #c44d0a;
  letter-spacing: -0.1px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .id {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 110px;
}

#tab-profili .id-name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1.8px;
  color: #fff;
  line-height: 1.02;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin-bottom: 4px;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .id-role {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  margin-bottom: 8px;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .id-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
}

#tab-profili .id-common {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: -0.1px;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .body {
  padding: 12px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

#tab-profili .bio {
  font-size: 14px;
  color: #2a2520;
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: -0.1px;
  border-left: 2px solid #e8531a;
  padding-left: 10px;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
}

#tab-profili .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.1px;
  line-height: 1;
  white-space: nowrap;
  font-family: "Funnel Display", sans-serif;
  flex-shrink: 1;
  min-width: 0;
}

#tab-profili .chip-hl {
  background: #fff2eb;
  border: 1.5px solid #e8531a;
  color: #e8531a;
}

#tab-profili .chip-muted {
  background: #f4efe7;
  border: 1.5px solid #d5cec4;
  color: #6b625a;
}

#tab-profili .prompt {
  background: #f5efe5;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

#tab-profili .pq {
  font-size: 10px;
  font-weight: 700;
  color: #e8531a;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-family: "Funnel Display", sans-serif;
}

#tab-profili .pa {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
  letter-spacing: -0.1px;
  font-family: "Funnel Display", sans-serif;
}

/* Keep profile look but match listing-card compact rhythm: one prompt block per card */
#tab-profili .prompt + .prompt {
  display: none;
}

#tab-profili .cta {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  background: #e8531a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(232, 83, 26, 0.32);
  cursor: pointer;
  margin-top: 2px;
  font-family: "Funnel Display", sans-serif;
  margin-top: auto;
}

@media (min-width: 900px) {
  #tab-profili .listings {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 899px) {
  #tab-profili .listings {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sp-5);
    padding-bottom: var(--sp-2);
    margin-inline: calc(-1 * var(--sp-5));
    padding-inline: var(--sp-5);
    -webkit-overflow-scrolling: touch;
  }

  #tab-profili .card {
    flex: 0 0 min(320px, 88vw);
    scroll-snap-align: start;
    max-width: none;
  }

  #tab-profili .photo,
  #tab-profili .card .photo[style] {
    height: 300px !important;
  }
}
