/* Landing v2 — software-friendly motion (no GPU / compositor required).
   Ignores prefers-reduced-motion so Windows "reduce animations" still shows
   basic landing motion. Prefer left/width/height/opacity/display over transform.

   Colour rule: this theme's foreground tokens live on `.tv` in marketing-shared.css
   (--mk-fg / --mk-fg-dim / --mk-fg-faint / --mk-line / --mk-line-strong / --mk-accent, etc.),
   already corrected to clear WCAG AA on this theme's near-black green grounds. Use those
   tokens for every new colour here instead of inventing a second, lower-contrast set of
   greys — that is exactly how this file previously shipped 40%-alpha text and a black-on-
   black wordmark. Do not lower them. */

html:has(.tv),
html.tv-page,
html:has(.tv) body,
html.tv-page body {
  height: auto !important;
  min-height: 100% !important;
  font-size: 16px !important;
  background: #0e1210 !important;
  overflow: visible !important;
}

.tv {
  --nav-h: 68px;
  margin: 0;
  color: var(--mk-fg);
  background: var(--mk-bg);
  font-family: var(--mk-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.tv *,
.tv *::before,
.tv *::after { box-sizing: border-box; }

/* Deliberately ZERO specificity via :where(), so this can never outrank a more specific
   rule. The old `.tv a { color: inherit }` had specificity (0,1,1), which beat every
   single-class anchor style declared elsewhere in this theme (e.g. `.tv-nav-brand` at
   (0,1,0)) outright, and would have TIED same-specificity component rules pulled in from
   marketing-shared.css (e.g. `.mk-mobilenav a`, also (0,1,1)) — a tie that source order
   alone decides, silently, the next time a stylesheet gets reordered. That mechanism is
   how the IterDone wordmark rendered near-black on a near-black ground. A bare content
   link inheriting the surrounding text colour is a reasonable default; it must never be
   able to beat an element's own colour rule to get there. */
:where(.tv) :where(a) { color: inherit; text-decoration: none; }

.tv h1,
.tv h2,
.tv h3 {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: var(--mk-font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}

/* ── Hero ────────────────────────────────────────── */
.tv-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 32px) clamp(20px, 5vw, 72px) clamp(40px, 8vh, 88px);
  color: var(--mk-fg);
  overflow: hidden;
  background: var(--mk-bg);
}

.tv-hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tv-field-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(198, 240, 0, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, var(--mk-bg-3) 0%, var(--mk-bg) 55%, #0a0e0c 100%);
}

/* Full-bleed sticky-note kanban behind hero copy */
.tv-kanban {
  position: absolute;
  inset: 8% 2% 6% 28%;
  min-height: 280px;
  border: 1px solid var(--mk-line-strong);
  background:
    linear-gradient(var(--mk-bg-3), var(--mk-bg-3)) padding-box,
    linear-gradient(180deg, var(--mk-line-strong), transparent) border-box;
  background-color: var(--mk-bg-3);
  overflow: hidden;
}

.tv-kcol {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 33.333%;
  border-right: 1px solid var(--mk-line-strong);
  pointer-events: none;
}

.tv-kcol:last-of-type { border-right: 0; }
.tv-kcol[data-col="todo"] { left: 0; }
.tv-kcol[data-col="doing"] { left: 33.333%; }
.tv-kcol[data-col="done"] { left: 66.666%; }

.tv-kcol span {
  display: block;
  padding: 12px 14px 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-fg-faint);
}

.tv-note {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: clamp(92px, 11vw, 128px);
  min-height: 76px;
  padding: 12px 12px 14px;
  margin: 0;
  font-family: var(--mk-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #1a1f18;
  border: 1px solid rgba(16, 21, 16, 0.4);
  border-radius: 1px;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
  /* left/top driven by JS */
}

/* Tones chosen to read clearly against the panel (--mk-bg-3, #1c251e), not just against
   their own text. "fog" is the one most likely to wash out on a green-black ground, so it's
   deepened a touch relative to the near-white it started as. */
.tv-note[data-tone="butter"] { background: #f3e27a; }
.tv-note[data-tone="mint"] { background: #9fe8c4; }
.tv-note[data-tone="fog"] { background: #d7dfd3; }
.tv-note[data-tone="peach"] { background: #f0c4a0; }

.tv-note.is-stuck {
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.32);
  outline: 2px solid rgba(198, 240, 0, 0.55);
  outline-offset: 1px;
}

.tv-note.is-moving {
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.22);
}

.tv-note.is-done {
  outline: 2px solid var(--mk-accent);
  outline-offset: 0;
  box-shadow: 2px 2px 0 rgba(198, 240, 0, 0.25);
}

.tv-note.is-done::after {
  content: "✓";
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mk-on-accent);
}

.tv-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42ch;
}

.tv-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--mk-accent);
}

.tv-hero-sub {
  margin: 0 0 18px;
  font-family: var(--mk-font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--mk-fg);
}

.tv-hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: var(--mk-fg-dim);
  font-weight: 500;
}

.tv-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tv-hero-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mk-fg-dim);
}

.tv-hero-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--mk-accent);
  color: var(--mk-on-accent) !important;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 2px;
}

.tv-btn:hover { filter: brightness(1.08); }

.tv-btn--ghost {
  background: transparent;
  color: var(--mk-fg) !important;
  border: 1px solid var(--mk-line-strong);
}

.tv-btn--ghost:hover { background: transparent; filter: none; border-color: var(--mk-fg); }

/* ── Run (copy under hero board) ─────────────────── */
.tv-run {
  background: var(--mk-bg);
  color: var(--mk-fg);
  padding: clamp(48px, 8vh, 80px) clamp(20px, 5vw, 72px);
}

.tv-run-copy {
  max-width: 36ch;
}

.tv-run-copy--solo {
  max-width: 42ch;
}

.tv-run-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--mk-fg);
}

.tv-run-copy p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--mk-fg-dim);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .tv-kanban {
    inset: auto 4% 4% 4%;
    top: 42%;
    opacity: 0.92;
  }

  .tv-hero-copy { max-width: 34ch; }

  .tv-run-copy { max-width: none; }
}

@media (max-width: 560px) {
  .tv-hero { padding-bottom: 48px; min-height: 100svh; }

  .tv-kanban {
    top: 48%;
  }

  .tv-hero-copy { max-width: 30ch; }

  .tv-note {
    width: 78px;
    min-height: 60px;
    padding: 8px;
    font-size: 0.65rem;
  }
}
