:root {
  color-scheme: dark;
  --page: #23242b;
  --page-deep: #1c1d23;
  --ink: #f5f6f8;
  --body: #e4e5ea;
  --muted: #999cad;
  --soft: #c3c5cd;
  --link: #8ab4f8;
  --danger: #ff5c5c;
  --success: #74d58c;
  --footer: #18191e;
  font-family: Lato, Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Cantarell, "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p,
ul {
  margin-top: 0;
}

p {
  margin-bottom: 22px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.82;
}

a {
  color: var(--link);
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 4px;
}

.container,
.footer-inner {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  margin-top: 140px;
  margin-bottom: 170px;
}

.name {
  display: inline-block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 8.5vw, 94px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.strike {
  display: inline;
  text-decoration-line: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 0.08em;
}

.subtitle {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.45;
}

.lead {
  max-width: 1000px;
  margin: 58px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.25;
}

.comparison {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 96px;
}

.section-title {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.25;
}

.chat-image {
  width: 100%;
  border-radius: 22px;
  box-shadow: -18px 20px 55px rgba(0, 0, 0, 0.32);
}

.section-copy {
  padding-top: 54px;
}

.example-list {
  margin: -8px 0 24px 18px;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.55;
}

.example-list li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 24px;
}

.example-list li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}

.example-list--bad li::before {
  content: "×";
  color: var(--danger);
}

.example-list--good li::before {
  content: "✓";
  top: 0.12em;
  color: var(--success);
  font-size: 0.82em;
}

.callout {
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
}

footer {
  min-height: 150px;
  margin-top: 40px;
  padding: 150px 0 80px;
  background: linear-gradient(180deg, var(--page) 0%, var(--footer) 48%);
}

.footer-inner p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.footer-inner a {
  color: var(--danger);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero {
    margin-top: 72px;
    margin-bottom: 100px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 86px;
  }

  .section-copy {
    padding-top: 0;
  }

  .chat-image {
    width: min(660px, 100%);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  .container,
  .footer-inner {
    width: min(100% - 30px, 1100px);
  }

  .hero {
    margin-top: 48px;
    margin-bottom: 70px;
  }

  .name {
    font-size: 40px;
    letter-spacing: -0.035em;
  }

  .subtitle {
    font-size: 20px;
  }

  .lead {
    margin-top: 38px;
    font-size: 23px;
    line-height: 1.35;
  }

  .section-title {
    font-size: 22px;
  }

  .chat-image {
    border-radius: 16px;
    box-shadow: -10px 13px 34px rgba(0, 0, 0, 0.28);
  }

  p {
    font-size: 16px;
    line-height: 1.72;
  }

  .example-list {
    font-size: 16px;
  }

  footer {
    padding: 120px 0 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.typewriter-line {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 0.05em;
  color: var(--ink);
  font-weight: 300;
  text-decoration: none;
  animation: typewriter-cursor-blink 0.75s steps(1, end) infinite;
}

@keyframes typewriter-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor {
    display: none;
    animation: none;
  }
}
