/* AdShield site. Brand: background #F4F1FA, ink #1B1530. Purple (#6D3BE0) only for a primary call-to-action button; the
   App Store badge is the call to action now, so the site has none. No orange. */
:root {
  --bg: #F4F1FA;
  --surface: #FFFFFF;
  --ink: #1B1530;
  --ink-2: #4A4360;
  --ink-3: #6E6886;
  --line: #E2DCEF;
  --radius: 20px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
/* App Store link: Apple's black badge, at least 40px tall, clear space of a quarter of its height. */
.store-link { display: inline-block; padding: 10px; margin: -10px; }
.store-link img { height: 52px; width: auto; }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; }
.hero .lede { font-size: clamp(19px, 2.1vw, 22px); color: var(--ink-2); margin: 0 0 32px; max-width: 34em; }
.hero .fineprint { font-size: 14px; color: var(--ink-3); margin: 18px 0 0; }
.shot { border-radius: 28px; box-shadow: 0 24px 60px rgba(27, 21, 48, 0.16); background: var(--surface); }
.hero .shot { max-width: 320px; margin-left: auto; }

/* Sections */
section.block { padding: 72px 0; }
section.block.alt { background: var(--surface); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
h2, .page-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lede { color: var(--ink-2); font-size: 19px; max-width: 40em; margin: 0 0 40px; }

/* Player clip: cropped from the App Store preview, served from R2 (cdn.asyncpack.com) because Safari needs byte ranges. */
.clip { display: block; width: 100%; max-width: 744px; height: auto; aspect-ratio: 744 / 418; margin: 0 auto 40px; border-radius: 24px; background: #1B1530; box-shadow: 0 24px 60px rgba(27, 21, 48, 0.16); object-fit: cover; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--ink-2); }
.card .icon { width: 44px; height: 44px; margin-bottom: 18px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 28px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--ink); font-weight: 700; margin-bottom: 16px;
}
.steps p { margin: 0; color: var(--ink-2); }
.note { margin: 28px 0 0; color: var(--ink-2); }

/* Images centered on one line (the Mac PNG's transparent shadow made bottom alignment look off); captions share a line. */
.devices { display: grid; grid-template-columns: 0.55fr 1fr 1.1fr; gap: 28px; align-items: stretch; }
.devices figure { margin: 0; display: flex; flex-direction: column; }
.devices figure img { margin-block: auto; }
.devices figcaption { text-align: center; font-size: 15px; color: var(--ink-3); margin-top: 14px; }
.devices .mac img { border-radius: 0; box-shadow: none; background: none; }

/* FAQ */
.faq { max-width: 760px; padding-top: 24px; }
.faq .page-title { margin-bottom: 24px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 32px; }
.contact p { margin: 0; }
.contact p + p { margin-top: 10px; color: var(--ink-2); }
.faq details { background: var(--surface); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 24px; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 24px 20px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }

/* Legal and support pages: content moved from the old cdn.asyncpack.com pages. */
.doc { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.doc header { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.doc .last-updated { color: var(--ink-3); font-size: 15px; }
.doc h2 { font-size: 23px; letter-spacing: -0.01em; margin: 36px 0 12px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 24px; }
.doc li { margin-bottom: 8px; }
.doc .highlight-box, .doc .disclaimer-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 24px 0; }
.doc .highlight-box p, .doc .disclaimer-box p { margin: 0; font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; font-size: 15px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 8px; max-width: 60em; }

@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .shot { margin: 0 auto; max-width: 280px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .devices .mac { grid-column: 1 / -1; }
  section.block { padding: 56px 0; }
}

@media (max-width: 520px) {
  .devices { grid-template-columns: 1fr; }
  .devices figure { max-width: 320px; margin: 0 auto; }
}
.faq-cta { margin-bottom: 72px; }
