:root {
  --bg: #000000;
  --surface: #080808;
  --surface-strong: #ffffff;
  --text: #f5f5f5;
  --muted: #6f6f73;
  --muted-strong: #9b9b9f;
  --border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", "Nunito Sans", "SF Pro Text", "Helvetica Neue", sans-serif;
}

button,
a,
input,
textarea {
  font: inherit;
}

.modal-open {
  overflow: hidden;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px 16px 20px;
}

.hero {
  align-self: center;
  justify-self: center;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  transform: translateY(-4vh);
}

.hero-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  display: grid;
  gap: 5px;
  font-family: "Geist", "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 128px;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #111111;
  text-decoration: none;
  font-family: "Geist", "Avenir Next", "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 0;
  cursor: pointer;
}

.download-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-nav {
  justify-self: center;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted-strong);
  font-size: 0.74rem;
  line-height: 1;
}

.support-menu {
  position: relative;
}

.support-menu summary,
.footer-link {
  list-style: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.92;
}

.support-menu summary::-webkit-details-marker {
  display: none;
}

.support-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  width: 190px;
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.support-menu:not([open]) .support-popover {
  display: none;
}

.support-popover a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.9;
}

.support-popover a:hover,
.support-popover a:focus-visible,
.footer-link:hover,
.footer-link:focus-visible,
.support-menu summary:hover,
.support-menu summary:focus-visible {
  color: var(--text);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: relative;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.close-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: var(--muted-strong);
  font-size: 0.78rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #050505;
  color: var(--text);
  resize: vertical;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.24);
}

.contact-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--surface-strong);
  color: #111111;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.form-status {
  min-height: 1em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.legal-shell {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.legal-card {
  color: rgba(255, 255, 255, 0.92);
}

.legal-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.legal-card h2 {
  margin: 28px 0 12px;
  font-size: 1.34rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
}

.legal-card p,
.legal-card li {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.72;
}

.legal-card p {
  margin: 0 0 16px;
}

.legal-card ul {
  margin: 0 0 16px;
  padding-left: 1.3rem;
}

.legal-card a {
  color: #b8b3a5;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 179, 165, 0.45);
  transition: color 120ms ease, border-color 120ms ease;
}

.legal-card a:hover,
.legal-card a:focus-visible {
  color: #ece2c8;
  border-bottom-color: rgba(236, 226, 200, 0.78);
}

.legal-home {
  margin-top: 28px;
}

@media (max-width: 640px) {
  .page-shell {
    padding-bottom: 18px;
  }

  .hero {
    width: min(320px, calc(100vw - 32px));
    transform: translateY(-3vh);
  }

  .hero-mark {
    width: 36px;
    height: 36px;
  }

  .hero-copy h1 {
    font-size: 1.08rem;
  }

  .hero-copy p {
    font-size: 0.9rem;
  }

  .download-btn {
    min-width: 118px;
    height: 36px;
    font-size: 0.96rem;
  }

  .download-btn svg {
    width: 14px;
    height: 14px;
  }

  .footer-nav {
    gap: 12px;
  }

  .legal-shell {
    width: calc(100vw - 28px);
    padding: 28px 0 40px;
  }

  .legal-card h1 {
    margin-bottom: 12px;
    font-size: 1.9rem;
  }

  .legal-meta {
    margin-bottom: 24px;
    font-size: 0.88rem;
  }

  .legal-card h2 {
    margin-top: 24px;
    font-size: 1.18rem;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}
