:root {
  --bg: #0a0a0b;
  --surface: #141416;
  --line: #26262b;
  --text: #f4f4f5;
  --soft: #d4d4d8;
  --muted: #a1a1aa;
  --accent: #4f8cff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; }

/* Soft static light in the corner, no animation */
.glow {
  position: fixed;
  top: -25vmax;
  left: -20vmax;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgba(79, 140, 255, 0.16), rgba(79, 140, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero, .foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.035em;
}
h1 .emoji { letter-spacing: 0; }

.lead {
  max-width: 36ch;
  margin-bottom: 36px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--soft);
}

.for {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  list-style: none;
}
.checks li {
  position: relative;
  max-width: 52ch;
  padding-left: 32px;
  color: var(--soft);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(79, 140, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f8cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.cta-text {
  margin-bottom: 14px;
  font-weight: 600;
}

/* Signup */
.signup {
  display: flex;
  gap: 8px;
  max-width: 480px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup:focus-within {
  border-color: rgba(79, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.15);
}
.signup input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}
.signup input::placeholder { color: #71717a; }
.signup button {
  padding: 12px 22px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}
.signup button:hover { background: #fff; transform: translateY(-1px); }
.signup button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.signup button:disabled { opacity: 0.6; cursor: default; transform: none; }

.fine {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.fine a, .foot a { color: var(--muted); text-underline-offset: 3px; }
.fine a:hover, .foot a:hover { color: var(--text); }

.success {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  padding: 18px 20px;
  background: rgba(79, 140, 255, 0.08);
  border: 1px solid rgba(79, 140, 255, 0.35);
  border-radius: 16px;
  outline: none;
}
.success span { color: var(--soft); }
.success a {
  margin-top: 8px;
  font-weight: 600;
  color: var(--text);
  text-underline-offset: 3px;
}

.error {
  margin-top: 10px;
  font-size: 14px;
  color: #f87171;
}

/* Before / after slider */
.transform {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}
.compare {
  --pos: 75%; /* start mostly on the 2022 photo, slide left to reveal now */
  position: relative;
  aspect-ratio: 7 / 10;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  cursor: ew-resize;
  touch-action: pan-y; /* vertical swipes keep scrolling the page */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.compare-layer {
  position: absolute;
  inset: 0;
}
.compare-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.compare-layer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(to top, rgba(10, 10, 11, 0.8), rgba(10, 10, 11, 0));
}
.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center / 22px no-repeat;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.compare-range:focus-visible + .compare-handle .compare-grip {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}
.tag {
  position: absolute;
  bottom: 12px;
  z-index: 1;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tag-before { left: 12px; }
.tag-after { right: 12px; }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted);
}
.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  border-top: 1px solid var(--line);
}

/* Simple text pages (privacy, thanks) */
.page {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.page h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.page p, .page li { color: var(--soft); }
.page p + p { margin-top: 12px; }
.page ul { margin: 8px 0 0 20px; }
.page li + li { margin-top: 6px; }
.page .meta { color: var(--muted); font-size: 14px; }
.page .back {
  display: inline-block;
  margin-top: 32px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.page .back:hover { text-decoration: underline; text-underline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet and below: one column, form stays above the photo */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
  }
  .transform { justify-self: start; }
}

/* Phones: tighter spacing so the form sits near the first screen */
@media (max-width: 520px) {
  .hero { padding-top: 28px; gap: 40px; }
  .compare { border-radius: 16px; }
  .tag { bottom: 10px; padding: 5px 9px; font-size: 11px; }
  .tag-before { left: 10px; }
  .tag-after { right: 10px; }
  .eyebrow { margin-bottom: 16px; }
  h1 { font-size: 38px; margin-bottom: 14px; }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .for { margin-bottom: 10px; }
  .checks { gap: 9px; margin-bottom: 24px; }
  .checks li { font-size: 15px; line-height: 1.45; }
  .checks li::before { top: 0.05em; }
  .cta-text { margin-bottom: 10px; }
  .signup {
    flex-direction: column;
    padding: 6px;
    border-radius: 20px;
  }
  .signup input { padding: 12px 14px; }
  .signup button { width: 100%; padding: 14px; border-radius: 14px; }
  .foot { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
