:root {
  --ink: #111;
  --muted: #6f6f6f;
  --line: #efefef;
  --bg: #f5f5f5;
  --card: #fff;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

/* ── Topbar ── */
.topbar {
  position: absolute;
  left: 32px;
  top: 28px;
  z-index: 10;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.wordmark svg, .wordmark img { flex-shrink: 0; border-radius: 6px; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Stage (main container) ── */
.stage {
  max-width: 640px;
  margin: 0 auto;
  padding: 128px 24px 64px;
}

/* ── Hero ── */
.hero { margin-bottom: 32px; }
h1 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 16px;
  text-wrap: balance;
}
.lede {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34ch;
}
.actions { margin-bottom: 80px; }
.price-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.button:hover { opacity: 0.88; }
.button:active { transform: scale(0.98); }
.button .amount {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.button-lg {
  height: 50px;
  font-size: 16px;
  padding: 0 10px 0 22px;
}
.button-lg .amount {
  height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

/* ── MacBook figure ── */
.pin-track {
  margin: 0 0 56px;
}
.figure {
  width: min(880px, calc(100vw - 48px));
  margin: 0 0 0 50%;
  transform: translateX(-50%);
  padding: 0;
}
.mac {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  container-type: inline-size;
}
.lid {
  position: relative;
  margin: 0 3.81cqw;
  aspect-ratio: 1.54;
  background: #121212;
  border-radius: 4.83cqw 4.83cqw 0 0;
  overflow: hidden;
  /* Hinge at the bottom, where the lid meets the deck: the whole bezel,
     screen and notch rotate together as one rigid piece. */
  transform-origin: 50% 100%;
  will-change: transform;
}
.screen {
  position: absolute;
  inset: 1.5cqw 1.5cqw 2.2cqw;
  border-radius: 3.4cqw 3.4cqw 0 0;
  overflow: hidden;
  background: #14171a;
}
.art { position: absolute; inset: 0; }
.art svg, .art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Wallpaper blur: a single uniform radius over the whole image, driven by JS.
   No masks - so there is no region of the screen that blur can miss. */
#wallpaperImg { will-change: filter; }

/* Shade overlay: flat and uniform, so darkening is identical everywhere. */
.shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #000;
}

/* Clock on screen */
.clock {
  position: absolute;
  left: 0; right: 0; top: 13%;
  text-align: center;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.clock small {
  display: block;
  font-size: 2.2cqw;
  letter-spacing: -0.01em;
  opacity: 0.85;
  margin-bottom: 0.5cqw;
}
.clock b { font-weight: 500; font-size: 12.5cqw; }

/* Home indicator */
.home {
  position: absolute;
  left: 50%; bottom: 3.45cqw;
  width: 20%; height: 1.03cqw;
  transform: translateX(-50%);
  border-radius: 1cqw;
  background: rgba(255,255,255,0.7);
}

/* Notch */
.notch {
  position: absolute;
  top: 1.5cqw; left: 50%;
  width: 22.06cqw;
  aspect-ratio: 64 / 9;
  transform: translateX(-50%);
  color: #121212;
}
.notch svg { display: block; width: 100%; height: 100%; }

/* Deck (bottom of MacBook) */
.deck {
  position: relative;
  height: 3.1cqw;
  background: #858585;
  border-radius: 0 0 1.03cqw 1.03cqw;
}
.lip {
  position: absolute;
  top: 0; left: 50%;
  width: 24.8cqw; height: 1.21cqw;
  transform: translateX(-50%);
  border-radius: 0 0 1.38cqw 1.38cqw;
  background: rgba(0,0,0,0.35);
}

.caption {
  margin: 20px auto 0;
  max-width: 44ch;
  text-wrap: balance;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: -0.005em;
}

/* ── Comparison section ── */
.comparison { margin: 0 0 56px; }
.compare-card {
  display: flex;
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}
.compare-col {
  flex: 1;
  padding: 32px 24px;
}
.compare-col h3 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 8px;
}
.compare-price {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--muted);
}
.compare-price.free {
  color: #059669;
}
.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-col ul li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.compare-col.them ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
}
.compare-col.us ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-size: 13px;
  font-weight: 700;
}
.compare-divider {
  display: flex;
  align-items: center;
  padding: 0;
  width: 1px;
  background: var(--line);
  position: relative;
}
.compare-divider span {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 8px;
  letter-spacing: 0.03em;
}

/* ── Feature cards ── */
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}
.card {
  background: var(--card);
  border-radius: 20px;
}
.card h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.card section, section.card { padding: 24px 24px 12px; }
.card dl { margin: 0 -24px; padding: 0; }
.row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
dt { margin: 0; letter-spacing: -0.015em; font-weight: 500; }
dd { margin: 0; color: var(--muted); }
dd a { color: var(--ink); text-underline-offset: 2px; }
dd a:hover { color: var(--accent); }

/* ── Download section ── */
.download-section {
  text-align: center;
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
}
.download-heading {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  text-transform: none;
  color: var(--ink);
}
.download-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 24px;
}
.download-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ── Footer ── */
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--ink); }
.links { display: flex; gap: 20px; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  #lid { transform: none !important; }
  #wallpaperImg { filter: none !important; }
  .shade { opacity: 0 !important; }
  .button { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 520px) {
  .topbar { left: 20px; top: 20px; }
  .stage { padding-top: 96px; }
  h1 { font-size: 30px; }
  .lede { font-size: 17px; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .compare-card { flex-direction: column; }
  .compare-divider {
    width: 100%; height: 1px;
    background: var(--line);
  }
  .compare-divider span {
    top: 50%; left: 50%;
  }
  .download-heading { font-size: 26px; }
}

.faq details { border-top: 1px solid var(--line); padding: 14px 24px; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

.about { padding: 24px; margin-bottom: 16px; }
.about p { margin: 0 0 12px; color: var(--muted); line-height: 1.6; }
.about p:last-child { margin-bottom: 0; }
