/* Fonts are served from this site, not Google, so a visit sends nothing to a
   third party. Both are SIL OFL 1.1; the licences sit beside the files. */
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
/* The wordmark: IBM Plex Sans 700 only (docs/brand/brand.html). */
@font-face {
  font-family: 'IBM Plex Sans';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}

/* Palette from docs/brand/brand.html. Dark is the brand's home ground. */
:root {
  --bg: #0a0c0d;
  --surface: #12171a;
  --line: #262b29;
  --text: #e6eae8;
  --muted: #9aa4a0;
  --accent: #4ecfa0;
  --accent-ink: #07130e;
  --track: #171a1c;
  --glow: rgba(78, 207, 160, 0.14);

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1080px;
  --radius: 12px;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f7f5;
    --surface: #ffffff;
    --line: #dde3e0;
    --text: #12171a;
    --muted: #6b7471;
    --accent: #1a6c47;
    --accent-ink: #ffffff;
    --track: #e6eae8;
    --glow: rgba(26, 108, 71, 0.10);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

main, .bar, .foot {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lockup-mark { width: 28px; height: 28px; color: var(--accent); }

.wordmark {
  font: 700 21px/1 'IBM Plex Sans', system-ui, sans-serif;
  letter-spacing: 1.5px;
  color: var(--text);
}

.bar-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.bar-link:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: clamp(40px, 9vw, 112px) clamp(56px, 10vw, 128px);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 36px;
  max-width: 34em;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
}

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.button svg { width: 18px; height: 18px; flex: none; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px var(--glow);
}
.button.primary:hover { box-shadow: 0 10px 34px var(--glow), 0 0 0 4px var(--glow); }

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}
.button.secondary:hover { border-color: var(--muted); }

.version { font-weight: 400; opacity: 0.75; }
.version:empty { display: none; }

.fineprint { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.notice {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}

.hero-art {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-art::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.ring { position: relative; width: min(100%, 380px); height: auto; }
.ring-track { fill: none; stroke: var(--track); stroke-width: 10; }
.ring-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.ring-dot {
  fill: var(--accent);
  transform-origin: 50px 50px;
  animation: pop 0.5s 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { transform: scale(0); } }

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

section + section { border-top: 1px solid var(--line); }
.features, .steps, .privacy { padding-block: clamp(56px, 8vw, 96px); }

.section-title {
  margin: 0 0 36px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
section p { margin: 0; }

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid li { padding: 28px; background: var(--bg); }
.grid p { color: var(--muted); font-size: 15px; }

.steps ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.steps li p { color: var(--muted); font-size: 15px; }
.steps strong { color: var(--text); font-weight: 600; }
.aside { margin-top: 36px !important; color: var(--muted); }

.privacy p { max-width: 42em; font-size: 18px; color: var(--muted); }

.closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(64px, 10vw, 120px);
}
.closer-mark { width: 44px; height: 44px; color: var(--accent); }
.closer h2 {
  margin: 20px 0 28px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.closer-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px 40px;
  /* A rule the width of the content, matching the section rules above it. */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 14px;
  color: var(--muted);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ---------- small screens ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .ring { width: 120px; }
  .hero-art::before { inset: -20%; }
  .grid, .steps ol { grid-template-columns: 1fr; }
  .steps ol { gap: 28px; }
}

@media (max-width: 480px) {
  .button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring-arc, .ring-dot { animation: none; }
  .button { transition: none; }
}

/* ---------- 404 ---------- */

.missing-title {
  margin: 20px 0 8px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.missing-copy { margin: 0 0 28px; }
