/*
 * Single-accent marketing page. The accent comes from site.json through the inline --accent
 * custom property; everything else is one neutral family. No remote fonts or scripts: the page
 * makes the same privacy promise as the policy it links to.
 */

:root {
  --font-display: -apple-system, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --font-body: -apple-system, "SF Pro Text", system-ui, sans-serif;
  --ink: #18181b;
  --ink-soft: #52525b;
  --ink-mute: #a1a1aa;
  --line: #e4e4e7;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --radius: 12px;
  --radius-sm: 6px;
  --measure: 62ch;
  --shot-width: 264px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-gap: clamp(64px, 10vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f5;
    --ink-soft: #a1a1aa;
    --ink-mute: #71717a;
    --line: #27272a;
    --surface: #121212;
    --surface-soft: #18181b;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.site-header,
main,
.site-footer {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}

.brand img {
  border-radius: 9px;
  border: 1px solid var(--line);
}

.locale-nav {
  display: flex;
  gap: 4px;
}

.locale-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  transition: color 120ms ease, background-color 120ms ease;
}

.locale-nav a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.locale-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* Hero */

.hero {
  padding-block: var(--section-gap) calc(var(--section-gap) * 0.6);
}

.hero-copy {
  max-width: var(--measure);
  display: grid;
  gap: 24px;
  justify-items: start;
}

.summary {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--ink-soft);
  max-width: 48ch;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: transform 120ms ease, opacity 120ms ease;
}

.cta:hover {
  opacity: 0.92;
}

.cta:active {
  transform: translateY(1px) scale(0.99);
}

/* Screenshots */

/*
 * Pointer-sized viewports show the whole set in one row: equal tracks capped at --shot-width that
 * shrink together, so three to five screenshots always fit without a horizontal scrollbar. Touch
 * widths keep the swipe strip, where a full-size screenshot beats five unreadable thumbnails.
 */

.screenshots {
  padding-block: calc(var(--section-gap) * 0.5);
  display: grid;
  gap: 28px;
}

.screenshot-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, var(--shot-width));
  justify-content: center;
  gap: clamp(14px, 1.8vw, 24px);
}

.screenshot-strip li {
  min-width: 0;
}

.screenshot-strip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

@media (max-width: 860px) {
  .screenshot-strip {
    display: flex;
    /*
     * The row above centres its tracks. A centred flex line splits its overflow across both
     * sides, and the scrollable area starts at the content edge, so the leading half would be
     * unreachable at any scroll position. A scroll container must start at its first item.
     */
    justify-content: flex-start;
    padding: 4px 0 20px;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .screenshot-strip li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .screenshot-strip img {
    width: auto;
    height: clamp(420px, 62vh, 560px);
  }
}

/* Features */

/*
 * A six-column base divides evenly by two and by three, and the span comes from the card count the
 * build writes into data-count. Every supported count (3 to 6) fills its rows exactly, so no row
 * ever ends in an empty cell.
 */

.features {
  padding-block: calc(var(--section-gap) * 0.5);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feature-grid li {
  grid-column: span 6;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.feature-grid li p {
  color: var(--ink-soft);
  max-width: 46ch;
}

@media (min-width: 721px) and (max-width: 999.98px) {
  .feature-grid li {
    grid-column: span 3;
  }

  .feature-grid[data-count="3"] li:last-child,
  .feature-grid[data-count="5"] li:last-child {
    grid-column: span 6;
  }
}

@media (min-width: 1000px) {
  .feature-grid li {
    grid-column: span 2;
  }

  .feature-grid[data-count="4"] li {
    grid-column: span 3;
  }

  .feature-grid[data-count="5"] li:nth-child(-n + 2) {
    grid-column: span 3;
  }
}

/* Support */

.support {
  padding-block: calc(var(--section-gap) * 0.5) var(--section-gap);
  display: grid;
  gap: 12px;
  justify-items: start;
  max-width: var(--measure);
}

.support p {
  color: var(--ink-soft);
}

.support-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.support-link:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
}

.support-link:active {
  transform: translateY(1px);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: var(--ink-mute);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 120ms ease;
}

.footer-links a:hover {
  color: var(--ink);
}
