/* landing-critical:start */
:root {
  --bg:           #f6f8fc;
  --surface:      #ffffff;
  --surface-soft: #f0f4fb;
  --ink:          #0a1f44;
  --ink-mid:      #2c3e60;
  --ink-soft:     #5a6b85;
  --line:         #e2e8f3;
  --line-soft:    #eef2fa;
  --accent:       #1e6cf7;
  --accent-deep:  #1554d4;
  --accent-soft:  #e9f0ff;
  --online:       #22c55e;
  --offline:      #c9d1e0;
  --danger:       #ef4444;

  --shadow-card: 0 1px 2px rgba(10, 31, 68, .04), 0 8px 24px rgba(10, 31, 68, .06);
  --shadow-soft: 0 1px 1px rgba(10, 31, 68, .04), 0 2px 6px rgba(10, 31, 68, .04);
  --shadow-lift: 0 10px 30px rgba(10, 31, 68, .12);

  --radius-card:  14px;
  --radius-input: 10px;
  --radius-pill:  999px;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 12% -10%, rgba(30, 108, 247, .14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 110% 10%, rgba(120, 95, 255, .12), transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(34, 197, 94, .07), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 28px 20px 48px;
}

.stage {
  width: 100%;
  max-width: 560px;
  padding: 24px 8px 0;
}

.progress-bar {
  height: 3px;
  background: var(--line-soft);
  border-radius: 999px;
  margin: 0 0 28px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #7858ff);
  border-radius: 999px;
  transition: width .45s cubic-bezier(.2,.9,.3,1);
}

.screen { display: none; }
.screen.active {
  display: block;
  animation: stage-in .45s cubic-bezier(.2,.9,.3,1) both;
}

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

.screen.active > * {
  animation: child-in .55s cubic-bezier(.2,.9,.3,1) both;
}
.screen.active > *:nth-child(1) { animation-delay: .02s; }
.screen.active > *:nth-child(2) { animation-delay: .08s; }
.screen.active > *:nth-child(3) { animation-delay: .14s; }
.screen.active > *:nth-child(4) { animation-delay: .20s; }
.screen.active > *:nth-child(5) { animation-delay: .26s; }
.screen.active > *:nth-child(6) { animation-delay: .32s; }
.screen.active > *:nth-child(7) { animation-delay: .38s; }
.screen.active > *:nth-child(8) { animation-delay: .44s; }

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

@-webkit-keyframes jello-horizontal {
  0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
  30% { -webkit-transform: scale3d(1.25, .75, 1); transform: scale3d(1.25, .75, 1); }
  40% { -webkit-transform: scale3d(.75, 1.25, 1); transform: scale3d(.75, 1.25, 1); }
  50% { -webkit-transform: scale3d(1.15, .85, 1); transform: scale3d(1.15, .85, 1); }
  65% { -webkit-transform: scale3d(.95, 1.05, 1); transform: scale3d(.95, 1.05, 1); }
  75% { -webkit-transform: scale3d(1.05, .95, 1); transform: scale3d(1.05, .95, 1); }
  100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
}
@keyframes jello-horizontal {
  0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
  30% { -webkit-transform: scale3d(1.25, .75, 1); transform: scale3d(1.25, .75, 1); }
  40% { -webkit-transform: scale3d(.75, 1.25, 1); transform: scale3d(.75, 1.25, 1); }
  50% { -webkit-transform: scale3d(1.15, .85, 1); transform: scale3d(1.15, .85, 1); }
  65% { -webkit-transform: scale3d(.95, 1.05, 1); transform: scale3d(.95, 1.05, 1); }
  75% { -webkit-transform: scale3d(1.05, .95, 1); transform: scale3d(1.05, .95, 1); }
  100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); }
}

.attention-jello {
  transform-origin: center;
  will-change: transform;
}
.screen.active .attention-jello {
  -webkit-animation: jello-horizontal .9s both;
  animation: jello-horizontal .9s both;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 12px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  text-wrap: balance;
}

.hero-from-city {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: -6px 0 12px;
  text-wrap: balance;
}
.hero-from-city:empty { display: none; }

/* Inviter banner — shown on screenLanding when utm_source is present */
.inviter-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.inviter-banner[hidden] { display: none; }
.inviter-banner img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.inviter-banner .inviter-avatar-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inviter-banner .inviter-text {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.3;
}
.inviter-banner .inviter-text strong {
  color: var(--ink);
  font-weight: 700;
}

@keyframes skeleton-shimmer {
  from { background-position: 0 0; }
  to   { background-position: -200% 0; }
}

body.is-loading .skeleton-text:empty {
  display: block;
  height: 1em;
  width: 60%;
  margin: 8px auto;
  border-radius: 8px;
  background: linear-gradient(90deg, #e5e7eb 0%, #f0f3f8 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s linear infinite;
}
body.is-loading .skeleton-text:empty.skeleton-hero   { height: 1.5em; width: 80%; margin: 12px auto; }
body.is-loading .skeleton-text:empty.skeleton-narrow { width: 40%; height: .9em; }

body.is-loading #landingBtn {
  visibility: hidden;
  animation: reveal-loading-cta 0s linear 4s forwards;
}

@keyframes reveal-loading-cta {
  to { visibility: visible; }
}

h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.caption {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.caption-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.caption-stack span { display: block; }

.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;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
  margin-bottom: 4px;
  box-shadow: var(--shadow-soft);
}
input::placeholder { color: var(--ink-soft); opacity: .75; }
input:hover { border-color: #c9d4ea; }
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 108, 247, .15);
}
input.error,
input:focus.error { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }

input + input { margin-top: 10px; }

.identifier-field {
  width: 100%;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-input);
  box-shadow: var(--shadow-soft);
  margin-bottom: 4px;
  overflow: hidden;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.identifier-field:hover { border-color: #c9d4ea; }
.identifier-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 108, 247, .15);
}
.identifier-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  padding: 0 16px 0 12px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: var(--surface-soft);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s;
}
.identifier-prefix[hidden] { display: none; }
.identifier-prefix:hover, .identifier-prefix:focus { background: #eef3fb; outline: none; }
.identifier-prefix .caret { font-size: 12px; font-weight: 700; opacity: .75; margin-left: 4px; }
.identifier-field[data-mode="email"] .identifier-prefix { display: none; }

.s1lift-form { display: block; margin: 0; }
.s1lift-input-wrap {
  position: relative;
  margin: 0 0 4px;
}
.s1lift-input-fb {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1877f2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.s1lift-input-fb svg { display: block; width: 24px; height: 24px; }
.s1lift-input {
  width: 100%;
  padding: 18px 18px 18px 56px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-soft);
  margin: 0;
}
.s1lift-input::placeholder { color: var(--ink-soft); opacity: .75; }
.s1lift-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.s1lift-cta-dock { margin: 20px 0 0; }
.s1lift-cta-dock .primary { margin: 0; width: 100%; }

/* Country picker modal (mobile-first) */
.country-picker { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.country-picker[hidden] { display: none; }
.country-picker-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 40, .55); }
.country-picker-panel {
  position: relative; width: 100%; max-width: 480px; max-height: 80vh;
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 22, 40, .25); display: flex; flex-direction: column;
}
.country-picker-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--line-soft); }
.country-picker-head input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius-input);
  padding: 10px 12px; font-size: 15px; background: var(--surface-soft); margin: 0;
}
.country-picker-close { background: transparent; border: 0; font-size: 26px; color: var(--ink); padding: 0 6px; cursor: pointer; line-height: 1; }
.country-picker-list { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; }
.country-picker-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; cursor: pointer; }
.country-picker-item:hover, .country-picker-item[aria-selected="true"] { background: var(--surface-soft); }
.country-picker-item .flag { font-size: 20px; }
.country-picker-item .name { flex: 1; font-size: 15px; color: var(--ink); }
.country-picker-item .dial { color: var(--mute); font-weight: 600; font-variant-numeric: tabular-nums; }
.typo-suggestion { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.typo-suggestion[hidden] { display: none; }
.typo-suggestion-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 40, .55); }
.typo-suggestion-panel { position: relative; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 20px; max-width: 460px; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.typo-suggestion-question { margin: 0 0 16px; font-size: 16px; line-height: 1.4; word-break: break-word; overflow-wrap: anywhere; }
.typo-suggestion-question strong { word-break: break-all; }
.typo-suggestion-panel button { display: block; width: 100%; margin-top: 8px; padding: 10px; font-size: 15px; border-radius: 8px; cursor: pointer; }
.login-password-decision { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-password-decision[hidden] { display: none; }
.login-password-decision-backdrop { position: absolute; inset: 0; background: rgba(15, 22, 40, .55); }
.login-password-decision-panel { position: relative; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 20px; max-width: 460px; width: 100%; box-shadow: 0 8px 32px rgba(0,0,0,.2); text-align: center; }
.login-password-decision-panel h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; }
.login-password-decision-panel p { margin: 0 0 16px; color: var(--mute); line-height: 1.4; }
.login-password-decision-panel button { display: block; width: 100%; margin-top: 8px; padding: 10px; font-size: 15px; border-radius: 8px; cursor: pointer; }
.identifier-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: transparent;
  min-width: 0;
}
.identifier-field input:hover,
.identifier-field input:focus {
  border-color: transparent;
  box-shadow: none;
}
.identifier-mode-switch {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.35;
}

.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 8px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  transition: background .15s, color .15s;
}
.password-toggle:hover { background: var(--surface-soft); color: var(--ink); }
.password-toggle .eye-off { display: none; }
.password-toggle.is-showing .eye-on  { display: none; }
.password-toggle.is-showing .eye-off { display: block; }

button.primary,
button.secondary,
button.ghost {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .005em;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  cursor: pointer;
  margin-top: 14px;
  transition: transform .15s, background .18s, border-color .18s, box-shadow .18s, color .18s;
}

button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 1px rgba(30,108,247,.3), 0 6px 18px rgba(30,108,247,.28);
}
button.primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
button.primary:active { transform: translateY(0); }
button.primary:disabled { background: #b6c8ee; box-shadow: none; cursor: not-allowed; transform: none; }

button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}
button.secondary:hover { background: var(--surface-soft); border-color: #c9d4ea; }

#s3NoCodeBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.25;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#s3NoCodeBtn:hover,
#s3NoCodeBtn[aria-expanded="true"] {
  border-color: transparent;
  background: var(--surface-soft);
}

button.ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
button.ghost:hover { background: var(--surface); color: var(--ink); }

.error-msg {
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
  margin: 6px 0 2px;
  text-align: left;
}

.link-muted {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: color .15s;
}
.link-muted:hover { color: var(--accent); }
.link-muted.is-hidden { display: none; }

.teaser {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 6px 6px 0;
  overflow: hidden;
  margin-bottom: 22px;
}

.teaser-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 348px;
  overflow: hidden;
  position: relative;
}

.teaser-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  transition: transform .55s cubic-bezier(.2,.9,.3,1), opacity .35s;
  will-change: transform, opacity;
}
.teaser-row:not(:last-child) { border-bottom: 1px solid var(--line-soft); border-radius: 10px 10px 0 0; }

.teaser-row.is-stalker {
  background: linear-gradient(180deg, rgba(239, 68, 68, .07), rgba(239, 68, 68, .03));
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .42);
  border-bottom-color: rgba(239, 68, 68, .22);
}
.teaser-row.is-entering {
  animation: teaser-enter .55s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes teaser-enter {
  from { opacity: 0; transform: translateY(-14px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.teaser-row.is-leaving {
  animation: teaser-leave .35s ease forwards;
}
@keyframes teaser-leave {
  to { opacity: 0; transform: translateY(8px); }
}

.teaser-avatar {
  position: relative;
  width: 42px; height: 42px;
  flex-shrink: 0;
}
.teaser-avatar-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-soft);
}
.teaser-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(4.05px) saturate(.85);
  transform: scale(1.15);
}
.teaser-avatar-photo img.v {
  filter: none;
  transform: none;
}

.teaser-status-dot {
  position: absolute;
  right: 0; bottom: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  background: var(--offline);
}
.teaser-status-dot.online {
  background: var(--online);
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.teaser-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.teaser-name-bar {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #d8e0ee 0%, #e9eef8 60%, #d8e0ee 100%);
  background-size: 200% 100%;
  filter: blur(2.4px);
  animation: name-shimmer 6s linear infinite;
}
.teaser-name-bar.on {
  height: auto;
  background: none;
  filter: none;
  animation: none;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.teaser-name-bar.w-50 { width: 38%; }
.teaser-name-bar.w-65 { width: 48%; }
.teaser-name-bar.w-80 { width: 58%; }
.teaser-name-bar.w-40 { width: 30%; }

@keyframes name-shimmer {
  from { background-position: 0 0; }
  to   { background-position: -200% 0; }
}

.teaser-time {
  font-size: 12.5px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.teaser-stalker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.teaser-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--surface) 80%);
  pointer-events: none;
}

.teaser-lock {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(246, 248, 252, .5), var(--surface-soft));
}
.teaser-lock svg { color: var(--accent); }

.account-search-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line-soft);
}
.account-search-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.account-search-fb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #1877F2;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.account-search-label { display: block; margin: 0 0 8px; }
.account-search-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* Kept for preview/screen1.html mockup — production uses .familiar-faces */
.users-tracking-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 39px;
  font-size: 13px;
  color: var(--ink-soft);
}
.users-tracking-icon {
  width: 96px;
  height: 36px;
  flex-shrink: 0;
}
.users-tracking-text { line-height: 1.3; }

.familiar-faces {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}
.familiar-faces[hidden] { display: none; }
/* Reveal transition when the pool finishes resolving. Container fades and
   lifts slightly; avatars pop in one by one via --stagger-i. */
@keyframes familiar-faces-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes familiar-faces-avatar-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.familiar-faces.is-revealing {
  animation: familiar-faces-reveal 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.familiar-faces.is-revealing .familiar-faces-avatar,
.familiar-faces.is-revealing .familiar-faces-more {
  animation: familiar-faces-avatar-pop 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(120ms + var(--stagger-i, 0) * 55ms);
}
@media (prefers-reduced-motion: reduce) {
  .familiar-faces.is-revealing,
  .familiar-faces.is-revealing .familiar-faces-avatar,
  .familiar-faces.is-revealing .familiar-faces-more {
    animation: none;
  }
}

.familiar-faces-avatars {
  display: flex;
  align-items: center;
  min-height: 64px;
}
/* Landing teaser rows paint with the tentative pool blurred while
   /api/teaser-profiles is still resolving, so real faces don't pop in
   mid-view. Familiar-faces stays hidden until pending flips to false, so
   it doesn't need the blur variant. */
.teaser-avatar-photo.is-loading-photo img {
  filter: blur(6px);
}
.familiar-faces-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 3px solid var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  flex-shrink: 0;
}
.familiar-faces-avatar + .familiar-faces-avatar { margin-left: -14px; }
.familiar-faces-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.familiar-faces-more {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  border: 3px solid var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -14px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.familiar-faces-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.familiar-faces-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.familiar-faces-title strong { font-weight: 700; color: var(--ink); }
.familiar-faces-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.familiar-faces-sub:empty,
.familiar-faces-sub[hidden] { display: none; }

/* Narrow phones (≤ ~390px): 7 avatars at 60px + badge overflow the row.
   Shrink circles so the whole stack + badge fits without clipping. */
@media (max-width: 399px) {
  .familiar-faces-avatar,
  .familiar-faces-more { width: 52px; height: 52px; }
  .familiar-faces-avatars { min-height: 56px; }
  .familiar-faces-more { font-size: 13px; }
}

/* landing-critical:end */
.method-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 4px;
}
.method-list[hidden] { display: none; }

#accountList.method-list {
  gap: 12px;
}

.method-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .18s, background .18s, box-shadow .18s;
  user-select: none;
  box-shadow: var(--shadow-soft);
}
.method-option:hover { border-color: #c9d4ea; }
.method-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(30, 108, 247, .12);
}
.method-option .radio {
  width: 20px; height: 20px;
  border: 2px solid #b6c2d8;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.method-option.selected .radio { border-color: var(--accent); }
.method-option.selected .radio::after {
  content: '';
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.method-option .icon { font-size: 18px; }
.method-option-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  text-align: start;
}
.method-option-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.method-option-subtitle {
  color: var(--ink-mid);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.account-pic,
.account-pic-fallback {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.account-pic-fallback {
  background: var(--surface-soft);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.account-picker-search {
  margin: 14px 0 12px;
}
.account-picker-search label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.account-picker-search-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.account-picker-search-row input {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.account-picker-search-row .account-picker-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 104px;
  margin-top: 0;
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}
.account-picker-search-row .account-picker-search-btn:disabled {
  opacity: .72;
  cursor: wait;
}
.account-picker-search-row .account-picker-search-btn.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: account-picker-spin .7s linear infinite;
}
#accountList.is-disabled .method-option {
  pointer-events: none;
  opacity: .6;
  cursor: wait;
}

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

@media (max-width: 399px) {
  .account-picker-search-row {
    flex-direction: column;
  }
  .account-picker-search-row .account-picker-search-btn {
    width: 100%;
  }
}

.status-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-soft);
}
.status-icon[data-tone="lock"]   { background: var(--accent-soft); color: var(--accent); }
.status-icon[data-tone="search"] { background: var(--surface-soft); color: var(--ink-mid); }
.status-icon[data-tone="warn"]   { background: #fff1d6; color: #b76d00; }

.captcha-img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--surface-soft);
}

.account-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.account-header img,
.account-header-fallback {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.account-header-fallback {
  background: var(--surface-soft);
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.account-header-name { color: var(--ink); }

.success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.success-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
  flex-shrink: 0;
}

.visitor-feed {
  margin: 18px 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.visitor-feed::-webkit-scrollbar { width: 8px; }
.visitor-feed::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.visitor-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .18s;
}
.visitor-row:last-child { border-bottom: none; }
.visitor-row:hover { background: var(--surface-soft); }

.visitor-avatar-wrap {
  position: relative;
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.visitor-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}
.visitor-status-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  background: var(--offline);
}
.visitor-status-dot.online {
  background: var(--online);
  animation: dot-pulse 2s ease-out infinite;
}

.visitor-meta { min-width: 0; }
.visitor-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.visitor-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
}
.visitor-sub .dot-sep { margin: 0 6px; opacity: .6; }

.visitor-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .15s, transform .15s;
  white-space: nowrap;
  margin: 0;
}
.visitor-cta:hover { background: #d8e6ff; transform: translateY(-1px); }
.visitor-cta:active { transform: translateY(0); }

.back-bar {
  display: flex;
  align-items: center;
  margin: -8px -8px 14px;
}
.back-bar[hidden] { display: none; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  transition: background .15s, transform .15s;
}
.back-btn:hover { background: var(--surface-soft); transform: translateX(-2px); }
.back-btn svg { color: var(--accent); }

.visit-history-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.visit-history-head .visit-avatar-wrap {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.visit-history-head .visit-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-soft);
}
.visit-history-head .visit-status-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  background: var(--offline);
}
.visit-history-head .visit-status-dot.online {
  background: var(--online);
  animation: dot-pulse 2s ease-out infinite;
}
.visit-history-head .visit-account-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.visit-history-head .visit-account-summary {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.visit-history {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.visit-history::-webkit-scrollbar { width: 8px; }
.visit-history::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.visit-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.visit-row:last-child { border-bottom: none; }
.visit-row .visit-marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .65;
}
.visit-row .visit-date {
  color: var(--ink);
  font-weight: 500;
}
.visit-row .visit-time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

button.share-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #7858ff 100%);
  border: none;
  box-shadow: 0 1px 1px rgba(30,108,247,.3), 0 8px 22px rgba(120, 88, 255, .35);
}
button.share-cta:hover {
  background: linear-gradient(135deg, var(--accent-deep) 0%, #6243e5 100%);
}
button.share-cta svg { flex-shrink: 0; }

.visitor-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .005em;
}
.visitor-feed-head .count-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
}

/* ---------- Referral raffle (screen4) ---------- */

.raffle-block {
  margin-top: 22px;
  padding: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.raffle-block[hidden] { display: none; }

.raffle-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.raffle-progress {
  height: 8px;
  margin: 16px 0 8px;
  background: var(--line-soft);
}
.raffle-progress .progress-fill {
  background: linear-gradient(90deg, var(--accent) 0%, #7858ff 100%);
}

.raffle-progress-label {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--ink-mid);
}

.raffle-invites {
  margin: 14px 0 16px;
  max-height: 260px;
}
.raffle-invites .visitor-feed-head { padding: 10px 14px; }

.raffle-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}
.raffle-invite-row:first-child { border-top: none; }
.raffle-invite-row .where { color: var(--ink); font-weight: 600; }
.raffle-invite-row .when {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.raffle-invite-empty {
  padding: 18px 14px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

.raffle-share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.raffle-share-row > button { flex: 1 1 200px; }

.raffle-entry-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.raffle-entry-form[hidden] { display: none; }
.raffle-entry-form h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.raffle-entry-form .caption { margin: 0; }
.raffle-entry-form input { margin: 0; }

.raffle-entered-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(34, 197, 94, .10);
  border: 1px solid rgba(34, 197, 94, .35);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-weight: 600;
}
.raffle-entered-msg[hidden] { display: none; }

/* landing-critical:start */
@media (max-width: 540px) {
  .page { padding: 20px 14px 36px; }
  .stage { padding-top: 12px; }
  .hero-title { font-size: 26px; }
  .account-search-head { gap: 14px; }
  .account-search-photo { width: 56px; height: 56px; }
  .account-search-title { font-size: 19px; }
  .visitor-row { grid-template-columns: 44px 1fr auto; padding: 12px 14px; gap: 12px; }
  .visitor-avatar-wrap, .visitor-avatar { width: 44px; height: 44px; }
  .raffle-block { padding: 16px; }
  .raffle-share-row > button { flex: 1 1 100%; }
}

/* ---------- Compact layout when an inviter banner is present ----------
 * ?utm_source=… surfaces an inviter banner above the headline. The default
 * landing sizing pushes the primary CTA below the fold on small viewports;
 * shrink the hero + cap the teaser height + tighten every vertical gap
 * so the CTA stays visible. The teaser also becomes a click target (wired
 * in src/client/app.js). */
body.has-inviter .page { padding-top: 12px; padding-bottom: 24px; }
body.has-inviter .stage { padding-top: 8px; }
body.has-inviter .progress-bar { margin-bottom: 12px; }
body.has-inviter .inviter-banner { margin-bottom: 10px; padding: 8px 12px; }
body.has-inviter .inviter-banner img,
body.has-inviter .inviter-banner .inviter-avatar-fallback { width: 44px; height: 44px; font-size: 18px; }
body.has-inviter .hero-title,
body.has-inviter .hero-from-city,
body.has-inviter .hero-sub { display: none; }
body.has-inviter .stalker-card { margin: 8px 0 8px; padding: 8px 14px; }
body.has-inviter .stalker-eyebrow { font-size: 12.5px; }
body.has-inviter .stalker-line { font-size: 11.5px; }
body.has-inviter .teaser { margin-bottom: 10px; cursor: pointer; }
body.has-inviter .teaser-list { max-height: 300px; }
body.has-inviter .trust-strip { margin: 8px 0 0; }
body.has-inviter button.primary { margin-top: 12px; padding: 12px 18px; }

.spinner {
  width: 56px;
  height: 56px;
  margin: 22px auto;
  border-radius: 50%;
  border: 5px solid rgba(0, 0, 0, .12);
  border-top-color: var(--brand, #1877f2);
  animation: spinner-rotate 0.85s linear infinite;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }
#s3dWaiting { text-align: center; margin-left: auto; margin-right: auto; max-width: 320px; }

/* ---------- Landing: stalker card ----------
 * Subtle accent-tinted card, not an alarm. Eye glyph + bold eyebrow + soft
 * line + chevron — matches the existing accent-soft / accent palette so it
 * reads as a callout inside the same visual family as the teaser lock and
 * the primary CTA, not as a competing ad banner. The whole card is a button
 * (visitors who don't see the primary CTA still have an entry point). */
.stalker-card {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 16px 0 14px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(30, 108, 247, .18);
  border-radius: var(--radius-card);
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .15s, box-shadow .18s, background .18s;
}
.stalker-card[hidden] { display: none; }
.stalker-card:hover {
  transform: translateY(-1px);
  background: #dfe9ff;
  box-shadow: var(--shadow-soft);
}
.stalker-card:active { transform: translateY(0); }
.stalker-glyph {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(30, 108, 247, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.stalker-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.stalker-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
  word-break: break-word;
}
.stalker-line {
  font-size: 12px;
  color: var(--ink-mid);
  line-height: 1.35;
  word-break: break-word;
}
.stalker-line:empty { display: none; }
.stalker-chevron {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .15s;
}
.stalker-card:hover .stalker-chevron { transform: translateX(2px); }

/* ---------- Landing: trust strip ----------
 * Single horizontal row of three icon+label items, dot-separated, ink-soft.
 * Replaces three pill chips that fought each other for attention.
 * Wraps cleanly on narrow widths. */
.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  margin: 18px 0 6px;
  padding: 0;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .005em;
}
.trust-strip .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.trust-strip .trust-item + .trust-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line);
  transform: translateY(-50%);
}
.trust-icon {
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- Account search: free reassurance ----------
 * Tiny single-line caption under the CTA. Carries the "Free" promise without
 * a coloured pill that competes with the primary button. */
.reassure-line {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Account search: step eyebrow ----------
 * Compact uppercase label above the screen title — signals "1 of 2" without
 * borrowing a heavy progress-bar component. */
.step-indicator {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.identifier-mode-btn { margin-top: 10px; }

/* landing-critical:end */
.s1e-help {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- AFAD help screen ----------
 * Numbered steps as flat ribbon strips on the surface — coloured numeral
 * + plain label. No card chrome per step (would feel heavy stacked 3x). */
.afad-steps {
  list-style: none;
  counter-reset: afad-step;
  margin: 8px 0 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.afad-steps[hidden] { display: none; }
.afad-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}
.afad-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.afad-step-icon img {
  display: block;
  width: 28px;
  height: 28px;
}
.afad-step-text { min-width: 0; word-break: break-word; }
.afad-sub {
  margin-top: -6px;
  margin-bottom: 18px;
  font-size: 13px;
  text-align: center;
}
.afad-num-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0 32px;
}
.afad-num-box[hidden] { display: none; }
.afad-num {
  font-size: 64px;
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
  text-align: center;
}
.afad-deeplink-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}
.afad-deeplink-row button { margin-top: 0; }
.afad-back {
  display: block;
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
}

/* landing-critical:start */
/* Landing v2 CTA — inline (not sticky). Below-the-fold explainer sections
 * follow the CTA in the same document flow, so a viewport-fixed CTA would
 * cover them on scroll. A repeat CTA at the bottom (.info-cta) catches
 * scrollers, so the sticky idea is no longer needed. */
#screenLanding.active { animation: none; }
#screenLanding.active > * { animation: none; }
.landing-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 4px 0 0;
}
.landing-cta-wrap[hidden] { display: none; }
.landing-cta-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-input);
  text-align: center;
}
.landing-cta-lock svg { color: var(--accent); flex-shrink: 0; }
.landing-cta-lock b { color: var(--ink); font-weight: 700; }
.landing-cta-wrap > .primary {
  margin-top: 10px;
  width: 100%;
  box-shadow: 0 2px 4px rgba(30,108,247,.28), 0 14px 34px rgba(30,108,247,.34);
}
.landing-cta-wrap > .reassure-line {
  margin-top: 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
}
.reassure-line .sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line);
  vertical-align: middle;
  margin: 0 8px 3px;
}

/* Feature-intro card: Profile Visitors framed as a native FB feature
 * announcement. Flows into the 14-day activity chart via a hairline
 * divider so the two sections read as one panel, not two competing cards. */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 10px;
  margin: 8px 0 14px;
}
.feature-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), #4d8bff);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 108, 247, .28);
}
.feature-headings { flex: 1; min-width: 0; }
.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 2px 0 3px;
  line-height: 1.15;
}
.feature-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.feature-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 12px -14px;
}
.now-chip {
  position: absolute;
  top: 0;
  left: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  max-width: calc(100% - 110px);
  overflow: hidden;
  background: rgba(34, 197, 94, .10);
  border: 1px solid rgba(34, 197, 94, .28);
  border-radius: var(--radius-pill);
  color: #0f7a3a;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.now-chip::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: dot-pulse 2s ease-out infinite;
}
.now-chip b {
  font-weight: 800;
  color: #0f7a3a;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.now-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.chart-svg-wrap {
  position: relative;
  padding-top: 30px;
  margin-top: 12px;
}
.chart-svg { display: block; width: 100%; height: auto; }
.chart-bar { fill: #c5d1e6; }
.chart-bar.hot {
  fill: var(--danger);
  animation: bar-hot-pulse 2.4s ease-in-out infinite;
}
@keyframes bar-hot-pulse {
  0%, 100% { fill: var(--danger); }
  50%      { fill: #d63535; }
}
.chart-baseline { stroke: var(--line); stroke-width: 1; }
.chart-peak-marker { stroke: rgba(239, 68, 68, .55); stroke-width: 1; stroke-dasharray: 2 3; }
.chart-peak-label {
  position: absolute;
  top: 0;
  right: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .38);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  color: #b91c1c;
  white-space: nowrap;
  animation: peak-in 500ms cubic-bezier(.2,.9,.3,1) both;
  animation-delay: 350ms;
}
.chart-peak-label .peak-num {
  font-size: 13px;
  font-weight: 800;
}
.chart-peak-label .peak-sep {
  opacity: .6;
  font-weight: 500;
}
@keyframes peak-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.chart-axis .today {
  color: #b91c1c;
  font-weight: 700;
}

.teaser-list { max-height: 400px; }
.teaser-row { padding: 10px 12px; gap: 12px; }
.teaser-fade { display: none; }
.teaser .teaser-lock { display: none; }
.teaser-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}
.teaser-strip[hidden] { display: none; }
.teaser-strip-stack {
  display: inline-flex;
  align-items: center;
}
.teaser-strip-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--surface);
  background: var(--surface-soft);
  flex-shrink: 0;
}
.teaser-strip-avatar + .teaser-strip-avatar { margin-left: -10px; }
.teaser-strip-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(3.2px) saturate(.85);
  transform: scale(1.15);
}
.teaser-strip-more {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
  letter-spacing: -.005em;
}
.teaser-strip-more b { font-weight: 800; color: var(--ink); }
.teaser-strip-more span {
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: 4px;
}

/* Decrypt-reveal signature: one row at a time cycles blur → partial →
 * full+chip → blur. Timing is driven from JS. */
.teaser-name {
  position: relative;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.teaser-name .teaser-name-bar {
  flex: 0 0 auto;
  transition: opacity .3s ease;
}
.teaser-name-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
  opacity: 0;
  transition: opacity .25s ease;
  white-space: nowrap;
}
.teaser-name-text .dots {
  display: inline;
  color: var(--ink-soft);
  letter-spacing: 1px;
  font-weight: 700;
}
.teaser-name-text .city {
  color: var(--ink-soft);
  font-weight: 500;
}
.teaser-lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-mid);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .25s ease, transform .25s ease;
  letter-spacing: .02em;
}
.teaser-lock-chip svg { color: var(--accent); }
.teaser-row.is-revealing .teaser-avatar-photo img {
  filter: none;
  transform: none;
  transition: filter .4s ease, transform .4s ease;
}
.teaser-row.is-partial .teaser-name-bar,
.teaser-row.is-full    .teaser-name-bar { display: none; }
.teaser-row.is-partial .teaser-name-text,
.teaser-row.is-full    .teaser-name-text { opacity: 1; }
.teaser-row.is-full    .teaser-lock-chip { opacity: 1; transform: translateY(0); }
.teaser-row.is-revealing {
  background: linear-gradient(180deg, rgba(30, 108, 247, .05), rgba(30, 108, 247, .015));
  box-shadow: inset 0 0 0 1px rgba(30, 108, 247, .18);
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .teaser-name-bar,
  .teaser-name-text,
  .teaser-lock-chip,
  .teaser-avatar-photo img { transition: none !important; }
  .chart-bar.hot,
  .chart-peak-label { animation: none !important; }
}
/* landing-critical:end */

.method-hero[hidden] { display: none; }
.method-hero {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 12px auto 16px;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

.method-hint[hidden] { display: none; }
.method-hint {
  display: block;
  margin: 4px 0 16px;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-input);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-deep);
  text-align: left;
}

.code-unlock-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 14px 0 16px;
  padding: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(30, 108, 247, .18);
  border-radius: var(--radius-card);
  color: var(--ink);
  text-align: start;
}

.code-unlock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}
.code-unlock-icon svg { width: 20px; height: 20px; }

.code-unlock-title {
  margin: 0 0 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.code-unlock-copy {
  margin: 0;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.5;
}

.code-delivery-destination {
  margin-top: 6px;
  color: var(--ink-mid);
  font-size: 13px;
  line-height: 1.35;
}

.code-help-panel {
  margin-top: 4px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: none;
  text-align: center;
}
.code-help-panel[hidden] { display: none; }
#screen3.active > .code-help-panel { animation: none; }

.code-help-title {
  margin: 0 0 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.code-help-copy {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}
.code-help-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 13px;
  text-align: center;
}
.code-help-status:empty { display: none; }

.code-help-password {
  display: block;
  margin: 10px auto 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 500 13.5px/1.4 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.code-help-password:hover { color: var(--accent); }
.code-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
  cursor: pointer;
}
.code-help-link:hover:not(:disabled) { color: var(--accent); }
.code-help-link[hidden] { display: none; }
.code-help-password[hidden] { display: none; }

.two-factor-code-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
}
.two-factor-code-actions[hidden] { display: none; }

.code-help-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}

.code-entry-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.code-entry-actions #switchMethodLink {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #b9cdef;
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background .15s;
}
.code-entry-actions #switchMethodLink:not([hidden]) { display: inline-flex; }
@media (hover: hover) and (pointer: fine) {
  .code-entry-actions #switchMethodLink:hover:not(:disabled) {
    background: var(--surface-soft);
  }
}
.code-entry-actions #switchMethodLink:active:not(:disabled) {
  background: var(--accent-soft);
}
.code-entry-actions button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
}
.code-entry-actions [hidden] { display: none !important; }
.code-method-suggestion,
.code-method-error {
  margin: 0;
  padding: 4px 12px;
  color: var(--ink-mid);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
}
.code-method-error { color: #b42318; }
.code-method-error:empty { position: absolute; padding: 0; }
.code-entry-actions #switchMethodLink.is-loading,
.code-help-link.is-loading {
  cursor: progress;
}
.code-entry-actions #switchMethodLink.is-loading::before,
.code-help-link.is-loading::before {
  display: inline-block;
  vertical-align: -2px;
  width: 14px;
  height: 14px;
  margin-inline-end: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spinner-rotate .7s linear infinite;
}
.code-entry-actions button:disabled:not(.is-loading) {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 420px) {
  .code-unlock-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .code-unlock-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Landing v2: below-the-fold explainer sections ---------- */
.info-section { margin-top: 36px; }
.info-eyebrow {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 6px;
}
.info-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.15;
}
.info-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step-body { flex: 1; min-width: 0; }
.step-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.step-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.info-features {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.info-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.info-features li:last-child { border-bottom: none; }
.feat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), #dfe9ff);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feat-body { flex: 1; min-width: 0; }
.feat-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.feat-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.feat-desc b { color: var(--ink); font-weight: 700; }
.info-stat {
  margin-top: 36px;
  padding: 30px 20px 28px;
  text-align: center;
  background: linear-gradient(180deg, rgba(30, 108, 247, .08), rgba(30, 108, 247, .02));
  border: 1px solid rgba(30, 108, 247, .22);
  border-radius: var(--radius-card);
}
.info-stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 8px;
}
.info-stat-label {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.4;
  margin: 0 0 8px;
}
.info-stat-caption {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0;
}
.info-privacy {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-privacy li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.priv-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.priv-body { flex: 1; min-width: 0; }
.priv-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.priv-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.info-cta {
  margin-top: 36px;
  text-align: center;
}
.info-cta-headline {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 6px;
}
.info-cta-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.info-cta-sub b { color: var(--ink); font-weight: 700; }
.info-cta > .primary {
  margin-top: 0;
  width: 100%;
}
.info-cta > .reassure-line {
  margin-top: 10px;
}

/* When the inviter banner is present, hide the feature card and the
 * below-the-fold marketing sections entirely — the inviter path is a
 * shortcut, not a research trip through the explainer. Only the inviter
 * banner + stalker card + teaser + CTA remain. */
body.has-inviter #screenLanding .chart-card,
body.has-inviter .info-section,
body.has-inviter .info-stat,
body.has-inviter .info-cta { display: none; }

/* ---------- Screen1 CTA lift ---------- */
.s1lift-ladder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 4px 0 24px;
}
.s1lift-ladder-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.s1lift-ladder-dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.s1lift-ladder-dot.is-inactive {
  background: transparent;
  border: 1.5px solid var(--line);
}
.s1lift-ladder-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.s1lift-ladder-step { color: var(--ink); }
.s1lift-ladder-step.is-muted { color: var(--ink-soft); font-weight: 500; }

.s1lift-strip-wrap { margin: 0 0 24px; }
.s1lift-strip {
  display: flex;
  gap: 10px;
  overflow: hidden;
  padding: 2px 0;
}
.s1lift-strip[hidden] { display: none; }
.s1lift-strip-avatar {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}
.s1lift-strip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4.5px) saturate(.85);
  transform: scale(1.08);
}
.s1lift-strip-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,31,68,0) 40%, rgba(10,31,68,.35) 100%);
}
.s1lift-strip-avatar.is-online-dot::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 2px var(--surface);
  z-index: 1;
}
.s1lift-strip-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: .95;
  z-index: 1;
  pointer-events: none;
}
.s1lift-strip-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  background: var(--accent-soft);
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  flex: 1 1 0;
  box-shadow: var(--shadow-soft);
}

.s1lift-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0 0 24px;
}
.s1lift-title strong {
  background: linear-gradient(120deg, var(--accent) 0%, #7a5cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.s1lift-field { display: block; margin: 0 0 12px; }
.s1lift-field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.s1lift-anxiety {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 20px 0 0;
  text-align: center;
  padding: 0 8px;
}
.s1lift-anxiety svg { flex-shrink: 0; }

.screen.active.s3dv2-screen { position: relative; padding: 8px 0 48px; }

.s3dv2-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 6px;
}
.s3dv2-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.s3dv2-sub b { color: var(--ink); font-weight: 700; }

.s3dv2-device-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 10px;
  margin: 0 0 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(30, 108, 247, .28);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-deep);
}
.s3dv2-device-chip[hidden] { display: none; }
.s3dv2-device-chip svg { color: var(--accent-deep); }
.s3dv2-device-chip .s3dv2-device-name { color: var(--ink); font-weight: 800; }
.s3dv2-device-chip .s3dv2-device-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(30, 108, 247, .5);
}
.s3dv2-device-chip .s3dv2-device-age {
  font-variant-numeric: tabular-nums;
  color: var(--ink-mid);
  font-weight: 600;
}

.s3dv2-stages {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
}
.s3dv2-stages[hidden] { display: none; }
.s3dv2-stage-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.s3dv2-stage-node.is-done { background: var(--accent); color: #fff; }
.s3dv2-stage-node.is-active { background: #fff; border: 2px solid var(--accent); }
.s3dv2-stage-node.is-active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: s3dv2-pulse 1.8s ease-out infinite;
}
.s3dv2-stage-node.is-pending {
  background: transparent;
  border: 1.5px solid var(--line);
}
.s3dv2-stage-node svg { display: block; }
@keyframes s3dv2-pulse {
  0%   { opacity: .55; transform: scale(.85); }
  70%  { opacity: 0;   transform: scale(1.35); }
  100% { opacity: 0;   transform: scale(1.35); }
}
.s3dv2-stage-rule { height: 2px; background: var(--line); border-radius: 1px; }
.s3dv2-stage-rule.is-done { background: var(--accent); }

.s3dv2-stages-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.s3dv2-stages-labels[hidden] { display: none; }
.s3dv2-stages-labels span { text-align: center; color: var(--ink-soft); }
.s3dv2-stages-labels span.is-done { color: var(--accent-deep); }
.s3dv2-stages-labels span.is-active { color: var(--ink); }

.s3dv2-mockup-wrap { display: flex; justify-content: center; margin: 0 0 14px; }
.s3dv2-mockup-wrap[hidden] { display: none; }
.s3dv2-mockup { width: 340px; max-width: 100%; height: auto; display: block; }
.s3dv2-mockup-phone { fill: #1a1a2e; stroke: #2a2a3e; stroke-width: 1; }
.s3dv2-mockup-screen { fill: #eef3fb; }
.s3dv2-mockup-notch { fill: #000; }
.s3dv2-mockup-time {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  fill: #1a1a2e;
}
.s3dv2-mockup-card { fill: #fff; filter: drop-shadow(0 2px 6px rgba(10, 31, 68, .28)); }
.s3dv2-mockup-fb { fill: #1877f2; }
.s3dv2-mockup-fb-glyph {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  fill: #fff;
}
.s3dv2-mockup-app {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  fill: #111;
}
.s3dv2-mockup-now {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 600;
  fill: #666;
}
.s3dv2-mockup-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  fill: #111;
}
.s3dv2-mockup-body {
  font-family: var(--font-body);
  font-size: 8.5px;
  fill: #555;
}
.s3dv2-mockup-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  opacity: 0;
  transform-origin: 160px 99px;
  animation: s3dv2-pulse 2.2s ease-out infinite;
}

.s3dv2-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.s3dv2-steps[hidden] { display: none; }
.s3dv2-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}
.s3dv2-step-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), #dfe9ff);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.s3dv2-step-icon--go {
  background: linear-gradient(135deg, rgba(22, 163, 74, .22), rgba(22, 163, 74, .08));
  color: #0f7a3a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, .22);
}
.s3dv2-step-body { flex: 1; min-width: 0; }
.s3dv2-step-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.005em;
  margin: 0 0 2px;
}
.s3dv2-step-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.35;
  margin: 0;
}
.s3dv2-step-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 9px;
  letter-spacing: .04em;
}
.s3dv2-step-chevron {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  color: var(--line);
}
.s3dv2-step-chevron svg { display: block; }

.s3dv2-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 18px;
  margin: 0 auto 26px;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(10, 31, 68, .08);
}
.s3dv2-wait[hidden] { display: none; }
.s3dv2-wait-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--accent);
  animation: s3dv2-spin .9s linear infinite;
  flex-shrink: 0;
}
@keyframes s3dv2-spin { to { transform: rotate(360deg); } }
.s3dv2-wait-copy {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.s3dv2-wait-copy .s3dv2-wait-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--line);
  vertical-align: middle;
  margin: 0 8px 3px;
}
.s3dv2-wait-copy .s3dv2-wait-counter {
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep);
  font-weight: 800;
}
.s3dv2-wait.is-expired .s3dv2-wait-spinner {
  border-top-color: var(--ink-soft);
  animation-duration: 1.6s;
}
.s3dv2-wait.is-expired .s3dv2-wait-copy { color: var(--ink-mid); }

@media (prefers-reduced-motion: reduce) {
  .s3dv2-stage-node.is-active::after,
  .s3dv2-mockup-pulse { animation: none !important; }
  .s3dv2-wait-spinner { animation-duration: 3s !important; }
}

.screen.active.s0lock-screen { position: relative; padding: 8px 0 160px; }

.s0lock-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 6px;
}
.s0lock-title .s0lock-title-city { color: var(--accent-deep); }
.s0lock-sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.s0lock-sub b { color: var(--ink); font-weight: 700; }

.s0lock-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.s0lock-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease, box-shadow .18s ease;
}
.s0lock-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.s0lock-tile:active { transform: scale(.98); }
.s0lock-tile.is-revealed {
  cursor: default;
  box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-card);
}

.s0lock-tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(10px) saturate(.75);
  transform: scale(1.12);
  transition: filter .5s ease-out, transform .5s ease-out;
}
.s0lock-tile.is-revealed .s0lock-tile-photo { filter: none; transform: none; }

.s0lock-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,31,68,0) 42%, rgba(10,31,68,.55) 100%);
  pointer-events: none;
}

.s0lock-tile-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(10, 31, 68, .28);
  backdrop-filter: blur(4px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.4,.14,.3,1.5);
  pointer-events: none;
}
.s0lock-tile.is-revealed .s0lock-tile-lock {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.6);
}

.s0lock-tile-hint {
  position: absolute;
  top: calc(50% + 34px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 6px rgba(10, 31, 68, .6);
  pointer-events: none;
  transition: opacity .2s ease;
}
.s0lock-tile.is-revealed .s0lock-tile-hint { opacity: 0; }

.s0lock-tile-caption,
.s0lock-tile-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(10, 31, 68, .55);
  transition: opacity .3s ease, transform .3s ease;
}
.s0lock-tile-caption { opacity: 1; }
.s0lock-tile-name { opacity: 0; transform: translateY(4px); }
.s0lock-tile-name .dots { letter-spacing: 2px; font-weight: 800; }
.s0lock-tile-name .city { font-weight: 500; opacity: .85; }
.s0lock-tile.is-revealed .s0lock-tile-caption { opacity: 0; transform: translateY(-4px); }
.s0lock-tile.is-revealed .s0lock-tile-name { opacity: 1; transform: none; }

.s0lock-tile-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(circle, rgba(30, 108, 247, .55) 0%, rgba(30, 108, 247, .0) 70%);
  opacity: 0;
  pointer-events: none;
}
.s0lock-tile.is-revealing .s0lock-tile-ping {
  animation: s0lock-ping 620ms ease-out;
}
@keyframes s0lock-ping {
  0%   { opacity: .8; transform: translate(-50%, -50%) scale(.55); }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(2.2); }
}

@keyframes s0lock-shake {
  0%, 100% { transform: translateX(0); }
  18%      { transform: translateX(-5px); }
  36%      { transform: translateX(5px); }
  54%      { transform: translateX(-4px); }
  72%      { transform: translateX(3px); }
  90%      { transform: translateX(-2px); }
}
.s0lock-tile.is-shaking { animation: s0lock-shake 420ms ease-in-out; }
.s0lock-tile.is-shaking .s0lock-tile-lock {
  color: var(--danger);
  background: #fff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, .38);
}

/* Sticky action bar at the bottom of screen0 — always visible.
   Row 1 (progress dots + count) is always shown; row 2 (gate copy + CTA)
   fades in once every free reveal is spent. */
.s0lock-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 20px rgba(10, 31, 68, .08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s0lock-actionbar-row { display: flex; align-items: center; gap: 12px; }

.s0lock-progress {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-mid);
}
.s0lock-progress-dots { display: inline-flex; gap: 6px; }
.s0lock-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--line);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.s0lock-progress-dot.is-on {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.12);
}
.s0lock-progress.is-complete .s0lock-progress-dot.is-on {
  background: #16a34a;
  border-color: #16a34a;
}
.s0lock-progress-text { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.s0lock-progress.is-complete .s0lock-progress-text { color: #0f7a3a; }

.s0lock-gate {
  display: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.s0lock-gate.is-visible { display: flex; opacity: 1; transform: none; }
.s0lock-actionbar-body { flex: 1; }
.s0lock-gate b { font-weight: 800; color: var(--ink); }
.s0lock-gate-cta {
  flex-shrink: 0;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(30, 108, 247, .32);
}
.s0lock-gate-cta:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .s0lock-tile,
  .s0lock-tile-photo,
  .s0lock-tile-lock,
  .s0lock-tile-caption,
  .s0lock-tile-name,
  .s0lock-progress-dot,
  .s0lock-gate { transition: none !important; }
  .s0lock-tile-ping,
  .s0lock-tile.is-shaking { animation: none !important; }
}

.watchers-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px 14px 14px;
  margin: 8px 0 14px;
}
.watchers-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 6px;
}
.watchers-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.watchers-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.15;
}
.watchers-svg-wrap { position: relative; margin: 0 -4px 10px; }
.watchers-svg { display: block; width: 100%; height: auto; overflow: visible; }

.watchers-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
}
.watchers-line--stalker {
  fill: none;
  stroke: var(--danger);
  stroke-width: 1.3;
  stroke-dasharray: 3 3;
}
@keyframes watchers-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -28; }
}
.watchers-line          { animation: watchers-flow 5.5s linear infinite; }
.watchers-line--stalker { animation: watchers-flow 3.2s linear infinite; }
.watchers-line-tip { fill: var(--accent); }
.watchers-line-tip--stalker { fill: var(--danger); }

.watchers-you-card { fill: var(--surface); stroke: var(--line); stroke-width: 1; }
.watchers-you-avatar { fill: var(--accent); }
.watchers-you-bar-lg { fill: var(--line); }
.watchers-you-bar-sm { fill: var(--line-soft); }
.watchers-you-strip  { fill: var(--accent-soft); }
.watchers-you-label {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
  fill: var(--ink);
  text-transform: uppercase;
}

.watchers-avatar-img { filter: blur(2.2px) saturate(.75); }
.watchers-avatar-ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
/* fill:none — otherwise SVG's default black fill covers the image. */
.watchers-avatar-ring--stalker {
  fill: none;
  stroke: var(--danger);
  stroke-width: 1.6;
}
.watchers-pulse {
  fill: none;
  stroke: var(--danger);
  stroke-width: 1.4;
  opacity: 0;
  transform-origin: 160px 183px;
  animation: watchers-pulse 2.2s ease-out infinite;
}
@keyframes watchers-pulse {
  0%   { opacity: .55; transform: scale(.9);  }
  70%  { opacity: 0;   transform: scale(1.6); }
  100% { opacity: 0;   transform: scale(1.6); }
}

.watchers-label {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 700;
  fill: var(--ink-soft);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.watchers-label--stalker { fill: #b91c1c; font-weight: 800; }

.watchers-explainer {
  margin: 8px 4px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-mid);
}
.watchers-explainer b { color: var(--ink); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .watchers-line,
  .watchers-line--stalker,
  .watchers-pulse { animation: none !important; }
  .watchers-pulse { opacity: .35; transform: scale(1); }
}
      .ai-card {
        position: relative;
        margin: 22px 0 12px;
        padding: 18px 18px 20px;
        background: linear-gradient(180deg, #0e1428 0%, #172242 100%);
        border-radius: var(--radius-card);
        box-shadow: 0 20px 40px rgba(15, 30, 60, .32);
        color: #fff;
        overflow: hidden;
      }
      .ai-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(120% 90% at 100% 0%, rgba(34, 197, 94, .28), transparent 55%);
        pointer-events: none;
      }
      .ai-card > * { position: relative; z-index: 1; }

      .ai-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
      .ai-eyebrow {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        background: rgba(34, 197, 94, .16);
        border: 1px solid rgba(34, 197, 94, .42);
        border-radius: var(--radius-pill);
        font-family: var(--font-display);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: #7ce495;
      }
      .ai-eyebrow::before {
        content: "";
        width: 6px; height: 6px;
        border-radius: 50%;
        background: #22c55e;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
        animation: dot-pulse 2s ease-out infinite;
      }
      .ai-title {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.02em;
        margin: 0;
        line-height: 1.15;
      }
      .ai-desc {
        margin: 0;
        font-size: 13.5px;
        line-height: 1.5;
        color: rgba(255, 255, 255, .72);
      }

      .ai-calc {
        position: relative;
        margin: 0 0 18px;
        padding: 18px 16px 14px;
        background: rgba(255, 255, 255, .04);
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 14px;
      }
      .ai-calc-spark {
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .35;
      }
      .ai-calc-spark path { fill: none; stroke: #22c55e; stroke-width: 1.4; }
      .ai-calc-spark .ai-calc-spark-fill { fill: url(#aiSparkFill); stroke: none; }

      .ai-calc-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
      }
      .ai-calc-cell { min-width: 0; }
      .ai-calc-cell.right { text-align: right; }
      .ai-calc-label {
        display: block;
        font-family: var(--font-display);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .16em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .55);
        margin-bottom: 4px;
      }
      .ai-calc-amount {
        font-family: var(--font-display);
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -.02em;
        font-variant-numeric: tabular-nums;
        color: #fff;
        line-height: 1.05;
      }
      .ai-calc-amount--big {
        font-size: 34px;
        color: #7ce495;
      }
      .ai-calc-arrow {
        color: #22c55e;
        display: block;
      }

      .ai-calc-slider {
        appearance: none;
        -webkit-appearance: none;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(90deg, #22c55e var(--fill, 12%), rgba(255, 255, 255, .16) var(--fill, 12%));
        outline: none;
        margin: 4px 0 6px;
      }
      .ai-calc-slider::-webkit-slider-thumb {
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #22c55e;
        box-shadow: 0 4px 12px rgba(34, 197, 94, .38);
        cursor: pointer;
      }
      .ai-calc-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: #fff;
        border: 3px solid #22c55e;
        box-shadow: 0 4px 12px rgba(34, 197, 94, .38);
        cursor: pointer;
      }
      .ai-calc-scale {
        display: flex;
        justify-content: space-between;
        font-family: var(--font-display);
        font-size: 11px;
        font-weight: 600;
        color: rgba(255, 255, 255, .48);
        font-variant-numeric: tabular-nums;
      }
      .ai-calc-scenarios {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 14px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .08);
      }
      .ai-calc-scenario {
        display: flex;
        flex-direction: column;
        gap: 3px;
      }
      .ai-calc-scenario-label {
        font-family: var(--font-display);
        font-size: 9.5px;
        font-weight: 800;
        letter-spacing: .14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .48);
      }
      .ai-calc-scenario-value {
        font-family: var(--font-display);
        font-size: 15px;
        font-weight: 800;
        color: rgba(255, 255, 255, .82);
        font-variant-numeric: tabular-nums;
      }
      .ai-calc-scenario.is-good .ai-calc-scenario-value { color: #7ce495; }

      .ai-peers {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 12px 4px;
      }
      .ai-peers-avatars {
        display: inline-flex;
        flex-shrink: 0;
      }
      .ai-peers-avatars img {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--surface);
        box-shadow: 0 0 0 1px var(--line);
        margin-left: -16px;
        background: var(--surface-soft);
      }
      .ai-peers-avatars img:first-child { margin-left: 0; }
      .ai-peers-copy {
        font-size: 13px;
        line-height: 1.4;
        color: var(--ink-soft);
      }
      .ai-peers-copy strong {
        color: var(--ink);
        font-weight: 700;
      }
      .ai-peers-copy .ai-peers-amount {
        color: #0f7a3a;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
      }

      .ai-cta {
        display: block;
        width: 100%;
        margin: 0 0 10px;
        padding: 16px 18px;
        border: none;
        border-radius: 14px;
        background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
        color: #fff;
        font-family: var(--font-display);
        font-size: 16px;
        font-weight: 800;
        letter-spacing: .01em;
        cursor: pointer;
        box-shadow: 0 12px 24px rgba(34, 197, 94, .38);
        transition: transform .12s ease, box-shadow .12s ease;
      }
      .ai-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(34, 197, 94, .45); }
      .ai-cta:active { transform: translateY(0); }

      .ai-trust {
        display: flex;
        justify-content: center;
        gap: 14px;
        margin: 0;
        font-family: var(--font-display);
        font-size: 11.5px;
        font-weight: 700;
        color: rgba(255, 255, 255, .58);
      }
      .ai-trust span { display: inline-flex; align-items: center; gap: 4px; }
      .ai-trust svg { color: #7ce495; }

      .ai-mini {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 22px 0 10px;
        padding: 12px 14px;
        background: linear-gradient(90deg, rgba(34, 197, 94, .12), rgba(34, 197, 94, .04));
        border: 1px solid rgba(34, 197, 94, .32);
        border-radius: var(--radius-card);
        color: var(--ink);
        font-family: var(--font-display);
        text-decoration: none;
        cursor: pointer;
      }
      .ai-mini:hover { background: linear-gradient(90deg, rgba(34, 197, 94, .18), rgba(34, 197, 94, .06)); }
      .ai-mini-icon {
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: rgba(34, 197, 94, .18);
        color: #0f7a3a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .ai-mini-body { flex: 1; min-width: 0; }
      .ai-mini-title {
        font-size: 14.5px;
        font-weight: 800;
        color: var(--ink);
        line-height: 1.2;
      }
      .ai-mini-title .ai-mini-num {
        font-variant-numeric: tabular-nums;
      }
      .ai-mini-title .ai-mini-arrow { margin: 0 6px; color: #0f7a3a; }
      .ai-mini-sub {
        font-size: 12px;
        font-weight: 500;
        color: var(--ink-soft);
        margin-top: 2px;
      }
      .ai-mini-cta {
        flex-shrink: 0;
        padding: 8px 14px;
        border-radius: var(--radius-pill);
        background: #16a34a;
        color: #fff;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 12.5px;
        letter-spacing: .02em;
        border: none;
        cursor: pointer;
        white-space: nowrap;
      }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  padding: 4px 4px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.topbar-actions { display: inline-flex; align-items: center; gap: 8px; }
.topbar-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-soft);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  padding: 0;
  margin: 0;
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
  box-shadow: var(--shadow-soft);
  transition: background .15s, border-color .15s, transform .15s;
}
.topbar-icon:hover { background: var(--surface); border-color: #c9d4ea; }
.topbar-icon:active { transform: translateY(1px); }
.topbar-icon:focus-visible {
  outline: none;
  box-shadow: var(--shadow-soft), 0 0 0 4px rgba(30, 108, 247, .15);
}
.topbar-icon svg { display: block; }
.topbar-burger { background: var(--surface); }

#screenLanding { padding-bottom: 108px; }

#screen1 button.primary { margin-top: 44px; }
#screen1 .familiar-faces { margin-top: 48px; }
#screen1 .identifier-prefix .flag { font-size: 16px; line-height: 1; margin-right: 4px; }

.landing-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -2px 20px rgba(10, 31, 68, .10);
}
.landing-sticky-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}
.landing-sticky-cta .primary {
  margin: 0;
  width: 100%;
}
