/* Shared styles for every page. One typeface: Inter. */

:root {
  --text: #252421;
  --muted: #6f6d68;
  --faint: #9a9791;
  --line: #e8e6e2;
  --soft: #f7f6f3;
  --bg: #ffffff;
  --underline: #b9b6b0;
  --btn: #252421;
  --btn-text: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ebe9e5;
    --muted: #a3a09a;
    --faint: #75726d;
    --line: #2f2e2b;
    --soft: #201f1d;
    --bg: #171716;
    --underline: #5e5c58;
    --btn: #ebe9e5;
    --btn-text: #171716;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The same typeface everywhere, including code and form controls. */
code, kbd, pre, samp, button, input, summary {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--underline);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; }
li { margin: 0.2rem 0; }
strong { font-weight: 600; }

code, kbd {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0.3em;
  font-size: 0.9em;
}

pre {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92em;
}

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

/* Layout */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 680px; }

.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand img { width: auto; height: 20px; }
@media (prefers-color-scheme: dark) { .brand img { filter: invert(1); } }

.top .links {
  display: flex;
  gap: 0.25rem;
  font-size: 0.93rem;
}
.top .links a,
.top .gh {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 32px;
  padding: 0 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.top .links a:hover,
.top .gh:hover { color: var(--text); background: var(--soft); }
.top .links a[aria-current="page"] { color: var(--text); background: var(--soft); font-weight: 500; }

.top .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.top .gh .ic { width: 16px; height: 16px; }

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, top 0.2s ease;
}
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
.burger[aria-expanded="true"] span:first-child { top: 16.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 16.5px; transform: rotate(-45deg); }

.menu { display: none; }

@media (max-width: 720px) {
  .top .links, .top .gh { display: none; }
  .burger { display: block; }
  .menu.open {
    display: block;
    border-top: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .menu a {
    display: block;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
  }
  .menu a:last-child { border-bottom: 0; }
  .menu a[aria-current="page"] { font-weight: 600; }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 1rem;
  border-radius: 10px;
  background: var(--btn);
  color: var(--btn-text);
  border: 1px solid var(--btn);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.btn .ic { width: 16px; height: 16px; flex: none; }

.btn.plain {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn.plain:hover { border-color: var(--underline); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }

.btn.small { height: 32px; padding: 0 0.8rem; font-size: 0.88rem; border-radius: 8px; }
.btn.large { height: 46px; padding: 0 1.35rem; font-size: 1rem; border-radius: 12px; }
.btn.large .ic { width: 18px; height: 18px; }

@media (prefers-color-scheme: dark) {
  .btn { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
  .btn:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
  .btn.plain { background: var(--soft); }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
}

/* Hero */

.hero {
  text-align: center;
  padding: 5.5rem 0 3.5rem;
}
.hero h1 { max-width: 760px; margin: 0 auto 1.1rem; }
.hero .lead { max-width: 600px; margin: 0 auto; }
.hero .actions { justify-content: center; }

/* Screenshots */

.frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}
.frame img { width: 100%; }

/* Sections */

.sec { padding: 7rem 0 0; }
.sec-head { max-width: 680px; margin-bottom: 2.5rem; }
.sec-head h2 { margin-bottom: 0.9rem; }
.sec-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid h3 { margin: 1rem 0 0.35rem; }
.grid p { color: var(--muted); margin: 0; }
.grid .frame { aspect-ratio: 16 / 10; }
.grid .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.grid .frame.fit { background: #ffffff; padding: 0.75rem; }
.grid .frame.fit img { object-fit: contain; object-position: center; }
@media (prefers-color-scheme: dark) { .grid .frame.fit { background: #181818; } }
.also { margin: 2rem 0 0; color: var(--muted); }

.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.cols > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.cols h3 { margin-bottom: 0.4rem; }
.cols p { color: var(--muted); margin: 0; }

@media (max-width: 820px) {
  .grid.three, .grid.two, .cols { grid-template-columns: minmax(0, 1fr); }
  .sec { padding-top: 4.5rem; }
  .hero { padding-top: 3.5rem; }
}

/* Chart */

.chart {
  margin: 2.5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
}
.chart svg { display: block; width: 100%; height: auto; }
.chart .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.chart .legend span::before {
  content: "";
  display: inline-block;
  width: 18px;
  vertical-align: middle;
  margin-right: 0.45rem;
  border-top: 2px solid var(--text);
}
.chart .legend .dashed::before { border-top: 2px dashed var(--faint); }
.chart figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; max-width: 760px; }
.chart figcaption p { margin: 0; }
.chart figcaption ol { margin: 0.6rem 0 0; padding-left: 1.2rem; font-size: 0.85rem; color: var(--faint); }

/* Questions */

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1.05rem;
  color: var(--faint);
  font-size: 1.2rem;
  line-height: 1.2;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* Closing block */

.end {
  text-align: center;
  padding: 7rem 0;
}
.end h2 { margin-bottom: 0.9rem; }
.end p { color: var(--muted); max-width: 520px; margin: 0 auto; }
.end .actions { justify-content: center; }

/* Download and roadmap pages */

.page { padding: 4.5rem 0 6rem; }
.page h1 { margin-bottom: 1rem; }
.page .sub-h { font-size: 1.4rem; margin: 4.5rem 0 0; }

.box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.box h2, .box h3 { margin: 0 0 0.5rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.box p { color: var(--muted); }
.box .note { font-size: 0.88rem; color: var(--faint); }
.box .actions { margin-top: auto; padding-top: 0.75rem; }

.release {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.release:last-of-type { border-bottom: 1px solid var(--line); }
.release .ver { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.release h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.release p, .release li { color: var(--muted); }
.release ul { margin-bottom: 0; }
@media (max-width: 600px) {
  .release { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
}

/* Footer */

.foot {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.foot .cols-f {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}
.foot .about p { max-width: 280px; margin: 0.75rem 0 0; }
.foot h4 {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}
.foot .cols-f a:not(.brand) {
  display: block;
  padding: 0.15rem 0;
  text-decoration: none;
  color: var(--muted);
}
.foot a:hover { color: var(--text); }
.foot .legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  color: var(--faint);
}
.foot .legal a { color: var(--faint); }
@media (max-width: 720px) {
  .foot .cols-f { grid-template-columns: 1fr 1fr; }
  .foot .cols-f > :first-child { grid-column: 1 / -1; }
}

/* Capability lists under section headings */
.feat {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  columns: 2;
  column-gap: 2.5rem;
}
.feat li { margin: 0 0 0.35rem; break-inside: avoid; }
@media (max-width: 720px) { .feat { columns: 1; } }

.legal-text h2 { font-size: 1.2rem; margin: 2.25rem 0 0.6rem; }
