:root {
  color-scheme: light;
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-strong: #f5f7fb;
  --ink: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --red: #c42131;
  --red-dark: #9f1725;
  --blue: #1c3f94;
  --blue-soft: #e7eefc;
  --gold: #f6b73c;
  --green: #19866b;
  --shadow: 0 22px 60px rgb(24 24 27 / 12%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.tabular {
  font-variant-numeric: tabular-nums;
}

.wordmark {
  font-family: "Bakbak One", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 56px);
  background: rgb(255 253 248 / 86%);
  border-bottom: 1px solid rgb(228 228 231 / 70%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 1rem;
  font-weight: 700;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  outline: 1px solid rgb(0 0 0 / 8%);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav--single {
  justify-self: center;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
}

.header-action {
  display: none;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.menu-button {
  position: relative;
  justify-self: end;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.menu-button span:not(.visually-hidden) {
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-nav {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.mobile-nav a {
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 1rem;
}

.site-main {
  isolation: isolate;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: end;
  overflow: hidden;
  padding: 118px clamp(18px, 6vw, 72px) 56px;
  background:
    linear-gradient(90deg, rgb(196 33 49 / 12%) 0 7%, transparent 7% 14%, rgb(28 63 148 / 10%) 14% 21%, transparent 21%),
    var(--paper);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--red) 0 90px, var(--gold) 90px 150px, var(--blue) 150px 240px, var(--green) 240px 300px);
  content: "";
}

.hero__scene {
  position: absolute;
  inset: 68px 0 0;
  overflow: hidden;
}

.hero__scene::before {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(58vw, 760px);
  background: linear-gradient(90deg, var(--paper) 0 74%, rgb(255 253 248 / 86%) 86%, transparent 100%);
  content: "";
}

.table-lines {
  position: absolute;
  right: -10%;
  bottom: 2%;
  left: -10%;
  height: 42%;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgb(24 24 27 / 6%) 26px 27px),
    repeating-linear-gradient(90deg, transparent 0 26px, rgb(24 24 27 / 5%) 26px 27px);
  transform: skewY(-4deg);
}

.phone {
  position: absolute;
  z-index: 1;
  width: min(235px, 38vw);
  min-width: 154px;
  aspect-ratio: 9 / 18.5;
  border: 8px solid #202027;
  border-radius: 28px;
  background: #202027;
  box-shadow: var(--shadow);
}

.phone--host {
  right: clamp(16px, 10vw, 160px);
  bottom: 8%;
  transform: rotate(7deg);
}

.phone--result {
  right: clamp(130px, 31vw, 390px);
  bottom: 14%;
  transform: rotate(-8deg);
}

.phone__notch {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 68px;
  height: 18px;
  border-radius: 0 0 12px 12px;
  background: #202027;
  transform: translateX(-50%);
}

.phone__screen {
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  padding: 34px 13px 13px;
  background: #fbfbfb;
}

.app-pill,
.submit-pill,
.winner-burst {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #ffe9b3;
  color: #6d4700;
  font-size: 0.72rem;
  font-weight: 750;
}

.app-pill--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.app-title {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 800;
}

.rank-row,
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rank-row {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
}

.rank-row span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.rank-row.is-leading {
  border-color: rgb(25 134 107 / 42%);
  background: rgb(25 134 107 / 8%);
}

.submit-pill {
  margin-top: 16px;
  background: var(--red);
  color: white;
}

.score-row {
  margin-top: 14px;
  font-size: 0.76rem;
}

.meter {
  height: 10px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8ed;
}

.meter i {
  display: block;
  width: var(--meter-width, 0);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 420ms ease;
}

.meter-fill--39 {
  --meter-width: 39%;
}

.meter-fill--42 {
  --meter-width: 42%;
}

.meter-fill--58 {
  --meter-width: 58%;
}

.meter-fill--61 {
  --meter-width: 61%;
}

.meter--red i {
  background: var(--red);
}

.winner-burst {
  margin-top: 18px;
  background: var(--gold);
  color: #442a00;
}

.choice-chip {
  position: absolute;
  z-index: 1;
  border: 1px solid rgb(24 24 27 / 10%);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 12px 34px rgb(24 24 27 / 10%);
  color: var(--ink);
  font-weight: 750;
}

.choice-chip--one {
  right: 43%;
  bottom: 29%;
}

.choice-chip--two {
  right: 9%;
  bottom: 49%;
}

.choice-chip--three {
  right: 31%;
  bottom: 8%;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 10ch;
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero__lede {
  max-width: 45ch;
  margin-bottom: 28px;
  color: #303036;
  font-size: 1.2rem;
}

.hero__actions,
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 1rem;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:focus-visible,
.header-action:focus-visible,
.menu-button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.button--primary {
  background: var(--red);
  color: white;
}

.button--primary:hover {
  background: var(--red-dark);
}

.button--secondary {
  border: 1px solid rgb(24 24 27 / 16%);
  background: rgb(255 255 255 / 86%);
  color: var(--ink);
}

.section {
  padding: 84px 0;
  background: var(--paper);
}

.section--intro {
  padding-top: 72px;
}

.section--band {
  background:
    linear-gradient(90deg, rgb(28 63 148 / 7%) 0 12px, transparent 12px),
    var(--surface-strong);
}

.section--launch {
  background: var(--ink);
  color: white;
}

.section--launch p {
  color: rgb(255 255 255 / 72%);
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 16ch;
}

.section-heading p {
  max-width: 66ch;
}

.section-heading--left {
  margin-bottom: 0;
}

.step-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

.step-card,
.feature-card,
.result-demo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.step-card,
.feature-card {
  padding: 24px;
}

.step-card__number {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 850;
}

.step-card p,
.feature-card p {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  gap: 34px;
  align-items: center;
}

.result-demo {
  padding: 24px;
  box-shadow: var(--shadow);
}

.result-demo__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1rem;
}

.result-demo__header b {
  color: var(--blue);
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.result-line strong,
.result-line span {
  display: block;
}

.result-line strong {
  font-size: 1.05rem;
}

.result-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid {
  grid-template-columns: 1fr;
}

.launch-layout {
  display: grid;
  gap: 26px;
  align-items: end;
}

.launch-layout h2 {
  max-width: 16ch;
}

.launch-layout p {
  max-width: 66ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: var(--surface);
}

.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy p {
  margin-bottom: 0;
  font-size: 1rem;
}

.footer-copy a {
  width: fit-content;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand--footer .brand__mark {
  width: 30px;
  height: 30px;
}

.legal-page {
  min-height: 100svh;
  padding: 132px 0 72px;
  background:
    linear-gradient(90deg, rgb(196 33 49 / 8%) 0 12px, transparent 12px),
    var(--paper);
}

.legal-document {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.legal-header h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.legal-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 34px;
}

.prose h2 {
  max-width: none;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  text-wrap: pretty;
}

.prose p,
.prose ul,
.prose address {
  margin: 0;
}

.prose ul {
  padding-left: 20px;
}

.prose li + li,
.prose p + p {
  margin-top: 12px;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose code {
  border-radius: 6px;
  padding: 2px 5px;
  background: var(--surface-strong);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.95em;
}

.prose address {
  color: var(--muted);
  font-style: normal;
  font-size: 1rem;
  line-height: 1.78;
}

@media (max-width: 760px) {
  .hero {
    min-height: 84svh;
    align-items: start;
    padding-top: 126px;
    padding-bottom: 220px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__lede {
    max-width: 32ch;
  }

  .hero__scene {
    top: auto;
    height: 285px;
    opacity: 1;
  }

  .hero__scene::before {
    display: none;
  }

  .phone {
    width: 128px;
    min-width: 0;
    border-width: 6px;
    border-radius: 22px;
    opacity: 0.82;
  }

  .phone__screen {
    border-radius: 16px;
    padding: 28px 9px 9px;
  }

  .phone__notch {
    top: 5px;
    width: 48px;
    height: 14px;
  }

  .phone--result {
    display: none;
  }

  .phone--host {
    right: 24px;
    bottom: 12px;
    transform: rotate(7deg);
  }

  .choice-chip {
    display: none;
  }

  .section--intro {
    padding-top: 34px;
  }

  .legal-page {
    padding-top: 110px;
  }
}

@media (min-width: 760px) {
  .desktop-nav,
  .header-action {
    display: flex;
  }

  .menu-button,
  .mobile-nav {
    display: none;
  }

  .step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .launch-layout {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .launch-actions {
    justify-content: flex-end;
  }

  .footer-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-copy {
    align-items: flex-end;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
