:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #0c111b;
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --muted-strong: #8a8a8a;
  --link-muted: #6f6f6f;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --glow: rgba(56, 189, 248, 0.35);
  --ring: rgba(148, 163, 184, 0.3);
}

@font-face {
  font-family: "Mamenchisa";
  src: url("assets/fonts/Mamenchisa.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #000;
  color: var(--text);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 6vw 0;
  gap: 48px;
}

.hero {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: stretch;
  min-height: calc(100vh - 56px);
}

.hero-copy {
  display: grid;
  grid-template-rows: 1fr auto 1fr auto;
  gap: 12px;
  min-height: calc(100vh - 56px);
}

.hero-main {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
}

.legal {
  grid-row: 4;
  padding-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.subheader {
  color: var(--muted);
  font-size: 2.1rem;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
  max-width: 420px;
  text-align: left;
}

.subheader .logo {
  display: inline-block;
  height: 0.9em;
  width: auto;
  vertical-align: text-bottom;
  margin-right: 0;
  transform: translateY(-0.12em);
}

.subheader .brand {
  color: var(--text);
  font-family: "Mamenchisa", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.subheader .brand-dot {
  color: var(--muted);
}

.app-store {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(8, 10, 20, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  align-self: flex-start;
}

.app-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(8, 10, 20, 0.7);
}

.app-store-badge {
  display: block;
  height: 56px;
  width: auto;
  border-radius: 12px;
}

.app-store:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-visual img {
  width: min(3600px, 300%);
  height: auto;
  max-height: none;
  filter: drop-shadow(0 40px 80px rgba(8, 10, 20, 0.65));
}

@media (min-width: 721px) {
  .hero-visual {
    align-items: flex-end;
  }

  .hero-visual img {
    width: auto;
    height: auto;
    max-width: 80vw;
    max-height: 80vh;
  }
}

.legal {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-start;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.legal a {
  color: var(--link-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal a:hover {
  text-decoration: none;
}

.legal a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  text-decoration: none;
}

.policy-page {
  color-scheme: dark;
}

.policy {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 8vw 96px;
}

.policy-text {
  max-width: 860px;
  text-align: left;
  line-height: 1.7;
  font-size: 16px;
}

.policy-text h1 {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 12px;
}

.policy-text h2 {
  font-size: 1.4rem;
  margin: 28px 0 10px;
}

.policy-text h3 {
  font-size: 1.1rem;
  margin: 18px 0 8px;
}

.policy-text p {
  margin: 0 0 12px;
}

.policy-text ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.policy-text a {
  color: var(--accent);
}

.policy-text a:hover,
.policy-text a:focus-visible {
  color: var(--accent-strong);
}

@media (max-width: 720px) {
  .page {
    padding: 48px 8vw 0;
  }

  .hero {
    gap: 36px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .hero-visual {
    align-items: flex-end;
    margin-top: auto;
    margin-bottom: 0;
    flex: 1 1 auto;
    align-self: stretch;
  }

  .hero-visual img {
    width: 100%;
    max-height: min(55svh, 420px);
    display: block;
    transform-origin: bottom center;
  }

  @media (min-height: 700px) {
    .hero-visual img {
      transform: scale(2);
      max-height: 100%;
    }
  }

  .hero-copy {
    align-items: flex-start;
    min-height: auto;
    align-content: start;
    grid-template-rows: auto auto;
  }

  .hero-main {
    grid-row: auto;
  }

  .legal {
    grid-row: auto;
    margin-top: 24px;
    padding-bottom: 0;
  }
}
