/* tc Launcher site.
   Layout: one left-aligned column on a 12-col grid; real screenshots carry the page,
   and the TV's focus ring (2px accent outline) is the only ornament. Single dark look, on purpose: it is a TV app. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("fonts/spline-sans-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #07111C;          /* brand ink: page ground */
  --ink-2: #0B1826;        /* raised ground: table head, code */
  --line: #1B2B3C;         /* hairlines */
  --line-2: #2A3D51;       /* stronger rule, control borders */
  --paper: #F8FAFC;        /* brand paper: text */
  --soft: #B4C2D1;         /* body text */
  --dim: #8496A9;          /* captions, labels (5.9:1 on ink) */
  --cyan: #22D3EE;
  --cyan-2: #078FE0;
  --orange: #FFB52E;
  --orange-2: #F97316;
  --accent: var(--orange-2);     /* the focus colour; the picker swaps it */
  --accent-hi: var(--orange);
  --on-accent: #07111C;

  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: max(16px, 4.5vw);
  --wrap: 1160px;
  --r: 14px;               /* same corner the launcher uses on its rows */
}
:root[data-accent="cyan"] { --accent: var(--cyan); --accent-hi: #7BE6F6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--soft);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); text-decoration-color: var(--line-2); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { color: var(--paper); margin: 0; text-wrap: balance; }
p { margin: 0; }
strong { color: var(--paper); font-weight: 600; }

/* The focus ring: every focusable thing gets what a focused card gets on the TV. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }

.label { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.label b { color: var(--accent-hi); font-weight: 500; }

/* ---------- header ---------- */
.head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand .mark { width: 38px; height: 34px; }
.brand .word { height: 21px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); font-size: .9375rem; font-weight: 500; }
.nav a { color: var(--soft); text-decoration: none; padding-block: .35rem; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(100deg, var(--orange), var(--orange-2)); color: var(--on-accent);
  font: 700 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none;
  padding: .95rem 1.35rem; border-radius: 999px; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
.btn:hover { outline: 2px solid var(--paper); outline-offset: 4px; }
/* light sweep, as in the launcher's focus effect: one pass on hover */
.btn::after, .shot::after { content: ""; position: absolute; inset: -20% auto -20% 0; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  transform: translateX(-140%) skewX(-14deg); pointer-events: none; }
.btn:hover::after, .shot:hover::after { transition: transform .9s cubic-bezier(.2,.6,.2,1); transform: translateX(420%) skewX(-14deg); }
.shot::after { background: linear-gradient(100deg, transparent, rgba(255,255,255,.09), transparent); width: 28%; }
.btn.small { padding: .62rem 1rem; font-size: .875rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 1.75rem; align-items: end; }
.hero h1 { grid-column: 1 / span 8; font-size: clamp(2.6rem, 7.3vw, 5.6rem); line-height: .96; letter-spacing: -.042em; font-weight: 800; margin-top: 1.1rem; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--accent-hi); letter-spacing: -.035em; }
.hero .intro { grid-column: 9 / -1; display: grid; gap: 1.35rem; padding-bottom: .6rem; min-width: 0; }
.hero .intro p { font-size: 1.0625rem; line-height: 1.55; }
.hero .label { grid-column: 1 / -1; }
.cta { display: grid; gap: .8rem; justify-items: start; }
.cta small { font: 400 .8125rem/1.5 var(--mono); color: var(--dim); }

/* ---------- screenshots ---------- */
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: #03080E;
  box-shadow: 0 0 0 1px var(--line-2), 0 40px 80px -40px rgba(0,0,0,.9); aspect-ratio: 16 / 9; max-width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.focused { box-shadow: 0 0 0 2px var(--accent), 0 0 0 7px color-mix(in srgb, var(--accent) 16%, transparent), 0 50px 90px -40px rgba(0,0,0,.95); }
.fig { margin: 0; display: grid; gap: .8rem; min-width: 0; }
.fig figcaption { font: 400 .78rem/1.5 var(--mono); color: var(--dim); display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.fig figcaption span::before { content: "\25B8\00a0"; color: var(--accent); }
.hero .fig { margin-top: clamp(2rem, 5vw, 3.75rem); }

/* ---------- facts line ---------- */
.facts { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.facts div { padding: 1.4rem 1.25rem 1.5rem 0; min-width: 0; }
.facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt { font: 800 clamp(1.9rem, 3.6vw, 2.75rem)/1 var(--sans); letter-spacing: -.04em; color: var(--paper); font-variant-numeric: tabular-nums; }
.facts dt sup { font: 500 .8rem/1 var(--mono); letter-spacing: 0; color: var(--dim); vertical-align: top; margin-left: .25em; position: relative; top: .35em; }
.facts dd { margin: .55rem 0 0; font-size: .9375rem; line-height: 1.45; color: var(--soft); }

/* ---------- sections ---------- */
section { padding-block: clamp(4rem, 9vw, 7.5rem) 0; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2rem; align-items: start; }
.split > .text { grid-column: 1 / span 5; display: grid; gap: 1.1rem; min-width: 0; }
.split > .media { grid-column: 7 / -1; min-width: 0; }
.split.flip > .text { grid-column: 8 / -1; grid-row: 1; }
.split.flip > .media { grid-column: 1 / span 6; grid-row: 1; }
.split.end { align-items: end; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.text > p { max-width: 34rem; }

/* plain ruled list: term left, note right */
.rows { list-style: none; margin: .6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .25rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.45; }
.rows li b { color: var(--paper); font-weight: 600; }
.rows li span { color: var(--soft); }
.rows.single li { grid-template-columns: minmax(0, 1fr); }

/* search results list, drawn the way the box groups them */
.found { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.found li { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); align-items: baseline; gap: 1rem; }
.found li i { font: 500 .72rem/1.4 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.found li span { color: var(--paper); font-weight: 500; font-size: 1rem; }

/* accent picker */
.picker { display: grid; gap: .7rem; margin-top: .4rem; padding: 1.1rem 1.15rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--r); max-width: 26rem; }
.picker .opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.swatch { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; background: transparent; color: var(--paper);
  font: 600 .9375rem/1 var(--sans); padding: .55rem .9rem .55rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); }
.swatch i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--c); }
.swatch[aria-pressed="true"] { border-color: var(--c); box-shadow: 0 0 0 1px var(--c); }
.swatch:focus-visible { border-radius: 999px; }
.picker p { font-size: .875rem; color: var(--dim); line-height: 1.5; }

/* the rest: four items across two columns, ruled */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.more article { padding: 1.6rem 0 1.7rem; border-bottom: 1px solid var(--line); display: grid; gap: .5rem; align-content: start; min-width: 0; }
.more h3 { font-size: 1.3rem; letter-spacing: -.02em; font-weight: 700; line-height: 1.2; }
.more p { font-size: 1rem; max-width: 30rem; }
.more .tag { font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: .32rem .55rem; margin-left: .6rem; vertical-align: .18em; white-space: nowrap; }
.sec-head { display: grid; gap: 1rem; max-width: 44rem; }

/* ---------- free / supporter table ---------- */
.tiers-wrap { margin-top: 2.5rem; overflow-x: auto; max-width: 940px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tiers caption { text-align: left; caption-side: bottom; padding-top: 1.1rem; font-size: .9375rem; color: var(--dim); }
.tiers th, .tiers td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiers thead th { font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom-color: var(--line-2); padding-bottom: .8rem; }
.tiers thead th:nth-child(3) { color: var(--accent-hi); }
.tiers tbody th { font-weight: 500; color: var(--paper); width: 56%; }
.tiers td { width: 22%; color: var(--soft); font-variant-numeric: tabular-nums; }
.tiers td.yes { color: var(--paper); }
.tiers td.no { color: #5B6E82; }
.tiers .grp th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding-top: 1.9rem; padding-bottom: .55rem; border-bottom-color: var(--line-2); }
.tick { display: inline-block; width: .95rem; height: .95rem; vertical-align: -.1em; }
.buy { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.buy p { font-size: .9375rem; max-width: 30rem; }

/* ---------- footer ---------- */
.foot { margin-top: clamp(4.5rem, 10vw, 8rem); border-top: 1px solid var(--line); padding-block: 2rem 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; font-size: .875rem; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { color: var(--soft); }
.foot .fine { flex-basis: 100%; font-size: .8125rem; max-width: 46rem; line-height: 1.55; }

/* ---------- privacy page ---------- */
.doc { padding-block: clamp(2rem, 6vw, 4.5rem) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: 2.5rem; }
.doc-head { grid-column: 1 / span 9; display: grid; gap: 1.1rem; }
.doc-head h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.doc-head p:not(.label) { font-size: 1.25rem; line-height: 1.45; color: var(--paper); max-width: 38rem; }
.doc-body { grid-column: 1 / span 12; border-top: 1px solid var(--line); }
.clause { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 1.5rem; row-gap: .6rem; padding-block: 1.9rem; border-bottom: 1px solid var(--line); }
.clause h2 { grid-column: 1 / span 4; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; }
.clause > div { grid-column: 5 / span 7; display: grid; gap: .9rem; min-width: 0; }
.clause ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.clause li { padding-left: 1.1rem; position: relative; }
.clause li::before { content: ""; position: absolute; left: 0; top: .68em; width: .45rem; height: 2px; background: var(--accent); }

/* ---------- narrow ---------- */
@media (max-width: 900px) {
  .hero h1, .hero .intro { grid-column: 1 / -1; }
  .hero .intro { max-width: 34rem; padding-bottom: 0; }
  .split > .text, .split > .media, .split.flip > .text, .split.flip > .media { grid-column: 1 / -1; grid-row: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .doc-head, .clause h2, .clause > div { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .head { padding-block: 1rem; }
  .brand .mark { width: 32px; height: 29px; }
  .brand .word { height: 17px; }
  .nav .hide-s { display: none; }
  .nav { gap: 1rem; font-size: .875rem; }
  .shot { border-radius: 9px; }
  .rows li { grid-template-columns: minmax(0, 1fr); }
  .found li { grid-template-columns: 5.4rem minmax(0, 1fr); gap: .75rem; }
  .tiers { font-size: .9375rem; }
  .tiers tbody th { width: 50%; }
  .tiers td { width: 25%; }
  .tiers th, .tiers td { padding-right: .6rem; }
  .facts div { padding-right: .75rem; }
  .facts div + div { padding-left: .9rem; }
  .facts div:nth-child(3) { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn::after, .shot::after { display: none; }
}
