/* Cuyo · cuyo.us
   The app's own look: black, rounded type, soft cards, wobbly blobs, lime for "good". */

:root {
  --bg: #000;
  --panel: #0B0B0C;
  --card: #141416;
  --raised: #1E1E21;
  --stroke: rgba(255, 255, 255, .09);
  --text: #fff;
  --muted: rgba(255, 255, 255, .58);
  --lime: #B8F09A;
  --teal: #2FB59A;
  --orange: #E8622A;
  --pink: #F0436E;
  --violet: #B06CE0;
  --yellow: #E2C73A;
  --sky: #86C8E8;
  --pastel: linear-gradient(135deg, #A8E6F0 0%, #B9A8F5 38%, #F8B9C8 70%, #FFD9A8 100%);
  --font: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Nunito", sans-serif;
  --radius: 26px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }
.center { text-align: center; }
.fine { color: var(--muted); font-size: 13px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: #000; padding: 8px 14px; border-radius: 99px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 10px; }

/* ── Top bar ───────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; }
.brand-cuyo { width: 34px; height: 34px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav .nav-get { color: #000; background: var(--lime); padding: 8px 16px; border-radius: 99px; }
@media (max-width: 560px) { .top nav a:not(.nav-get) { display: none; } }

main, .foot { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 72px 0 56px;
}
.eyebrow { color: var(--lime); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin: 20px 0 28px; max-width: 34em; }
.hero .fine { margin-top: 14px; }

.hero-cuyo { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; justify-self: center; }
.blob-stage { position: absolute; inset: 0; }
.blob { position: absolute; }
.blob path { transition: d 1.2s ease; }
.b1 { inset: 4% 6% 10% 2%; fill: #B9A8F5; opacity: .9; }
.b2 { width: 34%; right: 0; top: 2%; fill: var(--lime); }
.b3 { width: 26%; left: 4%; bottom: 4%; fill: #F8B9C8; }
.cuyo-big {
  position: absolute; left: 50%; top: 54%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0;
}
.cuyo-big svg, [data-cuyo] svg { width: 100%; height: 100%; overflow: visible; }

/* Speech bubble shaped like a card (the app's CuyoSays) */
.bubble {
  position: absolute; left: 50%; top: 2%; transform: translateX(-30%);
  max-width: 250px; padding: 12px 16px; border-radius: 16px;
  background: #fff; color: #111; font-weight: 700; font-size: 15px; line-height: 1.35;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  border: 2px solid #111;
}
.bubble::after {
  content: ""; position: absolute; left: 22%; bottom: -10px; width: 16px; height: 16px;
  background: #fff; border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg);
}
.bubble.pop { animation: pop .28s steps(3) both; }
@keyframes pop { from { transform: translateX(-30%) scale(.8); opacity: .3; } to { transform: translateX(-30%) scale(1); opacity: 1; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 12px; text-align: left; }
  .hero-cuyo { max-width: 340px; order: -1; }
}

/* ── Download buttons ──────────────────────────────────────────── */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-width: 200px; padding: 10px 18px 10px 14px; border-radius: 16px;
  background: #fff; color: #000; text-decoration: none; border: 0;
}
.store .icon { width: 30px; height: 30px; display: grid; place-items: center; }
.store .icon svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .65; line-height: 1.2; }
.store b { display: block; font-size: 18px; line-height: 1.15; }
.store.soon { background: var(--raised); color: var(--text); border: 1px solid var(--stroke); cursor: default; }
.store.soon small { opacity: .7; }
.stores.dark .store:not(.soon) { background: #000; color: #fff; }
.stores.dark .store.soon { background: rgba(0, 0, 0, .78); color: #fff; }

/* ── Sections ──────────────────────────────────────────────────── */

.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 17px; }

/* ── Preview ───────────────────────────────────────────────────── */

.preview { padding: 56px 0; }
.preview-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; max-width: 920px; margin: 0 auto; }

.tabs { display: grid; gap: 10px; }
.tabs [role="tab"] {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--stroke);
  transition: background .2s, border-color .2s;
}
.tabs [role="tab"] b { display: block; font-size: 16px; }
.tabs [role="tab"] small { display: block; color: var(--muted); font-size: 13px; }
.tabs [role="tab"][aria-selected="true"] { background: rgba(184, 240, 154, .1); border-color: var(--lime); }
.tab-blob {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%;
}
.tab-blob svg { width: 22px; height: 22px; fill: none; stroke: #000; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lime-bg { background: var(--lime); } .sky-bg { background: var(--sky); } .orange-bg { background: var(--orange); }
.violet-bg { background: var(--violet); } .teal-bg { background: var(--teal); } .pink-bg { background: var(--pink); } .yellow-bg { background: var(--yellow); }

@media (max-width: 860px) {
  .preview-grid { grid-template-columns: 1fr; gap: 24px; }
  .tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs [role="tab"] small { display: none; }
  .tabs [role="tab"] { padding: 8px 14px 8px 8px; }
  .tab-blob { width: 34px; height: 34px; }
  .tab-blob svg { width: 18px; height: 18px; }
}

/* The phone */
.phone-wrap { justify-self: center; width: min(330px, 100%); }
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 18.6;
  border-radius: 46px; padding: 46px 14px 16px;
  background: var(--panel);
  border: 10px solid #1a1a1c;
  box-shadow: 0 0 0 1px #2a2a2e, 0 40px 80px rgba(0, 0, 0, .6), 0 0 120px rgba(185, 168, 245, .12);
  overflow: hidden;
}
.notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 99px; }
.screen { height: 100%; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; display: flex; flex-direction: column; gap: 12px; }
.screen::-webkit-scrollbar { display: none; }
.screen[hidden] { display: none; }
.screen > * { flex-shrink: 0; }
.screen.enter { animation: enter .25s steps(4) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sample-note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }

.app-head { display: flex; align-items: center; justify-content: space-between; font-size: 20px; }
.app-head .muted { font-size: 13px; }
.pill-btn { font-size: 12px; font-weight: 700; background: var(--lime); color: #000; padding: 5px 11px; border-radius: 99px; }

.banner { border-radius: 20px; padding: 14px; color: #000; position: relative; overflow: hidden; }
.pastel { background: var(--pastel); }
.banner small { font-size: 10px; font-weight: 700; opacity: .6; letter-spacing: .06em; }
.banner strong { display: block; font-size: 26px; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips span { font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .6); padding: 3px 9px; border-radius: 99px; }
.chips .up { background: #000; color: var(--lime); }

.binders { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); }
.chip.on { background: var(--lime); color: #000; border-color: var(--lime); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-tile { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; text-align: left; padding: 0; }
.card-tile .art { aspect-ratio: 63 / 70; display: grid; place-items: center; }
.card-tile .info { padding: 7px 8px 9px; }
.card-tile b { display: block; font-size: 12px; line-height: 1.25; }
.card-tile small { display: block; font-size: 10px; color: var(--muted); }
.card-tile .val { font-size: 13px; font-weight: 800; color: var(--lime); }
.card-tile.pulse { animation: pulse .5s steps(4); }
@keyframes pulse { 50% { transform: scale(1.04); } }

/* Card "art": made-up cards, drawn from shapes */
.art-face { width: 72%; aspect-ratio: 63 / 88; border-radius: 6px; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.art-face::before { content: ""; position: absolute; inset: 9% 8% 46%; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.art-face::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 10%; height: 26%; border-radius: 3px; background: rgba(255, 255, 255, .22); }
.art-face .gem { position: absolute; left: 50%; top: 31%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 46% 54% 50% 50%; background: rgba(0, 0, 0, .25); }

/* Scan */
.viewfinder { position: relative; aspect-ratio: 3 / 3.4; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #2a2a30, #0d0d0f 70%); overflow: hidden; display: grid; place-items: center; }
.target-card { width: 52%; transition: transform .4s steps(4); }
.target-card .art-face { width: 100%; }
.corner { position: absolute; width: 26px; height: 26px; border: 3px solid var(--lime); }
.tl { top: 12%; left: 18%; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.tr { top: 12%; right: 18%; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.bl { bottom: 10%; left: 18%; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.br { bottom: 10%; right: 18%; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scanline { position: absolute; left: 16%; right: 16%; height: 3px; background: var(--lime); box-shadow: 0 0 16px var(--lime); top: 14%; animation: scan 1.6s steps(12) infinite alternate; }
.viewfinder.found .scanline { display: none; }
.viewfinder.found .corner { border-color: #fff; }
@keyframes scan { to { top: 86%; } }
.scan-result { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 10px; animation: enter .3s steps(4) both; }
.scan-result[hidden] { display: none; }
.scan-result b { display: block; font-size: 14px; }
.scan-result small { display: block; font-size: 11px; color: var(--muted); }
.scan-result .price { font-weight: 800; color: var(--lime); font-size: 14px; }
.mini-art { width: 40px; flex: none; }
.mini-art .art-face { width: 100%; }
.lime-btn { margin-left: auto; background: var(--lime); color: #000; border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 800; font-size: 13px; }
.lime-btn.wide { margin: 0; width: 100%; padding: 12px; font-size: 14px; }
.ghost-btn { background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); border-radius: 99px; padding: 9px 14px; font-weight: 700; font-size: 13px; }
.toast { display: flex; align-items: center; gap: 8px; align-self: center; background: #fff; color: #111; border-radius: 99px; padding: 5px 14px 5px 6px; font-weight: 800; font-size: 13px; animation: enter .3s steps(4) both; }
.toast[hidden] { display: none; }
.toast [data-cuyo] { width: 30px; height: 30px; }

/* Market */
.search { display: flex; align-items: center; gap: 8px; background: #000; border: 1px solid var(--stroke); border-radius: 99px; padding: 0 14px; height: 40px; color: var(--muted); }
.search input { all: unset; flex: 1; color: var(--text); font-size: 13px; min-width: 0; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; position: relative; }
.tile .art { background: var(--raised); display: grid; place-items: center; padding: 10px 0; }
.tile .art .art-face { width: 54%; }
.tile .badge { z-index: 1; position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; color: #000; padding: 2px 6px; border-radius: 6px; }
.tile .info { padding: 7px 8px 9px; }
.tile b { display: block; font-size: 12px; line-height: 1.2; }
.tile .p { font-size: 15px; font-weight: 800; }
.tile small { display: block; font-size: 10px; color: var(--muted); }
.tile .msg { margin-top: 6px; width: 100%; border: 0; background: #fff; color: #000; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 5px; }
.market-note { font-size: 11px; color: var(--muted); text-align: center; }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; font-size: 13px; padding: 20px 0; }

/* Portfolio */
.value-block small { color: var(--muted); font-size: 12px; }
.value-block strong { display: block; font-size: 30px; font-weight: 800; }
.up { color: var(--lime); font-weight: 700; font-size: 13px; }
.chart { width: 100%; height: 150px; }
.ranges { display: flex; gap: 6px; }
.ranges button { flex: 1; border: 1px solid var(--stroke); background: rgba(255, 255, 255, .06); border-radius: 99px; font-size: 12px; font-weight: 800; padding: 6px 0; }
.ranges button.on { background: var(--lime); color: #000; border-color: var(--lime); }
.pnl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.pnl div { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 8px; }
.pnl small { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; }
.pnl b { font-size: 13px; }

/* Trade */
.qr { align-self: center; background: #fff; padding: 12px; border-radius: 20px; }
.qr canvas { width: 148px; height: 148px; image-rendering: pixelated; }
.claim { display: flex; gap: 10px; align-items: center; background: rgba(184, 240, 154, .12); border: 1px solid rgba(184, 240, 154, .5); border-radius: 18px; padding: 10px; animation: enter .3s steps(4) both; }
.claim[hidden] { display: none; }
.claim-blob { flex: none; width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: #000; font-weight: 900; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; }
.claim b { display: block; font-size: 14px; }
.claim small { display: block; font-size: 11px; color: var(--muted); }
.tip[hidden] { display: none; }
.tip { font-size: 11px; font-weight: 600; background: rgba(226, 199, 58, .12); border: 1px solid rgba(226, 199, 58, .35); border-radius: 12px; padding: 8px 10px; }
.sold { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 14px; animation: enter .3s steps(4) both; }
.sold[hidden] { display: none; }
.sold small { color: var(--muted); font-size: 11px; }

/* Card show tables */
.signal { font-size: 11px !important; font-weight: 800; color: #000; background: var(--yellow); padding: 3px 9px; border-radius: 99px; }
.signal.online { background: var(--lime); }
.radar { position: relative; aspect-ratio: 1; width: 78%; margin: 4px auto; border-radius: 50%; background: radial-gradient(circle, rgba(226, 199, 58, .1), transparent 70%); overflow: hidden; }
.ring { position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; inset: 0; }
.r2 { inset: 17%; } .r3 { inset: 34%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(226, 199, 58, .35), transparent 25%); animation: sweep 3s steps(24) infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10px; font-weight: 800; background: #fff; color: #000; border-radius: 99px; padding: 2px 7px; }
.dot { position: absolute; width: 14px; height: 14px; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; border: 2px solid #000; }
.d1 { left: 22%; top: 26%; background: var(--lime); } .d2 { right: 18%; top: 40%; background: var(--orange); } .d3 { left: 38%; bottom: 14%; background: var(--violet); }
.tables { display: grid; gap: 6px; }
.table-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 8px 10px; }
.table-row .swatch { width: 26px; height: 26px; flex: none; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; }
.table-row b { display: block; font-size: 13px; }
.table-row small { display: block; font-size: 10px; color: var(--muted); }
.table-row .go { margin-left: auto; color: var(--muted); }
.back { align-self: flex-start; background: none; border: 0; color: var(--lime); font-weight: 800; font-size: 13px; padding: 0; }
.table-head b { display: block; font-size: 17px; }
.table-head small { color: var(--muted); font-size: 11px; }
.rows { display: grid; gap: 5px; }
.row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--stroke); border-radius: 12px; padding: 7px 9px; }
.row .thumb { width: 26px; flex: none; }
.row .thumb .art-face { width: 100%; }
.row .thumb.none { height: 36px; border-radius: 4px; border: 1px dashed rgba(255, 255, 255, .25); }
.row b { display: block; font-size: 12px; }
.row small { display: block; font-size: 10px; color: var(--muted); }
.row .p { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--lime); }
.tiny { font-size: 10px; color: var(--muted); text-align: center; }
.mine-card { position: relative; background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 12px 64px 12px 12px; }
.mine-card b { display: block; font-size: 14px; }
.mine-card small { display: block; font-size: 11px; color: var(--muted); }
.toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 46px; height: 28px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .18); padding: 3px; }
.toggle span { display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-checked="true"] { background: var(--lime); }
.toggle[aria-checked="true"] span { transform: translateX(18px); }
.mine-on { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: rgba(226, 199, 58, .1); border: 1px solid rgba(226, 199, 58, .35); border-radius: 18px; padding: 14px; animation: enter .3s steps(4) both; }
.mine-on[hidden] { display: none; }
.mine-on small { font-size: 11px; color: var(--muted); }
.pulse-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(226, 199, 58, .6); animation: beacon 1.4s steps(8) infinite; }
@keyframes beacon { to { box-shadow: 0 0 0 16px rgba(226, 199, 58, 0); } }
.shopcode { margin-top: 6px; background: #fff; padding: 8px; border-radius: 14px; width: 104px; height: 104px; image-rendering: pixelated; }

/* Grading */
.grade-card { position: relative; width: 58%; margin: 0 auto; }
.grade-card [data-grade-art] .art-face { width: 100%; }
.guides span { position: absolute; z-index: 1; background: var(--lime); opacity: .85; }
.gl, .gr { top: -6%; bottom: -6%; width: 2px; } .gl { left: 7%; } .gr { right: 9%; }
.gt, .gb { left: -6%; right: -6%; height: 2px; } .gt { top: 6%; } .gb { bottom: 8%; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.score { background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 8px 10px; }
.score small { display: block; font-size: 10px; color: var(--muted); }
.score b { font-size: 16px; }
.score .bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 5px; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }
.grade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* Chat */
.about { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--stroke); border-radius: 14px; padding: 8px; }
.about small { display: block; font-size: 10px; color: var(--muted); }
.about b { display: block; font-size: 13px; }
.msgs { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.msg-b { max-width: 78%; padding: 7px 11px; border-radius: 16px; font-size: 13px; line-height: 1.35; animation: enter .25s steps(3) both; }
.msg-b.them { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 5px; }
.msg-b.me { align-self: flex-end; background: var(--lime); color: #000; border-bottom-right-radius: 5px; }
.msg-b.typing { color: var(--muted); }
.composer { display: flex; gap: 6px; align-items: center; }
.composer input { flex: 1; min-width: 0; background: #000; border: 1px solid var(--stroke); border-radius: 99px; padding: 9px 12px; color: var(--text); font: inherit; font-size: 13px; }
.composer .lime-btn { margin: 0; }
.friends-row { display: flex; align-items: center; gap: 4px; }
.friends-row small { margin-left: 8px; font-size: 10px; color: var(--muted); line-height: 1.3; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #000; background: var(--c); border: 2px solid var(--panel); margin-left: -6px; }
.avatar:first-child { margin-left: 0; }

/* ── Spotlight: card show tables ───────────────────────────────── */

.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.spotlight h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.spotlight .lede { margin: 16px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--muted); }
.ticks li b { color: var(--text); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #000; background: var(--yellow); border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; }
.lime-btn.big { margin: 0; padding: 13px 22px; font-size: 15px; }
.spot-art { position: relative; }
.hall { position: relative; aspect-ratio: 1.1; border-radius: 34px; background: radial-gradient(circle at 50% 55%, rgba(226, 199, 58, .18), transparent 60%), var(--card); border: 1px solid var(--stroke); overflow: hidden; }
.booth { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 30%; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 2; }
.booth [data-cuyo] { width: 100%; aspect-ratio: 1; }
.booth small { font-weight: 800; font-size: 12px; background: var(--yellow); color: #000; padding: 3px 10px; border-radius: 99px; }
.wave { position: absolute; left: 50%; top: 55%; border: 2px solid rgba(226, 199, 58, .45); border-radius: 50%; transform: translate(-50%, -50%); animation: ripple 3s steps(16) infinite; }
.w1 { width: 40%; aspect-ratio: 1; } .w2 { width: 40%; aspect-ratio: 1; animation-delay: 1s; } .w3 { width: 40%; aspect-ratio: 1; animation-delay: 2s; }
@keyframes ripple { from { width: 30%; opacity: 1; } to { width: 130%; opacity: 0; } }
.phone-chip { position: absolute; z-index: 3; font-size: 12px; font-weight: 700; background: #fff; color: #111; padding: 6px 11px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); white-space: nowrap; }
.c1 { left: 6%; top: 10%; } .c2 { right: 5%; top: 24%; } .c3 { left: 10%; bottom: 9%; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; gap: 24px; } .spot-art { order: -1; } }

/* ── Features ──────────────────────────────────────────────────── */

.features { padding: 56px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.feature { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); font-size: 14px; }
.f-blob { width: 46px; height: 46px; display: grid; place-items: center; color: #000; font-weight: 900; font-size: 20px; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%; }
.says { margin-top: auto !important; padding-top: 6px; color: var(--text) !important; font-weight: 700; font-size: 14px !important; display: flex; gap: 8px; align-items: center; }
.says [data-cuyo] { width: 28px; height: 28px; flex: none; }
@media (max-width: 1100px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Download ──────────────────────────────────────────────────── */

.download { padding: 40px 0 72px; }
.download-card { display: flex; align-items: center; gap: 28px; border-radius: 34px; padding: 34px; color: #000; }
.download-card h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.download-card p { margin: 6px 0 18px; font-size: 17px; opacity: .75; }
.dl-cuyo { width: 150px; height: 150px; flex: none; }
@media (max-width: 640px) { .download-card { flex-direction: column; text-align: center; padding: 26px 18px; } .download-card .stores { justify-content: center; } .dl-cuyo { width: 110px; height: 110px; } }

/* ── Footer ────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--stroke); padding: 28px 0 40px; display: grid; gap: 8px; }

/* Less motion when people ask for it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .scanline, .sweep, .wave { display: none; }
}
