/* Layout only. Every color is a token from theme.daylight.css. Fonts are served from this site (fonts/, SIL Open Font
   License): the page makes no third-party requests at all. No script runs anywhere on this site. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('fonts/Barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('fonts/Barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('fonts/BarlowCondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('fonts/JetBrainsMono-400.woff2') format('woff2'); }

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.6 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1040px; margin: 0 auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code, .mono { font: 400 0.92em 'JetBrains Mono', ui-monospace, Consolas, monospace; }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }

/* top bar */
.top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 26px 0 0; }
.mark { font: 700 30px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .01em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px 56px; align-items: center; padding: 56px 0 40px; }
h1 { font: 700 76px/0.94 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .005em; margin: 0 0 22px; text-wrap: balance; }
.lede { font-size: 22px; line-height: 1.4; margin: 0 0 28px; max-width: 30em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.btn { display: inline-block; font-weight: 600; font-size: 17px; padding: 13px 22px; border-radius: 8px; text-decoration: none;
  background: var(--accent); color: var(--surface); border: 1px solid var(--accent); }
.btn:hover { filter: brightness(1.08); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--muted); filter: none; }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* the file-moving picture */
.stage { width: 100%; height: auto; display: block; }
.stage .line { stroke: var(--rule); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; fill: none; }
.stage .body { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.stage .ink { fill: var(--ink); }
.stage .soft { fill: var(--accent-soft); stroke: none; }
.stage .rule { stroke: var(--rule); stroke-width: 3; stroke-linecap: round; }
.stage .name { font: 400 15px 'JetBrains Mono', ui-monospace, monospace; fill: var(--muted); }
.stage .doc .sheet { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.stage .doc .fold { fill: var(--surface); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.stage .tick circle { fill: var(--done); }
.stage .tick path { fill: none; stroke: var(--surface); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.slide-r { animation: toPhone 6s ease-in-out infinite; }
.slide-l { animation: toPc 6s ease-in-out infinite; animation-delay: 3s; }
.tick-r { animation: pop 6s ease-out infinite; }
.tick-l { animation: pop 6s ease-out infinite; animation-delay: 3s; }
@keyframes toPhone { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 42% { transform: translateX(200px); opacity: 1; } 50%, 100% { transform: translateX(200px); opacity: 0; } }
@keyframes toPc { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 42% { transform: translateX(-200px); opacity: 1; } 50%, 100% { transform: translateX(-200px); opacity: 0; } }
@keyframes pop { 0%, 40% { opacity: 0; transform: scale(.6); } 46% { opacity: 1; transform: scale(1.08); } 52% { transform: scale(1); } 68% { opacity: 1; } 76%, 100% { opacity: 0; } }
.stage .tick { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) {
  .slide-r, .slide-l, .tick-r, .tick-l { animation: none; }
  .slide-r { transform: translateX(100px); opacity: 1; }
  .slide-l { transform: translateX(-100px); opacity: 1; }
  .tick-r, .tick-l { opacity: 1; }
}

/* sections */
section { padding: 52px 0 8px; }
h2 { font: 700 16px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
h3 { font: 600 20px/1.25 'Barlow', system-ui, sans-serif; margin: 0 0 6px; }
.big { font: 700 40px/1.05 'Barlow Condensed', 'Arial Narrow', sans-serif; margin: 0 0 22px; max-width: 18em; text-wrap: balance; }
p { margin: 0 0 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 28px 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); overflow: hidden; }
.step { padding: 24px 26px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; min-width: 0; }
.step .n { font: 700 44px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; color: var(--accent); display: block; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4px 28px; }
.list b { font-weight: 600; }
.list span { color: var(--muted); }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px 26px; min-width: 0; }
.panel h3 { margin-bottom: 10px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: 7px 0 7px 22px; position: relative; }
.panel li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 9px; height: 9px; border-radius: 50%; background: var(--done); }
.panel.not li::before { background: var(--due); }
.panel.not { background: var(--due-soft); border-color: var(--due-soft); }
.price { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: baseline; }
.price div { min-width: 0; }
.price strong { font: 700 56px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; display: block; }
.price span { color: var(--muted); }
.after-price { margin-top: 20px; max-width: 40rem; }

/* downloads */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 24px; }
.dl .panel { display: flex; flex-direction: column; gap: 12px; }
.dl .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 14px; }
.dl .state { font-size: 13px; font-weight: 600; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--done-soft); color: var(--done); }
.dl .state.soon { background: var(--due-soft); color: var(--due); }
.dl .meta { color: var(--muted); font-size: 15px; margin: 0; }
.hash { display: block; overflow-wrap: anywhere; font: 400 12.5px/1.5 'JetBrains Mono', ui-monospace, monospace; color: var(--muted); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; }
.callout { background: var(--due-soft); border-left: 3px solid var(--due); border-radius: 8px; padding: 14px 18px; margin: 22px 0 0; }
.callout b { color: var(--due); }

/* faq */
details { border-top: 1px solid var(--rule); padding: 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 'Barlow', sans-serif; color: var(--muted); }
details[open] summary::after { content: '\2212'; }
details > div { padding: 0 0 18px; color: var(--ink); max-width: 44rem; }
summary:focus-visible, a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* article pages (support, privacy) */
.page { max-width: 44rem; padding: 48px 0 24px; }
.page h1 { font-size: 56px; margin-bottom: 14px; }
.page h2 { margin-top: 40px; }
.page .when { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.page ul { padding-left: 1.2em; margin: 0 0 14px; }
.page li { margin-bottom: 6px; }

footer { margin-top: 72px; padding: 20px 0 56px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
footer p { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
  h1 { font-size: 58px; }
  .list li { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .cols, .steps, .twocol, .dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  h1 { font-size: 48px; }
  .lede { font-size: 19px; }
  .big { font-size: 32px; }
  .price strong { font-size: 46px; }
  .page h1 { font-size: 44px; }
}
