:root {
  --bg: #f5f4f1;
  --bg-elevated: #fafaf9;
  --fg: #121211;
  --muted: #6f6c64;
  --subtle: #8d8a82;
  --border: #dfddd8;
  --green-900: #2c4437;
  --green-800: #3b5948;
  --green-100: #f0f3f1;
  --wide: 1120px;
  --legal-wide: 720px;
  --font-sans:
    "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  --font-display: "Prata", "Times New Roman", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: var(--green-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-900);
}

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

.home {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero,
.legal,
.support,
.site-footer__inner {
  width: min(100% - 3rem, var(--wide));
  margin-inline: auto;
}

.legal {
  width: min(100% - 2.5rem, var(--legal-wide));
}

/* ——— Home hero ——— */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vh, 3.5rem) 0;
  min-height: calc(100dvh - 5.5rem);
}

.hero__copy {
  max-width: 32rem;
}

.hero__mark {
  width: clamp(68px, 7vw, 80px);
  height: clamp(68px, 7vw, 80px);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.6vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 11ch;
}

.hero__lead {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.125rem);
  line-height: 1.65;
}

.launch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.launch__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.launch__hint {
  margin: 0 0 0.35rem;
  color: var(--subtle);
  font-size: 0.92rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 9.75rem;
  padding: 0.55rem 0.85rem 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: color-mix(in srgb, #fff 55%, var(--bg));
  color: var(--fg);
  opacity: 0.72;
  user-select: none;
  pointer-events: none;
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--subtle);
  letter-spacing: 0.01em;
}

.store-badge strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.store-badge svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.store-badge__icon--apple {
  width: 20px;
  height: 20px;
}

/* ——— Device mockup ——— */

.hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.device-stage {
  position: relative;
  width: min(100%, 320px);
  display: flex;
  justify-content: center;
}

.device-stage::before {
  content: "";
  position: absolute;
  inset: 8% -12% 4%;
  border-radius: 50%;
  background: #ebe8e1;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 280px);
}

.phone__frame {
  position: relative;
  border-radius: 2.35rem;
  padding: 0.55rem;
  background: #1a1917;
  box-shadow:
    0 1px 1px rgba(18, 18, 17, 0.04),
    0 18px 40px rgba(18, 18, 17, 0.1),
    0 2px 8px rgba(18, 18, 17, 0.05);
}

.phone__notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  z-index: 2;
  width: 28%;
  height: 1.05rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #1a1917;
}

.phone__screen {
  overflow: hidden;
  border-radius: 1.85rem;
  aspect-ratio: 9 / 19.5;
  background: #ecebe7;
}

.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ——— Support ——— */

.support h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.support__lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.support__email-label {
  margin: 0 0 0.35rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.support__email {
  display: inline-block;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--green-900);
}

.support__email:hover {
  color: var(--green-800);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.support__note {
  margin: 1.5rem 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

/* ——— Legal pages ——— */

.legal {
  padding: 2.5rem 0 2rem;
}

.support {
  padding: 2.5rem 0 0;
}

.legal__meta {
  margin: 0 0 1.5rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: transparent;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1.15rem 0 1.4rem;
  color: var(--subtle);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
}

.site-footer a {
  color: var(--subtle);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--fg);
}

/* ——— Responsive ——— */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    min-height: auto;
    padding: 3rem 0 2.5rem;
    text-align: left;
  }

  .hero__copy {
    max-width: 36rem;
    margin-inline: auto;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .device-stage {
    width: min(100%, 280px);
  }

  .phone {
    width: min(100%, 240px);
  }
}

@media (max-width: 540px) {
  .hero,
  .legal,
  .support,
  .site-footer__inner {
    width: min(100% - 2rem, var(--wide));
  }

  .legal {
    width: min(100% - 2rem, var(--legal-wide));
  }

  .hero {
    padding: 2.25rem 0 2rem;
    gap: 2.25rem;
  }

  .hero__mark {
    margin-bottom: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 9vw, 2.55rem);
    max-width: none;
  }

  .hero__lead {
    margin-bottom: 1.75rem;
    font-size: 1rem;
  }

  .store-badges {
    width: 100%;
  }

  .store-badge {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 1.25rem;
  }
}
