/* The signed-out front door (intro.js): the product first, then the way in. Tokens come from app.css. */
.intro { position: relative; overflow-x: clip; }
.intro .wrap { max-width: 1180px; }
.intro-top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 64px; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), backdrop-filter var(--dur-fast) var(--ease); border-bottom: 1px solid transparent; }
.intro-top.scrolled { background: var(--glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border-bottom-color: var(--line); }
.intro-top .wrap { height: 100%; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.intro-top .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.intro-top [data-join] { display: none; }
.intro-nav { display: none; gap: 2px; }
.intro-nav a { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--muted); transition: color var(--dur-quick) var(--ease), background-color var(--dur-quick) var(--ease); }
.intro-nav a:hover { color: var(--ink); background: var(--chip); }
@media (min-width: 900px) { .intro-nav { display: flex; } .intro-top [data-join] { display: inline-flex; } }

/* hero */
.hero { position: relative; min-height: min(100dvh, 920px); display: flex; align-items: center; padding: 96px 0 72px; isolation: isolate; }
.hero .aurora.hero-glow { position: absolute; inset: auto 0 0 0; height: 62%; border-radius: 0; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.hero-copy .display { font-size: clamp(42px, 7.2vw, 76px); letter-spacing: -.04em; line-height: 1.02; }
.hero-copy .lede { max-width: 44ch; }
.hero-cta { flex-wrap: wrap; }
.proof { min-height: 18px; }
.proof .swap, [data-proof].swap { animation: proof-in var(--dur-xslow) var(--ease) both; }
@keyframes proof-in { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--border); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translate(-50%, 4px); } }

/* the floating fan of city photos */
.fan { position: relative; height: clamp(320px, 52vw, 520px); perspective: 1400px; }
.fcard { --rel: 0; --abs: 0; position: absolute; left: 50%; top: 50%; width: clamp(180px, 34vw, 280px); aspect-ratio: 4 / 5; margin: 0; border-radius: 28px; overflow: hidden;
  transform: translate(-50%, -50%) translateX(calc(var(--rel) * 36%)) translateY(calc(var(--abs) * 14px)) rotate(calc(var(--rel) * 7deg)) scale(calc(1 - var(--abs) * .14));
  opacity: calc(1 - var(--abs) * .22); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 50px rgba(0, 0, 0, .28);
  transition: transform 700ms var(--ease-bounce), opacity 600ms var(--ease), box-shadow 600ms var(--ease); }
.fcard.front { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 30px 70px rgba(0, 0, 0, .35); }
.fcard img { width: 100%; height: 100%; object-fit: cover; }
.fcard figcaption { position: absolute; left: 12px; bottom: 12px; color: #fff; background: rgba(0, 0, 0, .28); }
.fcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); pointer-events: none; }
.fan .fcard { opacity: 0; }
.fan.in .fcard { opacity: calc(1 - var(--abs) * .22); animation: float 6s ease-in-out infinite; animation-delay: calc(var(--abs) * -1.3s); }
@keyframes float { 50% { translate: 0 -8px; } }

/* sections */
.mode { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 72px var(--gutter); align-items: center; }
@media (min-width: 960px) { .mode { grid-template-columns: 1fr 1fr; gap: 72px; padding: 120px var(--gutter); } .mode.flip .mode-copy { order: 2; } }
.mode-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mode-copy .title { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.032em; }
.mode-chip { height: 30px; box-shadow: none; background: var(--chip); cursor: default; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.ticks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }
.mode-visual { position: relative; display: flex; justify-content: center; }

.reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity 600ms var(--ease) var(--d, 0ms), transform 700ms var(--ease) var(--d, 0ms), filter 600ms var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* stay: the illustrative place */
.demo-place { width: min(100%, 400px); border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-lift); overflow: hidden; transform: rotate(-1.5deg); transition: transform var(--dur-med) var(--ease-bounce); }
.demo-place:hover { transform: rotate(0) translateY(-4px); }
.dp-photo { position: relative; aspect-ratio: 4 / 3; margin: 8px; border-radius: var(--r-well); overflow: hidden; }
.dp-photo img { width: 100%; height: 100%; object-fit: cover; }
.dp-photo .pill { position: absolute; left: 10px; top: 10px; }
.dp-body { padding: 6px 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.dp-bar { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.dp-bar > :not(.aurora) { position: relative; z-index: 1; }
.dp-bar .aurora { height: 160%; z-index: 0; --aurora-o: .3; }
.dp-bar b { display: block; font-weight: 600; }
.glass-card { background: var(--glass); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 0 0 1px var(--border), var(--shadow-menu); }
.bubble-demo { position: absolute; right: max(0px, calc(50% - 300px)); bottom: -56px; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 20px; max-width: 280px; }
.bubble-demo b { display: block; font-weight: 500; font-size: 14px; }
.bubble-demo .caption { display: block; }
.tick-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex: none; }
.mode-visual.in .bubble-demo { animation: pop-in 600ms var(--ease-bounce) 500ms both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.94); } }
@media (max-width: 600px) { .bubble-demo { position: relative; right: auto; bottom: auto; margin-top: -24px; } .mode-visual { flex-direction: column; align-items: center; } }

/* gather: the illustrative table */
.demo-event { width: min(100%, 420px); border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-lift); overflow: hidden; transform: rotate(1.5deg); transition: transform var(--dur-med) var(--ease-bounce); }
.demo-event:hover { transform: rotate(0) translateY(-4px); }
.de-cover { position: relative; aspect-ratio: 16 / 10; margin: 8px; border-radius: var(--r-well); overflow: hidden; }
.de-cover img { width: 100%; height: 100%; object-fit: cover; }
.de-cover .pill { position: absolute; left: 10px; top: 10px; }
.de-cover .de-count { left: auto; right: 10px; }
.de-body { padding: 8px 18px 18px; }
.de-body .caption { display: inline-flex; align-items: center; gap: 4px; }

/* show: globe + card */
.show-visual { gap: 16px; align-items: center; }
.globe-card { position: relative; width: min(100%, 340px); aspect-ratio: 1; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-card); overflow: hidden; flex: none; }
.globe-card canvas { width: 100%; height: 100%; display: block; }
.gc-label { position: absolute; left: 12px; bottom: 12px; }
.demo-card { position: relative; isolation: isolate; overflow: hidden; width: min(100%, 250px); aspect-ratio: 4 / 5; border-radius: 26px; background: #0E0E10; color: #F2F1F4; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-lift); transform: rotate(3deg); transition: transform var(--dur-med) var(--ease-bounce); flex: none; }
.demo-card:hover { transform: rotate(0) translateY(-4px); }
.demo-card > :not(.aurora) { position: relative; z-index: 1; }
.demo-card .aurora { height: 60%; z-index: 0; --aurora-o: .7; }
.dc-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.dc-top .brand { font-size: 12px; gap: 6px; }
.dc-top .brand .mark { width: 18px; height: 18px; border-radius: 6px; }
.dc-top .pill { height: 20px; font-size: 10px; background: rgba(255, 255, 255, .08); color: #8E8E93; }
.dc-av { width: 54px; height: 54px; border-radius: 16px; margin-top: 8px; background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.dc-name { font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.dc-line { font-size: 13px; line-height: 1.35; color: #8E8E93; }
.dc-line b { color: #F2F1F4; font-weight: 500; }
.dc-stats { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.dc-stats b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.dc-stats span { font-size: 10px; color: #8E8E93; }
@media (min-width: 960px) { .show-visual { justify-content: flex-start; } .demo-card { margin-left: -60px; margin-top: 120px; } }
@media (max-width: 959px) { .show-visual { flex-direction: column; } .demo-card { margin-top: -40px; } }

/* trust */
.trust { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 960px) { .trust { padding: 120px var(--gutter); } }
.trust .title { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.032em; max-width: 20ch; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.trust-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-card); transition: transform var(--dur-med) var(--ease-bounce), box-shadow var(--dur-med) var(--ease), opacity 600ms var(--ease) var(--d, 0ms), filter 600ms var(--ease) var(--d, 0ms); }
.trust-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.trust-tile b { font-weight: 500; font-size: 16px; letter-spacing: -.01em; margin-top: 6px; }

/* final */
.final { padding: 72px var(--gutter) 64px; display: flex; flex-direction: column; gap: 28px; scroll-margin-top: 64px; }
.final .title { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.032em; }
.final-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; margin: 0 auto; width: 100%; }
@media (min-width: 760px) { .final-grid { grid-template-columns: 1.1fr 1fr; } }
.final-card { position: relative; isolation: isolate; overflow: hidden; border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-lift); }
.final-card.quiet { box-shadow: 0 0 0 1px var(--border), var(--shadow-card); }
.final-card .aurora { height: 55%; z-index: 0; }
.fc-body { position: relative; z-index: 1; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.who-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.who-row b { font-weight: 500; }
.intro-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 32px var(--gutter) 48px; border-top: 1px solid var(--line); }
.intro-foot a { color: var(--muted); } .intro-foot a:hover { color: var(--ink); }

.shake { animation: shake 360ms var(--ease) both; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* the join steps (app.js viewJoin) */
.steps-dots { display: flex; gap: 6px; justify-content: center; }
.steps-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--line); transition: width var(--dur-med) var(--ease-bounce), background-color var(--dur-fast) var(--ease); }
.steps-dots i.on { width: 20px; background: var(--ink); }
.steps-dots i.done { background: var(--muted); }
.truths { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 760px; text-align: left; }
@media (min-width: 760px) { .truths { grid-template-columns: repeat(3, 1fr); } }
.truth { padding: 18px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 6px; }
.truth .n { font-size: 12px; font-weight: 600; color: var(--muted); }
.truth b { font-weight: 500; font-size: 16px; }
.vouch { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vouch .av.xl { box-shadow: 0 0 0 4px var(--glass), 0 20px 50px rgba(0, 0, 0, .25); }
.counts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.counts .pill { height: 30px; padding: 0 12px; font-size: 13px; }
.world-reveal { width: min(86vw, 380px); aspect-ratio: 1; }
.world-reveal canvas { width: 100%; height: 100%; display: block; }
.join-skip { color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fan.in .fcard { animation: none; }
  .scroll-hint { animation: none; }
}

.display.step { font-size: clamp(30px, 6.4vw, 50px); letter-spacing: -.034em; max-width: 18ch; }
.voice-body .display.step { margin: 0 auto; }
