/* Folder Paradise — the colors of the app icon: a dusk sky (indigo, violet, sunset), and the folders' own tints.
   Type: the Mac's own, SF Pro Rounded for titles as in the app, SF Pro for text. */

:root {
  --sky-1: #2f3fd9;
  --sky-2: #8d4fd6;
  --sky-3: #ff9466;
  --ink: #1c1838;
  --muted: #5f5a7a;
  --paper: #ffffff;
  --wash: #f4f2fb;
  --line: rgba(28, 24, 56, 0.12);
  --action: #0a6ce6;
  --action-ink: #ffffff;
  --blue: #2f7bf5;
  --green: #2fb85c;
  --pink: #f2456f;
  --orange: #f7931e;
  --indigo: #5e5ce6;
  --shadow: 0 40px 80px -30px rgba(31, 20, 90, 0.45), 0 12px 30px -12px rgba(31, 20, 90, 0.25);
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f0fb;
    --muted: #aba6c6;
    --paper: #15122a;
    --wash: #1c1836;
    --line: rgba(242, 240, 251, 0.12);
    --action: #3b8cff;
    --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--action); text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 6px; }

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.4em;
  margin: 0 0.08em;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--wash);
  font: 600 0.82em/1.5 var(--round);
  text-align: center;
  color: var(--ink);
}

/* ---- Buttons: capsules, as macOS 26 draws them ------------------------------------------ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.62em 1.15em;
  border-radius: 999px;
  border: 0;
  background: var(--action);
  color: var(--action-ink);
  font: 600 16px/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.08); }
.button:active { transform: scale(0.97); }
.button.small { padding: 0.45em 0.95em; font-size: 14px; }
.button.large { padding: 0.8em 1.45em; font-size: 17px; }
.button.quiet { background: var(--wash); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.white { background: #fff; color: #2a1e66; }
.button.glass {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}

/* ---- Header ------------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 28px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 700 19px/1 var(--round);
  text-decoration: none;
}
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a:not(.button) { color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-header nav a:not(.button):hover { color: #fff; }
.site-header .button { background: rgba(255, 255, 255, 0.95); color: #2a1e66; }

/* ---- The desk: a Mac desktop at dusk, its menu bar, and the panel ------------------------ */
.desk {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 0 0 72px;
  background:
    radial-gradient(60% 70% at 95% 105%, rgba(255, 148, 102, 0.95), transparent 70%),
    radial-gradient(55% 65% at 70% 20%, rgba(141, 79, 214, 0.9), transparent 70%),
    radial-gradient(70% 80% at 0% 0%, #2233c4, transparent 75%),
    linear-gradient(160deg, #2f3fd9 0%, #6a47d8 45%, #c25bb0 75%, #ff9466 100%);
}
.desk::after { /* a grain of stars, as on the icon */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 42% 12%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 64% 58%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 8% 78%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 33% 88%, rgba(255, 255, 255, 0.4), transparent);
}

.menubar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px;
  font: 500 13.5px/1 var(--text);
  background: rgba(20, 16, 60, 0.22);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
.menubar a {
  padding: 5px 9px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}
.menubar a:hover { background: rgba(255, 255, 255, 0.22); }
.menubar-app { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.menubar-app img { width: 16px; height: 16px; }
.menubar-spacer { flex: 1; }
.menubar-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.desk[data-panel-open] .menubar-icon { background: rgba(255, 255, 255, 0.28); }
.menubar-status { display: flex; align-items: center; gap: 16px; margin: 0 6px 0 10px; color: rgba(255, 255, 255, 0.95); }

/* The copy sits in the page's column; the panel hangs under the menu bar icon, near the screen's right edge. */
.desk-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
  padding: 8px 18px 0 max(28px, calc((100vw - 1240px) / 2 + 28px));
}
.desk-copy { padding-top: 120px; }
.desk h1 {
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.desk .lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 30em; color: rgba(255, 255, 255, 0.9); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.desk .button:not(.glass) { background: #fff; color: #2a1e66; }
.fineprint { font-size: 14px; color: inherit; opacity: 0.78; }

/* The panel hangs from the menu bar icon, like the real one. */
.panel {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 880px;
  transform-origin: calc(100% - 150px) -16px;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.08), opacity 0.35s ease;
}
.panel img {
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 60px 120px -40px rgba(20, 8, 70, 0.75), 0 0 0 0.5px rgba(255, 255, 255, 0.35);
}
.panel:not([data-open]) { transform: scale(0.06); opacity: 0; }
.desk-hint {
  position: relative;
  z-index: 2;
  margin: 24px 0 0;
  padding: 0 24px;
  text-align: right;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.desk-hint kbd { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* ---- Features ------------------------------------------------------------------------------ */
.features { max-width: 1240px; margin: 0 auto; padding: 120px 28px 40px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
  margin-bottom: 140px;
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .feature-copy { order: 2; }
.feature h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 20px; }
.feature p { color: var(--muted); font-size: 18px; max-width: 30em; }
.glyph { width: 52px; height: 44px; margin-bottom: 22px; fill: var(--tint); filter: drop-shadow(0 6px 12px color-mix(in srgb, var(--tint) 45%, transparent)); }
.shot { margin: 0; }
.shot img { border-radius: 18px; box-shadow: var(--shadow); }

/* ---- The little things -------------------------------------------------------------------- */
.details { max-width: 1240px; margin: 0 auto; padding: 0 28px 140px; }
.details > h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.02em; margin-bottom: 40px; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 56px; }
.details h3 { font-size: 19px; margin-bottom: 8px; }
.details p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---- Price: the sky again ------------------------------------------------------------------ */
.price {
  color: #fff;
  background:
    radial-gradient(60% 90% at 100% 100%, rgba(255, 148, 102, 0.95), transparent 70%),
    radial-gradient(50% 80% at 30% 0%, rgba(141, 79, 214, 0.85), transparent 70%),
    linear-gradient(120deg, #2f3fd9, #7a4bd7 55%, #e0709a);
}
.price-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 28px;
}
.price .price-amount {
  margin: 0;
  font: 800 clamp(96px, 15vw, 210px)/0.85 var(--round);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.price .price-amount .currency { font-size: 0.42em; vertical-align: 0.95em; margin-right: 0.04em; letter-spacing: 0; }
.price h2 { font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.02em; margin-bottom: 18px; }
.price p { font-size: 18px; max-width: 32em; color: rgba(255, 255, 255, 0.92); }
.price .fineprint { font-size: 14px; }

/* ---- Questions ------------------------------------------------------------------------------ */
.questions { max-width: 780px; margin: 0 auto; padding: 130px 28px 120px; }
.questions h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.02em; margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font: 600 19px/1.35 var(--round);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding-bottom: 8px; max-width: 38em; }

/* ---- Footer --------------------------------------------------------------------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---- Plain pages: thanks, license, legal ---------------------------------------------------- */
body.plain .site-header { position: static; padding-top: 28px; }
body.plain .brand { color: var(--ink); }
.plain-main { max-width: 760px; margin: 0 auto; padding: 48px 28px 96px; }
.plain-card { text-align: center; padding: 24px 0 8px; }
.plain-card h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 16px; }
.plain-card .lead { font-size: 19px; color: var(--muted); max-width: 30em; margin: 0 auto 28px; }
.plain-icon { width: 96px; height: 96px; margin: 0 auto 24px; }
.hint { font-size: 14px; color: var(--muted); }
.license-key {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 12px auto 24px;
  padding: 12px 12px 12px 16px;
  border-radius: 14px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
}
.license-key code { flex: 1; font: 12.5px/1.5 ui-monospace, Menlo, monospace; word-break: break-all; }
.license-form { display: grid; gap: 14px; max-width: 420px; margin: 0 auto; text-align: left; }
.license-form label span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.license-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.license-form input[aria-invalid="true"] { border-color: #e0364f; }
.error { color: #e0364f; font-size: 14px; margin: 0; }
.legal { text-align: left; }
.legal h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.03em; margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: 14px; margin-bottom: 32px; }

/* ---- Narrow screens -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .desk-inner { grid-template-columns: 1fr; padding: 72px 28px 0; gap: 40px; }
  .desk-copy { padding-top: 0; }
  .panel { justify-self: stretch; transform-origin: calc(100% - 120px) -60px; }
  .desk-hint { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-bottom: 96px; }
  .feature.flip .feature-copy { order: 0; }
  .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-inner { grid-template-columns: 1fr; gap: 28px; padding: 88px 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header { padding: 40px 16px 0; }
  .menubar > a:not(.menubar-app):not([href="/download"]) { display: none; }
  .menubar-status svg { display: none; }
  .desk-inner { padding: 56px 16px 0; }
  .features, .details, .questions, .price-inner, .site-footer, .plain-main { padding-left: 16px; padding-right: 16px; }
  .details-grid { grid-template-columns: 1fr; gap: 28px; }
  .actions .button { flex: 1 1 100%; }
  .license-key { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .button { transition: none; }
}
