:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: #d2d2d7;
  --bg: #fff;
  --soft: #f5f5f7;
  --blue: #0071e3;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(20px, env(safe-area-inset-left)); background: rgb(255 255 255 / 0.8);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgb(0 0 0 / 0.08);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }

/* Buttons: Apple-style pills, filled blue + blue outline */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  font-family: inherit; font-size: 17px; font-weight: 400; line-height: 1;
  padding: 15px 24px; border-radius: 980px; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), color 160ms var(--ease);
}
.pill:hover { text-decoration: none; background: #0077ed; }
.pill:active { transform: scale(0.97); }
.pill.outline { background: transparent; color: var(--blue); }
.pill.outline:hover { background: var(--blue); color: #fff; }
.pill:disabled { opacity: 0.5; cursor: default; }
.pill.small { font-size: 14px; padding: 9px 16px; }

/* Hero */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: center;
}
.hero-icon { border-radius: 20px; box-shadow: 0 6px 20px rgb(0 0 0 / 0.12); margin-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; font-weight: 700; }
.lede { font-size: clamp(19px, 2.2vw, 22px); color: var(--secondary); margin: 18px 0 28px; max-width: 30em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.badges span { font-size: 13px; color: var(--secondary); background: var(--soft); padding: 6px 12px; border-radius: 980px; }

/* Sign-up form */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.signup input {
  flex: 1 1 220px; min-width: 0; font: inherit; padding: 15px 20px; border-radius: 980px;
  border: 1px solid var(--line); background: #fff; color: var(--text); outline: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.signup input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 113 227 / 0.15); }
.signup.invalid input { border-color: #e30000; }
.form-note { flex-basis: 100%; margin: 4px 0 0 20px; font-size: 14px; color: var(--secondary); }
.signup.done { display: block; }
.signup .thanks { font-size: 19px; font-weight: 600; margin: 0; animation: rise 300ms var(--ease) both; }
.signup .thanks span { display: block; font-size: 15px; font-weight: 400; color: var(--secondary); margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Phone with the promo video */
.phone {
  position: relative; aspect-ratio: 9 / 16; border-radius: 44px; overflow: hidden; background: #000;
  border: 10px solid #1d1d1f; box-shadow: 0 30px 60px rgb(0 0 0 / 0.18);
}
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sound {
  position: absolute; right: 14px; bottom: 14px; border: 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; line-height: 1;
  padding: 9px 14px; border-radius: 980px; color: #fff; background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* Features: AirPods-page style cards (label, big headline, art, ⊕ for more) */
.features-wrap { padding: 80px 0 40px; }
.features-wrap > h2 { max-width: 1080px; margin: 0 auto 28px; padding: 0 24px; font-size: clamp(32px, 4.5vw, 48px); }
.features {
  max-width: 1128px; margin: 0 auto; padding: 0 24px 8px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.fcard {
  position: relative; background: var(--soft); border-radius: 28px; overflow: hidden;
  aspect-ratio: 372 / 680; display: flex; flex-direction: column; padding: 36px 32px 0;
}
.fcard .eyebrow { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.fcard h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.13; font-weight: 700; white-space: pre-line; }
.fcard .body { font-size: 17px; color: var(--secondary); margin: 12px 0 0; }
.fcard .art { flex: 1; position: relative; margin: 20px -32px 0; min-height: 0; display: grid; place-items: end center; }
/* The AirPod clip's grey background melts into the card. */
.fcard .art video.bleed {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(1.24) saturate(0.6);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.fcard .art video.framed { width: 78%; max-height: 92%; object-fit: cover; border-radius: 22px 22px 0 0; display: block; }
.fcard .art .mini-phone {
  width: 62%; border: 7px solid #1d1d1f; border-bottom: 0; border-radius: 34px 34px 0 0; overflow: hidden;
  max-height: 95%; display: block;
}
.fcard .art .mini-phone img { width: 100%; display: block; }
.more {
  position: absolute; right: 18px; bottom: 18px; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #333336; color: #fff; display: grid; place-items: center; z-index: 2;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.more:hover { background: #000; }
.more:active { transform: scale(0.94); }
.more svg { width: 16px; height: 16px; }
.modal.feature-modal { width: min(560px, calc(100vw - 32px)); }
.feature-modal .modal-body { text-align: left; align-items: stretch; padding: 40px 40px 34px; }
.feature-modal .eyebrow { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.feature-modal h2 { font-size: 32px; line-height: 1.13; white-space: pre-line; }
.feature-modal p { font-size: 19px; line-height: 1.45; margin: 16px 0 0; color: var(--text); }
.close-x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--soft); color: var(--secondary); font-size: 20px; line-height: 1;
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; padding: 80px 24px 40px; }
.faq h2 { font-size: 40px; margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--secondary); font-weight: 400; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--secondary); margin: 10px 0 0; }

/* Final call to action */
.join { text-align: center; padding: 80px 24px 96px; display: flex; flex-direction: column; align-items: center; }
.join img { border-radius: 15px; margin-bottom: 18px; }
.join h2 { font-size: clamp(32px, 5vw, 48px); }
.join .lede { margin: 12px 0 24px; }
.join .signup { justify-content: center; width: 100%; }

/* Footer */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 24px max(24px, env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 13px; color: var(--secondary); background: var(--soft);
}
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--secondary); }

/* Privacy / terms */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 21px; margin: 32px 0 6px; }
.legal p, .legal li { color: #333; }
.legal .updated { color: var(--secondary); font-size: 15px; margin-top: 6px; }
.legal ul { padding-left: 22px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 32px; text-align: left; }
  .phone { max-width: 300px; width: 100%; margin: 0 auto; }
  .features {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    scroll-padding: 0 24px; gap: 14px;
  }
  .features::-webkit-scrollbar { display: none; }
  .fcard { flex: 0 0 min(82vw, 340px); scroll-snap-align: start; padding: 30px 26px 0; }
  .fcard .art { margin: 18px -26px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* After sign-up: follow on X */
.modal {
  position: fixed;
  border: 0; padding: 0; border-radius: 22px; width: min(380px, calc(100vw - 40px));
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.25); color: var(--text);
}
.modal[open] { animation: pop 300ms var(--ease) both; }
.modal::backdrop { background: rgb(0 0 0 / 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 200ms ease-out both; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
.modal-body { padding: 32px 28px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.modal-body .tick {
  width: 56px; height: 56px; border-radius: 50%; background: #34c759; color: #fff;
  display: grid; place-items: center; font-size: 30px; margin-bottom: 16px;
}
.modal-body h2 { font-size: 26px; }
.modal-body p { color: var(--secondary); margin: 8px 0 22px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.modal-actions .pill { width: 100%; }
.x-logo { width: 16px; height: 16px; fill: currentColor; }

/* What's TestFlight? */
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; }
.link:hover { text-decoration: underline; }
.form-note .link { font-size: 14px; margin-left: 4px; }
.join > .link { margin-top: 14px; font-size: 15px; }
.tf-icon {
  width: 56px; height: 56px; border-radius: 13px; margin-bottom: 16px; color: #fff; display: grid; place-items: center;
  background: linear-gradient(160deg, #4fb4ff, #0a6cf0);
}
.tf-icon svg { width: 30px; height: 30px; }
.feature-modal .pill { align-self: flex-start; }
.tf-steps { counter-reset: step; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.tf-steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; font-size: 17px; }
.tf-steps li::before {
  content: counter(step); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft);
  display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--blue); transform: translateY(5px);
}
.feature-modal .tf-note { font-size: 14px; color: var(--secondary); margin: 18px 0 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Sharing */
.nav-actions { display: flex; gap: 8px; align-items: center; }
.pill svg { width: 16px; height: 16px; flex: none; }
.pill.small svg { width: 14px; height: 14px; margin-top: -2px; }
.share-section { text-align: center; padding: 72px 24px 8px; max-width: 720px; margin: 0 auto; }
.share-section h2 { font-size: clamp(30px, 4.5vw, 44px); }
.share-section .lede { margin: 12px auto 26px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  background: var(--soft); color: var(--text); border: 0; border-radius: 980px; padding: 11px 16px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.share-btn:hover { background: #e8e8ed; text-decoration: none; }
.share-btn:active { transform: scale(0.97); }
.share-btn svg { width: 18px; height: 18px; flex: none; }
.share-btn.native { background: var(--blue); color: #fff; }
.share-btn.copied { background: #34c759; color: #fff; }
.share-row.compact .share-btn { padding: 10px; }
.share-row.compact .share-btn span { display: none; }
.share-row.compact .share-btn.copy span, .share-row.compact .share-btn.native span { display: inline; }
.share-row.compact .share-btn.copy, .share-row.compact .share-btn.native { padding: 10px 14px; }
.share-label { font-size: 13px !important; color: var(--secondary); margin: 22px 0 10px !important; }
.modal-icon { border-radius: 15px; margin-bottom: 14px; }
.modal-body .close-x { position: absolute; }
.modal-body { position: relative; }
.exit-signup { justify-content: center; margin: 0 auto; }
.exit-signup input { flex-basis: 100%; }
.exit-signup .pill { width: 100%; }
@media (max-width: 560px) {
  .nav-actions .share-open span { display: none; }
  .nav-actions .share-open { padding: 9px 11px; }
}

/* ---- Phones: squeeze page. Full-screen video, CTA at the bottom, details below. ---- */
.m-top, .m-bottom, .m-sticky { display: none; }
.sheet-tf { margin-top: 14px; font-size: 15px; }
@media (max-width: 820px) {
  .nav { display: none; }
  .hero { display: block; padding: 0; }
  .hero-text { display: none; }
  .phone {
    max-width: none; width: 100%; height: 100svh; aspect-ratio: auto; margin: 0;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .phone .sound { display: none; }
  .m-top {
    display: flex; justify-content: space-between; align-items: center; position: absolute; left: 0; right: 0; top: 0;
    padding: calc(12px + env(safe-area-inset-top)) 16px 28px;
    background: linear-gradient(rgb(0 0 0 / 0.45), transparent);
  }
  .m-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 19px; text-decoration: none; }
  .m-brand img { border-radius: 8px; }
  .m-actions { display: flex; gap: 10px; }
  .m-round {
    width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
    color: #fff; font: 600 19px/1 -apple-system, system-ui, sans-serif; text-decoration: none;
    background: rgb(255 255 255 / 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .m-round:hover { text-decoration: none; }
  .m-round svg { width: 20px; height: 20px; }
  .m-sound .on { display: none; }
  .m-sound.unmuted .on { display: inline; }
  .m-sound.unmuted .off { display: none; }
  .m-bottom {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; bottom: 0;
    padding: 64px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgb(0 0 0 / 0.7) 45%);
    color: #fff; text-align: center;
  }
  .m-title { font: 700 26px/1.15 -apple-system, "SF Pro Display", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0 0 14px; }
  .m-cta { width: 100%; padding: 17px 24px; font-size: 18px; font-weight: 600; }
  .m-note { font-size: 13px; color: rgb(255 255 255 / 0.75); margin: 10px 0 0; }
  .m-note .link { color: #fff; text-decoration: underline; font-size: 13px; }

  /* Top bar once the hero is gone (hidden while a sign-up form is on screen). Top, not bottom:
     Safari's floating toolbar and in-app browsers cover the bottom of the screen. */
  .m-sticky {
    display: flex; align-items: center; justify-content: space-between; position: fixed; left: 0; right: 0; top: 0; z-index: 20;
    padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
    background: rgb(255 255 255 / 0.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgb(0 0 0 / 0.1);
    transform: translateY(-110%); transition: transform 300ms var(--ease);
  }
  .m-sticky.show { transform: none; }
  .m-sticky-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 18px; text-decoration: none; }
  .m-sticky-brand img { border-radius: 7px; }
  .m-sticky .pill { font-weight: 600; }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .features-wrap { padding-top: 56px; scroll-margin-top: 20px; }

  /* Popups become bottom sheets. */
  .modal, .modal.feature-modal {
    width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom); max-height: 88svh;
  }
  .modal[open] { animation: sheet 340ms var(--ease) both; }
  @keyframes sheet { from { transform: translateY(100%); } }
  .feature-modal .modal-body { padding: 32px 24px 28px; }
}
