:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, sans-serif;
  color: #181b2b;
  background: #f5f6fa;
  --secondary: #4d536a;
  --accent: #2947c5;
  --border: #d9dce8;
  --shell-width: 1060px;
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100svh;
  margin: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-header, main {
  width: min(var(--shell-width), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { height: auto; }
.brand-icon { object-fit: contain; }
.text-link { color: var(--accent); font-size: .875rem; font-weight: 600; text-underline-offset: .25em; }
.text-link:hover { color: #163092; }
.text-link span { margin-inline-start: .16em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  min-height: 0;
  padding-block: clamp(16px, 5svh, 52px);
}

h1, p, figure { margin: 0; }
h1 {
  font-size: clamp(2.25rem, min(6.3vw, 12svh), 4.5rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.description {
  max-width: 32ch;
  margin-top: 23px;
  color: var(--secondary);
  font-size: clamp(1rem, 1.65vw, 1.2rem);
  line-height: 1.55;
}
.download { margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 56px;
  padding: 12px 22px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: var(--accent);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}
.button[href]:hover { background: #163092; }
.button:disabled { color: #35467d; background: #dbe1f7; }

.preview {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: 100%;
  min-height: 0;
  max-height: 540px;
  padding: clamp(12px, min(4.25vw, 6svh), 52px);
  border: 1px solid #818fbc;
  border-radius: 32px;
  background: radial-gradient(ellipse at 70% 15%, #b9cdff, transparent 70%), linear-gradient(150deg, #6979b8, #1b2750 76%);
}
.preview img {
  width: auto;
  height: 100%;
  max-height: 434px;
  object-fit: contain;
  border-radius: 7.25% / 4.5%;
  box-shadow: 0 24px 42px #111a3f90, 0 2px 5px #111a3f70;
}

@media (max-width: 760px) {
  .site-header, main { width: calc(100% - 40px); }
  .site-header { min-height: 60px; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 20px; }
  .description { margin-top: 14px; }
  .download { margin-top: 18px; }
  .preview { border-radius: 24px; }
}

@media (max-width: 360px) {
  .site-header .text-link { font-size: .75rem; }
  .brand img:last-child { width: 93px; }
}

@media (max-height: 480px) {
  .site-header { min-height: 48px; }
  .hero { padding-block: 12px; }
  .description { margin-top: 12px; }
  .download { margin-top: 16px; }
}

@media (max-width: 760px) and (max-height: 400px) {
  .hero { grid-template-rows: minmax(0, 1fr); }
  .preview { display: none; }
}
