:root {
  --ink: #231c20;
  --accent: #e2215c;
  --accent-hover: #c0154b;
  --accent-shadow: rgba(226, 33, 92, .22);
  --hero-top: #ffe0e9;
  --hero-mid: rgba(255, 236, 241, .88);
  --hero-bottom: rgba(248, 250, 252, .12);
  --hero-text: var(--ink);
  --halo-opacity: 1;
  --soft: #ffedf2;
  --line: #efd3dc;
  --logo-w: 250px;
  --logo-h: 78px;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f7fafc;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body { margin: 0; container-type: inline-size; }

.welcome-stage {
  min-height: 100svh;
  padding: clamp(24px, 7vh, 90px) 20px 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-image:
    linear-gradient(to bottom, var(--hero-top) 0%, var(--hero-mid) 38%, var(--hero-bottom) 100%),
    url("assets/chat-pattern.webp");
  background-repeat: no-repeat, repeat;
  background-position: top center;
}

.welcome-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.emblem-link {
  width: 258px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.emblem-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/emblem-halo.svg") center / contain no-repeat;
  opacity: var(--halo-opacity);
}

.emblem-mark {
  position: relative;
  display: block;
  width: var(--logo-w);
  height: var(--logo-h);
  margin-bottom: 27px;
}

.welcome-heading {
  margin: 8px auto 0;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--hero-text);
}

.welcome-lede {
  max-width: 450px;
  margin: 17px auto 0;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--hero-text);
}

.welcome-lede strong { font-weight: 700; }

.match-teaser {
  width: min(100%, 576px);
  min-height: 78px;
  margin: 39px auto 0;
  margin-bottom: 20px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #111827;
  text-align: left;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 9px 26px rgba(48, 44, 62, .13);
}

.match-teaser__portrait {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.match-teaser__body { flex: 1; min-width: 0; text-align: center; }
.match-teaser__body p { margin: 0; }
.match-teaser__heading { font-size: 16px; line-height: 1.4; font-weight: 600; }
.match-teaser__caption { margin-top: 2px !important; color: #697386; font-size: 14px; line-height: 1.4; }

.match-teaser__action {
  flex: 0 0 110px;
  padding: 9px 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.match-teaser__action:hover,
.match-teaser__action:focus-visible { background: var(--accent-hover); transition: background-color .2s ease; }
.match-teaser__action:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.launch-strip {
  position: relative;
  left: 50%;
  width: calc(100vw - 32px);
  width: calc(100cqw - 32px);
  min-height: 60px;
  margin-top: auto;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  box-shadow: 0 9px 25px var(--accent-shadow);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.launch-strip:hover,
.launch-strip:focus-visible { background: var(--accent-hover); transition: background-color .2s ease; }
.launch-strip:focus-visible { outline: 3px solid var(--ink); outline-offset: -5px; }

.launch-strip__gesture {
  display: inline-block;
  font-size: 25px;
  transform-origin: 70% 75%;
  animation: welcome-gesture 1.7s ease-in-out infinite;
}

@keyframes welcome-gesture {
  0%, 45%, 100% { transform: rotate(0deg); }
  15%, 35% { transform: rotate(18deg); }
  25% { transform: rotate(-7deg); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-strip__gesture { animation: none; }
}

.reading-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 24px 110px;
  color: #334155;
}

.reading-area article > header { margin-bottom: 52px; }
.reading-area section + section { margin-top: 52px; }
.reading-area article > footer { margin-top: 52px; }
.reading-area h1 { margin: 0 0 20px; color: var(--ink); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: -.025em; }
.reading-area h2 { margin: 0 0 18px; color: var(--ink); font-size: 30px; line-height: 1.25; }
.reading-area h3 { margin: 26px 0 8px; color: var(--ink); font-size: 20px; line-height: 1.35; }
.reading-area p { margin: 0 0 16px; font-size: 17px; line-height: 1.8; }
.reading-area ul,
.reading-area ol { margin: 0 0 20px; padding-left: 26px; font-size: 17px; line-height: 1.75; }
.reading-area li + li { margin-top: 10px; }
.feature-table-wrap { max-width: 100%; margin: 24px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.feature-table-wrap:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.feature-table-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; color: #334155; font-size: 15px; line-height: 1.5; text-align: left; }
.feature-table-wrap th,
.feature-table-wrap td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feature-table-wrap th { color: var(--ink); background: var(--soft); font-weight: 700; }
.feature-table-wrap tr:last-child td { border-bottom: 0; }
.feature-table-wrap th + th,
.feature-table-wrap td + td { border-left: 1px solid var(--line); }

@media (max-width: 640px) {
  .welcome-stage { padding: clamp(18px, 5vh, 40px) 16px 14px; }
  .emblem-link { width: 200px; height: 155px; }
  .emblem-mark { width: calc(var(--logo-w) * .78); height: auto; margin-bottom: 21px; }
  .welcome-heading { max-width: 440px; margin-top: 7px; font-size: clamp(2.35rem, 10vw, 3rem); }
  .welcome-lede { max-width: 390px; margin-top: 12px; font-size: 16px; }
  .match-teaser { gap: 10px; margin-top: 22px; margin-bottom: 16px; padding: 10px; }
  .match-teaser__portrait { flex-basis: 44px; width: 44px; height: 44px; }
  .match-teaser__heading { font-size: 14px; }
  .match-teaser__caption { font-size: 12px; }
  .match-teaser__action { flex-basis: 65px; padding: 9px 7px; }
  .launch-strip { min-height: 54px; font-size: 16px; }
  .reading-area { padding: 52px 20px 80px; }
  .reading-area h1 { font-size: 30px; }
  .reading-area h2 { font-size: 25px; }
  .reading-area p { font-size: 16px; }
  .reading-area ul,
  .reading-area ol { font-size: 16px; }
}

@media (max-height: 620px) {
  .welcome-stage { padding-top: 18px; padding-bottom: 12px; }
  .emblem-link { width: 190px; height: 145px; }
  .emblem-mark { width: calc(var(--logo-w) * .74); height: auto; margin-bottom: 18px; }
  .welcome-heading { margin-top: 3px; font-size: clamp(2rem, 4vw, 3rem); }
  .welcome-lede { margin-top: 8px; font-size: 16px; line-height: 1.4; }
  .match-teaser { min-height: 66px; margin-top: 16px; margin-bottom: 12px; padding-top: 7px; padding-bottom: 7px; }
  .launch-strip { min-height: 50px; }
}

@media (max-width: 640px) and (max-height: 620px) {
  .emblem-link { width: 150px; height: 115px; }
  .emblem-mark { width: calc(var(--logo-w) * .58); margin-bottom: 14px; }
  .welcome-heading { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: 1.05; }
  .welcome-lede { font-size: 14px; line-height: 1.3; }
  .match-teaser { margin-top: 12px; }
}
