:root {
  --teal: #29b7c3;
  --teal-deep: #1da7b5;
  --white: #ffffff;
  --bg-soft: #f6f7f8;
  --ink: #2f2f35;
  --muted: #808792;
  --mobile-link-height: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

.topbar {
  position: fixed;
  top: clamp(20px, 3vw, 34px);
  right: clamp(22px, 3vw, 38px);
  z-index: 20;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar__links a {
  color: rgba(47, 47, 53, 0.62);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
  color: rgba(47, 47, 53, 0.96);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.hero__brand-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  padding: 48px;
}

.hero__logo {
  width: clamp(220px, 26vw, 360px);
  height: auto;
}

.hero__content-pane {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: var(--white);
}

.hero__inner {
  width: min(100%, 470px);
  padding-top: 26px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
}

.app-badge__name {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.app-badge__meta {
  margin-top: 2px;
  font-size: 0.94rem;
  color: var(--muted);
}

.hero__content-pane h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero__lede {
  max-width: 33rem;
  margin-top: 20px;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.app-store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease;
}

.app-store-link img {
  width: auto;
  height: 56px;
}

.app-store-link:hover,
.app-store-link:focus-visible {
  transform: translateY(-1px);
}

.hero__note {
  max-width: 32rem;
  margin-top: 22px;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #98a0aa;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #95a0ab;
}

.mobile-links {
  display: none;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(680px, calc(100vw - 32px));
  height: min(84vh, 820px);
  margin: max(28px, 7vh) auto 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.24);
  outline: none;
}

.privacy-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  background: #eef2f5;
  cursor: pointer;
}

.privacy-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 28px 32px;
}

.privacy-modal__body h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.privacy-modal__summary {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.policy-copy {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.policy-copy section {
  display: grid;
  gap: 10px;
}

.policy-copy h3 {
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.policy-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.policy-copy a {
  color: var(--teal-deep);
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__brand-pane {
    min-height: 40vh;
    padding: 36px 24px;
  }

  .hero__logo {
    width: min(50vw, 280px);
  }

  .hero__content-pane {
    justify-content: flex-start;
    padding: 34px 24px 42px;
  }

  .hero__inner {
    width: min(100%, 520px);
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .hero__content-pane h1 {
    max-width: 11ch;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .app-badge {
    margin-bottom: 22px;
  }

  .app-badge__name {
    font-size: 1.65rem;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions {
    gap: 12px;
  }

  .hero__content-pane {
    padding-bottom: calc(var(--mobile-link-height) + 34px);
  }

  .mobile-links {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  }

  .mobile-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    background: #f3f6f8;
  }

  .privacy-modal__panel {
    width: calc(100vw - 20px);
    height: min(88vh, 900px);
    margin-top: 10px;
    border-radius: 22px;
  }

  .privacy-modal__body {
    padding: 24px 20px 24px;
  }
}
