@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #F7F5EF;
  --surface: #FFFFFF;
  --sunk: #F1EEE6;
  --line: #E2DED3;
  --ink: #17221D;
  --ink-2: #4B5A52;
  --ink-3: #5B6A62;
  --pine: #0E3B30;
  --accent: #C2461B;
  --accent-hover: #A63A15;
  --on-accent: #FFFFFF;
  --shadow: 0 24px 60px rgba(14, 30, 24, .16), 0 2px 6px rgba(14, 30, 24, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111C18;
    --surface: #16241F;
    --sunk: #0F1915;
    --line: #22342D;
    --ink: #E8EFEA;
    --ink-2: #A9B8B0;
    --ink-3: #93A59C;
    --pine: #0A1512;
    --accent: #F0A27A;
    --accent-hover: #F7C2A6;
    --on-accent: #2A1206;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover { color: var(--ink); }
.gh { display: inline-flex; align-items: center; gap: 6px; }

/* Hero */
.hero { padding: 72px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; }
.lede { margin: 18px 0 0; font-size: 19px; color: var(--ink-2); max-width: 60ch; }
.lede.small { font-size: 17px; margin-top: 10px; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.hero-rowdy { width: 260px; }
.hero-shot { margin-top: 48px; }

.ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 11px; font-weight: 700; font-size: 15.5px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

/* App screenshots sit in a simple window frame */
.window {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.window img { width: 100%; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--sunk); border-block: 1px solid var(--line); }
h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }

.engines { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.engines li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.engines p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.glyph {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--c);
  color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy p:not(.eyebrow) { color: var(--ink-2); margin: 12px 0 0; }
.feature h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }

/* Download */
.download { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: start; }
.download > img { width: 200px; }
.facts { margin: 32px 0 0; display: grid; gap: 14px; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14.5px; color: var(--ink-3); }
.foot-inner { display: flex; flex-direction: column; gap: 6px; }
.foot p { margin: 0; }
.siblings { display: flex; gap: 8px; margin-top: 8px; }
.siblings a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.siblings a[aria-current] { color: var(--ink); }

@media (max-width: 860px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-rowdy { width: 160px; order: -1; }
  .feature, .download { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-copy { order: 0; }
  .download > img { width: 140px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .section { padding: 64px 0; }
  .feature + .feature { margin-top: 64px; }
  .top-nav { gap: 14px; }
  .top-nav a:not(.gh) { display: none; }
}
