/* internal.tv — for-sale page
   Ink #14213D on cream #FBFAF6, mint #9EE6C5 accent.
   Work Sans for display and body, DM Mono for labels. */

:root {
  --ink: #14213D;
  --ink-hover: #0B142A;
  --cream: #FBFAF6;
  --muted: #4A5670;
  --accent: #9EE6C5;
  --font-display: 'Work Sans', system-ui, sans-serif;
  --font-text: 'Work Sans', system-ui, sans-serif;
  --font-label: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight: 800;
  --display-tracking: -.03em;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: #000; }

mark {
  background: var(--accent);
  color: var(--ink);
  padding: 0 .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

#tv-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 28px 64px;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
}

.hero-copy { flex: 0 1 auto; min-width: 0; }

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: .92;
}

.wordmark {
  display: block;
  font-size: clamp(56px, 10vw, 148px);
  letter-spacing: var(--display-tracking);
}

.tagline {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1;
}

.lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: 19px;
  color: var(--muted);
}

.hero-ill {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 440px;
  height: auto;
  display: block;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Labels inside illustrations */
.lbl { fill: var(--ink); stroke: none; font-family: var(--font-label); }
.lbl-muted { fill: var(--muted); }

/* Address bar */
.addr { fill: var(--ink); stroke: none; font-family: var(--font-display); font-size: 22px; }
.addr-host { font-weight: var(--display-weight); }
.addr-path { fill: var(--muted); font-weight: 400; }

@keyframes addr-r1 { 0%, 30% { opacity: 1 } 33.33%, 97% { opacity: 0 } 100% { opacity: 1 } }
@keyframes addr-r2 { 0%, 30% { opacity: 0 } 33.33%, 63% { opacity: 1 } 66.67%, 100% { opacity: 0 } }
@keyframes addr-r3 { 0%, 63% { opacity: 0 } 66.67%, 97% { opacity: 1 } 100% { opacity: 0 } }
@keyframes addr-hl {
  0%, 30% { transform: translateY(0) }
  33.33%, 63% { transform: translateY(36px) }
  66.67%, 97% { transform: translateY(72px) }
  100% { transform: translateY(0) }
}

.addr-r2, .addr-r3 { opacity: 0 }
.addr-r1 { animation: addr-r1 9s ease-in-out 1s infinite }
.addr-r2 { animation: addr-r2 9s ease-in-out 1s infinite }
.addr-r3 { animation: addr-r3 9s ease-in-out 1s infinite }
.addr-hl { animation: addr-hl 9s ease-in-out 1s infinite }

@media (prefers-reduced-motion: reduce) {
  .addr-r1, .addr-r2, .addr-r3, .addr-hl { animation: none }
}

/* ---------- Offers ---------- */

.offers-wrap { margin-top: 40px; }

.offers {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 28px 64px;
}

.offer {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.offer-kicker {
  margin: 0;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.offer-figure {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
}

.offer-unit {
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 17px;
  color: var(--muted);
}

.offer-note { margin: 0; font-size: 15px; color: var(--muted); }

.offer-cta { margin-top: auto; padding-top: 14px; }

.offers-foot { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
}

.btn-ink {
  gap: 12px;
  padding: 0 30px;
  background: var(--ink);
  color: var(--cream);
}
.btn-ink:hover { background: var(--ink-hover); color: var(--cream); }
.btn-ink svg { fill: none; stroke: var(--cream); stroke-width: 2.2; }

.btn-outline {
  padding: 0 26px;
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: rgba(20, 33, 61, .06); color: var(--ink); }

/* ---------- Ways to use it ---------- */

#tv-ideas {
  margin-top: 56px;
  border: 1.5px solid var(--ink);
  padding: clamp(20px, 4vw, 40px);
}

.grid {
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(37, 87, 214, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 87, 214, .13) 1px, transparent 1px),
    linear-gradient(rgba(37, 87, 214, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 87, 214, .06) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

#tv-ideas-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.1;
}

.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.card {
  background: rgba(251, 250, 246, .92);
  border: 1px solid var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card .ill {
  width: 100%;
  height: auto;
  display: block;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--muted);
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 26px;
  line-height: 1.1;
}

.card p { margin: 0; color: var(--muted); }

/* ---------- 404 ---------- */

.lost {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 160px) 28px 64px;
}

.lost h1 { line-height: 1 }

.lost .code {
  display: block;
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
}

.lost .wordmark { font-size: clamp(40px, 7vw, 96px) }
