html,
body {
  font-size: 14px;
  line-height: 1.5;
}

html {
  scroll-behavior: smooth;
}

/* The header runs across the page. Below it, the page list stays on the left and the sections read on the right. */
.doc {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px var(--space-7);
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6) 56px;
}

.intro-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.intro-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.intro-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

h1 {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.version {
  align-self: flex-end;
  padding-bottom: var(--space-2);
  color: var(--text-3);
  font: 600 var(--size-small) / 1 var(--font-number);
  letter-spacing: 0.04em;
}

.pitch {
  max-width: 680px;
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.pitch b {
  color: var(--text-1);
}

.intro-nav {
  position: sticky;
  top: var(--space-5);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.intro-nav .ui-section-header {
  margin-bottom: var(--space-2);
}

.intro-nav .ui-list-row__main,
.links .ui-list-row__main {
  color: inherit;
  text-decoration: none;
}

.intro-nav .ui-list-row:hover,
.links .ui-list-row:hover {
  background: var(--ink-3);
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-width: 0;
  max-width: 680px;
}

.intro-body section {
  scroll-margin-top: var(--space-5);
}

h2 {
  margin: 0 0 var(--space-4);
}

.flow .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--text-2);
}

.lead {
  margin: var(--space-5) 0 0;
  color: var(--text-2);
  line-height: 1.6;
}

h2 + .lead {
  margin: 0 0 var(--space-5);
}

.ui-section-header__caption a,
.intro-facts a,
.fine a {
  color: var(--accent);
}

.intro-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-5);
}

/* A step left alone in the last row fills that row, so both edges stay straight. */
.intro-steps > .guide-step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* A picture with rows in it stacks them, as the panel does. */
.guide-shot--column {
  flex-direction: column;
  align-items: stretch;
}

.guide-shot--column > .ui-button {
  align-self: flex-start;
}

.intro-next {
  color: var(--text-3);
}

.intro-facts {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intro-facts li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-1);
  color: var(--text-2);
}

.intro-facts .ui-badge {
  margin-right: var(--space-3);
}

.store {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-3);
  background: radial-gradient(120% 160% at 100% 0%, var(--accent-soft), transparent 60%), var(--ink-2);
  color: var(--text-1);
  text-decoration: none;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.store:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.store img {
  flex: none;
  border-radius: var(--radius-1);
}

.store span {
  display: flex;
  flex-direction: column;
  color: var(--text-2);
  font-size: 13px;
}

.store b {
  color: var(--text-1);
  font-size: var(--size-name);
}

.fine {
  margin: var(--space-5) 0 0;
  color: var(--text-3);
  font-size: var(--size-body);
}

.close {
  align-self: flex-start;
}

@media (max-width: 819px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
  }

  .intro-nav {
    position: static;
  }
}

@media (max-width: 559px) {
  .intro-steps {
    grid-template-columns: minmax(0, 1fr);
  }

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