/* Styles for the landing page only. Loaded after site.css and built from its
   tokens, so this page cannot drift from the product's palette.
   Cyan is reserved for one thing: an active breakout. Everything else is
   surface, border and muted text. */

.stage {
  position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  /* A hair of lift off the page, so the panel reads as a surface rather than
     as a box drawn on the background. */
  background: linear-gradient(180deg,
    rgb(var(--tint-rgb) / 0.022), transparent 42%), var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
  text-align: left;
}

/* --- product objects, shared ------------------------------------------------ */

.ava { display: inline-flex; flex-shrink: 0; line-height: 0; }
.ava svg { width: 100%; height: 100%; display: block; border-radius: 7px; }
.ava.sm { width: 26px; height: 26px; }
.ava.md { width: 34px; height: 34px; }

.thumb {
  flex-shrink: 0; border-radius: 9px; overflow: hidden;
  background: var(--page-2); border: 1px solid var(--border);
  object-fit: cover; display: block;
  box-shadow: 0 2px 8px rgb(var(--shadow-rgb) / 0.14);
}

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font: 650 11px var(--font); letter-spacing: .04em;
  border: 1px solid var(--border-strong); color: var(--muted);
  background: var(--surface-raised);
}
.pill.live {
  color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: rgb(var(--accent-rgb) / .09);
}
.mult { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.mult.up { color: var(--accent); }
.mult.flat { color: var(--muted); }

/* --- 1. hero monitoring panel ----------------------------------------------- */

.mon { display: grid; gap: 16px; }
.mon-head {
  display: flex; align-items: center; gap: 10px;
  font: 600 11.5px var(--font); letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.mon-head .dotpulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
}
.mon-grid {
  position: relative; overflow: hidden; border-radius: 12px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  padding: 18px; background: var(--page-2);
  border: 1px solid var(--border);
}
.mon-acct {
  position: relative; width: 46px; height: 46px; border-radius: 9px;
  transition: box-shadow .35s ease, transform .35s ease, opacity .35s ease;
}
.mon-acct .ava { width: 100%; height: 100%; }
.mon-acct.checking { box-shadow: 0 0 0 1.5px var(--border-strong); }
.mon-acct.hit {
  box-shadow: 0 0 0 2px var(--accent), 0 6px 20px rgb(var(--accent-rgb) / .3);
  transform: translateY(-2px);
}
.mon-acct.faded { opacity: .45; }
/* One pass of the scanner, not a strobe. */
.mon-scan {
  position: absolute; inset: 0 auto 0 0; width: 96px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / .16), transparent);
  opacity: 0;
}
.mon-scan.run { animation: mon-sweep 2.1s cubic-bezier(.45,0,.55,1) forwards; }
@keyframes mon-sweep {
  0% { transform: translateX(-96px); opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(calc(100% + 96px)); opacity: 0; }
}

.mon-result {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  align-items: center; padding: 14px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-raised);
  /* Reserved from the start so nothing on the page moves when it fills. */
  min-height: 86px;
}
.mon-result.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.mon-result .who { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.mon-result .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.mon-result .right { text-align: right; display: grid; gap: 7px; justify-items: end; }
.mon-result .mult { font-size: 20px; }
.mon-idle { color: var(--muted); font-size: 13.5px; }

/* --- 3. two reel cards ------------------------------------------------------ */

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 16px; }
.reel {
  display: grid; grid-template-columns: 76px 1fr; gap: 15px;
  padding: 16px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-raised);
  box-shadow: var(--shadow-soft, 0 1px 3px rgb(var(--shadow-rgb) / .05));
  transition: border-color .5s ease, box-shadow .5s ease, opacity .5s ease;
}
.reel.dim { opacity: .5; }
.reel.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgb(var(--accent-rgb) / .16); }
.reel .who { display: flex; align-items: center; gap: 8px; font-weight: 620; font-size: 13.5px; color: var(--ink); }
.reel .views { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--ink); margin-top: 8px; }
.reel .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.reel .rate { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.reel .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.reel .bar i { display: block; height: 100%; width: 12%; border-radius: 2px; background: var(--muted); transition: width 1.1s ease, background .6s ease; }
.reel.win .bar i { background: var(--accent); }
.reel .rate span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.reel .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.verdict-line {
  margin-top: 16px; min-height: 22px; font-size: 14.5px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.verdict-line b { color: var(--ink); font-weight: 620; }

/* --- 4. growth chart -------------------------------------------------------- */

.chart { width: 100%; height: 278px; display: block; }
.chart .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.chart .draw.run { animation: chart-draw 1.8s cubic-bezier(.4,0,.3,1) forwards; }
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
.chart .mark { opacity: 0; }
.chart .mark.run { animation: mark-in .6s ease forwards; }
@keyframes mark-in { to { opacity: 1; } }
.chart-axis { font: 500 11.5px var(--font); fill: var(--muted); }

/* --- 5. two account cards --------------------------------------------------- */

.acct-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 16px; }
.acct {
  padding: 20px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface-raised);
  box-shadow: var(--shadow-soft, 0 1px 3px rgb(var(--shadow-rgb) / .05));
  transition: border-color .5s ease, box-shadow .5s ease, opacity .5s ease;
}
.acct.dim { opacity: .46; }
.acct.win { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgb(var(--accent-rgb) / .16); }
.acct .top { display: flex; align-items: center; gap: 10px; }
.acct .top b { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.acct .big {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 30px; font-weight: 700; color: var(--ink); margin: 14px 0 2px;
  transition: color .5s ease, transform .5s ease;
}
.acct .rowline {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--muted); padding: 6px 0;
  border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(4px);
  transition: opacity .5s ease, transform .5s ease;
}
.acct .rowline.on { opacity: 1; transform: none; }
.acct .rowline span:last-child { font-family: var(--mono); color: var(--ink-soft); }
.acct .out { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }

/* --- 6. account history ----------------------------------------------------- */

.hist { display: grid; gap: 14px; }
.hist-top { display: flex; align-items: center; gap: 10px; }
.hist-top b { font-weight: 650; color: var(--ink); font-size: 14.5px; }
.hist-top .muted { color: var(--muted); font-size: 13px; }
.hist-strip { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.hist-cell { text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.hist-cell.on { opacity: 1; transform: none; }
.hist-cell img { width: 100%; height: auto; aspect-ratio: 9 / 16; }
.hist-cell .n { margin-top: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.hist-cell.peak .n { color: var(--accent); font-weight: 700; }
.hist-cell.peak img { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hist-base {
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transition: opacity .5s ease;
  font-size: 13px; color: var(--muted);
}
.hist-base.on { opacity: 1; }
.hist-base .rule { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); }

/* --- 7. watchlist ----------------------------------------------------------- */

.wl { display: grid; gap: 10px; }
.wl-row {
  display: grid; grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 14px; align-items: center;
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-raised);
}
.wl-row .name { font-weight: 620; font-size: 14px; color: var(--ink); }
.wl-row .count { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.wl-faces { display: flex; }
.wl-faces .ava {
  width: 28px; height: 28px; margin-left: -8px;
  border-radius: 8px; box-shadow: 0 0 0 2px var(--surface-raised);
}
.wl-faces .ava:first-child { margin-left: 0; }
.wl-row .when { text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wl-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border-radius: 12px; color: var(--muted); font-size: 13.5px;
  border: 1px dashed var(--border-strong); background: transparent;
}

/* --- 8. alert delivery ------------------------------------------------------ */

.alert-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px;
  padding: 15px; border-radius: 13px; max-width: 460px; margin-inline: auto;
  border: 1px solid var(--accent); background: rgb(var(--accent-rgb) / .05);
  box-shadow: 0 10px 34px rgb(var(--accent-rgb) / .14);
}
.alert-card .who { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; color: var(--ink); }
.alert-facts { display: grid; gap: 3px; margin-top: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); }
.alert-facts b { color: var(--accent); }
.alert-when { margin-top: 8px; font-size: 11.5px; color: var(--muted); }

.dest-wrap { position: relative; min-height: 196px; margin-top: 20px; }
.dest {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .55s ease, transform .55s ease;
  transform: translateY(10px);
}
.dest.on { opacity: 1; transform: none; pointer-events: auto; }
.dest-frame { border-radius: 13px; border: 1px solid var(--border); overflow: hidden; background: var(--surface-raised); }
.dest-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font: 600 12.5px var(--font); color: var(--ink-soft);
}
.dest-body { padding: 14px 16px; display: grid; gap: 10px; }
.dest-msg { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }
.dest-msg .name { font-weight: 650; font-size: 13.5px; color: var(--ink); }
.dest-msg .name i { font-style: normal; font-size: 10px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 5px; margin-left: 6px; letter-spacing: .04em; }
.dest-msg p { margin: 5px 0 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.dest-metrics { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dest-metrics b { color: var(--accent); }
/* Telegram reads as a chat, so its message sits in a bubble. */
.dest.tg .dest-msg { grid-template-columns: 34px 1fr; }
.dest.tg .bubble { background: rgb(var(--accent-rgb) / .08); border: 1px solid var(--border); border-radius: 4px 13px 13px 13px; padding: 11px 13px; }
.dest.em .subject { font-weight: 650; color: var(--ink); font-size: 14px; }
.dest.em .from { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.dest-done { display: flex; justify-content: center; gap: 22px; margin-top: 18px; opacity: 0; transition: opacity .5s ease; }
.dest-done.on { opacity: 1; }
.dest-done div { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.dest-done .tick { color: var(--sage); font-weight: 700; }

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

.tint-slack { color: #E01E5A; }
.tint-mail  { color: #EA4335; }
.tint-tg    { color: #29A0DA; }

@media (prefers-reduced-motion: reduce) {
  .mon-acct, .reel, .acct, .hist-cell, .hist-base, .dest, .dest-done { transition: none; }
  .mon-scan.run, .chart .draw.run, .chart .mark.run { animation: none; }
  .chart .draw { stroke-dashoffset: 0; }
  .chart .mark { opacity: 1; }
}

@media (max-width: 720px) {
  .stage { padding: 16px 14px; }
  /* Stack rather than shrink: a 12px metric is not a smaller card, it is an
     unreadable one. */
  .duo, .acct-duo { grid-template-columns: minmax(0, 1fr); }
  .hist-strip { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .wl-row { grid-template-columns: 1fr auto; row-gap: 10px; }
  .wl-row .when { grid-column: 1 / -1; text-align: left; }
  .mon-result { grid-template-columns: auto 1fr; }
  .mon-result .right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .dest-wrap { min-height: 214px; }
}
