* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--fg);
  font: 400 1rem/1.6 var(--font-ui);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.wrap { width: min(calc(100% - 64px), 1280px); margin-inline: auto; }

.site-header,
.site-nav,
.hero__actions {
  display: flex;
  align-items: center;
}

.site-header { min-height: 88px; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; }
.brand img, .site-footer img { display: block; height: auto; }

.button {
  display: inline-flex;
  min-height: 48px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  padding: 8px 20px;
  font-size: 0.875rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
}

.button--filled { background: var(--action); color: var(--fg-on-accent); }
.button--filled:hover { background: var(--action-hover); }
.button--tonal { background: var(--action-soft); color: var(--brand-forest); }
.button--tonal:hover, .button--text:hover { background: var(--bg-hover); }
.button--text { color: var(--action); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.hero__content {
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: var(--radius-lg);
  background: var(--action-soft);
  padding: clamp(28px, 4vw, 64px);
}

h1, h2 { margin: 0; color: var(--brand-forest); letter-spacing: -0.04em; }
h1 { font-size: clamp(2.5rem, 4.1vw, 4.25rem); line-height: 1.03; font-weight: 650; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1.15; font-weight: 650; }
.hero__content p { max-width: 45ch; margin: 22px 0 26px; color: var(--fg-secondary); }
.hero__actions { flex-wrap: wrap; gap: 4px 8px; }

.hero__image {
  display: block;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.examples { padding-top: clamp(36px, 4.2vw, 64px); }
.examples > p { margin: 8px 0 20px; color: var(--fg-secondary); }
.examples__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.example {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  text-decoration: none;
}

.example:hover { background: var(--bg-muted); }
.example__verdict { display: block; margin-top: 3px; font-size: 0.875rem; color: var(--fg-secondary); }
.example__arrow {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--action-soft);
  color: var(--action);
}

.video {
  margin-block: 24px 40px;
  border-bottom: 1px solid var(--border);
}

.video summary { padding: 12px 6px; cursor: pointer; color: var(--action); font-weight: 600; }
.video video { display: block; width: 100%; max-height: 70vh; border-radius: var(--radius-lg); background: var(--brand-forest); }
.video[open] { padding-bottom: 12px; }
.site-footer { padding-block: 0 24px; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 32px); }
  .hero__content { min-height: auto; }
  .examples__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .brand img { width: 136px; }
  .hero { grid-template-columns: 1fr; }
  .hero__image { height: auto; aspect-ratio: 16/10; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .example { transition: background-color 150ms ease; }
}
