:root {
  --bg: #000;
  --bg-2: #0d0d0f;
  --tile: #161618;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #86868b;
  --soft: #a1a1a6;
  --accent: #2997ff;
  --button: #0071e3;
  --max: 980px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.022em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 44px); margin: 0 auto; }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(22, 22, 23, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.brand img { width: 22px; height: 22px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: rgba(245, 245, 247, 0.8); font-size: 12px; letter-spacing: -0.01em; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .buy-small {
  font-size: 12px; color: #fff; background: var(--button);
  padding: 4px 11px; border-radius: 980px;
}
.nav .buy-small:hover { color: #fff; filter: brightness(1.12); }

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--button); color: #fff; font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1;
  padding: 13px 24px; border-radius: 980px; border: 0; cursor: pointer;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}
.button:hover { text-decoration: none; filter: brightness(1.12); }
.button:active { transform: scale(0.98); }
.button:focus-visible, .compare:has(input:focus-visible) { outline: 3px solid rgba(41, 151, 255, 0.6); outline-offset: 3px; }
.link { font-size: 17px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero-copy { width: min(820px, 100% - 44px); margin: 0 auto; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.5)); }
.kicker { margin: 0 0 6px; font-size: 21px; font-weight: 600; color: var(--soft); letter-spacing: 0.004em; }
h1 {
  margin: 0;
  font-size: clamp(42px, 7.4vw, 80px); line-height: 1.04; font-weight: 700;
  letter-spacing: -0.04em;
}
.lede { margin: 22px auto 0; max-width: 640px; color: var(--soft); font-size: clamp(19px, 2.3vw, 24px); line-height: 1.38; letter-spacing: 0.005em; }
.cta { margin-top: 34px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.price-line { margin: 18px 0 0; color: var(--muted); font-size: 14px; letter-spacing: -0.01em; }
.price-line s { margin-right: 4px; }

.hero-stage { position: relative; margin: 64px auto 0; width: min(660px, 100% - 44px); }
.hero-stage::before {
  content: ""; position: absolute; inset: 8% -30% -10%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(178, 66, 160, 0.35), transparent 70%); filter: blur(40px);
}
.hero-shot { border-radius: 22px; box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line); }

/* sections */
main section { padding: 150px 0 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { margin: 0; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.035em; max-width: 780px; }
.sub { margin: 20px 0 0; color: var(--soft); font-size: clamp(19px, 2vw, 21px); line-height: 1.42; max-width: 620px; letter-spacing: 0.008em; }

/* compare */
.compare {
  --split: 50%;
  position: relative; margin: 56px auto 0; width: 320px; max-width: 100%;
  border-radius: 22px; overflow: hidden; cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}
.compare img { width: 100%; pointer-events: none; -webkit-user-drag: none; }
.compare .apple { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
}
.compare .handle span {
  position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.compare .handle span::before, .compare .handle span::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border: solid #1d1d1f; border-width: 0 0 2px 2px;
}
.compare .handle span::before { left: 9px; transform: rotate(45deg); }
.compare .handle span::after { right: 9px; transform: rotate(-135deg); }
.compare.hinting .apple { transition: clip-path 0.6s var(--ease); }
.compare.hinting .handle { transition: left 0.6s var(--ease); }
.compare .tag {
  position: absolute; top: 12px; padding: 5px 11px; border-radius: 980px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 12px; font-weight: 500; letter-spacing: -0.005em;
  transition: opacity 0.25s var(--ease);
}
.compare .tag.left { left: 14px; }
.compare .tag.right { right: 14px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; margin: 0; }

/* side by side */
.pair { display: flex; justify-content: center; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 500; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(32px, 4.4vw, 48px); }
.framed.fade { box-shadow: none; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent); }
.framed {
  justify-self: center; border-radius: 22px; overflow: hidden; width: fit-content;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.tile { background: var(--tile); border-radius: 28px; padding: 34px 32px; }
.tile.wide { grid-column: span 2; }
.tile h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--soft); font-size: 17px; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: block; margin-bottom: 14px; font-size: 40px; line-height: 1; font-weight: 600; color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; font-variant-numeric: tabular-nums;
}
.steps h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { margin: 0; color: var(--soft); }

/* pricing */
.price-card {
  margin: 52px auto 0; max-width: 460px; padding: 44px 40px 36px; border-radius: 30px;
  background: var(--tile); text-align: center;
}
.price-card > img { margin: 0 auto 18px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.amount { font: 700 64px/1 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif; letter-spacing: -0.04em; }
.amount s { font-size: 28px; color: var(--muted); font-weight: 500; vertical-align: 22px; margin-right: 10px; }
.muted { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.price-card ul { list-style: none; padding: 0; margin: 28px 0 30px; display: grid; gap: 12px; text-align: left; }
.price-card li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.price-card li::before {
  content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.price-card .button { width: 100%; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: -0.005em; }

/* faq */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 19px; letter-spacing: -0.015em;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 24px; font-weight: 300; transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--soft); margin: -6px 0 22px; max-width: 680px; }

/* footer */
footer { margin-top: 150px; background: var(--bg-2); border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 22px 0 40px; color: var(--muted); font-size: 12px; line-height: 1.5; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--soft); margin-left: 18px; }
footer .footer-links a:first-child { margin-left: 0; }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* plain pages (terms, privacy, thanks) */
.doc { padding: 72px 0 0; max-width: 720px; }
.doc h1 { font-size: 44px; text-align: left; margin: 0; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc p, .doc li { color: var(--soft); }
.key {
  margin-top: 18px; font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all;
  background: var(--tile); border: 1px solid var(--line); border-radius: 14px; padding: 18px; user-select: all;
}

@media (max-width: 820px) {
  .nav-links a:not(.buy-small) { display: none; }
  .pair { gap: 28px; }
  .split, .bento, .steps { grid-template-columns: 1fr; gap: 28px; }
  .split.flip > :first-child { order: 2; }
  .tile.wide { grid-column: auto; }
  main section { padding-top: 110px; }
  .price-card { padding: 36px 24px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  * { transition: none !important; }
}
