/* The project page. Colours, fonts, radii and motion come only from tokens.css, which the site
   build copies from the app's src/app.css: the page and the app share one palette. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--color-ring);
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

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

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.bar nav {
  display: flex;
  gap: 20px;
}

.bar nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.bar nav a:hover {
  color: var(--color-text);
}

.theme {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 18px;
  cursor: pointer;
}

/* ---------- sections ---------- */

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 48px) 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 28px;
}

.hero {
  text-align: center;
}

.eyebrow {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-faint);
}

.hero h1 {
  font-size: clamp(36px, 6.4vw, 68px);
  letter-spacing: -0.01em;
}

.lead {
  max-width: 720px;
  margin: 24px auto 0;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--color-text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--motion-fast) var(--motion-ease-out);
}

.btn:hover {
  background: var(--color-surface-2);
}

.btn.primary {
  border-color: transparent;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn.primary:hover {
  background: var(--color-accent-pressed);
}

.shot {
  margin: 48px 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-popover);
}

.shot img {
  width: 100%;
}

/* ---------- features ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.grid article {
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.grid h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.grid p {
  margin: 0;
  color: var(--color-text-muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.gallery figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-faint);
}

/* ---------- comparison ---------- */

.table {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

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

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

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

thead th {
  font-size: 14px;
  color: var(--color-text-faint);
}

tbody th {
  font-weight: 600;
}

td {
  color: var(--color-text-muted);
}

.us {
  background: var(--color-surface-2);
  color: var(--color-text);
  font-weight: 700;
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--color-text-faint);
}

/* ---------- download ---------- */

.version {
  margin: -12px 0 24px;
  color: var(--color-text-muted);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--motion-fast) var(--motion-ease-out);
}

.card:hover {
  border-color: var(--color-ring);
}

.card strong {
  font-family: var(--font-display);
  font-size: 20px;
}

.card span {
  color: var(--color-text-muted);
  font-size: 14px;
}

footer {
  max-width: 1120px;
  margin: 96px auto 0;
  padding: 24px clamp(16px, 4vw, 48px) 48px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-faint);
  font-size: 14px;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
