/*
 * Colours are Coral's own, from ui/src/styles/tokens.css, so the page and the window read as
 * one product. Aqua does the functional jobs (links, buttons); coral is the mark and nothing
 * else, as in the application.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg-0: #ffffff;
  --bg-1: #f5f7fa;
  --bg-2: #eaeef4;
  --border: #dfe4ec;
  --fg-0: #0c1017;
  --fg-1: #2c3646;
  --fg-2: #4a5566;
  --accent: #0a7d72;
  --accent-hover: #086a61;
  --accent-fg: #ffffff;
  --accent-soft: #ddedeb;
  --brand: #e0533b;
  --brand-soft: #fbe9e6;
  --lane-1: #096cb3;
  --lane-2: #bf2681;
  --lane-3: #8d6005;
  --lane-4: #2b7737;
  --lane-5: #7245ef;
  --lane-6: #b94000;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 10px;
  --wide: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg-0: #0e1116;
    --bg-1: #151a21;
    --bg-2: #1d242d;
    --border: #2a323d;
    --fg-0: #ffffff;
    --fg-1: #d5dbe3;
    --fg-2: #a3adba;
    --accent: #2ecfc0;
    --accent-hover: #5adbcf;
    --accent-fg: #062522;
    --accent-soft: #143331;
    --brand: #ff8f5a;
    --brand-soft: #392822;
    --lane-1: #4aaef7;
    --lane-2: #e878ba;
    --lane-3: #f2b73c;
    --lane-4: #5fc973;
    --lane-5: #a288f6;
    --lane-6: #ff9560;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font: 400 17px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg-1);
  color: var(--fg-0);
}

h1,
h2,
h3 {
  color: var(--fg-0);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg-0) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-0);
  font-weight: 650;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0;
}

.nav ul a {
  color: var(--fg-2);
  font-size: 15px;
  text-decoration: none;
}

.nav ul a:hover {
  color: var(--fg-0);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
}

.button.quiet {
  background: transparent;
  border-color: var(--border);
  color: var(--fg-0);
}

.button.quiet:hover {
  background: var(--bg-1);
}

.nav .button {
  padding: 7px 14px;
  font-size: 14px;
}

.hero {
  padding: 88px 0 40px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--fg-0);
  font-size: 14px;
  font-weight: 500;
}

.eyebrow b {
  color: var(--brand);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 750;
  max-width: 14ch;
  margin: 0 auto;
}

.hero .lede {
  max-width: 640px;
  margin: 22px auto 32px;
  font-size: 20px;
  color: var(--fg-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.platform-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--fg-2);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
}

.facts li {
  padding: 18px 20px;
  background: var(--bg-0);
  text-align: left;
}

.facts b {
  display: block;
  color: var(--fg-0);
  font-size: 16px;
}

.facts span {
  font-size: 14px;
  color: var(--fg-2);
}

.shot {
  margin: 48px auto 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgb(12 16 23 / 35%);
  overflow: hidden;
  background: var(--bg-1);
}

section {
  padding: 96px 0;
}

section.alt {
  background: var(--bg-1);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 720;
}

.section-head p {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--fg-2);
}

.band {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
}

.band + .band {
  border-top: 1px solid var(--border);
}

.band.flip {
  grid-template-columns: 7fr 5fr;
}

.band.flip .copy {
  order: 2;
}

.band h3 {
  font-size: 28px;
  font-weight: 700;
}

.band p {
  margin: 14px 0 0;
}

.band ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.band li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 16px;
}

.band li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--lane-color, var(--accent));
}

.band li:nth-child(3n + 1) {
  --lane-color: var(--lane-1);
}

.band li:nth-child(3n + 2) {
  --lane-color: var(--lane-2);
}

.band li:nth-child(3n + 3) {
  --lane-color: var(--lane-4);
}

.frame {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-1);
  box-shadow: 0 20px 50px -28px rgb(12 16 23 / 40%);
}

.frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: var(--focus, left top);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-0);
}

.card h3 {
  font-size: 18px;
  font-weight: 650;
}

.card p {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--fg-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.stat {
  padding: 24px;
  border-top: 3px solid var(--lane-color, var(--accent));
  background: var(--bg-0);
  border-radius: 0 0 var(--radius) var(--radius);
}

.stat:nth-child(1) {
  --lane-color: var(--lane-1);
}

.stat:nth-child(2) {
  --lane-color: var(--lane-2);
}

.stat:nth-child(3) {
  --lane-color: var(--lane-4);
}

.stat:nth-child(4) {
  --lane-color: var(--lane-5);
}

.stat b {
  display: block;
  color: var(--fg-0);
  font-size: 40px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--fg-2);
}

.charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}

.chart h3 {
  font-size: 18px;
  font-weight: 650;
}

.chart .unit {
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--fg-2);
}

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bars li {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 15px;
}

.bars .track {
  position: relative;
  display: block;
  height: 26px;
}

.bars .fill {
  display: block;
  height: 100%;
  width: var(--w);
  min-width: 3px;
  border-radius: 4px;
  background: var(--fg-2);
  opacity: 0.35;
}

.bars .us .fill {
  background: var(--brand);
  opacity: 1;
}

.bars .us {
  color: var(--fg-0);
  font-weight: 650;
}

.bars .value {
  position: absolute;
  left: calc(var(--w) + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-1);
  white-space: nowrap;
}

.method {
  margin-top: 48px;
  padding: 20px 24px;
  border-left: 3px solid var(--border);
  font-size: 15px;
  color: var(--fg-2);
}

.method p {
  margin: 0 0 8px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  background: var(--bg-1);
  color: var(--fg-0);
  font-weight: 650;
}

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

tbody th {
  color: var(--fg-0);
  font-weight: 550;
  white-space: nowrap;
}

td.us,
th.us {
  background: var(--accent-soft);
  color: var(--fg-0);
  font-weight: 600;
}

td .note {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-2);
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download h3 {
  font-size: 20px;
}

.download .links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.download .links a {
  font-size: 15px;
}

.download .needs {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--fg-2);
}

.download.here {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg-2);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

footer a {
  color: var(--fg-2);
}

@media (max-width: 900px) {
  .nav ul {
    display: none;
  }

  .nav .button {
    margin-left: auto;
  }

  .facts,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .band,
  .band.flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .band.flip .copy {
    order: 0;
  }

  .grid,
  .charts,
  .downloads {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .hero {
    padding-top: 56px;
  }

  .facts,
  .stats {
    grid-template-columns: 1fr;
  }

  section {
    padding: 64px 0;
  }

  .bars li {
    grid-template-columns: 104px 1fr;
  }
}
