:root {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f5;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-fill: #0071e3;
  --link: #0066cc;
  --button-text: #ffffff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
  --note: #fff3c4;
  --note-text: #5a4a00;
  --icon-sun: none;
  --icon-moon: inline;
  --show-light: block;
  --show-dark: none;
  --imsg-blue: #007aff;
  --imsg-fill: #0a6cd6;  /* sent bubbles: a shade darker than iMessage blue so white text passes AA */
  --imsg-text: color-mix(in srgb, var(--imsg-blue) 70%, var(--text));
  --imsg-gray: #e9e9eb;
  --glow: #bc82f3, #f5b9ea, #8d9fff, #ff6778, #ffba71, #c686ff, #bc82f3;
  color-scheme: light;
}
/* Dark: follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #111113;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --card: #1c1c1e;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-fill: #0a6cd6;
    --link: #2997ff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
    --note: #3a3320;
    --note-text: #f3e2a0;
    --icon-sun: inline;
    --icon-moon: none;
    --show-light: none;
    --show-dark: block;
    --imsg-blue: #0a84ff;
    --imsg-text: var(--imsg-blue);
    --imsg-gray: #26252a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #111113;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --card: #1c1c1e;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-fill: #0a6cd6;
  --link: #2997ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
  --note: #3a3320;
  --note-text: #f3e2a0;
  --icon-sun: inline;
  --icon-moon: none;
  --show-light: none;
  --show-dark: block;
  --imsg-blue: #0a84ff;
  --imsg-text: var(--imsg-blue);
  --imsg-gray: #26252a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }  /* clears the sticky nav on anchor jumps */
a, button, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace; font-size: 0.88em;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; white-space: nowrap;
}
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Skip link: hidden until focused from the keyboard */
.skip { position: absolute; left: 12px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 10px; background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* Navigation */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
nav .wrap { display: flex; align-items: center; gap: 22px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; margin-left: auto; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--bg-alt); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: var(--icon-sun); }
.theme-toggle .moon { display: var(--icon-moon); }
.nav-actions .button.small { margin-left: 6px; }

/* Hamburger: two bars that fold into an X, like apple.com */
.menu-toggle { display: none; }
.bars { position: relative; width: 18px; height: 12px; }
.bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 1px; background: currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.bars span:first-child { top: 2px; }
.bars span:last-child { top: 8.5px; }
nav.open .bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
nav.open .bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-fill); color: var(--button-text);
  font-weight: 500; border-radius: 980px;
  padding: 12px 24px; font-size: 17px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); }
.button.small { padding: 6px 14px; font-size: 13px; }
.button svg { width: 18px; height: 18px; }

/* Download CTA: a pill inside a slowly turning Apple Intelligence–style glow ring */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
@keyframes turn { to { --angle: 360deg; } }
.cta {
  position: relative; isolation: isolate; display: inline-flex;
  padding: 2px; border-radius: 980px; color: var(--bg);
  background: conic-gradient(from var(--angle), var(--glow));
  animation: turn 6s linear infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta::before {
  content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: inherit;
  background: inherit; filter: blur(16px); opacity: 0.45; transition: opacity 0.3s ease, inset 0.3s ease;
}
.cta:hover { text-decoration: none; transform: scale(1.03); }
.cta:hover::before { opacity: 0.8; inset: -2px; }
.cta:active { transform: scale(0.98); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cta-body {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px 13px 22px; border-radius: inherit;
  background: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25;
}
.cta-body svg { width: 18px; height: 18px; flex: none; }


/* Phones and tablets can't run a Mac app: swap the download for a hint and a share button */
.mac-only { display: none; flex-direction: column; align-items: center; gap: 12px; }
.mac-only .pill { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; font-size: 15px; }
.mac-only .pill svg { width: 18px; height: 18px; }
.mac-only p { margin: 0; font-size: 14px; color: var(--muted); max-width: 26em; }
.share-link {
  border: 0; background: var(--accent-fill); color: var(--button-text); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; padding: 12px 24px; min-height: 48px; border-radius: 980px;
}
.mobile .cta, .mobile .nav-actions .button { display: none; }
.mobile .mac-only { display: flex; }
.mobile .peek-hint { display: none; }

/* Hero */
/* Kept compact so the intro video starts above the fold on a laptop screen */
.hero { text-align: center; padding: 48px 0 40px; }
.hero .icon { width: 72px; height: 72px; display: block; margin: 0 auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16)); }
h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 700; margin: 20px auto 16px; max-width: 14ch;
}
.lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); max-width: 30em; margin: 0 auto 28px; text-wrap: balance; }
.meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.meta span + span::before { content: "·"; margin: 0 8px; }
.shot { margin: 56px auto 0; max-width: 1000px; }
.hero .shot { margin-top: 36px; }
.shot img, .shot video { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: var(--shadow); }
.shot.intro { position: relative; }
.shot video { aspect-ratio: 1600 / 1040; background: #1c2b27; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; color: #1d1d1f; padding: 0;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0.75; transition: opacity 0.2s ease;
}
.video-toggle:hover, .video-toggle:focus-visible { opacity: 1; }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .play { display: none; }
.video-toggle.paused .play { display: block; }
.video-toggle.paused .pause { display: none; }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
h2 {
  font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em;
  font-weight: 700; margin: 0 0 14px; text-align: center;
}
.section-lead { text-align: center; color: var(--muted); font-size: 19px; max-width: 32em; margin: 0 auto 52px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* The app's own materials, used as accents: values match Sources/Pinboard (Note.swift, NoteLayout.swift, Decoration.swift) */
:root {
  --hand: "Bradley Hand", "BradleyHandITCTT-Bold", "Segoe Print", "Bradley Hand ITC", cursive;
  --ink: #332e29;
  --tape: rgba(247, 204, 158, 0.9);
  --tape-edge: polygon(calc(100% - 3px) 0%, 100% 10%, calc(100% - 3px) 20%, 100% 30%, calc(100% - 3px) 40%, 100% 50%, calc(100% - 3px) 60%, 100% 70%, calc(100% - 3px) 80%, 100% 90%, calc(100% - 3px) 100%, 0 100%, 3px 90%, 0 80%, 3px 70%, 0 60%, 3px 50%, 0 40%, 3px 30%, 0 20%, 3px 10%, 0 0%);
  --paper-light: linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 55%, rgba(0, 0, 0, 0.06));
}
/* "Little things" as sticky notes */
.stickies { gap: 28px; padding: 8px 0; }
.sticky {
  padding: 26px 26px 30px; border-radius: 2px; color: var(--ink);
  background-color: var(--paper); background-image: var(--paper-light);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
  transform: rotate(var(--tilt));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky:hover { transform: rotate(0deg) translateY(-3px); }
.sticky.yellow { --paper: #ffed8c; --tilt: -1.5deg; }
.sticky.pink { --paper: #ffccdb; --tilt: 1deg; }
.sticky.blue { --paper: #c4e3ff; --tilt: -0.6deg; }
@media (min-width: 821px) {
  .sticky.pink { margin-top: 34px; }
  .sticky.blue { margin-top: 10px; margin-left: -10px; }
}
.sticky h3 { font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.15; margin: 0 0 10px; }
.sticky p { margin: 0; font-size: 15px; color: color-mix(in srgb, var(--ink) 82%, transparent); }

/* Pin options as taped paper labels */
.labels { display: flex; flex-wrap: wrap; gap: 22px 18px; margin: 34px 0 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .labels { justify-content: center; } }
.labels li {
  position: relative; padding: 12px 18px 9px; background: #fffdf7; color: var(--ink);
  font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.2;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.08);
}
.labels li:nth-child(1) { transform: rotate(-2deg); }
.labels li:nth-child(2) { transform: rotate(1.5deg); }
.labels li:nth-child(3) { transform: rotate(-1deg); }
.labels li:nth-child(4) { transform: rotate(1.2deg); }
.labels li::after {
  content: ""; position: absolute; top: -9px; left: 50%; width: 46px; height: 18px;
  transform: translateX(-50%) rotate(4deg);
  background: repeating-linear-gradient(-45deg, transparent 0 4.5px, rgba(255, 255, 255, 0.4) 4.5px 7px), var(--tape);
  clip-path: var(--tape-edge);
}

/* Handwritten asides */
.hero-aside { display: block; width: fit-content; margin: 14px auto 0; font-family: var(--hand); font-weight: 700; font-size: 20px; color: var(--muted); transform: rotate(-1.5deg); }
.hero-aside:hover { color: var(--text); text-decoration: none; }
.mobile .hero-aside { display: none; }
.step .scribble { font-family: var(--hand); font-weight: 700; font-size: 26px; color: var(--text); margin-top: 12px; transform: rotate(-2deg); transform-origin: left; }
.peek-hint { font-family: var(--hand); font-weight: 700; font-size: 18px; }
.peek-hint kbd { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; }

@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }
/* Dark: paper on a dark desk doesn't glow, so dim it a little instead of inverting it */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sticky, :root:not([data-theme="light"]) .labels li { filter: brightness(0.82); }
}
:root[data-theme="dark"] .sticky, :root[data-theme="dark"] .labels li { filter: brightness(0.82); }

/* Split (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { text-align: left; }
.split p { color: var(--muted); font-size: 19px; }
.split img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); display: block; }

/* Shortcuts */
.keys-title { text-align: center; font-size: 21px; margin: 64px 0 18px; letter-spacing: -0.01em; }
.keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; max-width: 720px; margin: 0 auto; }
.key { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
kbd {
  font-family: inherit; font-size: 14px; background: var(--card); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 8px; padding: 3px 9px; white-space: nowrap;
}

/* Install steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
/* Step 3: a small drawing of the Privacy & Security row, with the button to click ringed */
.gatekeeper { margin-top: 16px; padding: 8px; border-radius: 12px; background: var(--bg-alt); font-size: 12px; line-height: 1.35; }
.gk-title { display: block; margin: 0 4px 6px; font-weight: 600; color: var(--muted); }
.gk-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.gk-button {
  flex: none; padding: 3px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 2px var(--card), 0 0 0 4px var(--accent);
}

/* Only the step people get stuck on is taped down, so the tape marks it */
.step:nth-child(3)::after {
  content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; pointer-events: none;
  transform: translateX(-50%) rotate(var(--tape-tilt, -3deg));
  background: repeating-linear-gradient(-45deg, transparent 0 4.5px, rgba(255, 255, 255, 0.4) 4.5px 7px), var(--tape);
  clip-path: var(--tape-edge);
}
.steps { row-gap: 36px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-fill); color: var(--button-text); font-weight: 600; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.center { text-align: center; margin-top: 40px; }

/* FAQ as an iMessage thread: tap a question to "send" it, Pinboard types, then answers */
.faq { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.thread-time { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.thread-time strong { font-weight: 600; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--muted); font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq details[open] summary::before { transform: rotate(45deg); }
.faq summary:focus-visible { outline: none; }
.faq summary:focus-visible .q { outline: 2px solid var(--accent); outline-offset: 3px; }

.bubble {
  position: relative; max-width: min(80%, 30em); margin: 0; padding: 9px 14px;
  border-radius: 18px; font-size: 16px; line-height: 1.35; text-align: left;
}
/* Unsent questions are tinted; opening one "sends" it and it turns solid blue */
.q {
  background: color-mix(in srgb, var(--imsg-blue) 12%, transparent); color: var(--imsg-text); font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq summary:hover .q { background: color-mix(in srgb, var(--imsg-blue) 20%, transparent); }
.faq summary:active .q { transform: scale(0.97); }
.faq details[open] .q { background: var(--imsg-fill); color: #fff; }
/* Bubble tails: a coloured curl, then a background-coloured cut-out over it */
.faq details[open] .q::before, .faq details[open] .q::after,
.a::before, .a::after { content: ""; position: absolute; bottom: 0; height: 20px; }
.faq details[open] .q::before { right: -7px; width: 20px; background: var(--imsg-fill); border-bottom-left-radius: 16px 14px; }
.faq details[open] .q::after { right: -26px; width: 26px; background: var(--bg); border-bottom-left-radius: 10px; }
.a::before { left: -7px; width: 20px; background: var(--imsg-gray); border-bottom-right-radius: 16px 14px; }
.a::after { left: -26px; width: 26px; background: var(--bg); border-bottom-right-radius: 10px; }

.reply { display: flex; align-items: flex-end; gap: 8px; padding: 12px 0 6px; }
.reply .avatar { position: relative; z-index: 1; width: 28px; height: 28px; flex: none; }
.reply .stack { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; flex: 1; }
.a { background: var(--imsg-gray); color: var(--text); margin-left: 6px; animation: bubble-in 0.4s 0.75s cubic-bezier(0.34, 1.4, 0.64, 1) both; transform-origin: bottom left; }
.a kbd { font-size: 13px; padding: 1px 6px; }
.a code { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 520px) { .bubble { max-width: 90%; } .reply .stack .a { max-width: 100%; } }
.tapback {
  position: absolute; top: -14px; right: -12px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; font-size: 16px; line-height: 1;
  background: var(--imsg-gray); border: 2px solid var(--bg);
  animation: tapback-in 0.35s 1.35s cubic-bezier(0.34, 1.8, 0.64, 1) both;
}
.typing {
  display: inline-flex; align-items: center; gap: 4px; overflow: hidden;
  padding: 0 14px; border-radius: 18px; background: var(--imsg-gray); margin-left: 6px;
  animation: typing 0.75s ease both;
}
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 0.9s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0% { height: 0; opacity: 0; }
  15%, 85% { height: 36px; opacity: 1; }
  100% { height: 0; opacity: 0; margin-bottom: -6px; }
}
@keyframes dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes bubble-in { from { opacity: 0; transform: scale(0.7) translateY(8px); } }
@keyframes tapback-in { from { opacity: 0; transform: scale(0); } }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size 0.35s cubic-bezier(0.4, 0, 0.2, 1), content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

footer { padding: 40px 0 56px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
/* "Pinned together with ♥": the heart gives one small beat when you hover the line */
.heart { display: inline-block; color: #e5484d; }
footer span:hover > .heart { animation: beat 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes beat { 30% { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { footer span:hover > .heart { animation: none; } }

/* Peek demo: wallpaper, pins under two app windows, and the same pins lifted above them.
   Everything is sized in container units, so the mock desktop scales as one picture. */
.peek-demo { max-width: 1000px; margin: 0 auto; }
.screen {
  position: relative; container-type: inline-size; aspect-ratio: 1512 / 982; overflow: hidden;
  border-radius: 18px; box-shadow: var(--shadow); background: #2b4a3f; isolation: isolate;
}
.screen > * { position: absolute; }
.screen .wall { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.peek-pins { inset: 0; pointer-events: none; }
.peek-pins img { position: absolute; height: auto; }
.peek-pins.over { z-index: 3; }
.peek-pins.over img {
  opacity: 0; transform: translateY(2.2cqw) scale(0.82);
  transition: opacity 0.16s ease-in, transform 0s linear 0.16s;
}
.screen.peeking .peek-pins.over img {
  opacity: 1; transform: none;
  transition: opacity 0.2s ease-out, transform 0.6s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.menubar {
  top: 0; left: 0; right: 0; height: 3.3%; z-index: 4; display: flex; align-items: center; gap: 1.6cqw;
  padding: 0 1.4cqw; font-size: 0.95cqw; color: #1d1d1f;
  background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(1.5cqw); -webkit-backdrop-filter: blur(1.5cqw);
}
.menubar strong { font-weight: 700; }
.menubar .right { margin-left: auto; display: flex; gap: 1.4cqw; }
.win {
  z-index: 2; border-radius: 1.2cqw; overflow: hidden; background: #fbfbfd; color: #1d1d1f;
  box-shadow: 0 2.4cqw 5cqw rgba(0, 0, 0, 0.35), 0 0 0 0.07cqw rgba(0, 0, 0, 0.15);
  display: flex; flex-direction: column;
}
.win-a { left: 13%; top: 9%; width: 52%; height: 64%; }
.win-b { left: 49%; top: 31%; width: 45%; height: 58%; }
.win .titlebar {
  height: 2.9cqw; flex: none; display: flex; align-items: center; gap: 0.55cqw; padding: 0 1cqw;
  background: #ececee; border-bottom: 0.07cqw solid rgba(0, 0, 0, 0.08); font-size: 0.9cqw; color: #5e5e63;
}
.win .titlebar i { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #ff5f57; flex: none; }
.win .titlebar i:nth-child(2) { background: #febc2e; }
.win .titlebar i:nth-child(3) { background: #28c840; margin-right: 1cqw; }
.win .body { flex: 1; display: flex; min-height: 0; }
.win .side { width: 26%; background: #f2f2f5; padding: 1.4cqw 1cqw; display: grid; align-content: start; gap: 0.9cqw; }
.win .main { flex: 1; padding: 2cqw 2.4cqw; display: grid; align-content: start; gap: 1cqw; }
.win .line { height: 0.8cqw; border-radius: 0.4cqw; background: #e3e3e8; }
.win .line.title { height: 1.6cqw; width: 55%; background: #c9c9d1; margin-bottom: 0.6cqw; }
.win .line.accent { background: #b9d6ff; }
.win .tile { border-radius: 0.8cqw; background: linear-gradient(135deg, #ffd9a8, #ffb3c1); aspect-ratio: 16 / 9; }
.win .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.win .tile:nth-child(2) { background: linear-gradient(135deg, #b9e3ff, #c8b9ff); }
.peek-toast {
  z-index: 5; left: 50%; top: 5.5%; transform: translate(-50%, -0.6cqw); opacity: 0;
  display: flex; align-items: center; gap: 0.7cqw; padding: 0.7cqw 1.4cqw; border-radius: 3cqw;
  font-size: 1.1cqw; font-weight: 500; color: #1d1d1f; white-space: nowrap;
  background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(2cqw); -webkit-backdrop-filter: blur(2cqw);
  box-shadow: 0 0.8cqw 2.4cqw rgba(0, 0, 0, 0.2); transition: opacity 0.25s ease, transform 0.25s ease;
}
.screen.peeking .peek-toast { opacity: 1; transform: translate(-50%, 0); }
.keystroke {
  z-index: 6; left: 50%; bottom: 7%; display: flex; gap: 0.6cqw; padding: 1cqw;
  border-radius: 1.6cqw; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(1.5cqw); -webkit-backdrop-filter: blur(1.5cqw);
  opacity: 0; transform: translateX(-50%) scale(0.9); transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.keystroke.show { opacity: 1; transform: translateX(-50%) scale(1); }
.keystroke kbd {
  display: grid; place-items: center; min-width: 4.4cqw; height: 4.4cqw; padding: 0 1cqw;
  font-size: 2.2cqw; color: #fff; background: rgba(255, 255, 255, 0.16); border: 0; border-radius: 0.9cqw;
}
.peek-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.peek-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 980px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 15px; font-weight: 500;
}
.peek-button:hover { border-color: var(--accent); }
.peek-button[aria-pressed="true"] { background: var(--accent-fill); color: var(--button-text); border-color: var(--accent-fill); }
.peek-hint { font-size: 14px; color: var(--muted); }

/* Notes strip: full width; scrolls sideways on phones instead of shrinking the notes. */
.strip { max-width: 1200px; margin: 0 auto; padding: 0 22px; overflow-x: auto; scrollbar-width: none; }
.strip img { display: block; width: 100%; min-width: 760px; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
@media (max-width: 820px) {
  .strip { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .strip.scrolled-end { -webkit-mask-image: none; mask-image: none; }
}

/* Images that exist in a light and a dark version */
.only-light { display: var(--show-light) !important; }
.only-dark { display: var(--show-dark) !important; }
.split .panel-shot { max-width: 420px; margin: 0 auto; border-radius: 18px; border: 1px solid var(--line); }
.split.flip > :first-child { order: 2; }

/* Download not out yet: same look, not clickable, and the ring holds still so it doesn't read as live */
.cta.soon, .button.soon { cursor: default; }
/* Until the .dmg exists it's a quiet status badge, not a glowing button: the glow ring comes back with the download */
.cta.soon { animation: none; background: var(--line); }
.cta.soon::before { display: none; }
.cta.soon .cta-body { background: var(--bg-alt); color: var(--muted); font-weight: 500; }
.cta.soon:hover { transform: none; }
.button.soon { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.button.soon:hover { background: var(--bg-alt); transform: none; }

/* Support */
.support { text-align: center; }
.support .cup { font-size: 56px; line-height: 1; margin-bottom: 14px; }
.support .section-lead { margin-bottom: 28px; }
.coffee {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 980px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.coffee:hover { text-decoration: none; transform: translateY(-2px); border-color: #c58b4a; }

/* Version history (changelog.html, generated by scripts/build-changelog.py) */
.changelog { max-width: 760px; padding-top: 72px; padding-bottom: 88px; }
.changelog h1 { margin: 0 0 8px; max-width: none; text-align: left; font-size: clamp(36px, 6vw, 56px); }
.changelog > .lead { margin: 0 0 48px; text-align: left; }
.release { padding: 36px 0; border-top: 1px solid var(--line); }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.release h2 { text-align: left; font-size: clamp(26px, 4vw, 34px); margin: 0; }
.badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 980px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
}
.release-meta { margin: 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.release-body { color: var(--muted); }
.release-body p { font-size: 18px; }
.release-body h3 { color: var(--text); font-size: 19px; margin: 28px 0 10px; }
.release-body ul { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }
.release-body strong { color: var(--text); }

@media (max-width: 820px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split h2 { text-align: center; }
  .split.flip > :first-child { order: 0; }
  .keys { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 22px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { color: var(--text); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 36px; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .cta, .cta::before, .bars span, .nav-links { transition: none; }
  .cta, .a, .tapback { animation: none; }
  .typing { display: none; }
  .peek-pins.over img, .screen.peeking .peek-pins.over img, .peek-toast, .keystroke { transition: none; }
}
