/* Fonts (SIL Open Font License): Exo 2, IBM Plex Sans, IBM Plex Mono — served from here, no third-party requests. */
@font-face {
  font-family: 'Exo 2';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/exo-2-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Exo 2';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/exo-2-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
/* Canopus website — the app's graphite palette, one teal accent, the star logo. */
:root {
  --bg: #131416;
  --panel: #1a1b1e;
  --card: #1f2024;
  --raised: #25272b;
  --line: #2d2f34;
  --line-strong: #3c3f45;
  --text: #e6e6e2;
  --text-2: #cbcbc6;
  --muted: #9d9e99;
  --faint: #74767b;
  --accent: #3dbf9c;
  --accent-text: #8fe0c8;
  --on-accent: #04140f;
  --star: #ffd98a;
  --warn: #f0b44f;
  --cut: 14px;
  --max: 1160px;
  --font-ui: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Exo 2', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent-text);
}
a:hover {
  color: #b8f0df;
}
img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0.01em;
}
h1 {
  font-size: clamp(34px, 5vw, 56px);
}
h2 {
  font-size: clamp(26px, 3.4vw, 36px);
}
h3 {
  font-size: 20px;
}
p {
  margin: 0;
}
.wrap {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 17px;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 15px;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
  background: var(--raised);
}
.nav .btn {
  margin-left: 6px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
}
@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
  }
  .nav.open {
    display: flex;
  }
  .nav .btn {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.15s;
}
.btn:hover {
  background: #5ad1b0;
  color: var(--on-accent);
}
.btn.ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  background: var(--raised);
  color: var(--text);
}
.nav .btn {
  padding: 8px 16px;
  color: var(--on-accent);
}

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 48px;
  background: radial-gradient(ellipse 60% 70% at 70% 0%, rgba(61, 191, 156, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 50% at 15% 20%, rgba(255, 217, 138, 0.06), transparent 70%);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.lead {
  font-size: 19px;
  color: var(--text-2);
  margin-top: 18px;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
.hero-media {
  position: relative;
}
.hero-media video,
.hero-media img {
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chip {
  font-size: 13px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---------- sections ---------- */
section.block {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 17px;
}
.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Cards with the EVE window cut on two corners. */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.grid {
  display: grid;
  gap: 16px;
}
.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}
@media (max-width: 420px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--text-2);
}
.card .more {
  display: inline-block;
  margin-top: 14px;
  font-weight: 500;
  text-decoration: none;
}
.card .more::after {
  content: ' →';
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card-link:hover .card {
  border-color: var(--line-strong);
  background: var(--card);
}
.card .shot {
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  width: calc(100% + 48px);
  max-width: none;
}

/* Feature rows: text beside a picture, alternating. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 40px;
  align-items: center;
  padding: 36px 0;
}
.feature.flip .feature-text {
  order: 2;
}
@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .feature.flip .feature-text {
    order: 0;
  }
}
.feature-text h2,
.feature-text h3 {
  margin-bottom: 14px;
}
.feature-text p {
  color: var(--text-2);
}
.feature-text p + p {
  margin-top: 10px;
}
.feature figure {
  margin: 0;
}
.feature figure img {
  border-radius: 10px;
  border: 1px solid var(--line);
}
figcaption {
  font-size: 13px;
  color: var(--faint);
  margin-top: 8px;
}
ul.ticks {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
ul.ticks li {
  position: relative;
  padding-left: 24px;
  margin: 8px 0;
  color: var(--text-2);
}
ul.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
ul.ticks b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.dl h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl .files {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.dl .files a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
}
.dl .files a:hover {
  border-color: var(--accent);
}
.dl .files small {
  color: var(--muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.dl.mine {
  border-color: var(--accent);
}
.dl.mine .yours {
  display: inline-block;
}
.yours {
  display: none;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 4px;
  padding: 1px 6px;
}
.dl p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.version {
  font-family: var(--font-mono);
  color: var(--accent-text);
}

/* ---------- FAQ, prose, changelog ---------- */
.prose {
  max-width: 780px;
}
.prose h2 {
  margin: 44px 0 14px;
}
.prose h3 {
  margin: 28px 0 10px;
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul,
.prose ol {
  padding-left: 22px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  color: var(--muted);
  font-weight: 500;
}
details.faq {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  margin: 10px 0;
}
details.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
details.faq[open] summary::after {
  content: '−';
}
details.faq > div {
  padding: 0 20px 18px;
  color: var(--text-2);
}
details.faq > div p + p {
  margin-top: 10px;
}
.release {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.release h2 {
  font-size: 24px;
}
.release .date {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 14px;
}
.release .body {
  color: var(--text-2);
}
.release .body h3,
.release .body h4 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.release .body ul {
  padding-left: 22px;
}
.release .body table {
  display: none;
}
.notice {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--text-2);
}

/* ---------- call to action, footer ---------- */
.cta {
  text-align: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(61, 191, 156, 0.1), transparent 70%);
}
.cta p {
  color: var(--muted);
  margin: 14px auto 26px;
  max-width: 560px;
}
.cta .hero-actions {
  justify-content: center;
}
.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 14px;
}
.site-foot .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.site-foot nav a {
  color: var(--muted);
  text-decoration: none;
}
.site-foot nav a:hover {
  color: var(--text);
}
.site-foot .legal {
  margin-top: 24px;
  max-width: 760px;
}
.feature.text-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}
.feature.text-only .feature-text {
  order: 0;
}
.feature.text-only ul.ticks {
  columns: 2 320px;
  column-gap: 32px;
}
.feature.text-only ul.ticks li {
  break-inside: avoid;
}

/* ---------- home: a ship behind the hero, the app in front ---------- */
.hero-home {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}
.hero-ship {
  position: absolute;
  top: -12%;
  right: -10%;
  width: min(1000px, 78vw);
  aspect-ratio: 1;
  background: url('../shots/hero-ship.webp') center / contain no-repeat;
  opacity: 0.6;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.hero-home .wrap {
  position: relative;
  z-index: 1;
}
.hero-shot {
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
}
@media (max-width: 960px) {
  .hero-ship {
    top: auto;
    bottom: -6%;
    right: -30%;
    width: 120vw;
    opacity: 0.4;
  }
  .hero-shot {
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-shot {
    transition: transform 0.6s ease;
  }
  .hero-media:hover .hero-shot {
    transform: perspective(1600px) rotateY(-2deg) rotateX(1deg);
  }
}

/* ---------- facts band ---------- */
.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
}
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts-row > div {
  padding: 28px 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.facts-row > div:first-child {
  border-left: 0;
  padding-left: 0;
}
.facts-row b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--accent-text);
}
.facts-row span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .facts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts-row > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .facts-row > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---------- feature rows: pictures with depth; a wide row with the picture across ---------- */
.feature figure img {
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.feature.wide {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.feature.wide .feature-text {
  max-width: 760px;
  order: 0;
}

/* ---------- card grid: the phone card takes two columns so the last row is full ---------- */
@media (min-width: 900px) {
  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .card-link.wide {
    grid-column: span 2;
  }
  .card-link.wide .shot {
    aspect-ratio: 32 / 10;
    object-position: center;
  }
}
.card-link {
  transition: transform 0.2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
}
.grid.three > .card-link,
.grid.three > .card-link > .card {
  height: 100%;
}
