* {
  box-sizing: border-box;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Noto Sans', sans-serif;
  color: #111827;
  background-color: #f7f7f7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#container {
  width: 100%;
  max-width: 880px;
  margin: 50px auto 0;
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  position: relative;
  z-index: 0;
}

#footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
}

@media (max-width: 700px) {
  #footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    height: 105px;
    z-index: 0;
  }
}

header h1 {
  margin: 0 0 20px 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

h2 {
   font-size: 22px;
   font-weight: 600;
}

p {
  margin: 7px 0;
  padding: 0;
  color: #6b7280;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
}

.section {
  background-color: #f0f4f8;
  border-left: 4px solid #2563eb;
  padding: 1em 1.5em;
  border-radius: 6px;
  margin-bottom: 2em;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 10px 0;
}

@media (max-width: 520px) {
  .actions {
    grid-template-columns: 1fr;
  }
}

hr.separator {
  height: 1px;
  color: #ccc;
  background: #ccc;
  margin: 20px auto;
  font-size: 0;
  border: 0;
}

.gen-action {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 8px 0 10px 0;
}

.btn-welcome {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform 60ms ease, box-shadow 200ms ease, background 200ms ease, border-color 200ms ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

.btn-welcome:hover {
  transform: translateY(-1px);
}

.btn-welcome:focus {
  outline: none;
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

.btn-welcome.instr {
  background: #2563eb;
  color: #fff;
  border-color: transparent;
}

.btn-welcome.instr:hover {
  filter: brightness(1.05);
}

.btn-welcome.gen {
  background: #28a745;
  width: 100%;
  color: #fff;
  border-color: #e5e7eb;
}
