/* AIBEVA — one stylesheet for the whole site. No external resources. */

:root {
  --bg: #ffffff;
  --text: #1c1b19;
  --muted: #625f5b;
  --line: #e2ded8;
  --accent: #7a4a1e;
  --accent-ink: #ffffff;
  --panel: #faf8f5;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --text: #e8e5e0;
    --muted: #a19d97;
    --line: #34312d;
    --accent: #d8a05e;
    --accent-ink: #171614;
    --panel: #1f1d1a;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap.wide {
  max-width: 62rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 4px 8px;
  z-index: 1;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.site-nav a.nav-cta {
  color: var(--accent);
  font-weight: 600;
}

/* Type */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.2;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1.long {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
}

h2 {
  font-size: 1.6rem;
  margin: 0 0 0.8em;
}

h3 {
  font-size: 1.2rem;
  font-style: italic;
  margin: 1.8em 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9em;
}

.small {
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.85em;
}

.nw {
  white-space: nowrap;
}

/* Sections */

main {
  display: block;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.hero {
  padding: 72px 0 56px;
}

.hero .lede {
  font-size: 1.3rem;
  line-height: 1.5;
  max-width: 36rem;
  margin-bottom: 0.6em;
}

.hero .note {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2.2em;
}

/* Buttons */

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--accent);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  max-width: 100%;
  text-align: center;
}

.button:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
}

.terms {
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
  margin: 12px 0 4px;
}

.facts {
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 16px 0 0;
  max-width: 36rem;
}

.facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 12px;
  padding: 3px 0;
}

.facts dt {
  margin: 0;
}

.facts dd {
  margin: 0;
  color: var(--text);
  min-width: 0;
}

.facts code {
  word-break: break-all;
}

/* Cards and grids */

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

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 22px 18px;
}

.card h3,
.card.edition h2 {
  margin-top: 0;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .button {
  margin-top: 8px;
}

.card.edition h3,
.card.edition h2 {
  font-style: normal;
  font-size: 1.35rem;
  margin-bottom: 0.4em;
}

.card .for {
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6em;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.ticks li {
  position: relative;
  padding: 4px 0 4px 1.4em;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.85em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
}

/* Lists */

.plain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:first-child {
  border-top: 1px solid var(--line);
}

.plain-list strong {
  font-weight: normal;
  font-style: italic;
}

ol.steps {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

ol.steps li {
  padding-left: 0.3em;
  margin-bottom: 0.7em;
}

ol.steps strong {
  font-weight: normal;
  font-style: italic;
}

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

tbody th {
  font-weight: 600;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 2rem 16px 0;
  position: relative;
  font-size: 1.1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-family: var(--sans);
  font-size: 1.3rem;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 0 12px;
}

.faq h2 {
  margin-top: 1.6em;
}

.faq h2:first-child {
  margin-top: 0;
}

/* Notices */

.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 20px 22px;
  margin: 0 0 1em;
}

.notice h2,
.notice h3 {
  font-size: 1.2rem;
  font-style: normal;
  margin: 0 0 0.6em;
}

.notice p:last-child {
  margin-bottom: 0;
}

pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  margin: 0 0 1em;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.5;
}

figure:empty {
  display: none;
}

/* Legal documents (EULA, Privacy Policy) */

.doc {
  padding: 56px 0 24px;
  font-size: 1.0625rem;
  line-height: 1.62;
}

.doc .product {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.doc h1 {
  font-size: 1.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.doc .version {
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.doc h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 2rem;
}

.doc h3 {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 0.7em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 0.9em;
}

@media (max-width: 480px) {
  body {
    font-size: 1.0625rem;
  }

  .hero {
    padding: 44px 0 36px;
  }

  .section {
    padding: 44px 0;
  }

  .doc {
    padding-top: 40px;
  }

  .button {
    display: block;
    width: 100%;
    padding: 14px 18px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 0;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-nav,
  .skip {
    display: none;
  }

  .doc h2 {
    color: #000;
  }
}

/* Small helpers (no inline styles: the Content-Security-Policy forbids them) */

.check {
  max-width: 42rem;
  margin-top: 36px;
}

.after {
  margin-top: 1.2em;
}

kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--panel);
}
