:root {
  --ink: #090b0b;
  --orange: #ff6700;
  --orange-bright: #ff8a32;
  --white: #f4f5f1;
  --muted: #a4aaa2;
  --line: rgba(244, 245, 241, 0.16);
  --font-display: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.handoff-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
  padding: 30px clamp(24px, 6vw, 88px) 24px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 103, 0, 0.18), transparent 25rem),
    linear-gradient(135deg, var(--ink) 0%, #0d1312 52%, #17211c 100%);
}

.topographic-lines {
  position: absolute;
  z-index: -1;
  right: -12vw;
  bottom: -25vh;
  width: min(72vw, 850px);
  height: min(82vw, 850px);
  border: 1px solid rgba(72, 168, 68, 0.24);
  border-radius: 44% 56% 52% 48%;
  transform: rotate(-24deg);
  box-shadow:
    0 0 0 28px rgba(72, 168, 68, 0.08),
    0 0 0 56px rgba(72, 168, 68, 0.06),
    0 0 0 84px rgba(72, 168, 68, 0.04),
    0 0 0 112px rgba(72, 168, 68, 0.03);
}

.site-header,
.site-footer,
.handoff-content { width: 100%; max-width: 1180px; margin: 0 auto; }
.site-header { display: flex; align-items: center; gap: 18px; }
.forestr-logo { width: clamp(138px, 18vw, 210px); height: auto; }
.header-rule { width: 1px; height: 25px; background: var(--line); }
.header-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; }

.handoff-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(70px, 12vh, 150px) 0;
}

.brand-transition { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3vw, 30px); }

.download-label {
  margin: 0 0 18px;
  color: var(--orange-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
}

.transition-logo { display: block; height: auto; }
.forestr-transition-logo { width: clamp(220px, 34vw, 390px); }
.overland-transition-logo { width: clamp(240px, 38vw, 420px); }
.transition-label { color: var(--orange); font-family: var(--font-display); font-size: clamp(24px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.download-panel { width: 100%; }
.download-label { margin-bottom: 13px; color: var(--muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; }

.store-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 194px;
  height: 58px;
  min-width: 194px;
  min-height: 58px;
  padding: 9px 17px;
  border: 1px solid rgba(244, 245, 241, 0.3);
  border-radius: 5px;
  color: var(--white);
  background: rgba(17, 24, 23, 0.82);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
  font: inherit;
  cursor: pointer;
  line-height: normal;
  text-align: left;
}

.store-link:hover,
.store-link:focus-visible { border-color: var(--orange); background: rgba(255, 103, 0, 0.13); transform: translateY(-2px); }
.store-link:focus-visible { outline: 2px solid var(--orange-bright); outline-offset: 3px; }
.store-link small, .store-link strong { display: block; line-height: 1.1; }
.store-link small { font-size: 9px; letter-spacing: 0.08em; }
.store-link strong { margin-top: 4px; font-size: 18px; font-weight: 600; }
.store-icon { width: 21px; height: 25px; flex: 0 0 auto; }
.play-icon { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; border-left: 21px solid var(--orange); }

.tester-dialog {
  width: min(420px, calc(100% - 44px));
  padding: 0;
  border: 1px solid rgba(244, 245, 241, 0.24);
  border-radius: 8px;
  background: #111817;
  color: var(--white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.tester-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.dialog-content { position: relative; padding: 34px 32px 32px; }
.dialog-close { position: absolute; top: 12px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.dialog-close:hover, .dialog-close:focus-visible { color: var(--white); }
.dialog-kicker { margin: 0 0 12px; color: var(--orange-bright); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.tester-dialog h2 { margin: 0; color: var(--white); font-family: var(--font-display); font-size: 34px; line-height: 1; }
.tester-dialog p:not(.dialog-kicker) { margin: 18px 0 20px; color: #c5cac4; font-size: 16px; line-height: 1.5; }
.dialog-email { color: var(--orange-bright); font-size: 16px; font-weight: 700; text-decoration: none; }
.dialog-email:hover, .dialog-email:focus-visible { color: var(--white); text-decoration: underline; }

@media (max-width: 600px) {
  .handoff-page { padding: 24px 22px 20px; }
  .header-label { display: none; }
  .handoff-content { padding: 48px 0 56px; }
  .brand-transition { gap: 16px; }
  .forestr-transition-logo { width: min(220px, 63vw); }
  .transition-label { font-size: clamp(22px, 7vw, 32px); }
  .overland-transition-logo { width: min(300px, 82vw); }
  .store-link { flex: 1 1 194px; }
}

@media (prefers-reduced-motion: reduce) {
  .store-link { transition: none; }
}
