/* Layout: one long page; a hero with the waitlist, or the downloads once the app's out,
   beside a sketch of the app's window with drawn photos, then plain sections on the same dark
   ground. Dark first, with a light palette for people whose system is set to light, or who
   pick it for a page with the button in the header (data-theme, set by the script in the
   pages' heads).
   Sections are set like a manual: hairlines and run-in heads rather than cards, in the icon's
   amber. */

/* The fonts, from fonts/ on this site rather than from Google Fonts, so a visit reaches
   no one else (see privacy.html). They're Google Fonts' Latin subsets, as the pages used
   to load them (fonts/OFL.txt is their licence). */
@font-face {
  font-family: "Onest";
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/onest.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/young-serif.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --bg-raised: #0f1114;
  --surface: #131518;
  --surface-2: #1b1e23;
  --menu: #16181c;
  --menu-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fg: #eef0f3;
  --muted: #8f96a0;

  /* The icon's amber. */
  --accent: #f5b83d;
  --accent-text: #f7c96a;
  --accent-soft: rgba(245, 184, 61, 0.16);
  --cta: #f5b83d;
  --cta-hover: #f9c75f;
  --cta-ink: #201503;
  --heart: #f2626b;
  --ok: #5eead4;
  --err: #ff8a80;

  /* The app's window, in the hero and the first-run screen: its colours on a dark Mac
     (app/static/window.html), then its edge and shadow on this page. */
  --win-bg: #16171b;
  --win-glow: rgba(255, 201, 77, 0.1);
  --win-card: rgba(255, 255, 255, 0.045);
  --win-card-solid: #202125;
  --win-card-line: rgba(255, 255, 255, 0.07);
  --win-card-lift: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --win-surface: #1f2024;
  --win-line: rgba(255, 255, 255, 0.07);
  --win-line-strong: rgba(255, 255, 255, 0.2);
  --win-field: rgba(255, 255, 255, 0.06);
  --win-thumb: rgba(255, 255, 255, 0.12);
  --win-thumb-lift: 0 1px 2px rgba(0, 0, 0, 0.25);
  --win-fg: #f4f4f6;
  --win-muted: #9a9ca6;
  --win-faint: #5f616b;
  --win-accent: #ffc94d;
  --win-accent-2: #e09b12;
  --win-accent-mid: #f6bb3b;
  --win-accent-ink: #2a1c00;
  --win-accent-text: #ffd36e;
  --win-accent-mark: #ffc94d;
  --win-accent-soft: rgba(255, 201, 77, 0.13);
  --win-tick-ink: #15171b;
  --win-edge: rgba(255, 255, 255, 0.12);
  --win-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);

  --font-display: "Young Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f3f5f8;
    --bg-raised: #ebeef3;
    --surface: #ffffff;
    --surface-2: #f2f4f8;
    --menu: #ffffff;
    --menu-shadow: 0 18px 40px -14px rgba(14, 20, 32, 0.28);
    --line: rgba(14, 20, 32, 0.09);
    --line-strong: rgba(14, 20, 32, 0.17);
    --fg: #0e1218;
    --muted: #59606d;
    --accent: #b06a00;
    --accent-text: #8a5200;
    --accent-soft: rgba(176, 106, 0, 0.12);
    --cta: #9a5800;
    --cta-hover: #844b00;
    --cta-ink: #ffffff;
    --heart: #d42a3a;
    --ok: #0f766e;
    --err: #c62828;
    --win-bg: #fbfbfa;
    --win-glow: rgba(255, 201, 77, 0.14);
    --win-card: #ffffff;
    --win-card-solid: #ffffff;
    --win-card-line: rgba(20, 22, 30, 0.07);
    --win-card-lift: 0 1px 2px rgba(20, 22, 30, 0.04);
    --win-surface: #ffffff;
    --win-line: rgba(20, 22, 30, 0.07);
    --win-line-strong: rgba(20, 22, 30, 0.18);
    --win-field: rgba(20, 22, 30, 0.05);
    --win-thumb: #ffffff;
    --win-thumb-lift: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
    --win-fg: #15161b;
    --win-muted: #676a75;
    --win-faint: #a3a5ad;
    --win-accent: #ffc94d;
    --win-accent-2: #e09b12;
    --win-accent-mid: #f6bb3b;
    --win-accent-ink: #2a1c00;
    --win-accent-text: #8f5d00;
    --win-accent-mark: #e09b12;
    --win-accent-soft: rgba(255, 201, 77, 0.2);
    --win-tick-ink: #15171b;
    --win-edge: rgba(14, 20, 32, 0.14);
    --win-shadow: 0 30px 60px -24px rgba(14, 20, 32, 0.3);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5f8;
  --bg-raised: #ebeef3;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --menu: #ffffff;
  --menu-shadow: 0 18px 40px -14px rgba(14, 20, 32, 0.28);
  --line: rgba(14, 20, 32, 0.09);
  --line-strong: rgba(14, 20, 32, 0.17);
  --fg: #0e1218;
  --muted: #59606d;
  --accent: #b06a00;
  --accent-text: #8a5200;
  --accent-soft: rgba(176, 106, 0, 0.12);
  --cta: #9a5800;
  --cta-hover: #844b00;
  --cta-ink: #ffffff;
  --heart: #d42a3a;
  --ok: #0f766e;
  --err: #c62828;
  --win-bg: #fbfbfa;
  --win-glow: rgba(255, 201, 77, 0.14);
  --win-card: #ffffff;
  --win-card-solid: #ffffff;
  --win-card-line: rgba(20, 22, 30, 0.07);
  --win-card-lift: 0 1px 2px rgba(20, 22, 30, 0.04);
  --win-surface: #ffffff;
  --win-line: rgba(20, 22, 30, 0.07);
  --win-line-strong: rgba(20, 22, 30, 0.18);
  --win-field: rgba(20, 22, 30, 0.05);
  --win-thumb: #ffffff;
  --win-thumb-lift: 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
  --win-fg: #15161b;
  --win-muted: #676a75;
  --win-faint: #a3a5ad;
  --win-accent: #ffc94d;
  --win-accent-2: #e09b12;
  --win-accent-mid: #f6bb3b;
  --win-accent-ink: #2a1c00;
  --win-accent-text: #8f5d00;
  --win-accent-mark: #e09b12;
  --win-accent-soft: rgba(255, 201, 77, 0.2);
  --win-tick-ink: #15171b;
  --win-edge: rgba(14, 20, 32, 0.14);
  --win-shadow: 0 30px 60px -24px rgba(14, 20, 32, 0.3);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Paints the band behind a phone's status bar above the sticky nav. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}

h1, h2, h3 { margin: 0; text-wrap: balance; font-synthesis: none; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
code { font: 0.9em var(--font-mono); }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* -- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-ink);
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn-small { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 0.9375rem; }

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration-color: currentColor; }
.btn-block { width: 100%; }

/* -- nav ------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 1.25rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand .mark { width: 28px; height: 28px; flex: none; }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover { color: var(--fg); }

/* Light or dark. It shows the one in use, and hides without scripts, since then it
   can't do anything. */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--fg); background: var(--surface-2); }
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun, :root[data-theme="light"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root:not([data-theme]) .theme-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .theme-toggle { margin-left: auto; }
}

/* -- hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px 88px;
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 48px 64px; }
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: 1.1875rem; line-height: 1.55; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 32px; }

/* The download for this computer, and a menu with the other one (the script after them in
   index.html picks which is which). While the Windows version is coming soon, the Mac's is
   on its own, with a note beside it. */
.download { position: relative; display: inline-flex; }
.download .os { width: 18px; height: 18px; flex: none; fill: currentColor; }
.download-main { gap: 10px; padding-left: 20px; border-radius: 10px 0 0 10px; }
.download-main:only-child { border-radius: 10px; }
/* The Apple logo's leaf makes it look low beside the words. */
.download-main[data-os="mac"] .os { margin-top: -3px; }
.download-more { display: flex; }
.download-more summary {
  width: 46px;
  padding: 0;
  border-left-color: color-mix(in srgb, var(--cta-ink) 22%, transparent);
  border-radius: 0 10px 10px 0;
  list-style: none;
  cursor: pointer;
}
.download-more summary::-webkit-details-marker { display: none; }
.download-more[open] summary { background: var(--cta-hover); }
.download-more .chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}
.download-more[open] .chevron { transform: rotate(180deg); }
.download-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 2;
  min-width: 100%;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--menu);
  box-shadow: var(--menu-shadow);
  animation: menu-in 0.16s ease-out;
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.download-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 9px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.download-menu a:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.download-menu a:focus-visible { outline-offset: -2px; }
.download-menu .os { width: 20px; height: 20px; }
.soon { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9375rem; }
.soon .os { width: 16px; height: 16px; flex: none; fill: currentColor; }

.aside { max-width: 30em; margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }

/* -- waitlist -------------------------------------------------------------- */

/* The waitlist, while the app has one (APP_WAITLIST in app.env, which site/build.sh
   reads). A phone has no room for the header's Join the waitlist beside the name, and the
   form's at the top of the page anyway. */
@media (max-width: 440px) { .nav-waitlist { display: none; } }

/* The waitlist form, in the hero. Without scripts it posts and comes back to one of its
   lines (#joined, #waitlist-error or #waitlist-down), which :target shows in place of the
   note; with them, waitlist.js sends it and says how it went in the note. */
.waitlist { display: grid; gap: 10px; max-width: 32rem; margin-top: 32px; }
.waitlist label { font-size: 0.9375rem; font-weight: 600; }
/* Side by side, or the button under the address and as wide when there's no room. */
.waitlist-row { display: flex; flex-wrap: wrap; gap: 10px; }
.waitlist input[type="email"] {
  flex: 999 1 15rem;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--fg);
  font: 400 1rem/1 var(--font-body);
}
.waitlist input[type="email"]::placeholder { color: var(--muted); }
.waitlist input[type="email"]:focus { outline: 2px solid var(--cta); outline-offset: 1px; border-color: transparent; }
.waitlist .btn { flex: 1 0 auto; cursor: pointer; }
.waitlist .btn:disabled { opacity: 0.6; cursor: progress; }
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note, .joined { min-height: 1.4em; font-size: 0.9375rem; }
.form-note { color: var(--muted); }
.form-note.ok, .joined { color: var(--ok); }
.form-note.err, .joined.err { color: var(--err); }
.joined { display: none; }
.joined:target { display: block; }
.waitlist:has(.joined:target) .form-note { display: none; }


/* -- demo: a sketch of the app's window -------------------------------------- */

.demo { display: grid; gap: 22px; margin: 0; min-width: 0; }
@media (max-width: 980px) { .demo { max-width: 680px; } }

/* The window as the README's roadmap has it, in the --win- colours up top, light or dark with
   the page as the app will be with the Mac. The window is a size container, and the type
   inside is sized from its width (clamped, so it stays readable on a phone). Everything else
   is in em: pixels over its 14px type. */
.app {
  container-type: inline-size;
  max-width: 100%;
  border-radius: 12px;
  --tb: 2em;  /* the Mac's see-through title bar, over the top of the side and what's picked */
  background: var(--win-bg);
  outline: 1px solid var(--win-edge);
  box-shadow: var(--win-shadow);
  overflow: hidden;
  color: var(--win-fg);
  font-family: var(--font-body);
  -webkit-user-select: none;
  user-select: none;
}
.app-frame { position: relative; font-size: clamp(11px, 2.05cqw, 14.5px); line-height: 1.35; }
.app svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app svg .duo { fill: currentColor; fill-opacity: 0.2; }
.app button { font: inherit; color: inherit; }
.app :focus-visible { outline-offset: 1px; }

/* The title bar is see-through, over the top of the window, with only its buttons on it, where
   macOS puts them: 12 points across, 20 apart, in its 28. */
.app-title {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  height: var(--tb);
  padding: 0 0.571em;
}
.lights { display: flex; gap: 0.571em; }
.lights i { width: 0.857em; height: 0.857em; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.app-name { display: none; }

/* Best Shots and the sets, then Clean Up and its kinds, down the side, with the free trial
   and the library at the bottom; and what's picked beside them. */
.app-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  height: calc(34em + 2.7em);  /* as tall as with a title bar above it */
  background: radial-gradient(70% 45% at 0% 0%, var(--win-glow), transparent 75%);
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 0.143em;
  min-height: 0;
  padding: calc(1em + var(--tb)) 0.857em 1em;
}
.app-brand { display: flex; align-items: center; gap: 0.667em; margin: 0.133em 0.4em 0.933em; font-size: 1.071em; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.app-brand img { width: 2em; height: 2em; flex: none; filter: drop-shadow(0 0.133em 0.267em rgba(0, 0, 0, 0.2)); }
.side-link {
  display: flex;
  align-items: center;
  gap: 0.714em;
  width: 100%;
  height: 2.429em;
  padding: 0 0.714em;
  border: 0;
  border-radius: 0.714em;
  background: transparent;
  color: var(--win-muted) !important;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.side-link svg { width: 1.357em; height: 1.357em; flex: none; color: var(--win-faint); }
.side-link:not(.on):hover { background: var(--win-field); color: var(--win-fg) !important; }
.side-link.on { background: var(--win-accent-soft); color: var(--win-fg) !important; }
.side-link.on svg { color: var(--win-accent-mark); }
.side-gap { height: 0.571em; flex: none; }

/* The free trial at the bottom of the side, on a card: the time left beside it, and Buy in the
   gold, which goes to the pricing below. */
.app-trial {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.143em 0.571em;
  margin-top: auto;
  padding: 0.714em 0.857em;
  border: 1px solid var(--win-card-line);
  border-radius: 1em;
  background: var(--win-card);
  box-shadow: var(--win-card-lift);
}
.app-trial strong { font-size: 0.893em; font-weight: 650; }
.app-trial span { color: var(--win-muted); font-size: 0.821em; }
.app-trial .app-btn { display: grid; place-items: center; grid-column: 1 / -1; min-width: 0; height: 2.167em; margin-top: 0.5em; padding: 0 0.833em; border-radius: 0.667em; font-size: 0.857em; text-decoration: none; }

/* The library, under the free trial, beside the foot of what's picked: at least as tall as
   the foot (a button, 2.857em) and the gap above it, with the 0.286em more padding what's
   picked has at its bottom than the side, less the side's own 0.143em gap above the library,
   so the free trial ends where a card above the foot would, as in the app. */
.lib { display: grid; gap: 0.071em; align-content: end; min-height: calc(2.857em + 1em + 0.286em - 0.143em); padding: 0.571em 0.714em 0; }
.lib-name { font-size: 0.893em; font-weight: 650; }
.lib-line { color: var(--win-muted); font-size: 0.821em; font-variant-numeric: tabular-nums; }

/* What's picked: its name, what it found and its total; the bar; the photos, or the list of
   what can go; and the note and the buttons at the foot. */
.app-main { display: flex; flex-direction: column; gap: 1em; min-width: 0; min-height: 0; padding: calc(1.286em + var(--tb)) 1.714em 1.286em 0.857em; }

.app .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.143em; }
.app .head > div { min-width: 0; }
.app .title { font-size: 1.714em; font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.app .status { margin-top: 0.286em; color: var(--win-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .total { flex: none; font-size: 1.857em; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.app .total.none { color: var(--win-muted); }

/* The month or the year, for Best Shots. */
.app .seg { display: inline-flex; flex: none; padding: 0.143em; border-radius: 0.643em; background: var(--win-field); box-shadow: inset 0 0 0 1px var(--win-card-line); }
.app .seg button { padding: 0.4em 0.96em; border: 0; border-radius: 0.56em; background: transparent; color: var(--win-muted); font-size: 0.893em; font-weight: 600; cursor: pointer; }
.app .seg button[aria-pressed="true"] { background: var(--win-thumb); color: var(--win-fg); box-shadow: var(--win-thumb-lift); }

.app .bar { display: flex; gap: 2px; flex: none; height: 0.571em; border-radius: 0.571em; background: var(--win-field); overflow: hidden; }
.app .bar i { flex: none; background: var(--c); }

.app .scroll { flex: 1; min-height: 0; margin: 0 -0.3em; padding: 0.3em; overflow-y: auto; scrollbar-width: thin; }

.app .intro { margin: auto; max-width: 28.6em; color: var(--win-muted); text-align: center; line-height: 1.5; }
.app .intro b { display: block; margin-bottom: 0.3em; color: var(--win-fg); font-size: 1.429em; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }

/* The photos, drawn by demo.js, square as in Photos' own grid, with what's wrong with each
   drawn over it. */
.app .grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.429em; }
.app .ph { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 0.714em; background: var(--win-field); }
.app .ph svg { display: block; width: 100%; height: 100%; fill: #000; stroke: none; }
.ph.soft svg { filter: blur(2px); transform: scale(1.08); }
.ph.shaky svg { filter: blur(1.3px); transform: scale(1.08) translateX(2.5%); }
.ph.tilt svg { transform: rotate(9deg) scale(1.3); }
.ph.dark::after, .ph.bright::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.ph.bright::after { background: rgba(255, 255, 255, 0.6); }

.app .shot { position: relative; display: block; min-width: 0; padding: 0; border: 0; border-radius: 0.714em; background: none; cursor: pointer; }
.app .shot:hover .ph svg { filter: brightness(1.08); }
.app .shot:hover .ph.soft svg { filter: blur(2px) brightness(1.08); }
.app .shot:hover .ph.shaky svg { filter: blur(1.3px) brightness(1.08); }

/* The sets of similar shots, each with its pick ringed. */
.app .sets { margin: 0; padding: 0; list-style: none; }
.app .sets li { padding: 0.714em 0 0.786em; border-top: 1px solid var(--win-line); }
.app .sets li:first-child { padding-top: 0; border-top: 0; }
.app .set-head { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 0.5em; color: var(--win-muted); font-size: 0.857em; }
.app .set-head span:first-child { color: var(--win-fg); font-weight: 600; }
.app .set-shots { display: flex; gap: 0.571em; margin: 0 -0.25em; padding: 0.25em; overflow-x: auto; scrollbar-width: none; }
.app .set-shots .shot { flex: none; width: 5.286em; }
.app .shot-note { display: block; margin-top: 0.333em; color: var(--win-muted); font-size: 0.75em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .shot.picked .ph { outline: 2px solid var(--win-accent); outline-offset: 2px; }
.app .shot.picked .shot-note { color: var(--win-accent-text); font-weight: 600; }
.app .badge {
  position: absolute;
  top: 0.3em;
  left: 0.3em;
  padding: 0.15em 0.6em;
  border-radius: 0.6em;
  background: linear-gradient(180deg, var(--win-accent), var(--win-accent-mid));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  color: var(--win-accent-ink);
  font-size: 0.75em;
  font-weight: 700;
}

/* The review grid: ticked to go, or kept, with the rest of the kind as the last tile. */
.app .tickable .tick {
  position: absolute;
  top: 0.357em;
  right: 0.357em;
  display: grid;
  place-items: center;
  width: 1.357em;
  height: 1.357em;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.app .tickable .tick svg { width: 1em; height: 1em; stroke: #15171b; stroke-width: 2.4; opacity: 0; }
.app .tickable[aria-pressed="true"] .tick { background: var(--c); border-color: var(--c); }
.app .tickable[aria-pressed="true"] .tick svg { opacity: 1; }
.app .tickable[aria-pressed="false"]::after {
  content: "Keep";
  position: absolute;
  left: 0.429em;
  bottom: 0.429em;
  padding: 0.1em 0.45em;
  border-radius: 0.4em;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.714em;
  font-weight: 600;
}
.app .tickable.rest .ph { display: grid; place-items: center; background: var(--win-card); outline: 1px solid var(--win-card-line); outline-offset: -1px; color: var(--win-muted); font-size: 0.857em; font-weight: 600; }
.app .tickable.rest .tick { border-color: var(--win-muted); }
.app .tickable.rest[aria-pressed="true"] .tick { border-color: var(--c); }

/* Clean Up's list: each kind with its tick, how many and how much, and a way into its grid. */
.app .rows { margin: 0; padding: 0 0.857em; list-style: none; border: 1px solid var(--win-card-line); border-radius: 1em; background: var(--win-card); box-shadow: var(--win-card-lift); }
.app .rows > li + li { border-top: 1px solid var(--win-line); }
.app .row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.857em; padding: 0.643em 0.143em; }
.app .tick {
  display: grid;
  place-items: center;
  width: 1.357em;
  height: 1.357em;
  padding: 0;
  border: 1.5px solid var(--win-line-strong);
  border-radius: 0.429em;
  background: transparent;
  cursor: pointer;
}
.app .row .tick svg { width: 1em; height: 1em; stroke: var(--win-tick-ink); stroke-width: 2.2; opacity: 0; }
.app .row .tick[aria-pressed="true"], .app .row .tick[aria-pressed="mixed"] { background: var(--c); border-color: var(--c); }
.app .row .tick[aria-pressed="true"] svg, .app .row .tick[aria-pressed="mixed"] svg { opacity: 1; }
.app .row-text { display: grid; min-width: 0; }
.app .row-name, .app .row-where { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .row-name { font-weight: 550; }
.app .row-where { color: var(--win-muted); font-size: 0.857em; }
.app .row-size { font-variant-numeric: tabular-nums; }
.app .row .tick[aria-pressed="false"] ~ .row-size { color: var(--win-muted); }
.app .more { display: grid; place-items: center; width: 1.857em; height: 1.857em; padding: 0; border: 0; border-radius: 0.571em; background: transparent; color: var(--win-muted); cursor: pointer; }
.app .more:hover { background: var(--win-field); color: var(--win-fg); }
.app .more svg { width: 1.071em; height: 1.071em; }
.app .more-gap { width: 1.857em; }

.app .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.143em; flex: none; min-height: 2.857em; }
.app .note { min-width: 0; color: var(--win-muted); font-size: 0.893em; }
.app .btns { display: flex; flex: none; gap: 0.571em; }
.app .stepper { display: flex; align-items: center; gap: 0.5em; }
.app .stepper b { min-width: 1.6em; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.app .step { width: 2em; height: 2em; padding: 0; border: 0; border-radius: 0.571em; background: var(--win-field); box-shadow: inset 0 0 0 1px var(--win-card-line); font-weight: 600; cursor: pointer; }
.app .step:disabled { opacity: 0.4; cursor: default; }
.app-btn {
  flex: none;
  min-width: 9.286em;
  height: 2.857em;
  padding: 0 1.286em;
  border: 0;
  border-radius: 0.857em;
  background: linear-gradient(180deg, var(--win-accent), var(--win-accent-mid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 0.5px var(--win-accent-2), 0 1px 3px rgba(0, 0, 0, 0.18);
  color: var(--win-accent-ink) !important;
  font: inherit;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
.app-btn:hover { filter: brightness(1.04); }
.app-btn:disabled { opacity: 0.5; cursor: default; filter: none; }
.app-btn.quiet { background: var(--win-field); box-shadow: inset 0 0 0 1px var(--win-card-line), var(--win-card-lift); color: var(--win-fg) !important; }
.app .btns .app-btn { min-width: 0; }

/* Over the window: the large preview, and the question before anything goes. */
.app .layer { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding: calc(1.714em + var(--tb)) 1.714em 1.714em; background: rgba(10, 12, 16, 0.45); }
.app .layer[hidden] { display: none; }
.app .confirm-card, .app .preview-card {
  display: flex;
  flex-direction: column;
  width: min(37.14em, 100%);
  max-height: 100%;
  border: 1px solid var(--win-card-line);
  border-radius: 1.143em;
  background: var(--win-surface);
  box-shadow: 0 1.43em 4.3em rgba(0, 0, 0, 0.3);
}
.app .confirm-head { padding: 1.429em 1.571em 0.857em; }
.app .confirm-title { margin-bottom: 0.2em; font-size: 1.429em; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.app .confirm-text { color: var(--win-muted); font-size: 0.893em; line-height: 1.45; }
.app .confirm-list { flex: 1; min-height: 0; margin: 0; padding: 0 1.571em; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.app .confirm-list li { display: flex; align-items: center; gap: 0.643em; padding: 0.571em 0; border-top: 1px solid var(--win-line); font-weight: 550; }
.app .confirm-list i { flex: none; width: 0.643em; height: 0.643em; border-radius: 0.214em; background: var(--c); }
.app .confirm-list span:last-child { margin-left: auto; color: var(--win-muted); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.app .confirm-foot { display: flex; justify-content: flex-end; gap: 0.714em; padding: 1em 1.571em 1.286em; border-top: 1px solid var(--win-line); }
.app .confirm-foot .app-btn { min-width: 0; }

.app .preview-card { flex-direction: row; width: min(40em, 100%); overflow: hidden; }
.app .preview-card .ph { flex: 1.5; aspect-ratio: auto; min-height: 16em; border-radius: 0; }
.app .preview-info { display: flex; flex: 1; flex-direction: column; gap: 0.571em; min-width: 0; padding: 1.286em 1.286em 1.143em; }
.app .preview-when { font-size: 1.286em; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.app .preview-why { color: var(--win-muted); font-size: 0.893em; line-height: 1.45; }
.app .preview-note { min-height: 1.2em; color: var(--win-accent-text); font-size: 0.821em; }
.app .preview-info .btns { flex-wrap: wrap; margin-top: auto; }

/* The pointer that takes the window round while nobody's using it. Its tip is at the top
   left, where its circle shows a press. */
.app-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 1.6em;
  height: 1.6em;
  margin: -0.17em 0 0 -0.3em;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.6s cubic-bezier(0.45, 0, 0.25, 1), opacity 0.3s;
}
.app-cursor.shown { opacity: 1; }
.app-cursor svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  fill: #ffffff;
  stroke: #15171b;
  stroke-width: 1.3;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.35));
  transform-origin: 19% 10%;
  transition: scale 0.12s;
}
.app-cursor.pressing svg { scale: 0.88; }
.app-cursor::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0.17em;
  width: 2em;
  height: 2em;
  margin: -1em 0 0 -1em;
  border-radius: 50%;
  background: var(--win-accent);
  opacity: 0;
  scale: 0.3;
  transition: opacity 0.3s, scale 0.3s;
}
.app-cursor.pressing::before { opacity: 0.35; scale: 1; transition-duration: 0.12s; }

/* On a narrow window, as on a phone, the side keeps only its icons, and the grids have three
   columns. */
@container (max-width: 480px) {
  .app-body { grid-template-columns: auto minmax(0, 1fr); }
  .app-side { padding: calc(1em + var(--tb)) 0.5em 1em; }
  .app-brand { justify-content: center; margin-inline: 0; }
  .side-link { padding: 0 0.536em; }
  .side-name, .app-brand-name, .lib, .app-trial { display: none; }
  .app-main { padding: calc(1.1em + var(--tb)) 1.1em 1.2em 0.6em; }
  .app .total { font-size: 1.6em; }
  .app .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app .set-shots .shot { width: 4.6em; }
  .app .foot .note { display: none; }
  .app .foot { justify-content: flex-end; }
  .app .foot .stepper { margin-right: auto; }
  .app .preview-card { flex-direction: column; height: 100%; }
  .app .preview-card .ph { flex: 1; min-height: 0; }
  .app .preview-info { flex: none; }
}

.demo-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.demo-hint { display: flex; align-items: center; gap: 8px; }
.demo-hint svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.demo-note { font-size: 0.875rem; opacity: 0.85; }

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

.band { padding-block: clamp(64px, 8vw, 104px); }
.band + .band { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: clamp(32px, 4vw, 48px); }
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.section-head p { color: var(--muted); font-size: 1.125rem; }

h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }

/* best shots and clean up */

/* A reference list: picture, name and what it does, two columns wide. */
.ref-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .ref-list { grid-template-columns: minmax(0, 1fr); } }

.ref {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-content: center;
  column-gap: 24px;
  row-gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ref > svg { grid-row: span 2; display: block; width: 100%; height: auto; }
.ref h3 { align-self: end; }
.ref p { align-self: start; color: var(--muted); font-size: 1rem; }
@media (max-width: 560px) {
  .ref { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; padding: 14px 0; }
}

/* The pictures are drawn on a pad: neutral photos for what's there, amber for what
   Photonugget finds. */
.g-pad { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.p-frame { fill: var(--line-strong); }
.p-ink { fill: var(--muted); opacity: 0.55; }
.p-pick { fill: var(--accent); }
.p-pick-ink { fill: var(--surface-2); opacity: 0.75; }
.p-pick-ink.soft { opacity: 0.45; }
.p-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.p-mark { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.p-eye { fill: var(--surface-2); }
.p-star { fill: var(--muted); }
.p-black { fill: #050608; }
.p-play { fill: var(--muted); opacity: 0.8; }
.p-cursor { fill: var(--fg); stroke: var(--surface-2); stroke-width: 1; stroke-linejoin: round; }
.p-trail { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.5 6; opacity: 0.8; }
.p-stripe, .p-lines { fill: none; stroke: var(--surface-2); stroke-width: 2.2; stroke-linecap: round; opacity: 0.75; }
.p-lines-n { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.p-scan { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; }

/* Where the pictures rest, which their runs end on. */
.b-shot, .b-pick, .g-l, .g-r, .g-f, .m-best, .m-cover, .s-focus, .s-eyes, .w-ring, .w-cursor, .a-photo, .a-album,
.r-go, .u-soft, .d-found, .h-old, .v-copy, .v-bar, .p-scan { transform-box: fill-box; transform-origin: center; }
.b-pick { transform: translateY(-3px) scale(1.3); }
.v-bar { transform-origin: left center; }

/* The pictures take turns acting out what they show: demo.js gives one at a time the
   "playing" class for a single run, and the rest stay still. */
.playing[data-motion="burst"] .b-shot { animation: pn-flash 2.4s ease-out both; }
.playing[data-motion="burst"] .b-shot:nth-of-type(2) { animation-delay: 0.1s; }
.playing[data-motion="burst"] .b-shot:nth-of-type(3) { animation-delay: 0.3s; }
.playing[data-motion="burst"] .b-shot:nth-of-type(4) { animation-delay: 0.4s; }
.playing[data-motion="burst"] .b-pick { animation: pn-rise 2.4s ease-in-out both; }
.playing[data-motion="group"] .g-l { animation: pn-in-l 2.4s ease-in-out; }
.playing[data-motion="group"] .g-r { animation: pn-in-r 2.4s ease-in-out; }
.playing[data-motion="group"] .g-f { animation: pn-pop 2.4s ease-out; }
.playing[data-motion="months"] .m-best { animation: pn-pick 2.4s ease-in-out both; }
.playing[data-motion="months"] .m-best:nth-of-type(7) { animation-delay: 0.2s; }
.playing[data-motion="months"] .m-best:nth-of-type(9) { animation-delay: 0.4s; }
.playing[data-motion="months"] .m-best:nth-of-type(12) { animation-delay: 0.6s; }
.playing[data-motion="months"] .m-cover { animation: pn-pop 2.4s ease-out; }
.playing[data-motion="months"] .p-trail, .playing[data-motion="photos"] .p-trail { animation: pn-flow 0.8s linear 3; }
.playing[data-motion="score"] .s-focus { animation: pn-focus 2.4s ease-out; }
.playing[data-motion="score"] .s-eyes { animation: pn-blink 2.4s ease-in-out; }
.playing[data-motion="swap"] .w-ring { animation: pn-ring 2.4s ease-in-out; }
.playing[data-motion="swap"] .w-cursor { animation: pn-press 2.4s ease-in-out; }
.playing[data-motion="photos"] .a-photo { animation: pn-file 2.4s ease-in-out; }
.playing[data-motion="photos"] .a-album { animation: pn-glow 2.4s ease-in-out; }
.playing[data-motion="rest"] .r-go { animation: pn-go 2.4s ease-in-out both; }
.playing[data-motion="rest"] .r-go:nth-of-type(2) { animation-delay: 0.1s; }
.playing[data-motion="rest"] .r-go:nth-of-type(3) { animation-delay: 0.2s; }
.playing[data-motion="blur"] .u-soft { animation: pn-shake 2.4s ease-in-out; }
.playing[data-motion="dark"] .d-found { animation: pn-find 2.4s ease-in-out both; }
.playing[data-motion="dark"] .d2 { animation-delay: 0.25s; }
.playing[data-motion="shots"] .h-old { animation: pn-pick 2.4s ease-in-out both; }
.playing[data-motion="shots"] .h-old:nth-of-type(2) { animation-delay: 0.2s; }
.playing[data-motion="shots"] .h-old:nth-of-type(3) { animation-delay: 0.4s; }
.playing[data-motion="doc"] .p-scan { animation: pn-scan 2.4s ease-in-out; }
.playing[data-motion="video"] .v-bar { animation: pn-grow 2.4s ease-out; }
.playing[data-motion="video"] .v-copy { animation: pn-lift 2.4s ease-in-out; }

/* A burst's shots come in one after another, then the best of them rises. */
@keyframes pn-flash {
  0% { opacity: 0.1; }
  10%, 100% { opacity: 1; }
}
@keyframes pn-rise {
  0%, 12% { transform: none; opacity: 0.1; }
  22%, 40% { transform: none; opacity: 1; }
  62%, 100% { transform: translateY(-3px) scale(1.3); opacity: 1; }
}
/* Shots taken apart slide together into a set, with its pick on top. */
@keyframes pn-in-l {
  0%, 10% { transform: translateX(-24px); }
  48%, 100% { transform: none; }
}
@keyframes pn-in-r {
  0%, 10% { transform: translateX(24px); }
  48%, 100% { transform: none; }
}
@keyframes pn-pop {
  0%, 46% { transform: scale(0.8); opacity: 0; }
  62%, 100% { transform: none; opacity: 1; }
}
@keyframes pn-pick {
  0%, 100% { transform: none; }
  18% { transform: scale(1.35); }
  34% { transform: none; }
}
@keyframes pn-flow { to { stroke-dashoffset: -6.5; } }
/* The focus closes in on the face, and its eyes open. */
@keyframes pn-focus {
  0%, 8% { transform: scale(1.5); opacity: 0; }
  40%, 100% { transform: none; opacity: 1; }
}
@keyframes pn-blink {
  0%, 30% { transform: scaleY(0.15); }
  42%, 100% { transform: none; }
}
/* The pick moves to the shot that's clicked. */
@keyframes pn-ring {
  0%, 40% { transform: translateX(-30px); }
  56%, 100% { transform: none; }
}
@keyframes pn-press {
  0% { transform: translate(14px, 14px); opacity: 0; }
  28% { transform: none; opacity: 1; }
  36% { transform: scale(0.85); }
  44%, 100% { transform: none; opacity: 1; }
}
/* A best shot goes into the album, then comes back for the next run. */
@keyframes pn-file {
  0%, 12% { transform: none; opacity: 1; }
  45%, 70% { transform: translateX(56px) scale(0.6); opacity: 0; }
  71% { transform: none; opacity: 0; }
  92%, 100% { transform: none; opacity: 1; }
}
@keyframes pn-glow {
  0%, 40%, 80%, 100% { opacity: 1; }
  55% { opacity: 0.55; }
}
/* What can go shrinks away, and comes back. */
@keyframes pn-go {
  0%, 12% { transform: none; opacity: 1; }
  42%, 72% { transform: scale(0.3); opacity: 0; }
  92%, 100% { transform: none; opacity: 1; }
}
@keyframes pn-shake {
  0%, 64%, 100% { transform: none; }
  8%, 24%, 40% { transform: translateX(-1.6px); }
  16%, 32%, 48% { transform: translateX(1.6px); }
  56% { transform: scale(1.12); }
}
@keyframes pn-find {
  0%, 100% { opacity: 1; transform: none; }
  20% { opacity: 0.35; transform: none; }
  40% { opacity: 1; transform: scale(1.12); }
  56% { transform: none; }
}
@keyframes pn-scan {
  0%, 8% { transform: none; opacity: 0; }
  14% { opacity: 1; }
  62% { transform: translateY(46px); opacity: 1; }
  70%, 100% { transform: translateY(46px); opacity: 0; }
}
@keyframes pn-grow {
  0% { transform: scaleX(0); }
  55%, 100% { transform: none; }
}
@keyframes pn-lift {
  0%, 12% { transform: none; opacity: 1; }
  45%, 72% { transform: translate(8px, -6px) scale(0.6); opacity: 0; }
  92%, 100% { transform: none; opacity: 1; }
}

.legend { display: grid; gap: 8px; max-width: 46rem; margin-top: 28px; color: var(--muted); }

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  margin-bottom: 6px;
  font: 400 2.25rem/1 var(--font-display);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* safety and details */

.details { columns: 2; column-gap: 56px; max-width: 64rem; }
@media (max-width: 760px) { .details { columns: 1; } }
.details p { margin-bottom: 20px; color: var(--muted); break-inside: avoid; }
.details b { color: var(--fg); font-weight: 600; }

/* privacy: the first-run screen beside what stays where */

.split {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 32px 64px;
}
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.sketch {
  max-width: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(70% 45% at 0% 0%, var(--win-glow), transparent 75%), var(--win-bg);
  outline: 1px solid var(--win-edge);
  box-shadow: var(--win-shadow);
  color: var(--win-fg);
  font-size: 0.875rem;
  line-height: 1.45;
}
.sketch .titlebar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; }
.sketch .titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.sketch .titlebar i:nth-child(2) { background: #febc2e; }
.sketch .titlebar i:nth-child(3) { background: #28c840; }
.sketch .titlebar span { display: none; }
.sketch-body { display: grid; justify-items: center; gap: 10px; padding: 26px 32px 32px; color: var(--win-muted); text-align: center; }
.sketch-body img { width: 64px; height: 64px; margin-bottom: 6px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)); }
.sketch-title { color: var(--win-fg); font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.sketch-btn { display: grid; place-items: center; min-width: 130px; height: 40px; margin-top: 8px; padding: 0 18px; border-radius: 12px; background: linear-gradient(180deg, var(--win-accent), var(--win-accent-mid)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 0.5px var(--win-accent-2), 0 1px 3px rgba(0, 0, 0, 0.18); color: var(--win-accent-ink); font-weight: 650; }
.sketch-note { font-size: 0.8125rem; }

.notes-list { max-width: 40rem; }
.notes-list p { margin-bottom: 16px; color: var(--muted); }
.notes-list b { color: var(--fg); font-weight: 600; }

/* pricing */

.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: center; gap: 48px 72px; }
.pricing-copy { display: grid; gap: 16px; max-width: 32rem; min-width: 0; }
.pricing-copy p { color: var(--muted); font-size: 1.125rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

.compare { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 0.9375rem; }
.compare caption { padding-bottom: 8px; color: var(--muted); font-size: 0.875rem; text-align: left; }
.compare th, .compare td { padding: 10px 12px 10px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.compare tr:last-child > * { border-bottom: 1px solid var(--line); }
.compare th { font-weight: 600; white-space: nowrap; }
.compare td { color: var(--muted); }
.compare td:last-child { padding-right: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare .us td:last-child { color: var(--accent-text); font-weight: 600; }
@media (max-width: 460px) { .compare td:nth-child(2) { display: none; } }

.price-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.plan { font-weight: 600; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 12px; }
.amount {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.per { color: var(--muted); font-size: 1rem; }
.includes { margin-bottom: 6px; }
.req { color: var(--muted); font-size: 0.875rem; text-align: center; }
.req + .req { margin-top: -10px; }
.req a { color: var(--fg); }
.trial { margin-top: -6px; color: var(--muted); font-size: 0.9375rem; text-align: center; }
.trial a { color: var(--fg); }

/* faq */

.faq { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px 72px; align-items: start; }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq-list { display: grid; gap: 28px; margin: 0; }
.faq dt { font-weight: 600; }
.faq dd { max-width: 40rem; margin: 6px 0 0; color: var(--muted); }
.faq dd a { color: var(--fg); text-underline-offset: 3px; }

/* license agreement (terms.html) and privacy policy (privacy.html). overflow-wrap breaks a
   long path, such as the log's on Windows, on a phone. */
.legal { max-width: 44rem; overflow-wrap: break-word; }
.legal h1 { font-size: clamp(2.5rem, 1.9rem + 2.4vw, 3.5rem); }
.legal-date { margin-top: 14px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-family: var(--font-body); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.legal p, .legal ol, .legal ul { margin: 12px 0 0; }
.legal ol, .legal ul { display: grid; gap: 6px; padding-left: 1.5em; }
.legal a { text-underline-offset: 3px; }

/* comparison pages (vs-competitor.html, copied as vs-<the other app>.html): a head like the
   hero's words, a ruled table of the two apps side by side, with where its facts come from
   under it, then who each suits in two columns, then a way to try it. On a phone the table's
   rows stack, each answer under its app's name (its data-app). Their section heads and the
   link beside the button are the home page's, .section-head and .text-link above. */
.compare-head { max-width: 48rem; }
.compare-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); }
.compare-head .lede { max-width: 40em; }
.compare-head .aside { max-width: 40em; }
.compare-head .cta-row { column-gap: 28px; }

.vs { width: 100%; max-width: 68rem; border-collapse: collapse; }
.vs th, .vs td { padding: 15px 28px 15px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.vs thead th {
  padding-top: 0;
  padding-bottom: 12px;
  border-top: 0;
  width: 39%;
  font: 400 1.375rem/1.2 var(--font-display);
}
.vs thead td { width: 22%; border-top: 0; }
.vs tbody th { font-weight: 600; }
.vs td { color: var(--muted); }
.vs tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.vs-sources { max-width: 46rem; margin-top: 20px; color: var(--muted); font-size: 0.875rem; }
.vs-sources a, .vs-more a, .fits a { color: var(--fg); text-underline-offset: 3px; }
@media (max-width: 640px) {
  .vs, .vs tbody, .vs tr, .vs th, .vs td { display: block; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vs tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .vs tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .vs th, .vs td { padding: 0; border: 0; }
  .vs tbody tr:last-child > * { border-bottom: 0; }
  .vs tbody th { margin-bottom: 6px; }
  .vs td { position: relative; padding: 4px 0 0 calc(7.5rem + 12px); }
  .vs td::before { content: attr(data-app); position: absolute; left: 0; width: 7.5rem; color: var(--fg); font-size: 0.9375rem; }
}

.fits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; max-width: 68rem; }
@media (max-width: 760px) { .fits { grid-template-columns: minmax(0, 1fr); } }
.fits h3 { margin-bottom: 16px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 1.1875rem; font-weight: 600; line-height: 1.25; }
.fits p { margin-bottom: 16px; color: var(--muted); }
.fits b { color: var(--fg); font-weight: 600; }
.vs-more { margin-top: 12px; color: var(--muted); }

/* The page for an address the site doesn't have (404.html), which fills the window down to the
   footer however short it is. */
body:has(.not-found) { display: flex; flex-direction: column; min-height: 100svh; }
.not-found { flex: 1; }

/* footer */

.footer { border-top: 1px solid var(--line); background: var(--bg-raised); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 36px; color: var(--muted); font-size: 0.9375rem; }
.footer .brand { color: var(--fg); margin-right: auto; }
.footer a:not(.brand) { color: var(--fg); text-underline-offset: 3px; }
.fine { width: 100%; font-size: 0.8125rem; }
.heart { color: var(--heart); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .pic * { animation: none !important; }
}
