/* Living Wall v2. The whole page is a desktop: the living wall is fixed behind
   everything, icons sit on it, and the content scrolls over it as windows. */
:root {
  color-scheme: dark;
  --wall: #0a1c12;
  --glass: rgba(9, 24, 15, .64);
  --glass-strong: rgba(9, 24, 15, .78);
  --glass-line: rgba(235, 255, 220, .16);
  --text: #f1f6ea;
  --muted: #c3d3bf;
  --dim: #93a98f;
  --leaf: #a8e676;
  --leaf-ink: #0b2412;
  --paper: #f7f0d8;
  --paper-ink: #2c3a1f;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --icon: 64px;
  --menubar: 30px;
  --gutter: clamp(14px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--menubar) + 24px); }
body {
  margin: 0; min-height: 100vh; background: var(--wall); color: var(--text);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--leaf); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }
h1, h2, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--leaf); color: var(--leaf-ink); }
.skip:focus { top: 40px; }

.not-mac-only { display: none !important; }
.not-mac .not-mac-only { display: flex !important; }
.not-mac .mac-only { display: none !important; }

/* ------------------------------------------------------- the wall + desk */
.wall, .desk {
  position: fixed; left: 0; top: 0; width: 100%;
  height: 100vh; height: 100lvh;
}
.wall { z-index: 0; overflow: hidden; background: var(--wall); }
.wall picture, .wall-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none;
  opacity: 0; transition: opacity .7s ease;
}
.wall iframe.shown { opacity: 1; }
.desk { z-index: 1; pointer-events: none; }

.icon {
  position: absolute; left: 0; top: 0; width: var(--icon); padding: 0; margin: 0; border: 0; background: none;
  color: #fff; font: 500 12px/1.2 var(--sans); cursor: default; touch-action: none; pointer-events: auto;
  will-change: transform; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none;
}
.icon svg {
  width: var(--icon); height: var(--icon); pointer-events: none; border-radius: 10px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); transition: transform .2s var(--spring), filter .2s ease;
}
.icon span {
  position: absolute; left: 50%; top: calc(var(--icon) + 4px); transform: translateX(-50%);
  width: max-content; max-width: 112px; padding: 1px 6px; border-radius: 5px; text-align: center; pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 6px rgba(0, 0, 0, .45);
}
.icon:hover svg { transform: translateY(-1px); }
.icon.selected svg { background: rgba(255, 255, 255, .18); outline: 2px solid rgba(255, 255, 255, .22); }
.icon.selected span { background: #3e8a3a; text-shadow: none; }
.icon.held { z-index: 5; cursor: grabbing; }
.icon.held svg { transform: scale(1.07) rotate(-2deg); filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.icon:focus-visible { outline: none; }
.icon:focus-visible svg { outline: 3px solid var(--leaf); outline-offset: 3px; }
.js .icon { opacity: 0; transition: opacity .5s ease; }
.is-live .icon, .still .icon { opacity: 1; }

.ghost {
  position: absolute; left: 0; top: 0; z-index: 6; width: 30px; height: 30px; pointer-events: none;
  opacity: 0; transition: opacity .25s ease, transform .22s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5));
}
.ghost.show { opacity: 1; }
.ghost.press { transition: opacity .25s ease; }
.ghost.press path { transform: scale(.88); transform-origin: 5px 3px; }

.hint {
  position: absolute; left: 0; top: 0; z-index: 7; width: 180px; padding: 9px 13px 10px;
  font: 700 14px/1.3 var(--round); color: var(--paper-ink); background: var(--paper);
  border-radius: 14px 14px 14px 4px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  opacity: 0; scale: .85; transition: opacity .35s ease, scale .45s var(--spring); pointer-events: none;
}
.hint span { display: block; font-weight: 500; font-size: 12.5px; opacity: .75; }
.hint.show { opacity: 1; scale: 1; }

/* ---------------------------------------------------------- menu bar */
.menubar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 30; height: var(--menubar);
  display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 14px;
  font-size: 13.5px; color: #fff;
  background: rgba(14, 28, 19, .38);
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.mb-left, .mb-right { display: flex; align-items: center; gap: 2px; height: 100%; }
.mb-left a, .mb-clock { color: #fff; padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.mb-left a:hover { text-decoration: none; background: rgba(255, 255, 255, .14); }
.mb-app { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; }
.mb-app svg { width: 16px; height: 16px; color: var(--leaf); }
.mb-app b { font-weight: 700; }
.mb-clock { font-variant-numeric: tabular-nums; }
.mb-menu-wrap { position: relative; }
.mb-leaf {
  display: grid; place-items: center; width: 34px; height: 24px; border: 0; border-radius: 5px; background: transparent; cursor: pointer;
  color: #eaffd9;
}
.mb-leaf svg { width: 17px; height: 17px; filter: drop-shadow(0 0 5px rgba(168, 230, 118, .55)); animation: sway 5s ease-in-out infinite; transform-origin: 40% 90%; }
.mb-leaf:hover, .mb-leaf[aria-expanded="true"] { background: rgba(255, 255, 255, .16); }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.menu {
  position: absolute; right: -60px; top: calc(100% + 6px); width: 270px; padding: 6px; border-radius: 12px;
  background: rgba(22, 34, 26, .82); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .7); font-size: 14px;
  transform-origin: 80% 0; animation: pop .18s var(--ease);
}
.menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.menu-title { padding: 6px 10px 4px; font-weight: 700; }
.menu-title span, .menu-sub span { font-weight: 400; color: var(--dim); }
.menu-sub { padding: 4px 10px 2px; color: var(--muted); font-size: 12.5px; }
.menu hr { border: 0; height: 1px; margin: 5px 8px; background: rgba(255, 255, 255, .12); }
.menu [role^="menuitem"] {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 30px; padding: 4px 10px 4px 28px; position: relative;
  border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.menu [role^="menuitem"]:hover, .menu [role^="menuitem"]:focus-visible { background: #3e8a3a; color: #fff; text-decoration: none; outline: none; }
.menu [aria-checked="true"]::before { content: "✓"; position: absolute; left: 10px; font-weight: 700; }
#island-list:empty::after { content: "Needs the live wall"; display: block; padding: 4px 28px; color: var(--dim); }

/* ---------------------------------------------------------- toasts */
.toasts { position: fixed; right: 12px; top: calc(var(--menubar) + 10px); z-index: 40; display: grid; gap: 8px; width: min(340px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px;
  background: rgba(24, 36, 28, .8); border: 1px solid var(--glass-line); color: var(--text);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateX(24px); transition: opacity .35s ease, transform .45s var(--spring);
}
.toast.show { opacity: 1; transform: none; }
.toast svg { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 8px; color: var(--leaf); background: #173822; }
.toast b { display: block; font-size: 14px; }
.toast p { margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------------------------------------------------------- glass */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .08) inset;
}

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--round); color: var(--text); cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: box-shadow .25s ease, background .25s ease, filter .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, #c3f396, #92d862); color: var(--leaf-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 28px -10px rgba(150, 225, 100, .7);
}
.btn-primary { position: relative; isolation: isolate; overflow: hidden; }
/* Hover: the button stays put. A soft glow grows around it, a light sheen
   sweeps across, and the icon does the moving (the arrow dips, like a drop). */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0s;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #d0f8aa, #9fe06f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 0 0 4px rgba(168, 230, 118, .22), 0 14px 34px -10px rgba(150, 225, 100, .85);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-primary svg { transition: transform .35s var(--spring); }
.btn-primary:hover svg { transform: translateY(2px); }
.btn-primary:active { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 0 0 3px rgba(168, 230, 118, .3), 0 6px 16px -8px rgba(150, 225, 100, .7); filter: brightness(.96); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------- page */
main { position: relative; z-index: 2; pointer-events: none; padding: 0 var(--gutter); }
main > * { pointer-events: auto; }
.first { pointer-events: none; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--menubar) + 28px) 0 40px; }

.hero-card {
  pointer-events: auto; width: min(600px, 54vw); margin-left: clamp(0px, 3vw, 56px);
  padding: clamp(26px, 3.4vw, 42px); border-radius: 28px;
}
.eyebrow { font: 700 13px/1 var(--round); letter-spacing: .02em; color: var(--leaf); margin-bottom: 14px; }
.hero-card h1 { font: 650 clamp(38px, 4.8vw, 62px)/1.02 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.lede { margin-top: 18px; color: var(--muted); font-size: clamp(16.5px, 1.4vw, 18.5px); text-wrap: pretty; }
.try { margin-top: 14px; font: 600 15px/1.4 var(--round); color: var(--text); }
.cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.not-mac .cta { flex-direction: column; align-items: stretch; }
.cta-alt { display: flex; gap: 8px; }
.cta-alt .btn { flex: 1; }
.cta-note { color: var(--dim); font-size: 13.5px; }
.limits { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.limits li { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }

/* Windows: content scrolls over the desktop, like windows over a wall. */
.window {
  position: relative; width: min(640px, 100%); margin: 0 0 24vh; border-radius: 16px; overflow: visible;
  margin-left: clamp(0px, 3vw, 56px);
}
.window:nth-of-type(odd) { margin-left: clamp(0px, 11vw, 170px); }
.window#faq { margin-bottom: 16vh; }
.titlebar {
  position: relative; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 16px 16px 0 0;
  background: rgba(255, 255, 255, .04);
}
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.titlebar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--dim); pointer-events: none; }
.window-body { padding: clamp(22px, 3vw, 34px); }
.window h2 { font: 650 clamp(26px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; text-wrap: balance; margin-bottom: 16px; }
.window p { color: var(--muted); }
.window.opened { animation: opened .7s var(--spring); }
@keyframes opened { 0% { transform: scale(.94); opacity: .4; } 100% { transform: none; opacity: 1; } }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 var(--round); color: var(--leaf-ink); background: var(--leaf);
}
.steps b { color: var(--text); }

.sticky {
  position: absolute; right: -150px; bottom: -70px; width: 230px; padding: 16px 18px 18px;
  font: 500 14px/1.45 var(--round); color: var(--paper-ink); background: var(--paper);
  border-radius: 4px 4px 18px 4px; transform: rotate(3deg);
  box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
}
.sticky::before { content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 20px; margin-left: -35px; background: rgba(200, 230, 170, .65); transform: rotate(-4deg); }
.sticky b { display: block; margin-bottom: 4px; font-size: 15px; }
.sticky em { font-style: normal; font-weight: 700; }

.alive { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.alive li { display: flex; gap: 14px; }
.alive .dot { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; background: rgba(255, 255, 255, .07); }
.alive b { font-size: 17px; }
.alive p { margin-top: 2px; font-size: 15.5px; }

.themes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; align-items: start; }
.theme { display: grid; gap: 2px; }
.theme img, .blob { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 26px 6px 26px 6px; margin-bottom: 8px; }
.theme span { font-size: 13px; color: var(--leaf); }
.theme.soon span { color: var(--dim); }
.blob { position: relative; overflow: hidden; background: #10241a; }
.blob::before, .blob::after { content: ""; position: absolute; border-radius: 50%; filter: blur(18px); opacity: .8; animation: drift 12s ease-in-out infinite alternate; }
.blob-a::before { width: 70%; height: 80%; left: -10%; top: 25%; background: #3d6f8f; }
.blob-a::after { width: 60%; height: 60%; right: -10%; top: -10%; background: #d4b979; animation-delay: -5s; }
.blob-b::before { width: 80%; height: 70%; left: 15%; top: 30%; background: #7a5aa0; }
.blob-b::after { width: 50%; height: 50%; left: -10%; top: -5%; background: #e0906c; animation-delay: -3s; }
@keyframes drift { to { transform: translate(10%, -8%) scale(1.1); } }

.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plain li { position: relative; padding-left: 26px; color: var(--muted); }
.plain li::before { content: "🌱"; position: absolute; left: 0; font-size: 15px; }
.plain b { color: var(--text); }
.more { margin-top: 16px; font-size: 15px; }

.window-download { text-align: center; }
.window-download .window-body { padding-top: 34px; padding-bottom: 34px; }
.download-mark { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--leaf); animation: sway 6s ease-in-out infinite; transform-origin: 40% 90%; }
.window-download p { max-width: 30em; margin: 0 auto; }
.install { display: inline-grid; gap: 6px; margin: 4px auto 0; padding-left: 22px; text-align: left; color: var(--muted); }
.install b { color: var(--text); }
.actions { margin-top: 22px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.fine { margin-top: 16px !important; font-size: 13px; color: var(--dim) !important; }

.faq details { border-top: 1px solid rgba(255, 255, 255, .1); }
.faq summary { list-style: none; cursor: pointer; padding: 14px 32px 14px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 400 24px/1 var(--round); color: var(--leaf); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; font-size: 15.5px; }

.footer {
  position: relative; z-index: 2; margin: 0 var(--gutter) var(--gutter); padding: 18px 22px; border-radius: 18px; font-size: 14px;
}
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; }
.brand svg { width: 20px; height: 20px; color: var(--leaf); }
.footer-quip { color: var(--dim); font-family: var(--round); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-left: auto; }
.footer nav a { color: var(--muted); }
.footer-fine { margin-top: 10px; color: var(--dim); font-size: 12px; }

/* Reveal: windows drift in. */
.js .reveal { opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- wide screens */
@media (min-width: 1500px) { .window { width: 680px; } }

/* ---------------------------------------------------------- narrow */
@media (max-width: 1100px) {
  .sticky { position: relative; right: auto; bottom: auto; width: auto; margin: 0 22px 22px; transform: rotate(-1deg); }
}
@media (max-width: 960px) {
  .mb-left a:not(.mb-app) { display: none; }
}
@media (max-width: 699.98px) {
  :root { --menubar: 40px; --gutter: 12px; }
  body { font-size: 16px; }
  .menubar { font-size: 14.5px; padding: 0 6px 0 10px; }
  .mb-leaf { width: 40px; height: 32px; }
  .mb-leaf svg { width: 20px; height: 20px; }
  .menu { right: -50px; width: min(290px, calc(100vw - 20px)); }
  .first { align-items: flex-start; padding-top: calc(var(--menubar) + 10px); min-height: 100svh; }
  .hero-card { width: 100%; margin: 0; padding: 20px 20px 22px; border-radius: 22px; }
  .hero-card h1 { font-size: clamp(31px, 9vw, 40px); }
  .lede { margin-top: 12px; font-size: 15.5px; }
  .try { display: none; }
  .cta { margin-top: 16px; }
  .btn { min-height: 46px; }
  .limits { display: none; }
  .window, .window:nth-of-type(odd) { margin-left: 0; margin-bottom: 30vh; }
  .themes { grid-template-columns: 1fr 1fr; }
  .themes .theme:first-child { grid-column: 1 / -1; }
  .footer nav { margin-left: 0; }
  .icon { font-size: 11.5px; }
  .icon span { max-width: 96px; }
  .hint { width: 160px; font-size: 13px; }
}

/* ---------------------------------------------------------- capture + motion */
.capture .menubar, .capture main, .capture .footer, .capture .desk, .capture .toasts { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .blob::before, .blob::after, .mb-leaf svg, .download-mark, .menu, .window.opened { animation: none; }
  .btn, .toast, .hint, .ghost, .wall iframe { transition: none; }
}

/* ---------------------------------------------------------- phone hand-off */
.cta-note b { color: var(--text); font-weight: 650; }
.not-mac .cta .btn-primary { width: 100%; }

.pill {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35;
  display: none; align-items: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 700 15.5px/1 var(--round); color: var(--text); cursor: pointer;
  background: rgba(14, 34, 21, .74);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s ease;
}
.pill svg { width: 18px; height: 18px; color: var(--leaf); }
.pill.show { transform: translate(-50%, 0); opacity: 1; }
.not-mac .pill { display: inline-flex !important; }

.sheet {
  width: min(440px, 100vw); max-width: none; max-height: 92vh; margin: auto; padding: 26px 22px 22px;
  border: 1px solid var(--glass-line); border-radius: 26px; color: var(--text);
  background: rgba(16, 32, 22, .9);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); overflow: auto;
}
.sheet::backdrop { background: rgba(3, 10, 6, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet.open { animation: sheet-in .45s var(--spring); }
@keyframes sheet-in { from { transform: translateY(40px) scale(.98); opacity: 0; } }
.sheet-grip { display: none; }
.sheet-close-form { position: absolute; right: 12px; top: 12px; margin: 0; }
.sheet-close {
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  font: 400 24px/1 var(--round); color: var(--muted); background: rgba(255, 255, 255, .08);
}
.sheet-art { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 34px; height: 54px; }
.sheet-art .hop { font-size: 22px; animation: hop 1.6s ease-in-out infinite; }
@keyframes hop { 0% { transform: translate(-26px, 6px) rotate(-20deg); opacity: 0; } 25% { opacity: 1; } 50% { transform: translate(0, -14px) rotate(0); } 75% { opacity: 1; } 100% { transform: translate(26px, 6px) rotate(20deg); opacity: 0; } }
.sheet h2 { margin-top: 10px; text-align: center; font: 650 28px/1.1 var(--serif); letter-spacing: -.02em; }
.sheet-sub { margin: 8px auto 0; max-width: 26em; text-align: center; color: var(--muted); font-size: 15px; }
.ways { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ways button, .ways a {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 10px 14px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(255, 255, 255, .06);
  color: var(--text); font: inherit; cursor: pointer; text-decoration: none !important;
  transition: background-color .2s, transform .25s var(--spring);
}
.ways button:hover, .ways a:hover { background: rgba(255, 255, 255, .1); }
.ways button:active, .ways a:active { transform: scale(.98); }
.ways li:first-child button { background: rgba(168, 230, 118, .16); border-color: rgba(168, 230, 118, .35); }
.way-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 21px; background: rgba(0, 0, 0, .22); }
.ways b { display: block; font-size: 16px; }
.ways small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.sheet-type { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.sheet-type b { color: var(--leaf); font-family: var(--round); font-size: 17px; letter-spacing: .01em; }
.sheet-tip { margin-top: 8px; text-align: center; color: var(--dim); font-size: 12.5px; }

@media (max-width: 699.98px) {
  .sheet {
    position: fixed; inset: auto 0 0 0; width: 100vw; margin: 0;
    padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; border-bottom: 0;
  }
  .sheet.open { animation: sheet-up .45s var(--spring); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .sheet-grip { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
  .sheet-close-form { top: 14px; }
  .sheet h2 { font-size: 25px; }
  /* Phone hero: shorter, so more of the desktop shows. */
  .hero-card .lede { font-size: 15px; }
  .cta-note { font-size: 13px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet.open, .sheet-art .hop { animation: none; }
  .pill { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { display: none; }
  .btn-primary svg { transition: none; }
}

/* ---------------------------------------------------------- theme picker */
.themes { grid-template-columns: repeat(3, 1fr); }
.theme button {
  position: relative; display: block; width: 100%; padding: 0; margin: 0 0 8px; border: 0; background: none; cursor: pointer;
  border-radius: 26px 6px 26px 6px; outline-offset: 4px;
}
.theme button img { margin: 0; transition: filter .3s ease; }
.theme button::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(168, 230, 118, 0); transition: box-shadow .3s ease;
}
.theme button:hover::after { box-shadow: 0 0 0 3px rgba(168, 230, 118, .55); }
.theme button.current::after { box-shadow: 0 0 0 3px var(--leaf), 0 10px 30px -10px rgba(168, 230, 118, .6); }
.try-tag {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  font: 700 12.5px/1 var(--round); color: var(--leaf-ink) !important; background: rgba(247, 240, 216, .92);
  opacity: 0; transition: opacity .25s ease;
}
.theme button:hover .try-tag, .theme button:focus-visible .try-tag { opacity: 1; }
.theme button.current .try-tag { opacity: 1; background: var(--leaf); }
.theme button.current .try-tag::before { content: "On now · "; }
.theme span:not(.try-tag) { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.credit { margin-top: 18px; font-size: 13px; color: var(--dim) !important; }
.credit a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-fine a { color: var(--muted); }
@media (max-width: 699.98px) {
  .themes { grid-template-columns: 1fr; gap: 16px; }
  .themes .theme:first-child { grid-column: auto; }
  .try-tag { opacity: 1; }
}
/* Light walls: stronger label shadow, as Finder does on a bright wallpaper. */
[data-theme="beach"] .icon span, [data-theme="meadow"] .icon span { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 7px rgba(0, 0, 0, .65), 0 0 12px rgba(0, 0, 0, .35); }
