/* AirPane store site. System font, one blue accent; light and dark (follows the system unless the
   nav toggle sets data-theme on <html>). */

:root {
  --bg: #fdfdfd;
  --surface: #ffffff;
  --ink: #111114;
  --ink-2: #3a3b40;
  --muted: #6b6e76;
  --faint: #9a9da4;
  --line: #ececef;
  --tint: #eef4ff;
  --accent: #1873fd;
  --accent-press: #0f62e0;
  --outline: #a9bde3;
  --placeholder: #e0e2e6;
  --boost: #f08a00;
  --nav-h: clamp(64px, 6.4vw, 92px);
  --gutter: 24px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  --nav-bg: rgba(253, 253, 253, .82);
  --privacy-bg: linear-gradient(160deg, #f3f7ff 0%, #f5f1ff 100%);
  --perm-bg: rgba(255, 255, 255, .8);
  --code-bg: #f1f2f5;
  --warn-bg: #fff6e8;
  --warn-ink: #6b4300;
  --card-shadow: 0 1px 2px rgba(17, 17, 20, .04), 0 10px 40px rgba(17, 17, 20, .07), 0 0 0 1px rgba(17, 17, 20, .04);
  color-scheme: light;
}

/* Dark: the same tokens, twice — once for the system setting, once for the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0d;
    --surface: #161618;
    --ink: #f5f5f7;
    --ink-2: #c9c9ce;
    --muted: #98989f;
    --faint: #6e6e74;
    --line: #2a2a2e;
    --tint: rgba(43, 132, 255, .16);
    --accent: #2b84ff;
    --accent-press: #4b97ff;
    --outline: #3b4a66;
    --placeholder: #2a2a2e;
    --boost: #ff9f0a;
    --nav-bg: rgba(11, 11, 13, .78);
    --privacy-bg: linear-gradient(160deg, #10172a 0%, #17122a 100%);
    --perm-bg: rgba(255, 255, 255, .05);
    --code-bg: #232327;
    --warn-bg: #2b2112;
    --warn-ink: #ffcf87;
    --card-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #161618;
  --ink: #f5f5f7;
  --ink-2: #c9c9ce;
  --muted: #98989f;
  --faint: #6e6e74;
  --line: #2a2a2e;
  --tint: rgba(43, 132, 255, .16);
  --accent: #2b84ff;
  --accent-press: #4b97ff;
  --outline: #3b4a66;
  --placeholder: #2a2a2e;
  --boost: #ff9f0a;
  --nav-bg: rgba(11, 11, 13, .78);
  --privacy-bg: linear-gradient(160deg, #10172a 0%, #17122a 100%);
  --perm-bg: rgba(255, 255, 255, .05);
  --code-bg: #232327;
  --warn-bg: #2b2112;
  --warn-ink: #ffcf87;
  --card-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  height: var(--h);
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font: inherit; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--outline); }
.btn-secondary:hover { border-color: var(--accent); }
.btn:focus-visible { border-radius: 12px; }

/* The trial button: a download on a Mac, an email form on a phone. */
.trial-email { display: none; }
/* Phones can't install a Mac app: this line stands in for the download button there. */
.mac-only { display: none; margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
/* The planned price, crossed out while the test is free. */
.price s { margin-right: .25em; color: var(--muted); font-size: .55em; font-weight: 600; text-decoration-thickness: 2px; vertical-align: .18em; }

.actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}

/* ---------- Nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled, .site-header.is-static { border-bottom-color: var(--line); }

.nav {
  display: flex; align-items: center; gap: 12px;
  height: var(--nav-h);
  max-width: 1440px; margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 50px);
}
.brand {
  display: flex; align-items: center; gap: clamp(10px, 1vw, 14px);
  text-decoration: none; color: var(--ink);
  font-size: clamp(18px, 1.67vw, 24px); font-weight: 700; letter-spacing: -0.01em;
  min-width: 0;
}
.brand img {
  width: clamp(34px, 3.4vw, 50px); height: auto;
  border-radius: 23%;
  box-shadow: 0 1px 2px rgba(20, 30, 80, .18);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 2vw, 30px); }
.nav-links a:not(.btn) {
  font-size: clamp(15px, 1.39vw, 20px); text-decoration: none; color: var(--ink-2);
  padding: 6px 4px;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn {
  --h: clamp(38px, 3.75vw, 54px);
  border-radius: 999px;
  padding: 0 clamp(14px, 1.45vw, 24px);
  font-size: clamp(14px, 1.39vw, 20px);
}
.nav-links .btn:focus-visible { border-radius: 999px; }

/* Switching themes fades instead of flashing (site.js): a slow cross-fade, or eased colours. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .6s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .6s ease, color .6s ease, border-color .6s ease, box-shadow .6s ease, fill .6s ease, stroke .6s ease !important;
}

/* Light / dark toggle: shows the moon in light, the sun in dark. */
.theme-toggle {
  display: grid; place-items: center; flex: none;
  width: clamp(34px, 2.9vw, 42px); height: clamp(34px, 2.9vw, 42px);
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s, color .15s;
}
.theme-toggle:hover { background: var(--tint); color: var(--ink); }
.theme-toggle:focus-visible { border-radius: 50%; }
.theme-toggle svg { width: 52%; height: 52%; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

/* ---------- Layout ---------- */

main { display: block; }
.section { padding: 0 var(--gutter); }
.wrap { max-width: 1164px; margin: 0 auto; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding-top: clamp(36px, 3.9vw, 56px); }
.hero h1 {
  font-size: clamp(40px, 4.45vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero .subline {
  margin-top: clamp(10px, 1.6vw, 22px);
  font-size: clamp(18px, 1.74vw, 25px);
  color: var(--muted);
}
.hero .actions { margin-top: clamp(26px, 3vw, 44px); gap: clamp(12px, 1.5vw, 22px); }
.hero .actions .btn {
  --h: clamp(52px, 4.7vw, 68px);
  min-width: clamp(200px, 18vw, 262px);
  font-size: clamp(18px, 1.67vw, 23px);
  border-radius: clamp(12px, 1vw, 14px);
}

/* ---------- Email-me-the-link form (phones) ---------- */

.email-form {
  display: flex; gap: 8px;
  max-width: 360px; margin: 14px auto 0;
}
.email-form[hidden], .email-thanks[hidden] { display: none; }
.email-form input {
  flex: 1; min-width: 0;
  height: 46px; padding: 0 14px;
  border: 1.5px solid var(--outline); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
}
.email-form input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24, 115, 253, .2); }
.email-form .btn { flex: none; }
.email-thanks { margin-top: 14px; color: var(--ink-2); font-size: 16px; }

/* ---------- Demo (the demo itself is demo.css) ---------- */

.demo-wrap { margin-top: clamp(32px, 3.5vw, 52px); }

/* ---------- Features ---------- */

.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(44px, 4.5vw, 64px);
  text-align: center;
}
.feature { display: grid; justify-items: center; align-content: start; gap: 0; }
.icon-tile {
  display: grid; place-items: center;
  width: clamp(72px, 6.4vw, 92px); height: clamp(72px, 6.4vw, 92px);
  border-radius: 22px;
  background: var(--tint); color: var(--accent);
}
.icon-tile svg { width: 46%; height: 46%; }
.feature h3 {
  margin-top: 18px;
  font-size: clamp(19px, 1.67vw, 24px);
  font-weight: 500; letter-spacing: -0.01em;
}
.feature p { margin-top: 6px; color: var(--muted); font-size: clamp(15px, 1.15vw, 17px); max-width: 30ch; }

/* ---------- Detail sections ---------- */

.block { margin-top: clamp(80px, 9vw, 128px); }
.block-title {
  font-size: clamp(28px, 2.8vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  text-align: center;
}
.block-lede { margin: 12px auto 0; max-width: 46ch; text-align: center; color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); }

.extras {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: clamp(32px, 3.5vw, 48px);
}
.extra {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.extra .icon-tile { width: 44px; height: 44px; border-radius: 12px; }
.extra .icon-tile svg { width: 56%; height: 56%; }
.extra h3 { margin-top: 16px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.extra p { margin-top: 4px; color: var(--muted); font-size: 16px; }

.privacy {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 4.5vw, 64px);
  border-radius: 28px;
  background: var(--privacy-bg);
}
.privacy .block-title, .privacy .block-lede { text-align: left; margin-left: 0; }
.privacy .note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.privacy .note a { color: var(--accent); text-decoration: none; font-weight: 500; }
.privacy .note a:hover { text-decoration: underline; }
.perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perms li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: start;
  padding: 16px 18px; border-radius: 16px; background: var(--perm-bg);
}
.perms .icon-tile { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.perms .icon-tile svg { width: 58%; height: 58%; }
.perms b { font-weight: 600; }
.perms span { color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; margin: clamp(28px, 3vw, 40px) auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
/* A block, not a flex row: the question can hold spans (like the test's end date) and still read as one line. */
.faq summary {
  display: block; position: relative;
  padding: 20px 34px 20px 2px;
  font-size: clamp(17px, 1.3vw, 19px); font-weight: 500;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint);
  transform: translateY(-75%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 2px 20px; color: var(--muted); max-width: 62ch; }
.faq details p a { color: var(--accent); }

/* ---------- Trust line + pricing ---------- */

.trust {
  margin-top: clamp(80px, 9vw, 120px);
  text-align: center;
  font-size: clamp(15px, 1.5vw, 21px);
  color: var(--muted);
}
.trust a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.trust a:hover { color: var(--accent); }

.price-card {
  max-width: 676px;
  margin: clamp(28px, 3.4vw, 48px) auto 0;
  padding: clamp(24px, 2.2vw, 32px) clamp(18px, 2.5vw, 36px) clamp(22px, 2vw, 30px);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-align: center;
}
.price-card h2 { font-size: clamp(20px, 2vw, 29px); font-weight: 700; letter-spacing: -0.01em; }
.price-card .price {
  margin-top: 2px;
  font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.price-card .terms { margin-top: 6px; color: var(--ink-2); font-size: clamp(15px, 1.5vw, 21px); }
.price-card .early { margin: 8px auto 0; max-width: 40ch; color: var(--muted); font-size: 14px; line-height: 1.45; text-wrap: balance; }
.price-card .actions { margin-top: clamp(18px, 1.8vw, 26px); gap: clamp(10px, 1.5vw, 22px); }
.price-card .actions .btn {
  --h: clamp(46px, 4.4vw, 62px);
  min-width: clamp(160px, 18vw, 262px);
  font-size: clamp(16px, 1.45vw, 21px);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(32px, 3vw, 44px) var(--gutter) 44px;
  text-align: center;
  font-size: clamp(13px, 1.25vw, 17px);
  color: var(--faint);
}
.site-footer a { text-decoration: none; color: inherit; }
.site-footer a:hover { color: var(--ink-2); }

/* ---------- Document pages ---------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 24px; }
.doc h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.doc h2 { margin-top: 44px; font-size: clamp(22px, 2vw, 28px); font-weight: 700; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 14px 0 0; }
.doc li + li { margin-top: 8px; }
.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
  padding: 2px 6px; border-radius: 6px; background: var(--code-bg);
  overflow-wrap: anywhere;
}
.doc .coming { margin-top: 24px; color: var(--muted); }
.doc .updated { margin-top: 10px; font-size: 14px; color: var(--muted); }

.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 22px 20px 70px;
  border-radius: 18px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.steps li + li { margin-top: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 22px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent); font-weight: 700;
}

.terminal {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 14px 14px 14px 18px;
  border-radius: 14px; background: #16171b; color: #e9eaf0;
  box-shadow: 0 0 0 1px var(--line);
}
.terminal code {
  flex: 1; min-width: 0; padding: 0; background: none; color: inherit; font-size: 14px;
}
.terminal button {
  flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 13px; cursor: pointer;
}
.terminal button:hover { background: rgba(255, 255, 255, .2); }

.doc table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; color: var(--muted); font-weight: 600; }
.doc td:last-child { white-space: nowrap; }
.doc .warning { margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); }

/* ---------- Reveal on scroll (only once JS is running) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  .extras { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .privacy { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */

@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --gutter: 20px; }

  .trial-link { display: none; }
  .mac-only { display: block; }

  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 36px); line-height: 1.12; }
  .hero h1 .line { display: block; }
  .hero .subline { margin-top: 8px; font-size: 16px; }
  .hero .actions { margin-top: 22px; gap: 10px; }
  .hero .actions .btn { --h: 46px; min-width: 0; padding: 0 18px; font-size: 16px; border-radius: 12px; }

  .demo-wrap { margin-top: 24px; }

  .features { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; text-align: left; }
  .feature { grid-template-columns: auto 1fr; align-items: center; gap: 0 16px; justify-items: start; }
  .feature .icon-tile { grid-row: span 2; width: 58px; height: 58px; border-radius: 14px; }
  .feature h3 { margin-top: 0; font-size: 18px; }
  .feature p { margin-top: 0; font-size: 14.5px; }

  .block { margin-top: 64px; }
  .extras { grid-template-columns: 1fr; gap: 10px; }
  .extra { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 18px; }
  .extra .icon-tile { grid-row: span 2; width: 40px; height: 40px; }
  .extra h3 { margin-top: 0; font-size: 17px; }
  .extra p { font-size: 15px; }
  .privacy { padding: 26px 20px; border-radius: 22px; }

  .trust { margin-top: 64px; font-size: 13.5px; }
  .trust a { white-space: normal; }
  .price-card { padding: 22px 16px 20px; border-radius: 18px; }
  .price-card .actions { flex-wrap: nowrap; gap: 10px; }
  .price-card .actions .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 15px; }

  .doc td:last-child { white-space: normal; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc td { padding: 3px 0; border: 0; }
  .doc td::before { content: attr(data-label) " · "; color: var(--muted); font-size: 13px; }
  .doc td:first-child::before { content: none; }
  .steps li { padding: 18px 18px 18px 62px; }
  .steps li::before { left: 18px; }
}

@media (max-width: 380px) {
  .brand { font-size: 17px; gap: 8px; }
  .brand img { width: 30px; }
  .nav { gap: 8px; }
  .nav-links { gap: 8px; }
  .nav-links .btn { padding: 0 12px; font-size: 14px; }
  .price-card .actions .btn { font-size: 14px; padding: 0 6px; }
}
