:root {
  --copper: #b04014;
  --copper-bright: #e87540;
  --copper-deep: #571704;
  --background: #fef8f5;
  --background-warm: #f6ece4;
  --text: #211712;
  --secondary: rgba(33, 23, 18, 0.62);
  --hairline: rgba(176, 64, 20, 0.16);
  --button-text: #fffaf7;
  --content-width: 46rem;
}

* { box-sizing: border-box; }

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

body {
  min-width: 20rem;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 4px;
}

.landing-page,
.detail-page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background:
    radial-gradient(circle at 83% 9%, rgba(232, 117, 64, 0.21), transparent 30rem),
    radial-gradient(circle at 10% 88%, rgba(176, 64, 20, 0.09), transparent 34rem),
    var(--background);
}

.landing-page::before,
.detail-page::before {
  position: fixed;
  z-index: -1;
  top: -8rem;
  left: 46%;
  width: 75vw;
  height: 8rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  content: "";
  filter: blur(0.75rem);
  pointer-events: none;
  transform: rotate(-24deg);
}

.landing-page {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100dvh;
  min-height: 100svh;
}

.landing {
  display: flex;
  width: min(100%, var(--content-width));
  min-height: 0;
  margin-inline: auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.app-icon {
  display: block;
  width: clamp(9.5rem, 24vh, 14rem);
  height: auto;
  border-radius: 29%;
  box-shadow:
    0 2.5rem 5rem rgba(87, 23, 4, 0.22),
    0 0.65rem 1.5rem rgba(87, 23, 4, 0.15);
}

.wordmark {
  margin: clamp(1.6rem, 3.6vh, 2.4rem) 0 0;
  color: var(--copper);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1;
}

.landing h1 {
  max-width: 12ch;
  margin: clamp(0.85rem, 1.8vh, 1.2rem) 0 0;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 780;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-wrap: balance;
}

.product-promise {
  margin: clamp(1.15rem, 2.5vh, 1.6rem) 0 0;
  color: var(--secondary);
  font-size: clamp(0.92rem, 1.7vw, 1.08rem);
  font-weight: 550;
  letter-spacing: -0.008em;
  line-height: 1.5;
}

.download-button {
  display: inline-flex;
  min-height: 3.1rem;
  margin-top: clamp(1.65rem, 3.8vh, 2.35rem);
  padding: 0.75rem 1.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 205, 0.45);
  border-radius: 999px;
  color: var(--button-text);
  background: var(--copper);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    0 0.7rem 1.5rem rgba(87, 23, 4, 0.18);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.download-button:hover { background: #9a350f; }
.download-button:active { transform: scale(0.98); }

.footer {
  display: flex;
  padding: 1rem max(1.5rem, env(safe-area-inset-right)) max(1.4rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left));
  justify-content: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 550;
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--copper); }

.legal-page {
  width: min(100%, 50rem);
  margin-inline: auto;
  padding: max(2.25rem, env(safe-area-inset-top)) clamp(1.5rem, 5vw, 3rem) max(5rem, env(safe-area-inset-bottom));
}

.back-link {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 1.08rem;
  font-weight: 780;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.back-link img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 28%;
  box-shadow: 0 0.4rem 0.9rem rgba(87, 23, 4, 0.17);
}

.back-link:hover span { color: var(--copper); }

.legal-content {
  max-width: 43rem;
  margin-top: clamp(4rem, 11vh, 7rem);
}

.page-eyebrow {
  margin-bottom: 0.8rem !important;
  color: var(--copper) !important;
  font-size: 0.7rem !important;
  font-weight: 760 !important;
  letter-spacing: 0.12em;
  line-height: 1 !important;
  text-transform: uppercase;
}

.legal-content h1 {
  max-width: 12ch;
  margin: 0 0 clamp(2rem, 5vh, 3.25rem);
  color: var(--text);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
}

.legal-content h2 {
  margin: 3.25rem 0 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.legal-content p,
.legal-content address {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: var(--secondary);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.7;
}

.legal-content a {
  color: var(--copper);
  font-weight: 650;
}

.effective-date { margin-top: -1.5rem !important; font-size: 0.82rem !important; }
.contact-content,
.compact-legal-content { max-width: 36rem; }
.contact-content p { max-width: 30rem; font-size: clamp(1.08rem, 2.4vw, 1.3rem); line-height: 1.55; }
.contact-content .email-link { display: inline-block; margin-top: 0.4rem; font-size: clamp(1.2rem, 2.8vw, 1.5rem); }
.identity-block { padding-left: 1rem; border-left: 2px solid var(--copper); }

@media (max-height: 42rem) and (orientation: landscape) {
  .landing { padding-top: 1.5rem; }
  .app-icon { width: clamp(7rem, 28vh, 10rem); }
  .wordmark { margin-top: 1rem; }
  .landing h1 { margin-top: 0.55rem; font-size: clamp(2.4rem, 9vh, 4rem); }
  .product-promise { margin-top: 0.7rem; }
  .download-button { min-height: 2.75rem; margin-top: 1rem; }
}

@media (max-width: 32rem) {
  .landing { padding-inline: 1.25rem; }
  .app-icon { width: clamp(8.75rem, 38vw, 10.5rem); }
  .landing h1 { font-size: clamp(2.55rem, 12vw, 3.4rem); }
  .product-promise { max-width: 24rem; }
  .legal-content { margin-top: 3.5rem; }
  .legal-content h1 { margin-bottom: 2rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --copper: #f5753b;
    --copper-bright: #ffa670;
    --copper-deep: #6e240e;
    --background: #0b0806;
    --background-warm: #18100b;
    --text: #fff9f5;
    --secondary: rgba(255, 249, 245, 0.65);
    --hairline: rgba(255, 166, 112, 0.16);
  }

  .landing-page,
  .detail-page {
    background:
      radial-gradient(circle at 83% 9%, rgba(245, 117, 59, 0.17), transparent 30rem),
      radial-gradient(circle at 10% 88%, rgba(110, 36, 14, 0.16), transparent 34rem),
      var(--background);
  }

  .download-button:hover { background: #df6130; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
