/* TiViCon — site styles */

@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #e6edf5;
  --steel: #97a8bc;
  --blue: #4b93f0;     /* links, highlights and TiViCon nodes on dark */
  --blue-dark: #7cb2f7; /* hover: a step lighter on dark */
  --brand: #0a5cc2;    /* button fill */
  --brand-dark: #1a6ed8;
  --air: #f0a020;      /* diagram: live TV over RF */
  --net: #3fb4ea;      /* diagram: internet delivery */
  --join: #4b93f0;     /* diagram: combined, from TiViCon onwards */
  --accent: #f2a20c;   /* amber, from the old infographics: actions and markers */
  --accent-dark: #dc8f00;
  --rule: #22364d;
  --rule-strong: #2d4562;
  --paper: #0b1726;    /* page */
  --tint: #12233a;     /* alternate sections */
  --panel: #182d47;    /* panels and diagram nodes */
  --navy: #050b14;     /* deep sections */

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 38rem; }
.lead { font-size: 1.18rem; color: var(--ink); }
.muted { color: var(--steel); }
.small { font-size: 0.9rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.97rem; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }

@media (max-width: 640px) {
  .site-header .wrap { padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .nav { gap: 18px; width: 100%; }
}

/* Sections */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint, .section.dark { border-top: 0; }
.section.tint + .section, .section.dark + .section { border-top: 0; }
.section.tint { background: var(--tint); }
.section.tint .features li, .section.tint .facts div, .section.tint .platforms div, .section.tint .contact-list li { border-color: var(--rule-strong); }
.section.tint .facts, .section.tint .platforms, .section.tint .contact-list li:first-child { border-top-color: var(--rule-strong); }
.section.tint .choices label { background: var(--panel); }

/* Dark sections: the amber accent lives here */
.section.dark { background: var(--navy); color: #fff; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.dark .muted, .section.dark .lead.muted { color: #b4c1d2; }
.section.dark a { color: var(--accent); }
.section.dark a:hover { color: #ffc24d; }
.section.dark .btn { background: var(--accent); color: var(--navy); }
.section.dark .btn:hover { background: #ffb52e; color: var(--navy); }
.section.dark .lead { color: #fff; }
/* Logo watermark behind a dark section */
.section.watermark { position: relative; overflow: hidden; isolation: isolate; }
.section.watermark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  --wm: clamp(420px, 46vw, 640px);
  width: var(--wm); aspect-ratio: 1023.47 / 952.43;
  /* centred under the left column of .split */
  left: calc(50% - min(50vw, 560px) + var(--gutter) + min(18vw, 200px) - var(--wm) / 2 - min(8vw, 110px));
  top: 50%; transform: translateY(-50%);
  background: url("../img/logo/tivicon-logo-white.svg") center / contain no-repeat;
  opacity: 0.07;
}
@media (max-width: 860px) {
  .section.watermark::before { left: auto; right: -30%; width: 110vw; }
}
.section.dark :focus-visible { outline-color: var(--accent); }

.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); }
.hero h1 { max-width: 22ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .tv { max-width: 560px; } }

/* Flat TV outline around a real product screen */
.tv { margin: 0; }
.tv-screen { background: #000; padding: 8px; border-radius: 6px; box-shadow: 0 0 0 1px var(--rule-strong); }
.tv-screen img { width: 100%; height: auto; border-radius: 2px; background: #000; }
.tv-stand { position: relative; height: 22px; }
.tv-stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 10px; height: 14px; margin-left: -5px; background: var(--rule-strong); }
.tv-stand::after { content: ""; position: absolute; left: 50%; top: 14px; width: 34%; height: 5px; transform: translateX(-50%); background: var(--rule-strong); border-radius: 3px; }
.tv figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--steel); text-align: center; }
.hero .lead { max-width: 36rem; margin-top: 1.25rem; }

.actions { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin-top: 2rem; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > .col-2 { grid-column: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > .col-2 { grid-column: 1; } }

/* Signal path diagram
   Grid of 4 equal rows. Sources span 2 rows each, screens 1 row each,
   so the vertical bus lines can be positioned from the row maths. */

.path {
  --g: 12px;           /* row gap */
  --w: 56px;           /* wire column width */
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--w) minmax(0, 1.05fr) var(--w) minmax(0, 1fr);
  grid-template-rows: repeat(4, auto);
  row-gap: var(--g);
  margin-top: clamp(40px, 5vw, 64px);
}

.node {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.93rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.node strong { font-weight: 600; display: block; }
.node span { color: var(--steel); font-size: 0.86rem; }

.path .src { grid-column: 1; }
.path .src:nth-of-type(1) { grid-row: 1 / span 2; }
.path .src:nth-of-type(2) { grid-row: 3 / span 2; }
.path .src::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(var(--w) / 2 + 1px); border-top: 2px solid var(--net); }
.path .src.rf::after { border-top-color: var(--air); }
.path .src.rf strong::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--air); margin-right: 8px; vertical-align: 0.08em;
}

.path .core {
  grid-column: 3; grid-row: 1 / span 4; align-self: center;
  border: 2px solid var(--blue);
  padding: 18px 18px;
}
.path .core strong { color: var(--blue); font-size: 1.02rem; }
.path .core ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--steel); font-size: 0.86rem; }

.path .bus-in, .path .bus-out { grid-row: 1 / span 4; position: relative; }
.path .bus-in { grid-column: 2; }
.path .bus-out { grid-column: 4; }

/* vertical bus: top/bottom at the centre of the first/last node */
.path .bus-in::before {
  content: ""; position: absolute; left: calc(50% - 1px); width: 2px;
  top: calc(25% - var(--g) / 4); bottom: calc(25% - var(--g) / 4);
  background: linear-gradient(var(--air) 50%, var(--net) 50%);
}
.path.single-in .bus-in::before { display: none; }
.path .bus-in::after { content: ""; position: absolute; left: 50%; right: 0; top: calc(50% - 1px); border-top: 2px solid var(--join); }

.path .bus-out::before {
  content: ""; position: absolute; left: calc(50% - 1px); width: 2px;
  top: calc(12.5% - var(--g) * 0.375); bottom: calc(12.5% - var(--g) * 0.375);
  background: var(--join);
}
.path .bus-out::after { content: ""; position: absolute; left: 0; right: 50%; top: calc(50% - 1px); border-top: 2px solid var(--join); }

.path .out { grid-column: 5; }
.path .out::before { content: ""; position: absolute; right: 100%; top: 50%; width: calc(var(--w) / 2 + 1px); border-top: 2px solid var(--join); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 0.86rem; color: var(--steel); }
.legend li::before { content: ""; display: inline-block; width: 22px; border-top: 3px solid var(--join); vertical-align: middle; margin-right: 8px; }
.legend .rf::before { border-top-color: var(--air); }
.legend .ip::before { border-top-color: var(--net); }

@media (max-width: 760px) {
  .path { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
  .path .src, .path .src:nth-of-type(1), .path .src:nth-of-type(2) { grid-column: auto; grid-row: auto; }
  .path .src::after, .path .out::before, .path .bus-in, .path .bus-out { display: none; }
  .path .core { grid-column: 1 / -1; grid-row: auto; margin: 22px 0; }
  .path .core::before, .path .core::after { content: ""; position: absolute; left: 50%; height: 22px; border-left: 2px solid var(--join); }
  .path .core::before { bottom: 100%; }
  .path .core::after { top: 100%; }
  .path .out { grid-column: auto; }
  .path.single-in .src { grid-column: 1 / -1; }
}

/* Linear chain: A — B — C */

.chain { display: flex; align-items: stretch; margin-top: 40px; }
.chain .node { flex: 1 1 0; }
.chain .node.core { border: 2px solid var(--blue); flex-grow: 1.2; }
.chain .node.core > strong { color: var(--blue); }
.chain .link { flex: 0 0 56px; position: relative; align-self: center; height: 2px; background: var(--join); }
.chain .link.rf { background: var(--air); }
.chain .link.both::before, .chain .link.both::after { content: ""; position: absolute; top: -4px; border: 5px solid transparent; }
.chain .link.both::before { left: -2px; border-right-color: var(--join); border-left: 0; }
.chain .link.both::after { right: -2px; border-left-color: var(--join); border-right: 0; }
.chain .stack { display: grid; gap: 6px; margin-top: 10px; }
.chain .stack div { border: 1px solid var(--rule-strong); border-radius: 3px; padding: 6px 10px; font-size: 0.86rem; }
.chain .stack .secure { border-color: var(--blue); color: var(--blue); }
@media (max-width: 700px) {
  .chain { flex-direction: column; }
  .chain .link { flex-basis: 28px; width: 2px; height: auto; }
  .chain .link.both::before, .chain .link.both::after { display: none; }
}

/* Solutions list */

.solutions { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 10px; }
.solutions li {
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 4fr) minmax(0, 6fr) 10.5rem; gap: 12px 36px;
  padding: 30px 32px; background: var(--panel); border-radius: var(--radius); align-items: start;
  box-shadow: inset 0 0 0 1px transparent;
}
.solutions li:hover, .solutions li:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.solutions li:hover h3 a { color: var(--blue); }
.solutions h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.solutions h3 a:focus-visible { outline: none; }
.solutions .more { position: relative; z-index: 1; }
.solutions li > p { padding-top: 2px; }
.solutions .tags { margin-top: 10px; }

.glyph { width: 96px; height: 48px; fill: none; stroke-width: 2; stroke-linecap: square; }
.glyph .g-air { stroke: var(--air); }
.glyph .g-net { stroke: var(--net); }
.glyph .g-join { stroke: var(--join); }
.glyph .g-core { stroke: var(--join); fill: #15345c; }
.glyph .g-dev { stroke: var(--steel); }
.glyph .g-fill { fill: var(--join); stroke: none; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tag { font-size: 0.8rem; line-height: 1.5; padding: 2px 8px; border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--steel); }
.tag.proof { border-color: rgba(240,160,32,.5); background: rgba(240,160,32,.12); color: #ffc76a; }
.tag.proof::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--air); margin-right: 6px; vertical-align: 0.1em; }
.solutions h3 { margin: 0; font-size: 1.22rem; }
.solutions h3 a { color: var(--ink); text-decoration: none; }
.solutions h3 a:hover { color: var(--blue); text-decoration: underline; }
.solutions p { margin: 0; color: var(--steel); }
.solutions .more { white-space: nowrap; font-size: 0.95rem; justify-self: end; }
@media (max-width: 960px) { .solutions li { grid-template-columns: 96px minmax(0, 1fr); } .solutions li > p, .solutions .more { grid-column: 2; } .solutions .more { justify-self: start; } }
@media (max-width: 560px) { .solutions li { grid-template-columns: 1fr; padding: 24px 20px; } .solutions li > p, .solutions .more { grid-column: 1; } }

/* Case / partner block */

.case { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.case .logo-dish { width: 148px; margin-bottom: 28px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 600; font-size: 1.15rem; }
.facts dd { margin: 0; color: var(--steel); font-size: 0.95rem; align-self: center; }

.partners { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 28px; }
.partners img { height: 40px; width: auto; }
/* Partner logos are dark artwork: show them on a white plate */
img[src*="partners/"] { background: #fff; padding: 10px 14px; border-radius: var(--radius); box-sizing: content-box; }
/* The wordmark PNG is blue: render it white on the dark page */
img[src*="footer-logo"] { filter: brightness(0) invert(1); }

/* Feature lists */

.features { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.features li { break-inside: avoid; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: calc(10px + 0.75em); width: 8px; height: 3px; background: var(--blue); }
.features.one { columns: 1; }
@media (max-width: 640px) { .features { columns: 1; } }

.platforms { margin: 0; border-top: 1px solid var(--rule); }
.platforms div { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.platforms dt { font-weight: 500; }
.platforms dd { margin: 0; color: var(--steel); }
@media (max-width: 520px) { .platforms div { grid-template-columns: 1fr; gap: 2px; } }

/* Screens */

.screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin-top: 40px; }
.screens.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.screens figure { margin: 0; }
.screens img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; }
.screens figcaption { margin-top: 10px; font-size: 0.93rem; }
.screens figcaption strong { font-weight: 600; display: block; }
.screens figcaption span { color: var(--steel); }
@media (max-width: 860px) { .screens.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .screens, .screens.three { grid-template-columns: 1fr; } }

/* Page header for inner pages */

.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.crumb { font-size: 0.92rem; margin: 0 0 18px; }
.crumb a { color: var(--steel); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { max-width: 38rem; color: var(--steel); }

.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 32px 0 0; }

.next { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Article */

.article { max-width: 40rem; }
.article .dateline { color: var(--steel); margin-bottom: 2rem; }
.article blockquote { margin: 2rem 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-size: 1.1rem; }
.article blockquote p { margin-bottom: 0.6em; }
.article blockquote footer { font-size: 0.93rem; color: var(--steel); }

/* Form */

.form { display: grid; gap: 22px; }
.form fieldset { border: 0; margin: 0; padding: 0; }
.form legend, .form label.field > span { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.form .choices { display: flex; flex-wrap: wrap; gap: 8px; }
.form .choices label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 8px 12px; font-size: 0.93rem; cursor: pointer; }
.form .choices label:hover { border-color: #46668c; }
.form .choices label:has(input:checked) { border-color: var(--blue); color: #fff; background: #1a3556; }
.form .choices input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #5b7799; background: transparent;
}
.form .choices input:checked { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 3.5px, transparent 4px); }
.form .choices input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--panel);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 11px 12px;
}
.form input[type="text"]:hover, .form input[type="email"]:hover, .form input[type="tel"]:hover, .form textarea:hover { border-color: #46668c; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form .hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.contact-list span { display: block; color: var(--steel); font-size: 0.88rem; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 0.93rem; color: var(--steel); }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; }
.site-footer img { width: 112px; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: right; }
.site-footer .legal { grid-column: 1 / -1; margin: 12px 0 0; font-size: 0.86rem; }
@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer ul { text-align: left; }
}
