/* /buy and /video: $TH and the video replies. Mobile first; the swap card styles (swap.css) carry the buy card. */

/* ------------------------------------------------------------------ steps */
.th-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.th-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px dashed var(--dash); border-radius: 16px; background: var(--surface); }
.th-steps li > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.th-steps b { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.th-steps small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.th-steps a { color: var(--blue); }

/* ------------------------------------------------------------------ facts beside the card */
.th-facts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.th-facts div { min-width: 0; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.th-facts dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.th-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-facts dd a { color: var(--ink); }

/* ------------------------------------------------------------------ the buy card */
.th-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.chip.live { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.tok.fixed { cursor: default; }
.tok.fixed::after { display: none; }
.tok.fixed:hover { border-color: var(--line); box-shadow: none; }
.presets { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.presets button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.presets button:hover { border-color: var(--blue); color: var(--blue); }
.th-soon, .th-grad { text-align: center; padding: 22px 8px 6px; }
.th-soon img { border-radius: 50%; display: block; margin: 0 auto 14px; }
.th-soon p, .th-grad p { color: var(--ink-2); font-size: 15px; line-height: 1.55; margin: 0 auto; max-width: 380px; }
.th-soon p b, .th-grad p b { color: var(--ink); display: block; font-size: 17px; margin-bottom: 4px; }
.th-x { display: inline-grid; place-items: center; text-decoration: none; }
.th-alt { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: var(--muted); }
.th-alt:hover { color: var(--blue); }
.th-grad .go { display: grid; place-items: center; text-decoration: none; }

/* ------------------------------------------------------------------ video page */
.vid-hero { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: start; }
.vid-hero > * { min-width: 0; }
.vid-hero .h-xl { margin: 14px 0 18px; }
.vid-hero .soft { color: var(--faint); }
.vid-sample { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #f9f8fa; aspect-ratio: 4 / 5; box-shadow: 0 30px 80px var(--shadow); }
.vid-sample video, .vid-sample img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-note { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--blue-soft); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.vid-note[hidden] { display: none; }
.vid-jump { margin: 16px 0 0; }

/* "See it happen": the real demo exchange, drawn like X */
.sim { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: start; }
.sim > * { min-width: 0; }
.sim-head h2 { margin: 12px 0 8px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.sim-head p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.sim-thread { grid-row: span 2; display: grid; gap: 10px; }
.xpost { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.xpost .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.xpost.bot { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); box-shadow: 0 20px 60px var(--shadow); }
.xp-who { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14.5px; }
.xp-who span { color: var(--muted); font-size: 13.5px; }
.xp-body p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.5; }
.xp-body p a { color: var(--blue); }
.xp-body video { display: block; width: 100%; max-width: 340px; aspect-ratio: 4 / 5; margin-top: 10px; border-radius: 14px; border: 1px solid var(--line); background: #f9f8fa; object-fit: cover; }
.xp-link { display: inline-block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.xp-link:hover { color: var(--blue); }
.sim-wait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; }
.sim-wait span { flex: 1; border-top: 1px dashed var(--dash); }
.sim-try { padding: 16px; border: 1px dashed var(--dash); border-radius: 18px; display: grid; gap: 12px; }
.sim-try b { font-size: 15.5px; font-weight: 600; }
.sim-try small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; }
.tries a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; }
.tries a:hover { background: var(--blue); color: #fff; }
@media (max-width: 980px) { .sim { grid-template-columns: minmax(0, 1fr); gap: 18px; } .sim-thread { grid-row: auto; } }
@media (max-width: 640px) { .sim { margin-top: 40px; } .tries a { flex: 1 1 calc(50% - 8px); justify-content: center; padding: 0 10px; } }

.link-card { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; box-shadow: 0 20px 60px var(--shadow); }
.link-card h2 { margin: 0 0 6px; font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.link-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.link-form { display: grid; gap: 12px; align-content: start; }
.handle { display: flex; align-items: center; height: 56px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); padding: 0 14px; gap: 4px; }
.handle:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.handle span { color: var(--muted); font-size: 18px; }
.handle input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); outline: none; height: 100%; }
.link-form .go { margin-top: 0; }
.link-state { display: grid; gap: 8px; }
.link-state .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; font-size: 14.5px; }
.link-state .row span { color: var(--muted); }
.link-state .row b { font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-yes { color: var(--good); }
.ok-no { color: var(--bad); }

.gallery-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 64px 0 18px; }
.gallery-h h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vcard { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.vcard video { width: 100%; aspect-ratio: 4 / 5; display: block; background: #f9f8fa; object-fit: cover; }
.vcard .meta { padding: 10px 12px 12px; display: grid; gap: 3px; }
.vcard .meta b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .meta small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; }
.gallery .empty { grid-column: 1 / -1; padding: 36px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--dash); border-radius: 18px; }

@media (max-width: 1080px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .vid-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .vid-sample { max-width: 420px; }
  .link-card { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .th-facts { grid-template-columns: 1fr; }
  .link-card { padding: 16px; margin-top: 32px; }
  .gallery-h { margin-top: 44px; }
  .vid-sample { max-width: none; }
}
