:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #151515;
  --muted: #5d646b;
  --line: #e7e7e7;
  --panel: #f6f7f8;
  --red: #ff0000;
  --red-dark: #cc0000;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
}

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav {
  max-width: 1024px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

.nav-links a:hover {
  color: var(--text);
}

main {
  max-width: 1024px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 42px 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 18px;
}

.lead {
  max-width: 640px;
  margin-top: 22px;
  font-size: 21px;
}

.promo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: #ffffff;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: #ffffff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

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

.panel p,
.content p,
.content li {
  font-size: 16px;
}

.content {
  max-width: 760px;
}

ul {
  padding-left: 22px;
}

li {
  margin: 8px 0;
  color: var(--muted);
}

.note {
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  background: var(--panel);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 780px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Guide screenshots */
figure.screenshot {
  margin: 20px 0 28px;
}
figure.screenshot img {
  display: block;
  max-width: min(420px, 100%);
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
figure.screenshot figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #5f6368;
}
