/* catodi.tv v3, direction "Warm spot" (design project catodi: screens/website/*, components/site-*). Dark only. */
/* biome-ignore-all lint/style/noDescendingSpecificity: the phone and tablet blocks restyle the same parts on purpose */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/next-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/next-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/fonts/next-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/fonts/mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink000: #0b0908;
  --ink100: #12100d;
  --ink200: #1b1713;
  --ink300: #262019;
  --cream: #f6ecdd;
  --sand: #cdbda8;
  --dust: #9a8b7a;
  --line: #3b3128;
  --glow: #f6b648;
  --glow-hot: #ffdfa3;
  --glow-pressed: #d99a2e;
  --on-glow: #1e1206;
  --glow-haze: #f6b64838;
  --spill: #f6b6485c;
  --spillsoft: #f6b6481f;
  --scan: #0b090852;
  --clear: #0b090800;
  --sans: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
  --gutter: 48px;
  --wide: 1184px;
  --max: 1120px;
  --text: 680px;
  --shadow-float: 0 16px 48px #0000008c;
}

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

html {
  background: var(--ink000);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--ink000);
  color: var(--sand);
  font: 400 15px / 22px var(--sans);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1,
h2,
h3,
.display {
  text-wrap: balance;
}
p,
dd,
li {
  text-wrap: pretty;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
pre {
  margin: 0;
}

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

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 9999px;
  background: var(--glow);
  color: var(--on-glow);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
.skip:focus-visible {
  outline-color: var(--cream);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}

/* Type */
.display {
  color: var(--cream);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.lede {
  font-size: 17px;
  line-height: 26px;
}
.body-lg {
  font-size: 17px;
  line-height: 26px;
}
.cream {
  color: var(--cream);
}
.caption {
  font-size: 13px;
  line-height: 18px;
}
.label {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}
.h1 {
  color: var(--cream);
  font-size: 32px;
  line-height: 38px;
  font-weight: 800;
}
.h2 {
  color: var(--cream);
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
}
.h3 {
  color: var(--cream);
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
}
.num {
  color: var(--cream);
  font-size: 40px;
  line-height: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 6px;
}
.logo:focus-visible {
  border-radius: 12px;
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.wordmark {
  font-size: 28px;
  line-height: 32px;
  font-weight: 800;
  color: var(--cream);
}
.wordmark b {
  color: var(--glow);
  font-weight: 800;
}
.site-nav ul {
  display: flex;
  gap: 4px;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 9999px;
  color: var(--sand);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--cream);
}
.site-nav a[aria-current="page"] {
  background: var(--ink300);
  color: var(--cream);
}

/* Buttons: the one amber action, a quiet one beside it, an outlined one on its own */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--glow);
  color: var(--on-glow);
  font: 700 17px / 22px var(--sans);
  text-decoration: none;
}
.btn:hover {
  background: var(--glow-hot);
}
.btn:active {
  background: var(--glow-pressed);
}
.btn.quiet,
.btn.outline {
  background: none;
  color: var(--cream);
}
.btn.outline {
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn.quiet:hover,
.btn.outline:hover {
  background: #cdbda814;
}
.btn svg,
.check {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Device frames: inner corner = outer corner - padding */
.device {
  background: var(--ink200);
  padding: 12px;
  border-radius: 28px;
  box-shadow: var(--shadow-float);
}
.device img {
  width: 100%;
  border-radius: 16px;
  background: var(--ink000);
}
.device.tv {
  border-radius: 44px;
}
.device.tv img {
  border-radius: 32px;
}
.device.phone {
  padding: 8px;
}
.device.phone img {
  border-radius: 20px;
}

/* Home: the slogan, one device group, the lede and the buttons */
.hero {
  padding: 48px 0 64px;
  background: radial-gradient(ellipse 38% 46% at 72% 60%, var(--spill) 0%, var(--spillsoft) 45%, var(--clear) 80%);
}
.hero .wrap {
  display: grid;
  gap: 32px;
  justify-items: center;
  text-align: center;
}
.hero h1 {
  color: var(--cream);
  font-weight: 800;
  font-size: clamp(52px, 8.6vw, 104px);
  line-height: 0.9423;
  letter-spacing: -0.035em;
}
.hero h1 span {
  white-space: nowrap;
}
.hero h1 span:last-child {
  display: block;
}
.stage {
  position: relative;
  width: min(100%, 960px);
  margin-block: 16px;
  padding: 0 0 clamp(48px, 6.7vw, 64px) clamp(32px, 6.7vw, 64px);
}
.browser {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 28px;
  background: var(--ink200);
  box-shadow: 0 0 96px 12px #f6b64840;
}
.browser .dots {
  display: flex;
  gap: 8px;
  padding: 4px 8px;
}
.browser .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}
.browser img {
  width: 100%;
  border-radius: 16px;
  background: var(--ink000);
}
.stage .phone {
  position: absolute;
  left: -8px;
  bottom: -8px;
  width: clamp(118px, 19.8vw, 190px);
}
.hero .lede {
  max-width: var(--text);
  font-size: 21px;
  line-height: 32px;
}
.actions {
  display: flex;
  gap: 12px;
}

/* The two apps: the Logo's icon and name on a raised card */
.apps {
  padding: 32px 0 64px;
}
.apps .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--max);
}
.app-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px 32px;
  border-radius: 28px;
  background: var(--ink200);
}
.app-card h2,
.app-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.wordmark .sub {
  margin-left: 8px;
  color: var(--sand);
  font-weight: 400;
}

/* The bill: three promises, then the install guide */
.bill {
  padding: 64px 0 0;
  text-align: center;
}
.bill .wrap {
  display: grid;
  gap: 32px;
  justify-items: center;
}
.bill h2 span {
  display: block;
}
.bill .more {
  display: grid;
  gap: 12px;
  justify-items: center;
}

/* Features: each app's card, then three features with their real screens */
.features {
  padding: 48px 0 64px;
}
.features .wrap {
  display: grid;
  gap: 64px;
}
.page-head {
  display: grid;
  gap: 12px;
  text-align: center;
}
.page-head p {
  font-size: 21px;
  line-height: 32px;
}
.feature {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: center;
}
.feature.flip {
  grid-template-columns: 6fr 5fr;
}
.feature.flip figure {
  order: -1;
}
.feature > div {
  display: grid;
  gap: 16px;
}
.feature h3 {
  color: var(--cream);
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature p {
  font-size: 21px;
  line-height: 32px;
}
.feature figure {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 32px 0;
  background: radial-gradient(ellipse 40% 70% at 50% 100%, var(--spillsoft) 0%, var(--clear) 100%);
}
.feature .tv {
  width: min(100%, 600px);
}
.feature .phone {
  width: 190px;
}
.feature .tablet {
  width: 240px;
}
.skip-shot {
  position: relative;
  width: min(100%, 600px);
}
.skip-shot .tv {
  width: 100%;
}
.skip-btn {
  position: absolute;
  right: 48px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9999px;
  background: #f6ecdd24;
  backdrop-filter: blur(20px);
  color: var(--cream);
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
}
.feature figcaption {
  max-width: 600px;
  color: var(--dust);
  text-align: center;
}
.ready {
  display: grid;
  gap: 16px;
  justify-items: center;
  padding-top: 32px;
}

/* Footer: the floor under the set */
.site-footer {
  padding: 64px 0 48px;
  background: radial-gradient(ellipse 40% 70% at 50% 100%, var(--spillsoft) 0%, var(--clear) 100%);
}
.site-footer .row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.brand div {
  display: grid;
  gap: 4px;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 0;
  list-style: none;
}
.site-footer ul a {
  display: inline-block;
  padding-block: 12px;
  color: var(--cream);
  text-decoration: none;
}
.site-footer ul a:hover {
  color: var(--cream);
}
.site-footer ul a.mail {
  color: var(--glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.credits {
  max-width: var(--text);
  padding-top: 32px;
  color: var(--dust);
}

/* Privacy and Support: the editorial spread */
.spread {
  padding-top: 48px;
}
.spread .wrap {
  display: grid;
  grid-template-columns: 1fr var(--text);
  gap: 64px;
  align-items: start;
}
.aside {
  position: sticky;
  top: 32px;
  display: grid;
  gap: 32px;
  justify-items: start;
}
.aside > div {
  display: grid;
  gap: 12px;
}
.aside.support {
  gap: 24px;
}
.toc ol {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}
.toc a {
  display: flex;
  gap: 12px;
  color: var(--sand);
  text-decoration: none;
}
.toc a:hover {
  color: var(--cream);
}
.toc a span {
  flex: none;
  width: 36px;
}
.reading {
  display: grid;
  gap: 48px;
  min-width: 0;
}
.tube {
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 44px;
  background:
    radial-gradient(ellipse 75% 70% at 50% 45%, var(--ink300) 0%, var(--ink100) 62%, var(--ink000) 100%), var(--ink100);
}
.tube ul {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}
.tube li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--cream);
  font-size: 17px;
  line-height: 26px;
}
.tube .check {
  margin-top: 3px;
  stroke-width: 2.6;
}
.clause {
  display: grid;
  grid-template-columns: 72px 1fr;
  scroll-margin-top: 32px;
}
.clause .num {
  color: var(--dust);
}
.clause div,
.block {
  display: grid;
  gap: 12px;
}
.faq {
  display: grid;
  gap: 24px;
}
.faq dl {
  display: grid;
  gap: 24px;
  margin: 0;
}
.faq dl div {
  display: grid;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq dd {
  margin: 0;
}

/* Phone and tablet: one column */
@media (max-width: 959px) {
  :root {
    --gutter: 16px;
  }
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-block: 16px 8px;
  }
  .site-nav {
    margin-left: -12px;
  }
  .site-nav a {
    padding-inline: 12px;
  }
  .hero {
    padding: 32px 0 48px;
    background: radial-gradient(ellipse 80% 22% at 50% 36%, var(--spill) 0%, var(--spillsoft) 45%, var(--clear) 80%);
  }
  .browser {
    padding: 8px;
    border-radius: 24px;
  }
  .browser img {
    border-radius: 10px;
  }
  .device.tv {
    border-radius: 28px;
  }
  .device.tv img {
    border-radius: 16px;
  }
  .tube {
    border-radius: 28px;
  }
  .apps .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .app-card {
    padding: 20px;
    border-radius: 24px;
  }
  .bill {
    padding-top: 48px;
  }
  .bill h2 {
    font-size: clamp(30px, 9.3vw, 36px);
    line-height: 38px;
    letter-spacing: -0.015em;
  }
  .features {
    padding: 32px 0 48px;
  }
  .features .wrap {
    gap: 48px;
  }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .feature figure {
    order: -1;
    padding: 24px 0;
  }
  .feature h3 {
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0;
  }
  .feature p,
  .page-head p {
    font-size: 17px;
    line-height: 26px;
  }
  .skip-btn {
    right: 24px;
    bottom: 24px;
    padding: 8px 16px;
    font-size: 15px;
    line-height: 20px;
  }
  .site-footer {
    padding: 64px 0 32px;
  }
  .site-footer .row {
    flex-direction: column;
    align-items: flex-start;
  }
  .spread {
    padding-top: 32px;
  }
  .spread .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .aside {
    position: static;
    gap: 12px;
  }
  .aside.support {
    gap: 24px;
    justify-items: stretch;
  }
  .aside h1 {
    font-size: 52px;
    line-height: 52px;
  }
  .toc {
    display: none;
  }
  .reading {
    gap: 32px;
  }
  .tube {
    padding: 24px;
  }
  .clause {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .clause .num {
    font-size: 22px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: 0;
  }
}

/* Phone: Privacy moves to the footer (it takes Support's place on its own page), the hero reads from the left */
@media (max-width: 599px) {
  .site-nav .wide {
    display: none;
  }
  .hero .wrap,
  .page-head {
    justify-items: stretch;
    text-align: left;
  }
  .hero h1 {
    font-size: min(52px, 14vw);
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .hero h1 span {
    display: block;
  }
  .stage {
    justify-self: center;
  }
  .hero .lede {
    font-size: 17px;
    line-height: 26px;
  }
  .actions {
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 52px;
    line-height: 52px;
  }
}

/* Tablet: the two app cards stay side by side */
@media (min-width: 600px) and (max-width: 959px) {
  .apps .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
