/* The site's styles. Light and dark from the system setting or the footer switcher; no cookies, no third-party files. */

/* Close web fallback for ui-rounded (Safari) and SF Pro Rounded: Nunito, served from here.
   Browsers only download it when neither of those is available. OFL, see fonts/nunito-OFL.txt. */
@font-face {
  font-family: "Nunito Fallback";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(/fonts/nunito.woff2) format("woff2");
}

:root {
  color-scheme: light dark;
  --font: ui-rounded, "SF Pro Rounded", "Nunito Fallback", system-ui, sans-serif;
  /* Each colour is light-dark(light, dark): the system's setting, unless the footer switcher
     picked one (theme.js sets data-theme, which sets color-scheme below). */
  --page: light-dark(#f5f5f7, #111113);
  --surface: light-dark(#ffffff, #1c1c1e);
  --text: light-dark(#1d1d1f, #f5f5f7);
  --text-2: light-dark(#424245, #c7c7cc);
  --muted: light-dark(#6e6e73, #98989d);
  --line: light-dark(#e5e5ea, #38383a);
  --accent: light-dark(#0a6cdf, #0a84ff);
  --button: #0a6cdf;
  --button-hover: light-dark(#0860c7, #1a78e6);
  --on-accent: #ffffff;
  --pill: light-dark(#e9e9ee, #2c2c2e);
  --soon: #e8890c;
  --ok: light-dark(#1e7a46, #4cc27a);
  --error: light-dark(#b3261e, #ff6b61);
  --shadow: 0 1px 2px light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.4)), 0 18px 50px light-dark(rgb(0 0 0 / 0.14), rgb(0 0 0 / 0.5));
  /* The screenshots have transparent rounded corners, so their shadow follows the alpha. */
  --shot-shadow: drop-shadow(0 1px 1px light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.5))) drop-shadow(0 16px 32px light-dark(rgb(0 0 0 / 0.14), rgb(0 0 0 / 0.55)));
  /* The sticky header once the page has scrolled: see-through with a blur, or solid without one. */
  --nav-bg: color-mix(in srgb, var(--page) 72%, transparent);
  --nav-height: 64px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --nav-bg: var(--page); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 40px; }

/* Header: sticky. At the top of the page it sits on the page colour with no line; once the page
   scrolls it gets a see-through, blurred background and a thin line (a scroll-driven animation,
   no JavaScript). Browsers without scroll timelines always show the scrolled look.
   The animation moves a number, --scrolled, not the colours: animated colours are worked out
   once, so they would keep the old theme after the footer switcher changes it. */
@property --scrolled { syntax: "<number>"; inherits: false; initial-value: 1; }
.nav {
  --scrolled: 1;
  position: sticky; top: 0; z-index: 10;
  background-color: color-mix(in srgb, var(--nav-bg) calc(var(--scrolled) * 100%), transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) calc(var(--scrolled) * 100%), transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
@supports (animation-timeline: scroll()) {
  .nav {
    animation: nav-scrolled linear both;
    animation-timeline: scroll(root);
    animation-range: 0 24px;
  }
}
@keyframes nav-scrolled {
  from { --scrolled: 0; }
  to { --scrolled: 1; }
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--nav-height); padding: 0 40px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--text); }

/* Buttons */
.btn {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 11px 22px; background: var(--button); color: var(--on-accent);
  white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--button-hover); }
.btn:focus-visible, .badge:focus-visible, .theme button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.nav-links .btn.small { color: var(--on-accent); }
.btn.quiet { background: var(--pill); color: var(--text); }
.btn.quiet:hover { background: var(--line); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Apple's Mac App Store badge, used as supplied. At least 40 px tall; the layouts around it keep
   clear space of at least a quarter of its height (12 px). */
.badge { display: inline-block; border-radius: 8px; flex: none; }
.badge img { height: 48px; width: auto; }

/* Hero: the promise is the headline; the icon and name sit smaller above it. */
.hero { text-align: center; padding: 104px 40px 0; }
.app-id { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .icon { width: 76px; height: 76px; }
.app-name { font-size: 20px; font-weight: 700; color: var(--text-2); }
.hero h1 { font-size: 60px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; margin: 28px auto 0; max-width: 900px; }
.hero h1 span { display: inline-block; }
.hero .sub { font-size: 21px; color: var(--text-2); max-width: 600px; margin: 24px auto 0; }
.hero .act { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 36px 0 0; }
.hero .act.launched { flex-direction: row; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero .act.launched .meta { text-align: left; }
.meta { font-size: 14px; color: var(--muted); }
.meta strong { color: var(--text); font-weight: 700; font-size: 16px; }

.shot { display: block; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.caption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.bigshot { max-width: 1060px; margin: 64px auto 0; padding: 0 40px; }
.bigshot .caption { text-align: center; }

/* Sections */
section { margin-top: 112px; }
section h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: 20px; }

/* Features: alternating rows of a benefit, a sentence or two and a large screenshot. */
.features { max-width: 1280px; margin-inline: auto; padding-inline: 40px; display: flex; flex-direction: column; gap: 104px; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 34px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
.feature-text p { font-size: 18px; color: var(--text-2); margin-top: 16px; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot img { filter: var(--shot-shadow); }
.features > .caption { text-align: center; margin-top: -64px; }

/* Pricing */
.buy { background: var(--surface); border-radius: 18px; padding: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.buy-main { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-2); background: var(--pill); border-radius: 999px; padding: 5px 12px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--soon); }
.price { font-size: 48px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.buy-note { color: var(--text-2); font-size: 15px; }
.buy-main .badge { margin-top: 4px; }
.specs { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 40px; }
.specs > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 3px; }
.specs dd { font-size: 15px; color: var(--text-2); }

/* FAQ */
.faq { background: var(--surface); border-radius: 16px; padding: 4px 24px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; color: var(--muted); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 8px; color: var(--text-2); }
details p + p { margin-top: 8px; }

/* Footer */
footer { margin-top: 96px; border-top: 1px solid var(--line); }
footer .wrap { padding-top: 28px; padding-bottom: 40px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
footer nav { display: flex; gap: 18px; font-size: 14px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 6px; }

/* Light / dark / system switcher */
.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill); }
.theme button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  width: 36px; height: 30px; border-radius: 999px; display: grid; place-items: center;
}
.theme button:hover { color: var(--text); }
.theme button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.12); }
.theme svg { width: 16px; height: 16px; }

/* After Buy (pre-launch only) */
dialog {
  border: 0; border-radius: 18px; padding: 28px; width: min(480px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgb(0 0 0 / 0.35); }
dialog h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
dialog p { color: var(--text-2); margin-top: 8px; }
dialog form.email { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
dialog input[type="email"] {
  flex: 1 1 200px; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--text);
}
dialog .fine { font-size: 13px; color: var(--muted); }
dialog .result { font-weight: 700; margin-top: 12px; }
dialog .result.ok { color: var(--ok); }
dialog .result.error { color: var(--error); font-weight: 600; }
dialog .close { display: flex; justify-content: flex-end; margin-top: 18px; }

/* Text pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 40px 0; }
.doc h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 8px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 32px 0 8px; }
.doc p, .doc ul { margin-top: 10px; color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .part { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .buy { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .specs { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 8px; }
}

@media (max-width: 720px) {
  :root { --nav-height: 56px; }
  body { font-size: 16px; }
  .wrap, .bigshot, .features { padding-inline: 16px; }
  .nav-in { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 16px 0; }
  .hero .icon { width: 64px; height: 64px; }
  .app-name { font-size: 18px; }
  .hero h1 { font-size: 38px; margin-top: 22px; }
  .hero .sub { font-size: 18px; margin-top: 18px; }
  .hero .act { margin-top: 28px; }
  .bigshot { margin-top: 44px; }
  section { margin-top: 72px; }
  section h2 { font-size: 26px; }
  .features { gap: 72px; }
  .features > .caption { margin-top: -40px; }
  .feature h3 { font-size: 26px; }
  .feature-text p { font-size: 16px; margin-top: 10px; }
  .feature-shot img { width: 100%; }
  .buy { padding: 24px; }
  .price { font-size: 40px; }
  .specs > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .faq { padding: 2px 16px; }
  footer { margin-top: 72px; }
  .doc { padding: 20px 16px 0; }
  .doc h1 { font-size: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
