:root {
  color-scheme: dark;
  --color-background: #05070f;
  --color-text: #ffffff;
  --color-muted: #b4a9c2;
  --color-link: var(--color-muted);
  --color-link-hover: var(--color-text);
  --color-button-background: #ffffff;
  --color-button-text: var(--color-background);
  --brand-gradient: linear-gradient(135deg, #b39aff 0%, #8c5cff 55%, #7869d8 100%);
  --gutter: 24px;
  --content: 820px;
  --section-gap: 8px;
  --eyebrow-gap: 12px;
  --section-padding-y: 16px;
  --guide-row-padding-y: 24px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

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

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

p {
  line-height: 1.6;
}

.launch {
  display: grid;
  justify-items: start;
  align-content: center;
  min-height: 100vh;
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin: 0 auto;
  padding: 64px 0;
  text-align: left;
}

.launch-hero {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
}

.launch h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 600;
  line-height: 1.2;
}

.app-icon {
  order: -1;
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 28px;
}

.brand-gradient {
  background: var(--brand-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.trademark {
  margin-left: 2px;
  font-size: 14px;
  line-height: 0;
  vertical-align: super;
}

.app-store-badge {
  display: inline-flex;
  width: 128px;
  line-height: 0;
}

.app-store-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.launch-links {
  display: inline-flex;
  gap: 16px;
  margin-top: 24px;
  color: var(--color-link);
  font-size: 14px;
}

.launch-links a:hover,
.launch-links a:focus-visible {
  color: var(--color-link-hover);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 1000px;
  background: var(--color-button-background);
  color: var(--color-button-text);
  font-size: 14px;
  line-height: 1;
}

.button:hover,
.button:focus-visible {
  background: #f2eef7;
}

.legal-main {
  width: min(100% - (var(--gutter) * 2), var(--content));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 40px;
  color: var(--color-link);
  font-size: 14px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-link-hover);
}

.legal-header {
  margin-bottom: 28px;
}

.legal-header p {
  margin-bottom: var(--eyebrow-gap);
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.legal-header h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

.legal-content {
  display: grid;
  gap: var(--section-gap);
}

.legal-section {
  padding: var(--section-padding-y) 0;
}

.legal-section h2 {
  margin-bottom: var(--section-gap);
  font-size: 16px;
  line-height: 1.2;
}

.legal-section p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 16px;
}

.legal-section a {
  color: var(--color-link);
  text-decoration: underline;
}

.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--color-link-hover);
}

.guide-list {
  display: grid;
  gap: 0;
}

.guide-category {
  display: grid;
  gap: 0;
  padding: var(--section-padding-y) 0;
}

.guide-category h2 {
  margin-bottom: var(--eyebrow-gap);
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-list-item {
  position: relative;
  display: grid;
  gap: var(--section-gap);
  padding: var(--guide-row-padding-y) 0;
}

.guide-list-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-muted);
}

.guide-list-item:first-of-type {
  padding-top: 0;
}

.guide-list-item:first-of-type::before {
  content: none;
}

.guide-list-item:last-child {
  padding-bottom: 0;
}

.guide-list-item h2,
.guide-list-item h3 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.25;
}

.guide-list-item p,
.guide-intro,
.guide-content p,
.guide-content li {
  color: var(--color-muted);
  font-size: 16px;
}

.guide-list-item p {
  margin-bottom: 0;
}

.guide-list-item a:hover,
.guide-list-item a:focus-visible {
  color: var(--color-link-hover);
}

.guide-meta {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
}

.guide-intro {
  max-width: 680px;
  margin-bottom: var(--section-gap);
  padding: var(--section-padding-y) 0;
}

.guide-answer {
  position: relative;
  margin: 0 0 12px;
  padding: var(--section-padding-y) 0 var(--section-padding-y) 20px;
  font-size: 17px;
  line-height: 1.6;
}

.guide-content .guide-answer {
  color: var(--color-text);
}

.guide-answer::before {
  content: "";
  position: absolute;
  top: var(--section-padding-y);
  bottom: var(--section-padding-y);
  left: 0;
  width: 4px;
  background: var(--color-text);
}

.guide-content {
  display: grid;
  gap: var(--section-gap);
}

.guide-content section {
  display: grid;
  gap: var(--section-gap);
  padding: var(--section-padding-y) 0;
}

.guide-content h2 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.2;
}

.guide-content h3 {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.3;
}

.guide-content p {
  margin-top: 0;
  margin-bottom: 0;
}

.guide-content ul,
.guide-content ol {
  display: grid;
  gap: var(--section-gap);
  margin: 0;
  padding-left: 20px;
}

.guide-content a {
  color: var(--color-link);
  text-decoration: underline;
}

.guide-content a:hover,
.guide-content a:focus-visible {
  color: var(--color-link-hover);
}

.guide-cta {
  display: grid;
  gap: 12px;
  margin-top: var(--section-gap);
  padding: 20px 0 0;
}

.guide-cta .app-store-badge {
  margin-top: 12px;
}

@media (max-width: 624px) {
  :root {
    --gutter: 16px;
  }

  .launch {
    align-content: start;
    padding: 84px 0 52px;
  }

  .launch-hero {
    gap: 16px;
  }

  .launch h1 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .app-icon {
    width: 96px;
    height: 96px;
    margin-top: 0;
    border-radius: 21px;
  }

  .guide-list-item h2 {
    font-size: 18px;
  }

  .guide-content h2 {
    font-size: 18px;
  }
}
