/* ==========================================================================
   Nubos Web — Shared Stylesheet
   All pages link to this single CSS file.
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Brand */
  --coral:        #F4502C;
  --coral-dark:   #D9411F;
  --coral-light:  #FEF0EC;
  --coral-50:     #FEF0EC;
  --coral-100:    #FCD9CF;

  /* Neutrals */
  --ink:           #1A1A2E;
  --ink-secondary: #6B7280;
  --ink-tertiary:  #9CA3AF;
  --surface:       #F8F8F8;
  --border:        #EFEFEF;
  --white:         #FFFFFF;

  /* Semantic */
  --success: #22C55E;
  --error:   #EF4444;

  /* Radii */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 100px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 8px 32px rgba(26, 26, 46, 0.12);
  --shadow-xl: 0 16px 48px rgba(26, 26, 46, 0.16);

  /* Deep-link card (used by join / listing pages) */
  --dl-text-primary:   #1a1a1a;
  --dl-text-secondary: #6b7280;
  --dl-bg:             #ffffff;
  --dl-border:         #e5e7eb;
  --dl-radius:         16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ==========================================================================
   3. SHARED LAYOUT HELPERS
   ========================================================================== */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--coral);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 60px;
}

/* ==========================================================================
   4. HEADER (sticky, frosted glass, hamburger, mobile menu)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo (shared between header and footer) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  text-decoration: none;
  color: var(--ink-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  background: var(--coral) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--coral-dark) !important;
  transform: translateY(-1px);
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger span:nth-child(2) { margin-top: 6px; }
.hamburger span:nth-child(3) { margin-top: 6px; }

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 32px 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta-mobile {
  display: inline-block;
  background: var(--coral);
  color: var(--white) !important;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
  border: none;
}

/* ==========================================================================
   5. HERO (two-column, phone mockup, floating badges, store badges)
   ========================================================================== */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -300px;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--coral-50) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(244, 80, 44, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-50);
  color: var(--coral);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.hero-badge svg {
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--coral);
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge {
  height: 54px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.phone-frame {
  width: 300px;
  height: 620px;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  transform: rotate(2deg);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--ink);
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

/* Mock app screen inside phone */
.mock-app {
  padding: 40px 16px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
}

.mock-search {
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.mock-search-icon {
  color: var(--ink-tertiary);
  font-size: 14px;
}

.mock-search-text {
  color: var(--ink-tertiary);
  font-size: 14px;
}

.mock-categories {
  display: flex;
  gap: 8px;
  overflow: hidden;
}

.mock-category {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
  border: 1px solid var(--border);
}

.mock-category.active {
  background: var(--coral);
  color: var(--white);
  border-color: var(--coral);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  overflow: hidden;
}

.mock-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mock-card-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.mock-card-img.c1 { background: #FFE8D6; }
.mock-card-img.c2 { background: #D6E8FF; }
.mock-card-img.c3 { background: #E8FFD6; }
.mock-card-img.c4 { background: #FFD6E8; }

.mock-card-body {
  padding: 8px 10px;
}

.mock-card-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.mock-card-title {
  font-size: 11px;
  color: var(--ink-secondary);
  margin-top: 2px;
}

.mock-card-location {
  font-size: 10px;
  color: var(--ink-tertiary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Floating badges around phone */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
  z-index: 3;
}

.float-badge.verified {
  top: 100px;
  right: -30px;
  color: var(--success);
}

.float-badge.location {
  bottom: 140px;
  left: -40px;
  color: var(--coral);
  animation-delay: 2s;
}

.float-badge .badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.float-badge.verified .badge-icon { background: #DCFCE7; }
.float-badge.location .badge-icon { background: var(--coral-50); }

/* ==========================================================================
   6. HOW IT WORKS (step cards, numbered)
   ========================================================================== */
.how-it-works {
  padding: 100px 24px;
  background: var(--surface);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  padding: 40px 28px;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--coral);
  color: var(--white);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 auto 20px;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   7. FEATURES (feature cards with hover accent line)
   ========================================================================== */
.features {
  padding: 100px 24px;
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.feature-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-icon.identity  { background: #EDE9FE; }
.feature-icon.proximity { background: var(--coral-50); }
.feature-icon.reviews   { background: #FEF3C7; }
.feature-icon.groups    { background: #DCFCE7; }

.feature-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-card p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   8. CTA BANNER (coral background)
   ========================================================================== */
.cta-banner {
  padding: 80px 24px;
  background: var(--coral);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 36px;
}

.cta-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-badges .store-badge {
  height: 58px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-badges .store-badge:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   9. FOOTER (dark, two-column)
   ========================================================================== */
.footer {
  padding: 60px 24px 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-logo .logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-argentina {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   10. DEEP LINK SHELL (join / listing pages — centered card layout)
   ========================================================================== */

/* Body override: deep link pages add class="dl-page" on <body> */
body.dl-page {
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 20px;
}

/* Card container */
.dl-card {
  background: var(--dl-bg);
  border-radius: var(--dl-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 32px 28px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

/* Logo block inside card */
.dl-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.dl-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--coral);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-logo-mark svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.dl-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--dl-text-primary);
  letter-spacing: -0.3px;
}

/* Divider accent bar */
.dl-divider {
  width: 40px;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  margin: 0 auto 24px;
}

/* Loading spinner */
.dl-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.dl-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--dl-border);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: dl-spin 0.8s linear infinite;
}

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

.dl-loading p {
  color: var(--dl-text-secondary);
  font-size: 15px;
}

/* Group / Listing info icon */
.dl-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fde8e3 0%, #fbd0c6 100%);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--coral);
}

.dl-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--dl-text-primary);
  line-height: 1.25;
  margin-bottom: 8px;
}

.dl-description {
  font-size: 15px;
  color: var(--dl-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.dl-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f3f4f6;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--dl-text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

.dl-meta svg {
  width: 14px;
  height: 14px;
  fill: var(--dl-text-secondary);
}

/* Instruction box */
.dl-instruction {
  background: linear-gradient(135deg, #fff5f3 0%, #ffeee9 100%);
  border: 1px solid #fdd5cd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
}

.dl-instruction-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--coral);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-instruction-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.dl-instruction p {
  font-size: 14px;
  color: #7c2d12;
  line-height: 1.5;
  font-weight: 500;
}

/* Store badges (deep-link variant) */
.dl-stores-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dl-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.dl-store-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dl-text-primary);
  color: var(--white);
  border-radius: 12px;
  padding: 13px 20px;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}

.dl-store-btn:active {
  opacity: 0.85;
  transform: scale(0.98);
}

.dl-store-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  flex-shrink: 0;
}

.dl-store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dl-store-btn-sub {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1;
  margin-bottom: 2px;
}

.dl-store-btn-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

/* Error state */
.dl-error {
  padding: 8px 0;
}

.dl-error-icon {
  width: 56px;
  height: 56px;
  background: #fef2f2;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-error-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--error);
}

.dl-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dl-text-primary);
  margin-bottom: 8px;
}

.dl-error-msg {
  font-size: 15px;
  color: var(--dl-text-secondary);
  line-height: 1.5;
}

/* Listing image */
.dl-listing-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #f3f4f6;
}

/* Listing price */
.dl-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 20px;
}

/* Open-in-app button */
.dl-open-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--coral);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.dl-open-btn:hover {
  background: var(--coral-dark);
}

.dl-open-btn:active {
  transform: scale(0.98);
}

/* Group-only lock state */
.dl-lock-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dl-group-only-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dl-text-primary);
  margin-bottom: 8px;
}

.dl-group-only-msg {
  font-size: 15px;
  color: var(--dl-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Deep-link footer line */
.dl-footer {
  margin-top: 20px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

/* Larger screens — more padding */
@media (min-width: 480px) {
  .dl-card {
    padding: 40px 36px;
  }
}

/* ==========================================================================
   11. LEGAL PAGE LAYOUT (privacy, terms, support)
   ========================================================================== */
.legal-page {
  padding-top: 72px; /* below fixed header */
}

.legal-hero {
  background: var(--surface);
  padding: 60px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--ink-secondary);
  font-size: 15px;
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-body h3 {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-body p {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--coral-dark);
}

/* Collapsible <details> sections */
.legal-body details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.legal-body details summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.legal-body details summary::-webkit-details-marker {
  display: none;
}

.legal-body details summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-tertiary);
  transition: transform 0.2s;
}

.legal-body details[open] summary::after {
  content: '-';
}

.legal-body details summary:hover {
  background: var(--surface);
}

.legal-body details > div,
.legal-body details > p {
  padding: 0 20px 16px;
}

/* ==========================================================================
   12. 404 PAGE
   ========================================================================== */
.error-page {
  padding-top: 72px; /* below fixed header */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.error-content {
  text-align: center;
  padding: 40px 24px;
  max-width: 480px;
}

.error-content .error-code {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 15vw, 140px);
  line-height: 1;
  color: var(--coral);
  letter-spacing: -4px;
  margin-bottom: 16px;
}

.error-content h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.error-content p {
  color: var(--ink-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-content .btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s, transform 0.15s;
}

.error-content .btn-home:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* ==========================================================================
   13. ANIMATIONS
   ========================================================================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Fade-in via IntersectionObserver (JS adds .visible) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   14. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 40px;
  }

  .hero-content { max-width: 100%; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }

  .phone-frame {
    width: 240px;
    height: 500px;
    transform: rotate(0deg);
  }

  .float-badge { display: none; }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .nav { display: none; }
  .hamburger { display: block; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 500px) {
  .hero {
    min-height: auto;
    padding-bottom: 40px;
  }

  .phone-frame {
    width: 200px;
    height: 420px;
  }

  .how-it-works,
  .features {
    padding: 60px 16px;
  }

  .cta-banner { padding: 50px 16px; }
  .feature-card { padding: 24px; }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

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

  /* Legal pages: tighter spacing */
  .legal-body {
    padding: 32px 16px 60px;
  }
}
