/* Condopo marketing site — shared styles.
 *
 * Editorial, restrained. The Living Room palette (CLAUDE.md) for parity
 * with the Flutter app. Light mode only on the marketing surface — the
 * app handles dark mode internally; the website wants to read the same
 * across screenshots, app store badges, and press shots.
 */

:root {
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --surface-2: #F2EFE8;
  --border: #EAE6DD;
  --border-strong: #D8D2C5;
  --text: #1A1A1A;
  --text-2: #5C5C5C;
  --text-3: #8E8E8E;
  --brand: #7C3AED;
  --brand-light: #A78BFA;
  --brass: #D4A95E;
  --navy: #1A2638;
  --navy-2: #28354E;
  --green: #3FB17B;
  --red: #E25555;

  --max-w: 1080px;
  --serif: 'Times New Roman', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  /* Subtle paper texture — barely-visible warm wash. */
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(212,169,94,0.08) 0%, transparent 60%),
    var(--bg);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,248,244,0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 10px rgba(26,38,56,0.10);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 80px 28px 60px;
  position: relative;
}
.hero .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
.hero-copy { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--text-2);
  letter-spacing: 0.01em;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);
}
h1.hero-title {
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--text);
}
h1.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  display: block;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 36px;
  max-width: 460px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--text);
  color: var(--surface) !important;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid var(--text);
  line-height: 1.2;
}
.badge-btn:hover {
  transform: translateY(-1px);
  background: var(--navy);
  border-color: var(--navy);
}
.badge-btn .small { font-size: 11px; opacity: 0.7; font-weight: 400; display: block; }
.badge-btn .big   { font-size: 15px; font-weight: 700; display: block; margin-top: 1px; }
.badge-btn[aria-disabled="true"] {
  background: transparent;
  color: var(--text-2) !important;
  border-color: var(--border-strong);
  cursor: not-allowed;
  pointer-events: none;
}
.badge-btn[aria-disabled="true"]:hover {
  background: transparent;
  border-color: var(--border-strong);
  transform: none;
}

/* ── Phone mockup ───────────────────────────────────── */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone {
  width: 280px;
  height: 580px;
  background: #0A0F1A;
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 24px 60px rgba(26,38,56,0.18),
    0 6px 16px rgba(26,38,56,0.10);
}
.phone::before {
  /* side buttons (right side mute switch + power) */
  content: '';
  position: absolute;
  top: 96px;
  right: -3px;
  width: 3px;
  height: 60px;
  border-radius: 0 2px 2px 0;
  background: #0A0F1A;
  box-shadow: 0 100px 0 #0A0F1A;
}
.phone::after {
  /* left volume buttons */
  content: '';
  position: absolute;
  top: 120px;
  left: -3px;
  width: 3px;
  height: 80px;
  border-radius: 2px 0 0 2px;
  background: #0A0F1A;
  box-shadow: 0 -36px 0 #0A0F1A;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
}
.dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.status-bar {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 9;
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  pointer-events: none;
}

/* Stack of cycling screens — 6 scenes over 16s.
 *
 * Timeline (% of 16s):
 *   0 -  9%   Splash      (push banner overlays at 4-9%)
 *   9 - 32%   Feed        (typing skeleton 9-13%, like +1 22-25%)
 *  32 - 43%   Post Detail
 *  43 - 62%   Market
 *  62 - 77%   Listing Det.(WhatsApp slides up 70-77%)
 *  77 - 92%   Verify      (✓ pop on first card at 82%)
 *  92 - 96%   Dark flash
 *  96 -100%   Fade to splash
 */
.screen-stack {
  position: absolute;
  inset: 0;
  border-radius: 32px;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
}

.screen.splash         { animation: showSplash    16s infinite; }
.screen.feed           { animation: showFeed      16s infinite; }
.screen.post-detail    { animation: pushDetail1   16s infinite; }
.screen.market         { animation: showMarket    16s infinite; }
.screen.listing-detail { animation: pushDetail2   16s infinite; }
.screen.verify         { animation: showVerify    16s infinite; }

@keyframes showSplash {
  0%, 7%   { opacity: 1; }
  10%, 95% { opacity: 0; }
  100%     { opacity: 1; }
}
@keyframes showFeed {
  0%, 8%    { opacity: 0; }
  11%, 30%  { opacity: 1; }
  33%, 100% { opacity: 0; }
}
@keyframes pushDetail1 {
  0%, 31%   { opacity: 0; transform: translateX(100%); }
  34%, 41%  { opacity: 1; transform: translateX(0); }
  44%, 100% { opacity: 0; transform: translateX(-30%); }
}
@keyframes showMarket {
  0%, 42%   { opacity: 0; }
  45%, 60%  { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes pushDetail2 {
  0%, 61%   { opacity: 0; transform: translateX(100%); }
  64%, 75%  { opacity: 1; transform: translateX(0); }
  78%, 100% { opacity: 0; transform: translateX(-30%); }
}
@keyframes showVerify {
  0%, 76%   { opacity: 0; }
  79%, 90%  { opacity: 1; }
  93%, 100% { opacity: 0; }
}

/* Vertical auto-scroll for feed / market content lists. */
.feed-scroll {
  animation: feedScrollY 16s infinite;
}
@keyframes feedScrollY {
  0%, 11%   { transform: translateY(0); }
  30%       { transform: translateY(-260px); }
  33%, 100% { transform: translateY(0); }
}
.market-scroll {
  animation: marketScrollY 16s infinite;
}
@keyframes marketScrollY {
  0%, 45%   { transform: translateY(0); }
  60%       { transform: translateY(-200px); }
  63%, 100% { transform: translateY(0); }
}

/* Screen common — mobile shell */
.app-shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.app-header {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  border-bottom: 1px solid var(--border);
}
.app-header .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.app-header .icon-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
}
.app-tabbar {
  margin-top: auto;
  height: 52px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(250,248,244,0.95);
}
.app-tabbar .tab {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.app-tabbar .tab.active { color: var(--text); }
.app-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 16px;
}

/* Splash screen */
.screen.splash .app-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 50% at 50% 40%, rgba(212,169,94,0.10) 0%, transparent 60%),
    var(--navy);
  margin-top: 0;
}
.screen.splash .app-shell { background: var(--navy); }
.screen.splash .app-header,
.screen.splash .app-tabbar { display: none; }
.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.splash-name {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--surface);
  letter-spacing: -0.01em;
}
.splash-tag {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-family: var(--serif);
  font-style: italic;
}

/* Feed post card */
.post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB088 0%, #FF7E5F 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.avatar.b { background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%); }
.avatar.c { background: linear-gradient(135deg, #6BCB77 0%, #3FB17B 100%); }
.post-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.post-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.post-sub {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 1px;
}
.post-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}
.post-img {
  margin-top: 8px;
  height: 90px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(124,58,237,0.4) 0%, rgba(212,169,94,0.4) 100%),
    repeating-linear-gradient(
      135deg,
      var(--surface-2) 0px,
      var(--surface-2) 4px,
      transparent 4px,
      transparent 8px
    );
  background-blend-mode: multiply;
}
.post-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-2);
}
.post-actions .liked { color: var(--red); font-weight: 600; }

/* Post photo variants — real Unsplash photos. Fallback color matches the
 * subject so the card stays brand-aligned during the brief load. */
.post-img.a {
  background:
    url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=520&h=200&fit=crop&q=72&fm=webp&auto=format') center / cover no-repeat,
    #E8DED0;
}
.post-img.b {
  background:
    url('https://images.unsplash.com/photo-1530549387789-4c1017266635?w=520&h=200&fit=crop&q=72&fm=webp&auto=format') center / cover no-repeat,
    #A8C8D8;
}
.post-img.c {
  background:
    url('https://images.unsplash.com/photo-1592194996308-7b43878e84a6?w=520&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #6E3A3A;
}
.post-img.d { background: linear-gradient(135deg, #95C988 0%, #3F7B3F 100%); }

/* Detail (post / listing) push screen — iOS-style nav bar + body.
 * Used by .post-detail and .listing-detail scenes. */
.detail-shell {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.detail-bar {
  height: 52px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.detail-bar .back {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
}
.detail-bar .title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  flex: 1;
  text-align: center;
  margin-right: 30px;
}
.detail-body {
  flex: 1;
  overflow: hidden;
  padding: 14px 16px;
}

/* Larger hero photo inside detail */
.detail-hero {
  height: 130px;
  border-radius: 12px;
  background:
    url('https://images.unsplash.com/photo-1530549387789-4c1017266635?w=520&h=300&fit=crop&q=72&fm=webp&auto=format') center / cover no-repeat,
    #A8C8D8;
  margin-bottom: 12px;
}
.detail-hero.market {
  background:
    url('https://images.unsplash.com/photo-1517705008128-361805f42e86?w=520&h=300&fit=crop&q=72&fm=webp&auto=format') center / cover no-repeat,
    #2A3850;
}

/* Listing detail price + contact row */
.detail-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-bottom: 6px;
}
.detail-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.detail-price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.contact-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.contact-pill {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 16px;
  background: var(--text);
  color: var(--surface);
}
.contact-pill.b { background: #25D366; }
.contact-pill.c { background: #7360F2; }

/* Comment thread inside post detail */
.comment {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.comment .avatar { width: 24px; height: 24px; font-size: 10px; }
.comment-body {
  flex: 1;
  font-size: 11.5px;
  line-height: 1.5;
}
.comment-name {
  font-weight: 700;
  font-size: 11px;
  display: block;
  margin-bottom: 1px;
}

/* Listing card (marketplace screen) */
.listing {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}
.listing-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, #5B7B9A 0%, #2A3850 100%);
}
.listing-thumb.b {
  background: linear-gradient(135deg, #C4A572 0%, #8B6F47 100%);
}
.listing-thumb.c {
  background: linear-gradient(135deg, #DBA1A1 0%, #8E4848 100%);
}
/* Per-listing photos (order in DOM = order on screen). Real Unsplash photos. */
.market-scroll > .listing:nth-child(1) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1580480055273-228ff5388ef8?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #2A3850;
}
.market-scroll > .listing:nth-child(2) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1517705008128-361805f42e86?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #8B6F47;
}
.market-scroll > .listing:nth-child(3) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1581094794329-c8112a89af12?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #8E4848;
}
.market-scroll > .listing:nth-child(4) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1495707902641-75cac588d2e9?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #2A3850;
}
.market-scroll > .listing:nth-child(5) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #8E4848;
}
.market-scroll > .listing:nth-child(6) .listing-thumb {
  background:
    url('https://images.unsplash.com/photo-1485965120184-e220f721d03e?w=200&h=200&fit=crop&q=70&fm=webp&auto=format') center / cover no-repeat,
    #8B6F47;
}
.listing-meta { flex: 1; min-width: 0; }
.listing-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.listing-price {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.listing-stats {
  margin-top: 6px;
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: var(--text-3);
}

/* ── Editorial features ─────────────────────────────── */
.editorial {
  padding: 100px 28px 80px;
  border-top: 1px solid var(--border);
}
.editorial .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.editorial-head {
  max-width: 640px;
  margin-bottom: 60px;
}
.editorial-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 14px;
  display: block;
}
.editorial-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.editorial-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-2);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.diff-cell {
  padding: 36px 32px 36px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 22px;
}
.diff-cell:nth-child(odd)  { padding-right: 32px; border-right: 1px solid var(--border); }
.diff-cell:nth-child(even) { padding-left: 32px; }

.diff-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--text);
  margin-top: 2px;
}
.diff-icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.diff-text h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.diff-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 340px;
}

/* ── Quote / closing ─────────────────────────────────── */
.closing {
  padding: 110px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.closing .inner { max-width: 720px; margin: 0 auto; }
.closing q {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.35;
  font-style: italic;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}
.closing q::before, .closing q::after { content: ''; }
.closing .attribution {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.closing .cta-row { justify-content: center; margin-top: 36px; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  padding: 56px 28px 72px;
  background: var(--bg);
}
.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.footer-meta {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
}
.footer-meta a { color: var(--text-3); }

/* ── Legal page styles (used by privacy/terms/etc later) ── */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.legal h1 { font-size: 38px; margin: 0 0 6px; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-3); font-size: 13px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.01em; font-weight: 700; }
.legal h3 { font-size: 16px; margin: 24px 0 8px; font-weight: 700; }
.legal p, .legal li { font-size: 15px; color: var(--text); line-height: 1.75; }
.legal ul, .legal ol { padding-left: 22px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 700; }

/* ── Phone interactions: 8 micro-animations ─────────── */

/* A. Verified badge — gentle pulse on Maria's name */
.verified-pulse {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: var(--brand);
  vertical-align: -1px;
  animation: verifiedPulse 2.4s infinite;
  transform-origin: center;
}
@keyframes verifiedPulse {
  0%, 100%   { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(124,58,237,0)); }
  10%        { transform: scale(1.2);  filter: drop-shadow(0 0 4px rgba(124,58,237,0.55)); }
  22%        { transform: scale(1); }
}

/* B. "Maria is typing…" skeleton — visible only at start of feed scene */
.typing-skeleton {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  opacity: 0;
  animation: typingSkeleton 16s infinite;
}
.skel-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite linear;
}
.skel-lines { flex: 1; }
.skel-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s infinite linear;
}
.skel-line.short { width: 60%; margin-bottom: 6px; }
.skel-dots { display: flex; gap: 3px; align-items: center; padding-left: 2px; }
.skel-dots span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-3);
  animation: skelDots 1.2s infinite;
}
.skel-dots span:nth-child(2) { animation-delay: 0.15s; }
.skel-dots span:nth-child(3) { animation-delay: 0.30s; }
@keyframes skelShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes skelDots {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-1.5px); }
}
@keyframes typingSkeleton {
  0%, 9%    { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
  11%, 14%  { opacity: 1; max-height: 60px; padding-top: 10px; padding-bottom: 10px; margin-bottom: 10px; }
  17%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; }
}

/* C. Like +1 burst on Sarah's pool post */
.like-bump { animation: likeBump 16s infinite; }
@keyframes likeBump {
  0%, 22%   { transform: scale(1); color: var(--red); }
  23%       { transform: scale(1.35); }
  25%, 100% { transform: scale(1); color: var(--red); }
}
.like-pop {
  position: absolute;
  margin-left: 60px;
  margin-top: -10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  opacity: 0;
  animation: likePop 16s infinite;
}
@keyframes likePop {
  0%, 22%   { opacity: 0; transform: translateY(0) scale(0.6); }
  24%       { opacity: 1; transform: translateY(-6px) scale(1.1); }
  28%       { opacity: 1; transform: translateY(-14px) scale(1); }
  31%, 100% { opacity: 0; transform: translateY(-22px) scale(1); }
}

/* D. Push notification banner over splash */
.push-banner {
  position: absolute;
  top: 56px;
  left: 12px;
  right: 12px;
  z-index: 11;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(-80px);
  animation: pushBanner 16s infinite;
}
.push-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.push-icon img { width: 22px; height: 22px; border-radius: 4px; }
.push-text { flex: 1; min-width: 0; }
.push-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #1A1A1A;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.push-time { font-size: 10px; font-weight: 500; color: #888; }
.push-body {
  font-size: 11px;
  color: #1A1A1A;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes pushBanner {
  0%, 3%    { opacity: 0; transform: translateY(-80px); }
  5%        { opacity: 1; transform: translateY(0); }
  8%        { opacity: 1; transform: translateY(0); }
  10%, 100% { opacity: 0; transform: translateY(-80px); }
}

/* E. Verification scene */
.screen.verify .app-shell { background: var(--bg); }
.verify-intro {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 14px;
  padding: 0 2px;
}
.verify-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.verify-card {
  position: relative;
  padding: 14px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.verify-card.v1 {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.12);
}
.verify-icon {
  width: 30px;
  height: 30px;
  color: var(--text-2);
}
.verify-icon svg { width: 100%; height: 100%; }
.verify-card.v1 .verify-icon { color: var(--brand); }
.verify-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
.verify-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  animation: verifyCheckPop 16s infinite;
}
.verify-check svg { width: 11px; height: 11px; }
@keyframes verifyCheckPop {
  0%, 81%   { opacity: 0; transform: scale(0.4); }
  83%       { opacity: 1; transform: scale(1.3); }
  85%, 91%  { opacity: 1; transform: scale(1); }
  93%, 100% { opacity: 0; transform: scale(1); }
}
.verify-cta {
  margin-top: 14px;
  height: 38px;
  border-radius: 19px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  animation: verifyCtaBrighten 16s infinite;
}
@keyframes verifyCtaBrighten {
  0%, 82%   { opacity: 0.45; transform: scale(1); }
  85%       { opacity: 1; transform: scale(1.02); }
  88%, 100% { opacity: 1; transform: scale(1); }
}

/* F. WhatsApp messenger overlay (slides up over listing detail) */
.messenger-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  animation: messengerSlide 16s infinite;
}
@keyframes messengerSlide {
  0%, 70%   { transform: translateY(100%); }
  72%       { transform: translateY(0); }
  76%, 100% { transform: translateY(0); }
}
.messenger-bar {
  height: 52px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  background: #128C7E;
  color: #fff;
  margin-top: 48px;
}
.messenger-back { color: #fff; display: flex; }
.messenger-name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.messenger-logo {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}
.messenger-body {
  flex: 1;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    radial-gradient(circle at 20% 30%, rgba(37,211,102,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(37,211,102,0.04) 0%, transparent 50%),
    #ECE5DD;
  overflow: hidden;
}
.bubble {
  max-width: 75%;
  padding: 7px 10px;
  font-size: 11px;
  line-height: 1.4;
  border-radius: 10px;
  color: #1A1A1A;
}
.bubble.in {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.bubble.out {
  background: #DCF8C6;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.typing-bubble {
  align-self: flex-start;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  border-bottom-left-radius: 2px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.typing-bubble span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #999;
  animation: skelDots 1.2s infinite;
}
.typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.30s; }

/* G. Dark mode flash overlay (final beat before loop) */
.dark-flash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #0E0E10 0%, #1A1A1D 100%);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  animation: darkFlash 16s infinite;
}
.dark-flash::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 65% 35%, #FAF8F4 0%, #FAF8F4 38%, transparent 39%),
    #0E0E10;
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
@keyframes darkFlash {
  0%, 92%   { opacity: 0; }
  94%, 96%  { opacity: 1; }
  98%, 100% { opacity: 0; }
}

/* H. Scroll progress indicator (right edge during feed + market) */
.scroll-indicator {
  position: absolute;
  top: 100px;
  right: 4px;
  bottom: 64px;
  width: 2px;
  border-radius: 1px;
  background: rgba(124,58,237,0.08);
  z-index: 5;
  opacity: 0;
  animation: scrollIndicatorShow 16s infinite;
  overflow: hidden;
}
.scroll-indicator span {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  border-radius: 1px;
  background: var(--brand);
  animation: scrollIndicatorThumb 16s infinite;
}
@keyframes scrollIndicatorShow {
  0%, 11%   { opacity: 0; }
  13%, 30%  { opacity: 1; }
  33%, 44%  { opacity: 0; }
  47%, 60%  { opacity: 1; }
  63%, 100% { opacity: 0; }
}
@keyframes scrollIndicatorThumb {
  0%, 11%   { top: 0; }
  30%       { top: 70%; }
  33%, 45%  { top: 0; }
  60%       { top: 70%; }
  63%, 100% { top: 0; }
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 880px) {
  .hero .inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .cta-row { justify-content: center; }
  .diff-grid { grid-template-columns: 1fr; }
  .diff-cell:nth-child(odd) { border-right: none; padding-right: 0; }
  .diff-cell:nth-child(even) { padding-left: 0; }
  .editorial { padding: 70px 24px; }
  .closing { padding: 80px 24px; }
}
@media (max-width: 520px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13px; }
  .phone { transform: scale(0.92); }
}
