:root {
  --bg: #f9f6f4;
  --panel: #e6e8d8;
  --card: #f2cecd;
  --rose-deep: #a96e7b;
  --olive: #818455;
  --olive-deep: #656937;
  --ink: #3b2c30;
  --muted: #6f5a63;
  --rule: #e6d5d8;
  --chrome: #1a1517;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}

a { color: var(--rose-deep); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }

.label {
  font: 400 0.6875rem/1.3 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

h1, h2 {
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  margin: 0;
}
h1 { font-size: clamp(1.875rem, 8.6vw, 4.25rem); line-height: 1.05; letter-spacing: -0.02em; max-width: 14ch; }
h2 { font-size: clamp(1.5rem, 5vw, 2.25rem); line-height: 1.1; letter-spacing: 0.02em; }
h3 { font-size: 1rem; font-weight: 500; margin: 0 0 6px; }

.top, section, footer {
  padding-left: max(16px, calc((100% - 1040px) / 2));
  padding-right: max(16px, calc((100% - 1040px) / 2));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 1.25rem/1 Anton, Impact, sans-serif;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { border-radius: 7px; }
nav { display: flex; gap: 16px; }
nav a {
  font: 400 0.6875rem/1.3 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 2px;
}
nav a:hover { color: var(--ink); }

section { padding-top: 56px; padding-bottom: 56px; }

.hero { padding-top: 40px; padding-bottom: 72px; }
.lede { font-size: 1rem; max-width: 46ch; margin-top: 14px; margin-bottom: 20px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 auto; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  font: 400 0.75rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn.primary { background: var(--olive); color: var(--bg); }
.btn.primary:hover { background: var(--olive-deep); }
.btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover { background: var(--panel); }
.price { margin: 12px 0 0; font-size: 0.875rem; color: var(--muted); }
.price b { font-weight: 500; color: var(--ink); }
.meta { margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.meta + .meta { margin-top: 8px; }

.carousel { margin-top: 8px; }
.screens-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mode { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
.mode button {
  font: 400 0.6875rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mode button[aria-pressed="true"] { background: var(--chrome); color: var(--bg); }
.mode button:not([aria-pressed="true"]):not(:disabled):hover { color: var(--ink); }
.mode button:disabled { cursor: default; opacity: 0.5; }
.mode button:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 2px; }
.shots {
  --slide: min(64vw, 240px, calc((100svh - 300px) / 2.02));
  position: relative;
  list-style: none;
  margin: 0;
  padding: 12px calc(50% - var(--slide) / 2) 8px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline-offset: -2px;
}
.shots::-webkit-scrollbar { display: none; }
.shots li {
  flex: 0 0 var(--slide);
  scroll-snap-align: center;
  opacity: 0.45;
  transform: scale(0.86);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.shots li.is-active { opacity: 1; transform: scale(1); }
.shots figure { margin: 0; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 6px solid var(--chrome);
  background: var(--chrome);
}
.shots figcaption {
  margin-top: 12px;
  font: 400 0.6875rem/1.3 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.band { background: var(--panel); }
.band.about { background: #ece4de; }

.cards { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cards li { background: var(--bg); border-radius: 16px; padding: 14px; }
.cards li { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; }
.cards .ico { display: block; color: var(--rose-deep); }
.cards h3 { margin: 0; font-size: 0.9375rem; }
.cards p { grid-column: 1 / -1; margin-top: 6px; }
.cards p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }

.steps { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; border-top: 1px solid var(--rule); padding: 14px 0; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps p { margin: 0; }
.steps .label { margin: 0; }
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: -3px;
  font: 400 1.0625rem/1 Anton, Impact, sans-serif;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.app-link img { border-radius: 5px; transition: transform 0.3s var(--ease); }
.app-link span { text-decoration: underline; text-decoration-color: var(--rose-deep); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.app-link:hover img { transform: rotate(-6deg) scale(1.06); }
.app-link:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; border-radius: 4px; }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 14px; max-width: 60ch; }

.about { display: grid; gap: 16px; align-items: start; }
.prose p { margin: 0 0 10px; max-width: 56ch; }
.prose h3 { margin-top: 24px; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font: 400 0.6875rem/1.3 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px var(--rose-deep);
  color: var(--ink);
}

footer {
  padding-top: 28px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
footer p { margin: 0; }

@media (min-width: 768px) {
  .shots { --slide: clamp(260px, min(26vw, 36vh), 330px); gap: 28px; }
  .top, section, footer { padding-left: max(32px, calc((100% - 1040px) / 2)); padding-right: max(32px, calc((100% - 1040px) / 2)); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 2fr; gap: 48px; }
}

/* ---------- Motion ---------- */
:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --olive-tile: #9ba06a;
  --rose-tile: #ce8f9e;
  --dim-tile: #d8c8cc;
}

/* sticky header that gains a rule once you scroll */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.top.scrolled { border-bottom-color: var(--rule); }

nav a { position: relative; transition: color 0.2s ease; }
nav a::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
nav a.active { color: var(--ink); }

.brand img { transition: transform 0.3s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }

/* signature tile grid, echoing the app icon */
.tiles {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  gap: 5px;
  margin-bottom: 16px;
}
.tiles i {
  display: block;
  height: 18px;
  border-radius: 4px;
  background: var(--dim-tile);
  animation: tile-fill 0.5s var(--ease) forwards;
  animation-delay: calc(var(--n, 0) * 90ms + 200ms);
}
.tiles i.r { --to: var(--rose-tile); }
.tiles i.d { --to: var(--dim-tile); }
.tiles i:not(.r):not(.d) { --to: var(--olive-tile); }
.tiles i:nth-child(1) { --n: 0; } .tiles i:nth-child(2) { --n: 1; } .tiles i:nth-child(3) { --n: 2; }
.tiles i:nth-child(4) { --n: 3; } .tiles i:nth-child(5) { --n: 4; } .tiles i:nth-child(6) { --n: 5; }
.tiles i:nth-child(7) { --n: 6; } .tiles i:nth-child(8) { --n: 7; } .tiles i:nth-child(9) { --n: 8; }
.tiles i:nth-child(10) { --n: 9; }
@keyframes tile-fill {
  from { background: var(--dim-tile); transform: scale(0.85); }
  to { background: var(--to); transform: scale(1); }
}

/* hero entrance */
.hero > * { animation: rise 0.7s var(--ease) backwards; }
.hero > :nth-child(2) { animation-delay: 0.05s; }
.hero > :nth-child(3) { animation-delay: 0.12s; }
.hero > :nth-child(4) { animation-delay: 0.2s; }
.hero > :nth-child(5) { animation-delay: 0.28s; }
.hero > :nth-child(6) { animation-delay: 0.34s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* scroll reveal (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* buttons */
.btn { gap: 10px; transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease; }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 8px 20px -8px rgba(101, 105, 55, 0.6); }
.btn.primary:hover .arrow { transform: translateY(3px); }
.btn.ghost:hover .arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* cards, steps, chips, links */
.cards li { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.cards li:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -18px rgba(59, 44, 48, 0.45); }

.steps li { transition: background-color 0.25s ease, padding-left 0.25s var(--ease); }
.steps li:hover { background: color-mix(in srgb, var(--panel) 45%, transparent); padding-left: 10px; }

.chips li { transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease); }
.chips li:hover { background: var(--rose-deep); color: var(--bg); transform: translateY(-2px); }


/* screenshots */
.shots img { transition: box-shadow 0.5s var(--ease), border-color 0.35s ease; }
.shots li.is-active img { box-shadow: 0 28px 44px -22px rgba(26, 21, 23, 0.65); }
.shots li.is-active figcaption { color: var(--ink); }
.shots figcaption { text-align: center; transition: color 0.3s ease; }
.shots .desc {
  display: block;
  margin-top: 6px;
  font: 400 0.8125rem/1.45 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .tiles i { animation: none; background: var(--to); }
  .hero > * { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .cards li, .steps li, .chips li, .brand img { transition: none; }
  .btn:hover, .cards li:hover, .chips li:hover, .brand:hover img { transform: none; }
}

/* ---------- About ---------- */
.profile {
  background: var(--bg);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 14px;
}
.profile > :not(.avatar):not(.label):not(h2):not(.role) { grid-column: 1 / -1; }
.avatar {
  width: 56px;
  height: 56px;
  grid-row: 1 / span 3;
  border-radius: 14px;
  background: var(--chrome);
  display: grid;
  place-items: center;
  margin-bottom: 0;
  transition: transform 0.35s var(--ease);
}
.profile:hover .avatar { transform: rotate(-4deg) scale(1.05); }
.tiles.mini { grid-template-columns: repeat(5, 8px); gap: 2px; margin: 0; }
.tiles.mini i { height: 7px; border-radius: 2px; background: #5a4e53; }
.tiles.mini i.d { --to: #5a4e53; }
.profile h2 { margin-bottom: 4px; }
.role { margin: 0 0 14px; color: var(--muted); font-size: 0.875rem; }
.follow { display: flex; justify-content: center; width: 100%; }
.btn.primary.follow:hover .arrow { transform: translateX(4px); }
.handle { margin: 8px 0 14px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.handle b { font: 400 0.8125rem/1 "Space Mono", ui-monospace, monospace; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9999px;
  color: var(--ink);
  text-decoration: none;
  font: 400 0.6875rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}
.pill .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.pill:hover { background: var(--ink); color: var(--bg); box-shadow: none; transform: translateY(-2px); }
.pill:hover .arrow { transform: translate(2px, -2px); }
.pill:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }

.prose .lead { font-size: 1.0625rem; line-height: 1.5; margin-bottom: 10px; max-width: 34ch; }
.prose h3 { font: 400 0.6875rem/1.3 "Space Mono", ui-monospace, monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

.stack { margin: 0; display: grid; gap: 8px; }
.stack > div { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
.stack dt { margin: 0; }
.stack dd { margin: 0; }
.stack .chips { margin: 0; }

@media (min-width: 768px) {
  .about { grid-template-columns: 5fr 7fr; gap: 40px; }
  .profile { position: sticky; top: 88px; padding: 28px; }
  .stack > div { grid-template-columns: 96px 1fr; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar, .pill, .pill .arrow { transition: none; }
  .profile:hover .avatar, .pill:hover, .pill:hover .arrow { transform: none; }
}

/* ---------- Carousel indicator ---------- */
.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--rule);
  transition: width 0.35s var(--ease), background-color 0.25s ease;
}
.dot.on { width: 24px; background: var(--rule); overflow: hidden; }
.dot.on.playing::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  animation: dot-progress var(--interval, 4000ms) linear forwards;
}
.dot.on:not(.playing) { background: var(--olive); }
.shots:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }
@keyframes dot-progress { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .shots { scroll-behavior: auto; }
  .shots li { transition: none; }
  .dot { transition: none; }
  .dot.playing::after { animation: none; }
}

/* ---------- Stacked pages ---------- */
html.stacked main > section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 76px;
  padding-bottom: 28px;
  background: var(--bg);
}
html.stacked main > section.band { background: var(--panel); }
html.stacked main > section.about { display: grid; align-content: center; background: #ece4de; }
html.stacked main > section + section {
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -24px 48px -20px rgba(26, 21, 23, 0.35);
}
html.stacked main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chrome);
  opacity: calc(var(--cover, 0) * 0.5);
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
}
html.stacked main > section > * { position: relative; z-index: 1; }
html.stacked .profile { position: relative; }
@media (min-width: 768px) {
  html.stacked main > section { padding-top: 104px; padding-bottom: 80px; }
  html.stacked .profile { position: sticky; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 768px) {
  .lede { font-size: 1.125rem; margin-top: 20px; margin-bottom: 28px; }
  .actions { gap: 12px; }
  .actions .btn { flex: none; }
  .meta { margin-top: 16px; }
  .tiles { margin-bottom: 28px; }
  .cards { margin-top: 28px; gap: 12px; }
  .cards li { padding: 20px; }
  .steps { margin-top: 24px; gap: 4px; }
  .steps li { padding: 16px 0; }
  .note { margin-top: 20px; }
  .carousel { margin-top: 28px; }
  .shots { padding-top: 24px; padding-bottom: 12px; }
  .about { gap: 40px; }
  .profile { display: block; padding: 28px; }
  .avatar { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 20px; }
  .role { margin-bottom: 16px; }
  .handle { margin: 10px 0 20px; }
  .prose .lead { font-size: 1.25rem; margin-bottom: 16px; }
  .prose p { margin-bottom: 14px; }
  .prose h3 { margin: 32px 0 12px; }
  .stack { gap: 12px; }
  .chips li { padding: 8px 14px; }
  html.stacked main > section + section { border-radius: 28px 28px 0 0; }
}

/* ---------- Changelog ---------- */
.log { list-style: none; margin: 28px 0 0; padding: 0; }
.log > li { border-top: 1px solid var(--rule); padding: 20px 0; }
.log > li:last-child { border-bottom: 1px solid var(--rule); }
.log-head { margin-bottom: 10px; }
.log-head h2 { font-size: 1.5rem; margin: 0 0 4px; }
.log-head .label { margin: 0; }
.log ul { list-style: disc; margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.log ul li { padding-left: 2px; max-width: 60ch; }
.log ul li::marker { color: var(--olive); }
@media (min-width: 768px) {
  .log > li { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
  .log-head { margin-bottom: 0; }
}

/* ---------- iPhone note ---------- */
.ios { margin-top: 14px; border-radius: 14px; background: var(--panel); }
.ios summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 400 0.75rem/1 "Space Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 14px;
}
.ios summary::-webkit-details-marker { display: none; }
.ios summary::after { content: "+"; font-size: 1rem; transition: transform 0.25s var(--ease); }
.ios[open] summary::after { transform: rotate(45deg); }
.ios summary:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 2px; }
.ios-body { padding: 0 16px 16px; font-size: 0.875rem; color: var(--muted); }
.ios-body p { margin: 0 0 10px; }
.ios-body ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 4px; }
.ios-body b { font-weight: 500; color: var(--ink); }
.ios-body .why { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); }
@media (min-width: 768px) {
  .ios { max-width: 640px; }
  .ios-body { font-size: 0.9375rem; }
}

@media (min-width: 768px) {
  .cards p { font-size: 0.875rem; line-height: 1.55; }
  .cards li { display: block; }
  .cards .ico { margin-bottom: 12px; }
  .cards h3 { font-size: 1rem; margin-bottom: 4px; }
  .cards p { margin-top: 0; }
}

@media (min-width: 768px) {
  .price { margin-top: 16px; }
  .meta { margin-top: 4px; }
}


footer .fine { display: block; margin-top: 4px; font-size: 0.8125rem; }

@media (min-width: 768px) {
  footer { flex-direction: row; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; }
}

/* short phones: tighter install steps so the page fits one screen */
@media (max-width: 767px) and (max-height: 720px) {
  .steps li { padding: 10px 0; }
}

/* floating What's new button and panel, bottom left (the coffee widget sits bottom right) */
.whats-new {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: calc(100vw - 32px);
}
.whats-new[hidden] { display: none; }
.wn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(59, 44, 48, 0.55);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
  animation: whats-new-in 0.5s var(--ease) 0.6s both;
}
.wn-toggle .label { margin: 0; color: var(--card); }
.wn-toggle .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.wn-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.wn-toggle:hover { background: var(--chrome); transform: translateY(-2px); }
.wn-toggle:focus-visible { outline: 2px solid var(--olive-deep); outline-offset: 3px; }
.new-dot { display: none; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--rose-tile); }
.whats-new.unseen .new-dot { display: block; animation: new-dot 1.8s ease-in-out infinite; }

.wn-panel {
  width: min(360px, calc(100vw - 32px));
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding: 20px 20px 18px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -16px rgba(59, 44, 48, 0.45);
  transform-origin: left bottom;
  animation: wn-open 0.25s var(--ease);
}
.wn-panel[hidden] { display: none; }
.wn-panel .label { margin-bottom: 6px; }
.wn-panel h2 { font-size: 1.5rem; }
.wn-panel ul { margin: 12px 0 16px; padding-left: 18px; font-size: 0.9375rem; line-height: 1.5; }
.wn-panel li + li { margin-top: 8px; }
.wn-all { display: flex; justify-content: center; width: 100%; }
.wn-all:hover .arrow { transform: translateX(4px); }

@keyframes whats-new-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes wn-open { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes new-dot { 50% { box-shadow: 0 0 0 5px rgba(206, 143, 158, 0.25); } }
@media (min-width: 768px) { .whats-new { left: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .wn-toggle, .wn-toggle .arrow, .wn-panel, .whats-new.unseen .new-dot { animation: none; transition: none; }
  .wn-toggle:hover { transform: none; }
}
/* keep the footer links clear of the floating buttons */
footer { padding-bottom: 88px; }

/* floating buttons step aside while they would cover the hero text (set in script.js) */
#bmc-wbtn, .whats-new { transition: opacity 0.2s ease, visibility 0.2s ease; }
.floating-clear #bmc-wbtn, .floating-clear .whats-new { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
