/* codecatch.app. The .cc components mirror the app's SwiftUI views (CodeCard, CodeRow,
   MenuContent) at their real point sizes, then scale up as a unit with `zoom`. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.09);
  --tint: rgba(0, 0, 0, 0.05);
  --accent: #0a7aff;
  --orange: #f08a00;
  --brand-1: #ffa20f;
  --brand-2: #ff2d55;
  --glass: rgba(250, 250, 250, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 14px 40px rgba(60, 20, 30, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100d0e;
    --surface: #1c1819;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #6e6e73;
    --line: rgba(255, 255, 255, 0.12);
    --tint: rgba(255, 255, 255, 0.08);
    --accent: #2f8dff;
    --orange: #ff9f0a;
    --glass: rgba(44, 40, 41, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; flex: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.1; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.55em;
  height: 1.55em;
  padding: 0 0.3em;
  margin: 0 0.08em;
  border-radius: 0.35em;
  border: 1px solid var(--line);
  background: var(--tint);
  font: 500 0.82em/1 var(--font);
  vertical-align: 0.08em;
}

.mark { fill: url(#brand); }
.mark.mono { fill: currentColor; }
.eyebrow { color: var(--brand-2); font-size: 14px; font-weight: 650; letter-spacing: 0.01em; }
.lede { color: var(--muted); font-size: 20px; line-height: 1.5; }
.fine { color: var(--faint); font-size: 14px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(255, 60, 70, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 60, 70, 0.36); }
.button:active { transform: scale(0.98); }
.button svg { font-size: 18px; }
.button.small { height: 36px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.button.quiet { background: var(--tint); color: var(--text); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; }
.brand .mark { font-size: 22px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav nav a:hover, .footer nav a:hover { color: var(--text); }

main > section { padding: 0 max(20px, calc((100vw - 1120px) / 2)); }
section[id] { scroll-margin-top: 60px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 56px;
  padding-top: 72px !important;
  padding-bottom: 72px !important;
}
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.02; }

/* The stage: a small desktop with a menu bar, a sign-in page and the banner. */
.stage {
  position: relative;
  aspect-ratio: 10 / 11;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  /* A ring outside the wallpaper: a border would let the gradient tint the edge. */
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(255, 162, 15, 0.55), transparent 70%),
    radial-gradient(70% 80% at 10% 95%, rgba(255, 45, 85, 0.5), transparent 70%),
    linear-gradient(160deg, #ffd9a8, #ff9aa8 55%, #b98cff);
}
@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(60% 70% at 85% 10%, rgba(255, 162, 15, 0.4), transparent 70%),
      radial-gradient(70% 80% at 10% 95%, rgba(255, 45, 85, 0.42), transparent 70%),
      linear-gradient(160deg, #3a2317, #3b1524 55%, #241a44);
  }
}
.menubar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 26px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  white-space: nowrap;
}
.menubar-app { font-weight: 700; }
.menubar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.menubar-cc { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.menubar-cc .mark { font-size: 14px; }
.menubar-cc b { font-weight: 500; }

.window {
  position: absolute;
  left: 5%;
  right: 12%;
  top: 40%;
  bottom: -2%;
  border-radius: 12px 12px 0 0;
  background: #fff;
  color: #1f2328;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 24px 60px rgba(40, 10, 30, 0.35);
  overflow: hidden;
  font-size: 12px;
}
.tabs { display: flex; align-items: flex-end; gap: 7px; height: 34px; padding: 0 12px; background: #dee1e6; }
.light { width: 11px; height: 11px; border-radius: 50%; align-self: center; flex: none; }
.light.r { background: #ff5f57; } .light.y { background: #febc2e; } .light.g { background: #28c840; margin-right: 8px; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 27px; padding: 0 14px 0 10px; border-radius: 9px 9px 0 0; background: #fff; font-size: 11px; white-space: nowrap; overflow: hidden; }
.tab img { width: 14px; height: 14px; }
.toolbar { display: flex; padding: 6px 12px; border-bottom: 1px solid #e3e5e8; }
.url { flex: 1; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; border-radius: 999px; background: #f1f3f4; font-size: 11.500px; color: #3c4043; white-space: nowrap; overflow: hidden; }
.url svg { font-size: 9px; color: #5f6368; }
.page { display: grid; justify-items: center; align-content: start; padding: 16px 14px 0; background: #f0f4f9; height: 100%; text-align: left; }
.page-box { display: grid; gap: 8px; width: min(100%, 290px); padding: 18px 18px 20px; border-radius: 18px; background: #fff; }
.page-logo { width: 26px; height: 26px; }
.page-title { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.page-note { color: #444746; font-size: 11px; line-height: 1.4; }
.page-input { position: relative; display: flex; align-items: center; height: 36px; margin-top: 4px; padding: 0 11px; border: 1px solid #747775; border-radius: 4px; font: 14px/1 var(--font); transition: border-color 0.2s, box-shadow 0.2s; }
.page-input b { font-weight: 400; color: #444746; margin-right: 2px; }
.page-input em { position: absolute; left: 8px; top: -6px; padding: 0 4px; background: #fff; color: #0b57d0; font-style: normal; font-size: 9.500px; }
.page-input.on { border-color: #0b57d0; box-shadow: inset 0 0 0 1px #0b57d0; }
.caret { width: 1px; height: 17px; background: #1f1f1f; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.page-button { justify-self: end; display: grid; place-items: center; height: 30px; padding: 0 20px; margin-top: 4px; border-radius: 999px; background: #0b57d0; color: #fff; font-weight: 500; font-size: 12px; }
.keys { position: absolute; right: 5%; bottom: 6%; padding: 6px 10px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); opacity: 0; transform: translateY(4px) scale(0.96); transition: opacity 0.25s, transform 0.25s; font-size: 15px; }
.keys.on { opacity: 1; transform: none; }
.keys kbd { background: var(--surface); box-shadow: 0 1px 0 var(--line); }

/* ---------- App components ---------- */
.cc { zoom: 1.12; font: 13px/1.25 var(--font); color: var(--text); }
.cc b { font-weight: 600; }

.card {
  width: 356px;
  max-width: 100%;
  padding: 16px;
  display: grid;
  gap: 12px;
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 0.500px solid var(--line);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  text-align: left;
}
.floating { box-shadow: var(--shadow); background: var(--surface); }
.card-head { display: flex; align-items: center; gap: 12px; height: 38px; }
.card-who { display: grid; gap: 1px; min-width: 0; }
.card-who span, .card-age { color: var(--muted); font-size: 11px; }
.card-age { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ServiceIcon.swift: the service's own logo on a white squircle, the source app as a badge. */
.tile {
  --size: 38px;
  position: relative;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: calc(var(--size) * 0.27);
  background: #fff;
  box-shadow: 0 0.500px 1px rgba(0, 0, 0, 0.12), inset 0 0 0 0.500px rgba(0, 0, 0, 0.1);
}
.tile.s32 { --size: 32px; }
.tile > img:first-child { display: block; width: 100%; height: 100%; padding: 17%; border-radius: inherit; object-fit: contain; }
.tile.bleed > img:first-child { padding: 0; object-fit: cover; box-shadow: inset 0 0 0 0.500px rgba(0, 0, 0, 0.1); }
.tile .badge {
  position: absolute;
  right: calc(var(--size) * -0.13);
  bottom: calc(var(--size) * -0.12);
  width: calc(var(--size) * 0.46);
  height: calc(var(--size) * 0.46);
  filter: drop-shadow(0 0.500px 1px rgba(0, 0, 0, 0.2));
}
.tile .badge[src$="bitwarden.png"] { border-radius: 26%; }

.well {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 14px 0 16px;
  border-radius: 14px;
  background: var(--tint);
  min-width: 0;
}
.code { font-size: 36px; font-weight: 600; letter-spacing: 0.05em; font-variant-numeric: tabular-nums; white-space: nowrap; word-spacing: 0.1em; }
.well-time { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring.s14 { width: 14px; height: 14px; }
.ring circle { fill: none; stroke-width: 3; }
.ring .track { stroke: color-mix(in srgb, var(--text) 18%, transparent); }
.ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--p) 1; transition: stroke-dasharray 1s linear; }
.ring.warn .arc { stroke: var(--orange); }

.link-text { display: grid; gap: 1px; min-width: 0; }
.link-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-text span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warning { display: flex; gap: 6px; color: var(--orange); font-size: 11px; line-height: 1.3; }
.warning svg { font-size: 13px; margin-top: 1px; }

.card-actions { display: flex; gap: 8px; }
.pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--tint);
  color: var(--text);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
.pill:active { transform: scale(0.97); opacity: 0.85; }
.pill.prominent { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 86%, #fff), var(--accent)); color: #fff; }
.pill[tabindex="-1"] { pointer-events: none; }

.banner { zoom: 1; position: absolute; top: 38px; right: 12px; max-width: calc(100% - 24px); transform: translateX(115%); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.05), opacity 0.3s; }
.banner.on { transform: none; opacity: 1; }

/* Popover */
.popover { width: 380px; max-width: 100%; border-radius: 18px; border: 0.500px solid var(--line); overflow: hidden; text-align: left; }
.popover-head { display: flex; align-items: center; gap: 8px; padding: 13px 16px 11px; font-size: 13px; }
.popover-head .mark { font-size: 18px; }
.search { display: flex; align-items: center; gap: 6px; margin: 0 12px 10px; padding: 6px 10px; border-radius: 9px; background: var(--tint); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 13px var(--font); -webkit-appearance: none; appearance: none; }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.section-title { display: flex; justify-content: space-between; padding: 2px 16px 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.section-title span:last-child { font-weight: 400; color: var(--faint); }
.rows { padding: 0 6px 8px; }
.row { display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 10px; }
.row:hover { background: var(--tint); }
.row-who { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.row-who b { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.row-who i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.row-who em { font-style: normal; font-weight: 500; font-size: 10px; color: var(--faint); }
.row-who span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-code { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.expired .row-code { color: var(--faint); }
.pin { font-size: 9px; color: var(--faint); align-self: center; }
.open { border: 0.500px solid var(--line); border-radius: 999px; padding: 3px 10px; background: var(--surface); color: var(--text); font: 12px var(--font); box-shadow: 0 0.500px 1px rgba(0, 0, 0, 0.1); }
.empty { padding: 20px; text-align: center; color: var(--muted); font-size: 12px; }
.popover.locked .rows { padding-top: 2px; }
.popover.locked .row-code { letter-spacing: 0.12em; color: var(--muted); }
.popover-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 0.500px solid var(--line); color: var(--muted); font-size: 11px; }
.unlock { display: inline-flex; align-items: center; gap: 5px; border: 0.500px solid var(--line); border-radius: 6px; padding: 3px 9px; background: var(--surface); color: var(--text); font: 12px var(--font); box-shadow: 0 0.500px 1px rgba(0, 0, 0, 0.1); }
.unlock svg { font-size: 10px; }

/* Sources strip */
.sources { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; padding-top: 22px !important; padding-bottom: 22px !important; border-block: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.sources ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; }
.sources li { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 550; }
.sources img { width: 24px; height: 24px; }
.sources img.round { border-radius: 26%; }

/* Features */
.features { display: grid; gap: 112px; padding-top: 104px !important; padding-bottom: 104px !important; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 16px; }
.feature h3, .feature h2, .steps h2, .faq h2, .cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 720; }
.feature-copy > p:not(.eyebrow):not(.fine) { color: var(--muted); }
.feature-art {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 40px 20px;
  border-radius: 28px;
  background:
    radial-gradient(70% 90% at 90% 0%, color-mix(in srgb, var(--brand-1) 22%, transparent), transparent 70%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    var(--tint);
}
.feature-art .cc { max-width: 100%; }
.feature-art.stack .cc { display: grid; gap: 14px; }
.card.behind { transform: scale(0.94); transform-origin: top center; }
.ticks { display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
/* List bullets are the CodeCatch mark: orange for what CodeCatch does, grey for plain lists. */
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 16px; height: 16px; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='208 208 608 608'%3E%3Cpath d='M428 732V292A84 84 0 0 1 596 292V732A84 84 0 0 1 428 732ZM279.5 549.3L660.5 329.3A84 84 0 0 1 744.5 474.7L363.5 694.7A84 84 0 0 1 279.5 549.3ZM363.5 329.3L744.5 549.3A84 84 0 0 1 660.5 694.7L279.5 474.7A84 84 0 0 1 363.5 329.3Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='208 208 608 608'%3E%3Cpath d='M428 732V292A84 84 0 0 1 596 292V732A84 84 0 0 1 428 732ZM279.5 549.3L660.5 329.3A84 84 0 0 1 744.5 474.7L363.5 694.7A84 84 0 0 1 279.5 549.3ZM363.5 329.3L744.5 549.3A84 84 0 0 1 660.5 694.7L279.5 474.7A84 84 0 0 1 363.5 329.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.shortcuts { display: grid; gap: 10px; }
.shortcuts li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.shortcuts span { white-space: nowrap; }

/* Privacy: the app's own settings panel (SettingRow.swift) next to the guarantees. */
.privacy { padding-top: 0 !important; padding-bottom: 104px !important; }
.points { display: grid; gap: 14px; margin: 6px 0 0; }
.points div { position: relative; padding-left: 30px; }
/* The CodeCatch mark as the bullet, in the brand gradient. */
.points div::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='208 208 608 608'%3E%3Cpath d='M428 732V292A84 84 0 0 1 596 292V732A84 84 0 0 1 428 732ZM279.5 549.3L660.5 329.3A84 84 0 0 1 744.5 474.7L363.5 694.7A84 84 0 0 1 279.5 549.3ZM363.5 329.3L744.5 549.3A84 84 0 0 1 660.5 694.7L279.5 474.7A84 84 0 0 1 363.5 329.3Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='208 208 608 608'%3E%3Cpath d='M428 732V292A84 84 0 0 1 596 292V732A84 84 0 0 1 428 732ZM279.5 549.3L660.5 329.3A84 84 0 0 1 744.5 474.7L363.5 694.7A84 84 0 0 1 279.5 549.3ZM363.5 329.3L744.5 549.3A84 84 0 0 1 660.5 694.7L279.5 474.7A84 84 0 0 1 363.5 329.3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.points dt { font-weight: 650; }
.points dd { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

.settings { width: 400px; max-width: 100%; padding: 0 14px 16px; border-radius: 14px; border: 0.500px solid var(--line); text-align: left; }
.settings-tabs { display: flex; justify-content: center; gap: 4px; padding: 10px 0 12px; margin: 0 -14px 12px; border-bottom: 0.500px solid var(--line); font-size: 11px; color: var(--muted); }
.settings-tabs span { padding: 4px 10px; border-radius: 7px; }
.settings-tabs .on { background: var(--tint); color: var(--accent); font-weight: 600; }
.set-title { margin: 12px 4px 6px; font-size: 12px; font-weight: 600; }
.set-group { border-radius: 10px; background: var(--tint); }
.set-group li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.set-group li + li { border-top: 0.500px solid var(--line); }
.icon-tile { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); color: #fff; font-size: 13px; }
.set-text { display: grid; gap: 1px; margin-right: auto; min-width: 0; }
.set-text b { font-weight: 400; }
.set-text span { color: var(--muted); font-size: 11px; line-height: 1.3; }
.switch { flex: none; position: relative; width: 32px; height: 18px; padding: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--text) 22%, transparent); cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 1.500px; left: 1.500px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 0.500px 2px rgba(0, 0, 0, 0.3); transition: transform 0.2s cubic-bezier(0.3, 1.3, 0.5, 1); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(14px); }
.picker { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; border-radius: 6px; background: var(--surface); border: 0.500px solid var(--line); box-shadow: 0 0.500px 1px rgba(0, 0, 0, 0.1); font-size: 12px; }
.picker svg { padding: 2px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 14px; }

/* Comparison */
.compare { display: grid; gap: 14px; padding-top: 88px !important; padding-bottom: 96px !important; border-top: 1px solid var(--line); }
.compare h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 720; max-width: 720px; }
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; vertical-align: top; }
.compare thead th { padding-top: 20px; padding-bottom: 16px; font-size: 15px; font-weight: 650; color: var(--muted); vertical-align: baseline; }
.compare thead th:first-child { width: 22%; }
.compare thead th.us { color: var(--text); font-size: 17px; }
.compare thead .mark { position: absolute; left: 18px; top: calc(50% + 2px); translate: 0 -50%; font-size: 20px; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--muted); }
.compare td.us { position: relative; padding-left: 46px; color: var(--text); font-weight: 550; }
.compare .us { background: color-mix(in srgb, var(--brand-1) 9%, transparent); }
.compare .yes { position: absolute; left: 20px; top: 1.35em; font-size: 15px; }
/* Every value starts at the same edge, with or without a mark in front. */
.compare tbody td, .compare thead th + th { position: relative; padding-left: 46px; }
.compare .yes.grey { fill: var(--faint); }
/* Every "no" gets a dash in the gutter, so it reads apart from a mark at a glance. */
@media (min-width: 901px) { .compare td.no::before { content: ""; position: absolute; left: 22px; top: 1.720em; width: 10px; height: 2px; border-radius: 2px; background: var(--faint); opacity: 0.7; } }
.compare.first { border-top: 0; padding-top: 0 !important; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.fine a:hover { color: var(--text); }

/* Articles: guides, privacy, changelog, about */
.article { padding: 0 max(20px, calc((100vw - 1120px) / 2)) 96px; }
.article .vs-hero { padding: 72px 0 32px !important; }
.article-art { min-height: 0; max-width: 760px; padding: 36px 20px; margin-bottom: 40px; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.byline a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-2) 60%, transparent); text-underline-offset: 3px; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.prose { max-width: 720px; display: grid; gap: 16px; }
.prose h2 { margin-top: 28px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: 72px; }
.prose p, .prose li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-2) 60%, transparent); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand-2); }
.prose b { color: var(--text); font-weight: 620; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; }
.prose pre { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--tint); overflow-x: auto; }
.prose pre code { padding: 0; background: none; }
.prose-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prose-table table { width: 100%; border-collapse: collapse; font-size: 15.500px; }
.prose-table th, .prose-table td { padding: 11px 14px; text-align: left; vertical-align: top; }
.prose-table thead th { font-size: 13px; font-weight: 650; color: var(--muted); vertical-align: bottom; }
/* Equal value columns where there is room; narrow screens keep content-sized columns and scroll. */
@media (min-width: 901px) { .prose-table table { table-layout: fixed; } .prose-table thead th:first-child { width: 24%; } }
.prose-table tbody tr { border-top: 1px solid var(--line); }
.prose-table tbody th { font-weight: 620; }
.prose-table td { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 620; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 24px 16px 0; }
.callout { padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--brand-1) 10%, var(--surface)); border: 1px solid var(--line); color: var(--text) !important; }
.numbered { display: grid; gap: 10px; counter-reset: n; }
.numbered li { position: relative; padding-left: 38px; counter-increment: n; }
.numbered li::before { content: counter(n); position: absolute; left: 0; top: 0.1em; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-size: 13px; font-weight: 700; }
.search .typed { color: var(--text); }

/* About: the homepage's blocks, with the app's rows and settings panel as the visuals. */
.about-hero { padding-bottom: 8px !important; }
.about-hero .lede { max-width: 700px; }
.about-blocks { padding-top: 56px !important; padding-bottom: 96px !important; }
.brandtile { display: grid; place-items: center; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-size: 18px; box-shadow: 0 0.500px 1px rgba(0, 0, 0, 0.14); }
.about-facts { padding-top: 6px; }
.value { flex: none; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.principles { display: grid; gap: 14px; padding-top: 88px !important; padding-bottom: 96px !important; border-top: 1px solid var(--line); }
.principles h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 720; }
.principles .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 48px; margin-top: 14px; max-width: 980px; }
.principles a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--brand-2) 60%, transparent); text-underline-offset: 3px; }
.principles .fine { margin-top: 10px; }
.principles .fine a { color: var(--muted); }

.about-hero .byline { margin-top: 4px; }
.notes { padding-top: 0 !important; border-top: 0; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 14px; }
.note-grid > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.note-grid h3 { font-size: 18px; letter-spacing: -0.01em; }
.note-grid p { color: var(--muted); font-size: 16px; }
.note-grid b { color: var(--text); font-weight: 620; }

/* Changelog: a date column beside each release's changes. */
.releases { padding-top: 40px !important; padding-bottom: 96px !important; }
.release { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.release > header { display: grid; gap: 10px; align-content: start; justify-items: start; position: sticky; top: 84px; align-self: start; }
.release h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.tag { padding: 3px 11px; border-radius: 999px; background: linear-gradient(180deg, var(--brand-1), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 650; }
.tag.quiet { background: var(--tint); color: var(--muted); }
.release-body { display: grid; gap: 28px; }
.release-art { min-height: 0; padding: 36px 20px; }
.release-art .cc { zoom: 1.12; width: 100%; max-width: 330px; }
.release .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0; }
.release .with-icon dt { display: flex; align-items: center; gap: 10px; }
.release .with-icon { padding-left: 0; }
.release .with-icon::before { display: none; }
.release .with-icon dd { margin-left: 38px; }

/* Comparison pages */
.vs-hero { display: grid; gap: 16px; padding-top: 72px !important; padding-bottom: 40px !important; }
.vs-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -0.035em; }
.vs-hero .lede { max-width: 760px; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 96px !important; }
.picks > div { display: grid; gap: 16px; align-content: start; padding: 32px; border-radius: 28px; background: var(--tint); }
/* The same backdrop the app components sit on. */
.picks .ours {
  background:
    radial-gradient(70% 90% at 90% 0%, color-mix(in srgb, var(--brand-1) 22%, transparent), transparent 70%),
    radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    var(--tint);
}
.picks h2 { font-size: 24px; font-weight: 700; }
.ticks.plain li::before { background: var(--faint); }

/* Steps: each one shows the piece of the app or of macOS you will see. */
.steps { display: grid; gap: 14px; padding-top: 88px !important; padding-bottom: 40px !important; border-top: 1px solid var(--line); }
.steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.steps ol > li { display: grid; gap: 6px; align-content: start; padding: 10px 10px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.steps ol > li > :not(.step-art) { padding: 0 12px; }
.step-art {
  display: grid;
  place-items: center;
  height: 168px;
  margin-bottom: 12px;
  padding: 0 14px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(80% 100% at 100% 0%, color-mix(in srgb, var(--brand-1) 22%, transparent), transparent 70%),
    radial-gradient(80% 100% at 0% 100%, color-mix(in srgb, var(--brand-2) 18%, transparent), transparent 70%),
    var(--tint);
}
.step-art .cc { zoom: 1; width: 100%; max-width: 300px; }
.step-n { color: var(--brand-2); font-size: 13px; font-weight: 650; }
.steps h3 { font-size: 20px; letter-spacing: -0.015em; }
.steps ol p:not(.step-n) { color: var(--muted); font-size: 16px; }
.menubar.mini { justify-content: flex-end; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); font-size: 12px; color: var(--text); }
.menubar.mini > svg { font-size: 12px; }
.menubar-cc.picked { padding: 4px 8px; border-radius: 6px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.set-group.solid { background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); text-align: left; }
.set-group.solid .open { flex: none; white-space: nowrap; }
.app-icon { width: 22px; height: 22px; flex: none; }
.switch[data-on] { background: var(--accent); cursor: default; }
.switch[data-on]::after { transform: translateX(14px); }
.set-text b { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; }

/* FAQ */
.faq { display: grid; gap: 4px; padding-top: 72px !important; padding-bottom: 96px !important; max-width: none; }
.faq h2 { margin-bottom: 16px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 820px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 620; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 20px 0; color: var(--muted); }

/* CTA + footer */
.cta { display: grid; justify-items: center; gap: 14px; padding-top: 88px !important; padding-bottom: 96px !important; text-align: center; background: radial-gradient(60% 100% at 50% 100%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent 70%); }
.cta > p:not(.fine) { color: var(--muted); font-size: 19px; }
.cta .actions { justify-content: center; margin-top: 8px; }
.footer { padding: 56px max(20px, calc((100vw - 1120px) / 2)) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.6fr); gap: 48px; }
.footer-brand { display: grid; gap: 12px; align-content: start; justify-items: start; }
.footer-brand .brand { color: var(--text); font-size: 17px; }
.footer-brand p { max-width: 260px; }
.footer-gh { display: inline-flex; align-items: center; gap: 7px; }
.footer-gh:hover { color: var(--text); }
.footer-gh svg { font-size: 16px; }
.footer nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.footer nav div { display: grid; gap: 10px; align-content: start; }
.footer nav h2 { margin-bottom: 2px; font-size: 13px; font-weight: 650; letter-spacing: 0.02em; color: var(--text); }
.footer nav a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 44px !important; padding-bottom: 52px !important; }
  .feature.flip .feature-copy { order: 0; }
  .features { gap: 72px; padding-top: 72px !important; padding-bottom: 72px !important; }
  .steps ol, .picks, .principles .points, .release, .release .points, .note-grid { grid-template-columns: minmax(0, 1fr); }
  .release > header { position: static; display: flex; align-items: center; }
  .release { padding: 32px 0; }
  /* The table becomes one card per feature, each value labelled with its column. */
  .table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .compare table { min-width: 0; }
  .compare table, .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody tr { margin-bottom: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .compare tbody th { padding: 0 0 8px; font-size: 17px; }
  .compare tbody td, .compare tbody td.us { padding: 8px 0 0; background: none; }
  .compare td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: var(--faint); }
  .compare td.us::before { color: var(--brand-2); }
  .compare .yes { display: none; }
  .privacy { padding-bottom: 72px !important; }
  .nav nav { display: none; }
  .nav .button { margin-left: auto; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature-art { min-height: 0; padding: 28px 12px; }
}
@media (max-width: 520px) {
  .footer nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body { font-size: 16px; }
  .lede { font-size: 18px; }
  .cc { zoom: 0.8; }
  .feature-art { padding: 24px 8px; }
  .stage { aspect-ratio: 2 / 3; }
  .window { right: 5%; top: 38%; }
  .menubar span:not(.menubar-app):not(.menubar-right):not(.menubar-cc) { display: none; }
  .menubar-right, .menubar-right span { display: inline-flex !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .banner, .keys, .ring .arc, .button { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
