:root {
  --bg: #0F1316;
  --surface: #171C20;
  --border: #262D32;
  --text: #ECE9E2;
  --text-dim: #8B9096;
  --accent: #FF9F4D;
  --accent-dark: #FF9F4D;
  --accent-tint: #40301F;
  --danger: #E2483F;
  --video-bg: #171C20;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* ---------- topbar ---------- */

.topbar {
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon svg {
  fill: #241505;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.online-counter {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}

.online-counter #onlineCount {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.online-label {
  margin-left: 4px;
}

/* ---------- shared layout ---------- */

.view {
  width: 100%;
  max-width: 560px;
  padding: 4px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-label {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
}

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 8px 0 4px;
}

.hero h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.hero p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- buttons ---------- */

.btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
}

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

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

.btn-primary {
  width: 100%;
  background: var(--text);
  color: var(--bg);
}

/* Skip owns a full row; Stop and Report split the next one down the middle.
   width:100% on all three (rather than flex:1) keeps them identical whether
   a button sits alone in its row or beside a sibling. */
.btn-skip,
.btn-stop,
.btn-report {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-report {
  color: #d14343;
  border-color: #d1434366;
}

/* ---------- filter section ---------- */

/* Every text input in one place, so a field can never again lose its colour
   by being moved between sections.

   16px is not a style choice: iOS zooms the whole page in whenever a focused
   input's font-size is below 16px, and there is no way to opt out that does
   not also break pinch-zoom for everyone. Matching Android's behaviour means
   meeting that threshold. */
.phone-field input,
.chat-form input,
.restore-field input {
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-sans);
}

.phone-field input::placeholder,
.chat-form input::placeholder,
.restore-field input::placeholder {
  color: var(--text-dim);
}

.phone-field input:focus,
.chat-form input:focus,
.restore-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}


.chips-label {
  margin-top: 2px;
}

/* Marks the one paid part of the app, right where the choice is made. */
.paid-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.interest-hint {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0 0 12px;
  transition: color 0.15s ease;
}

/* Flashed for a moment when a tap is rejected for being over the cap. */
.interest-hint.at-limit {
  color: var(--accent);
  font-weight: 600;
}

/* 95 chips is still too tall to sit inline on the landing page, so the picker
   scrolls within a fixed height — the Start button and price hint stay
   visible while browsing categories. */
.interest-picker {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px 4px;
  margin-bottom: 14px;
  text-align: left;
}

.interest-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 6px 0 8px 2px;
}

/* Per-category tally — blank until something in the category is picked. */
.category-count {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--text-dim);
  padding-right: 2px;
}

.category-count.full {
  color: var(--accent);
}

/* Material-style filter chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chip:hover {
  border-color: #3A4147;
}

.chip.selected {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.chip .check {
  display: none;
  width: 14px;
  height: 14px;
}

.chip.selected .check {
  display: inline-flex;
}

.phone-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phone-row input {
  margin-bottom: 0 !important;
}

/* The +268 sits inside the field's border so it reads as part of the number
   rather than a separate thing to fill in — people type the 8 local digits. */
.phone-field {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding-left: 12px;
}

.phone-field:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.phone-prefix {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-dim);
  padding-right: 8px;
  border-right: 1.5px solid var(--border);
}

/* The field's chrome now lives on .phone-field, so the input itself goes bare
   — otherwise there's a second border and a second focus ring inside it. */
/* The field's chrome lives on .phone-field, so the input itself goes bare —
   otherwise there is a second border and a second focus ring inside it. */
.phone-field input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  letter-spacing: 0.08em;
  /* Typed digits match the +268 beside them: same font, same size, same
     colour, so the number reads as one continuous thing. */
  font-family: var(--font-mono) !important;
  font-size: 16px;
  color: var(--text-dim);
}

/* The hint sits a shade back from the digits, so an empty field is visibly
   empty rather than looking like it already contains a number. */
.phone-field input::placeholder {
  color: #5c6268;
}

.phone-field input:focus {
  /* The ring belongs on the wrapper, which includes the +268. */
  outline: none !important;
}

.phone-field:has(input.invalid) {
  border-color: #d14343;
}

.phone-error {
  font-family: var(--font-sans);
  font-size: 12px;
  color: #d14343;
  text-align: left;
  margin: 0;
  min-height: 15px;
}

.price-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  text-align: center;
  margin: 0 0 4px;
  min-height: 16px;
}

/* ---------- moderation notice ---------- */

.moderation-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

.moderation-notice svg {
  flex-shrink: 0;
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
}

.feature-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- video frame ---------- */

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--video-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video.remote {
  position: absolute;
  inset: 0;
  background: var(--video-bg);
}

.video.local {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26%;
  height: 26%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  /* Animates between full-frame preview and the corner thumbnail below, so
     the shrink reads as "your video moved aside", not as a layout jump. */
  transition: top 0.28s ease, right 0.28s ease, width 0.28s ease, height 0.28s ease, border-radius 0.28s ease;
}

/* Before Start there is nobody on the other side, so the self-view has the
   whole frame — a 26% thumbnail floating over an empty box gave no useful
   look at yourself right when you're checking your camera and framing. */
.video-frame.preview .video.local {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  border-color: transparent;
}

/* Nothing is being received yet; keeping it in the tree preserves the
   element's srcObject wiring while it has nothing to show. */
.video-frame.preview .video.remote {
  opacity: 0;
}

.frame-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(15, 19, 22, 0.6);
  border: none;
  color: #ECE9E2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn.off {
  background: var(--danger);
  color: #fff;
}

.report-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
}

.watermark {
  position: absolute;
  bottom: 14px;
  left: 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  z-index: 3;
  opacity: 0.9;
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(15, 19, 22, 0.72);
  z-index: 4;
  transition: opacity 0.2s ease;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: flex;
}

.overlay p {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  max-width: 260px;
  margin: 12px 0 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

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

/* ---------- call card ---------- */

.call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  min-height: 60px;
}

#rulesPanel h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
}

.rules-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.rules-list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
  color: var(--text);
}

.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  font-size: 14px;
}

.chat-msg {
  max-width: 85%;
}

.chat-msg .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  font-weight: 600;
}

.chat-msg.you {
  align-self: flex-end;
  text-align: right;
}

/* The status line. Fixed in place above the log: it never scrolls, and a new
   message replaces the previous one rather than stacking up. */
.chat-status {
  flex-shrink: 0;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- controls row ---------- */

/* Always-visible statement of what the call is doing. Sits above the buttons
   so it's readable even when the video frame is scrolled off a short screen,
   where the overlay alone would be invisible. */
.call-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
}

.call-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.call-status.searching::before {
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite;
}

.call-status.connected::before {
  background: #3fb950;
}

.call-status.connected {
  color: var(--text);
  font-weight: 600;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.controls-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Equal halves regardless of label length — minmax(0, 1fr) rather than 1fr,
   so "Report" can't claim more room than "Stop". */
.controls-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-form input {
  flex: 1;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 16px; /* 16px keeps iOS from zooming when the chat box is focused */
  color: var(--text);
  min-width: 0;
}

.chat-form input::placeholder {
  color: var(--text-dim);
}

.chat-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.send-btn {
  padding: 0 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #241505;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.send-btn:disabled,
.chat-form input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
/* ---------- restore a pass ---------- */

.link-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--text);
}

/* The restore panel is a distinct task from paying, so it is set apart from
   the payment copy above it rather than running on from it. */
.restore-toggle {
  margin-top: 18px;
}

.restore-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.restore-label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: left;
  margin: 0;
}

.restore-field {
  display: flex;
  gap: 10px;
}

/* The panel is --surface now, so the field has to sit a shade below it or the
   two merge into one flat block with no visible input. */
.restore-box .restore-field input {
  background: var(--bg);
}

/* The error sits under the field rather than crowding it, and takes no space
   at all until there is something to say. */
.restore-box .phone-error:empty {
  display: none;
}

.restore-box .phone-error {
  margin: 0;
}

.restore-field input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px; /* 16px keeps iOS from zooming when pasting a transaction ID */
}

.restore-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* ---------- static content pages ---------- */

.topbar .brand {
  text-decoration: none;
  color: inherit;
}

.topbar-link {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}

.topbar-link:hover {
  color: var(--text);
}

.doc {
  display: block;
  text-align: left;
  line-height: 1.65;
}

.doc h1 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}

.doc h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 8px;
}

.doc h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
}

.doc p,
.doc li {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.doc li {
  margin-bottom: 7px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 14px;
}

.doc strong {
  color: var(--text);
}

.doc a {
  color: var(--accent);
}

.doc code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.doc-lead {
  font-size: 15.5px !important;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 22px !important;
}

.doc-updated {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: var(--text-dim);
  margin-bottom: 20px !important;
}

.rules-more {
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  /* Bottom margin matters: this paragraph sits directly above the Start
     button, and with no gap the two read as one block. */
  margin: 12px 0 18px;
}

.rules-more a,
.pay-note a {
  color: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
  width: 100%;
  max-width: 560px;
  padding: 26px 20px 34px;
  margin-top: 10px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

.footer-legal {
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.footer-legal a {
  color: var(--text-dim);
}

/* ---------- home: paid-feature card ---------- */

.upsell-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

/* The links under the buttons are a different kind of action — secondary,
   and rarely wanted. They need air between them and the button above, or
   "Get a pass" and "Already paid?" read as one crowded block. */
.upsell-card .link-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
}

/* Consecutive links belong to each other, so they sit closer together than
   they do to the button. */
.upsell-card .link-btn + .link-btn {
  margin-top: 10px;
}

.upsell-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.upsell-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 14px;
}

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

/* ---------- step screens ---------- */

.back-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
}

.back-link:hover {
  color: var(--text);
}

.step-head {
  text-align: center;
}

.step-head h1,
.step-head h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.step-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
}

/* The picker gets the whole screen now, so it no longer needs its own
   scroll box fighting the page scroll. */
#interestsView .interest-picker {
  max-height: none;
  border: none;
  padding: 0;
  margin-bottom: 0;
}

.step-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg) 26%);
  padding: 16px 0 4px;
}

.step-summary {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: center;
  margin: 0 0 10px;
}

/* ---------- payment screen ---------- */

.order-summary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.order-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}


.order-price {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.order-detail {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.pay-heading {
  margin-bottom: 0;
}

.pay-method {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-method-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pay-method-name {
  font-size: 15px;
  font-weight: 700;
}

.pay-method-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.pay-method-note {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 0;
}

/* The methods available inside Paddle's checkout, listed so people can see
   their option is there before committing to opening the window. */
.pay-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pay-options li {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
}

.pay-footnote {
  text-align: center;
}

.pay-footnote p {
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 6px;
}

.pay-footnote a {
  color: var(--accent);
}

/* ---------- result screen ---------- */

.result-card {
  text-align: center;
  padding: 26px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.result-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-dim);
}

.result-badge.ok {
  border-color: #3fb950;
  color: #3fb950;
}

.result-badge.bad {
  border-color: #d14343;
  color: #d14343;
}

.result-card h1,
.result-card h2 {
  font-size: 23px;
  font-weight: 800;
  margin: 0;
}

.result-body {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 8px;
  max-width: 380px;
}

.result-card .btn {
  width: 100%;
  max-width: 320px;
}

/* ---------- face-presence warning ---------- */

/* Deliberately amber, not red: at this point nothing has been decided and the
   likeliest cause is bad lighting, not bad behaviour. */
.face-banner {
  position: absolute;
  left: 12px;
  right: 12px;
  /* Above the flag chip and the report button, both of which sit along the
     bottom edge — nothing in this frame may overlap anything else. */
  bottom: 56px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(15, 19, 22, 0.88);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  z-index: 5;
}

/* ---------- live figures ---------- */

.upsell-live {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 12px;
  min-height: 15px;
}

/* Sits inside the chip. Blank when nobody is there, which is the point —
   an empty country should look empty before you pick it. */
.chip-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.chip-count.live {
  color: var(--accent);
  font-weight: 700;
}

.chip-count:empty {
  display: none;
}

/* ---------- pinned step actions ---------- */

/* Always in view: the picker is hundreds of chips long, and an action bar
   that scrolls away is one people cannot find. */
.step-actions.pinned {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: var(--bg);
  border-top: 1px solid var(--border);
  /* env() covers the iPhone home indicator and any browser chrome pinned to
     the bottom edge; the added 14px keeps the buttons off the edge on every
     other device, where the inset resolves to zero. */
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  margin-top: 4px;
}

.step-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 10px;
}

.step-buttons .btn {
  width: 100%;
}

/* ---------- peer country flag ---------- */

/* Bottom-right of the video, padded clear of both edges so it never collides
   with the rounded corner or the face-presence banner above it. */
.peer-flag {
  position: absolute;
  /* Bottom-LEFT. The report button occupies bottom-right at the same depth,
     and two absolutely positioned chips in one corner will always collide. */
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 90px); /* never run under the report button */
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 19, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 3;
  pointer-events: none;
}

.peer-flag-emoji {
  font-size: 18px;
  line-height: 1;
}

.peer-flag-name {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}


/* ---------- per-method price ---------- */

.pay-method-price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.pay-method-region {
  margin-top: -4px !important;
}

.order-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

/* ---------- Home page FAQ ---------- */
/* Content written for people arriving from a search result, who have a
   question before they have any intention of tapping start. Collapsed by
   default so it never pushes the buttons off the first screen. */
.faq {
  margin-top: 28px;
}

.faq h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Safari draws its own disclosure triangle through ::-webkit-details-marker
   and ignores list-style, so both have to be turned off. */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- recovery code, shown once a payment succeeds ---------- */
/* Deliberately prominent. This is the only moment the buyer is guaranteed to
   see the code, and a pass they cannot recover is a support request at best
   and a refund request at worst. */
.token-box {
  margin: 4px 0 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  text-align: left;
}

.token-label {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.token-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.token-value {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  /* 13px keeps a 36-character UUID on one line on a narrow phone; it may
     still scroll on the very smallest, hence overflow rather than wrap —
     a code broken across lines is a code copied wrongly by hand. */
  font-size: 13px;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
  line-height: 1.6;
}

.token-note {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
