/* DogBar landing: purple cartoon desk, inky hand-drawn borders. */
:root {
  --purple: #6e24e6;
  --purple-hi: #8a4bff;
  --deep: #3a0f86;
  --ink: #1d0b3f;
  --lav: #efe5ff;
  --lav-2: #dccbff;
  --cream: #fff8ea;
  --yellow: #ffc93c;
  --line: 3px solid var(--ink);
  --shadow: 6px 7px 0 var(--ink);
  --shadow-sm: 3px 4px 0 var(--ink);
  /* Slightly uneven corners read as hand-drawn. */
  --wobble: 26px 20px 28px 18px / 18px 28px 20px 26px;
  --wobble-sm: 14px 11px 15px 10px / 10px 15px 11px 14px;
  --font: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--purple);
  line-height: 1.45;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
kbd { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  padding: .6rem 1rem; background: var(--cream); border: var(--line); border-radius: 12px;
  font-weight: 800; text-decoration: none;
}
.skip:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

/* ---------- Buttons ---------- */
.btn, .chip {
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border: var(--line);
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem .55rem;
  min-height: 52px; padding: .7rem 1.35rem;
  font-size: 1.1rem; line-height: 1.15; text-align: center;
  border-radius: var(--wobble-sm);
  box-shadow: var(--shadow-sm);
}
.btn-ic { width: 1.15em; height: 1.15em; flex: none; }
.chip:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.chip:active { transform: translate(2px, 3px) scale(.98); box-shadow: 0 0 0 var(--ink); }

/* Yellow is reserved for the primary download action and keyboard focus. */
.btn-download {
  --ring: 0 0 0 0 transparent;
  min-height: 60px; padding: .8rem 1.5rem;
  font-size: 1.22rem;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--ring), 6px 7px 0 4px var(--ink);
}
.get .btn-download { --ring: 0 0 0 0 transparent; box-shadow: 6px 7px 0 var(--ink); }
.btn-download[href]:hover { transform: translate(-2px, -2px); box-shadow: var(--ring), 8px 9px 0 4px var(--ink); background: #ffda68; }
.get .btn-download[href]:hover { box-shadow: 8px 9px 0 var(--ink); }
.btn-download[href]:active { transform: translate(3px, 4px) scale(.98); box-shadow: var(--ring), 0 0 0 4px var(--ink); }
.get .btn-download[href]:active { box-shadow: 0 0 0 var(--ink); }
/* Coming soon: the yellow action stays hatched and static, with no href, so
   it never pretends to be clickable. release.js adds href once a release verifies. */
.btn-download:not([href]) {
  cursor: default;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 9px, #ffda68 9px 18px);
}
.dl-tag {
  padding: .14rem .55rem;
  font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--lav); border: 2px solid var(--ink); border-radius: 999px;
}
.btn-download[href] .dl-tag { background: var(--cream); }

/* Secondary action: a plain underlined link, clearly below the download button. */
.btn-link {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 48px; padding: .3rem .35rem;
  font-weight: 800; font-size: 1.08rem;
  text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px;
  text-decoration-color: var(--lav-2);
  transition: text-decoration-color .14s ease, transform .14s ease;
}
.btn-link .btn-ic { width: 1em; height: 1em; }
.btn-link:hover { text-decoration-color: currentColor; }
.btn-link:active { transform: translateY(1px); }
.get .btn-link { text-decoration-color: var(--purple); }
.get .btn-link:hover { text-decoration-color: var(--ink); }
.dl-note { margin-top: 1.1rem; font-size: .95rem; font-weight: 700; }
.dl-hash { margin-top: .5rem; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.dl-hash code { font: 600 .78rem/1.4 ui-monospace, Menlo, monospace; }
.install-note { margin-top: 1rem; max-width: 54ch; padding-top: .8rem; border-top: 2px solid var(--ink); font-size: .9rem; }
.install-note summary { cursor: pointer; font-weight: 800; }
.install-note p { margin-top: .65rem; }
.install-note a { text-underline-offset: .2em; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--cream);
  background:
    radial-gradient(circle at 88% 8%, #7a32f0 0 18%, transparent 18.2%),
    radial-gradient(circle at 4% 96%, #5a17c7 0 16%, transparent 16.2%),
    radial-gradient(rgba(255, 255, 255, .12) 1.6px, transparent 1.8px) 0 0 / 26px 26px,
    var(--purple);
  padding: 0 clamp(1rem, 4vw, 3.5rem) clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1240px; margin: 0 auto;
  padding: 1.1rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 900; font-size: 1.2rem; text-decoration: none;
}
.brand img { border: 2.5px solid var(--ink); border-radius: 11px; box-shadow: 2px 3px 0 var(--ink); }
.nav-links { display: flex; gap: 1.2rem; margin-left: auto; font-weight: 800; }
.nav-links a { text-decoration: none; padding: .3rem .1rem; background: linear-gradient(var(--cream), var(--cream)) 0 100% / 0 3px no-repeat; transition: background-size .2s ease; }
.nav-links a:hover { background-size: 100% 3px; }
.status-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .8rem; font-size: .85rem; font-weight: 800;
  background: var(--ink); color: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
  text-decoration: none;
  transition: background-color .14s ease, color .14s ease;
}
.status-pill:hover { background: var(--cream); color: var(--ink); }
.status-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--lav-2); }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  max-width: 1240px; margin: 0 auto;
  min-height: calc(100svh - 84px - 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
}
/* Title and sticker scale with their own column, so they never spill into the demo. */
.hero-copy { min-width: 0; container-type: inline-size; }
.brand-title {
  font-size: 3.4rem;
  font-size: clamp(2.4rem, 24cqi, 7.2rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .92;
  color: var(--cream);
  text-shadow: 4px 5px 0 var(--ink);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
}
.promise {
  margin-top: 1.1rem;
  font-size: 1.6rem;
  font-size: clamp(1.05rem, 6.3cqi, 2.3rem);
  font-weight: 900; line-height: 1.1;
  max-width: 100%;
  display: inline-block;
  background: var(--cream); color: var(--ink);
  padding: .15em .45em .2em;
  border: var(--line); border-radius: var(--wobble-sm);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}
.eyebrow { margin-bottom: .9rem; font-size: clamp(.9rem, 1.2vw, 1rem); font-weight: 800; letter-spacing: .02em; color: var(--lav); }
.lede { margin-top: 1.25rem; max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.8rem; }
.hero .dl-note { color: var(--lav); }

/* ---------- Demo stage ---------- */
.stage { position: relative; min-width: 0; outline: none; }
.stage-dog {
  position: absolute; z-index: 3;
  width: clamp(80px, 10vw, 136px); height: auto;
  right: -10px; top: -44px;
  border: var(--line); border-radius: 30%;
  box-shadow: var(--shadow-sm);
  transform: rotate(7deg);
}
.mac {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 20% 30%, #fff 0 10%, transparent 30%),
    linear-gradient(160deg, var(--lav) 0%, var(--lav-2) 100%);
  overflow: hidden;
  color: var(--ink);
}
.menubar {
  position: absolute; inset: 0 0 auto; height: 26px; z-index: 6;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .8rem; font-size: .78rem; font-weight: 800;
  background: rgba(255, 255, 255, .7); border-bottom: 2px solid var(--ink);
}
.menubar-right { display: inline-flex; align-items: center; gap: .5rem; margin-right: max(76px, 20%); } /* clear of the mascot sticker */
.menubar-paw { width: 14px; height: 14px; fill: var(--ink); }
.menubar-clock { font-weight: 700; }
.desk-chip { background: var(--purple); color: var(--cream); border-radius: 6px; padding: 0 .4rem; }
.desk { position: absolute; inset: 26px 0 0; }
.desk.swap { animation: desk-swap .38s var(--ease-pop); }

.win {
  position: absolute;
  display: flex; flex-direction: column;
  background: #fbf9ff;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 5px 0 rgba(29, 11, 63, .55);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, filter .2s ease, outline-color .15s ease;
  cursor: pointer;
  outline: 3px dashed transparent; outline-offset: 3px;
}
.win.is-front { box-shadow: 6px 7px 0 var(--ink); }
.win:not(.is-front) { filter: saturate(.8) brightness(.96); }
.win.peek { outline-color: var(--purple); filter: none; }
.win.flash { animation: win-flash .5s var(--ease-pop); }

/* Window UI scales with the window: 1em follows its width through container units,
   so the same markup renders on the desk, in Dock previews and in switcher tiles. */
.win, .mini { container-type: inline-size; }
.win > * { font-size: clamp(6.5px, 2.9cqi, 13px); }
.mini > * { font-size: 2.9cqi; }
.win-bar {
  flex: none; height: 2.2em;
  display: flex; align-items: center; gap: .5em; padding: 0 .75em;
  background: #ece5f8; border-bottom: 1.5px solid var(--ink);
  font-weight: 800; line-height: 1;
}
.win-bar .t { flex: 1; text-align: center; margin-right: 3.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr {
  flex: 0 1 62%; margin: 0 auto; transform: translateX(-1.6em);
  padding: .3em .7em; border-radius: .55em;
  background: #fff; border: 1px solid #cfc4e6;
  font-size: .85em; font-weight: 700; color: #5b4b7a; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lights { display: inline-flex; gap: .35em; flex: none; }
.lights i { width: .85em; height: .85em; border-radius: 50%; border: 1px solid var(--ink); background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.win-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; line-height: 1.3; }
.win-body i { font-style: normal; }
[data-app="slack"] .win-bar { background: #3f0e40; color: #f3e8f3; }
[data-app="notes"] .win-bar { background: #fff1c2; }

/* Safari: a fictional hotel booking */
.site { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .55em; padding: .8em 1.1em; text-align: center; background: linear-gradient(#fff, #f5f0ff); }
.site-logo { align-self: flex-start; font-weight: 900; color: var(--purple); }
.site-steps { display: flex; gap: .35em; margin-top: .3em; }
.site-steps i { width: 2.2em; height: .4em; border-radius: 1em; background: #ddd3f0; }
.site-steps i.on { background: var(--purple); }
.site-h { font-size: 1.45em; font-weight: 900; line-height: 1.1; }
.site-input, .site-btn { width: 82%; padding: .45em .7em; border-radius: .5em; font-weight: 700; }
.site-input { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; border: 1.5px solid #cfc4e6; }
.site-btn { background: var(--purple); color: #fff; font-weight: 800; }

/* Slack: friends planning a trip */
.slack { flex: 1; display: grid; grid-template-columns: 34% 1fr; }
.sl-side { display: flex; flex-direction: column; gap: .35em; padding: .8em .7em; background: #4a154b; color: #dcc6dd; font-size: .85em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.sl-side b { margin-bottom: .3em; color: #fff; font-size: 1.1em; }
.sl-side .on { margin: 0 -.35em; padding: .1em .35em; border-radius: .35em; background: #1164a3; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.sl-main { display: flex; flex-direction: column; gap: .7em; padding: .7em .9em; background: #fff; }
.sl-head { padding-bottom: .45em; border-bottom: 1px solid #e8e1f2; font-weight: 900; }
.msg { display: grid; grid-template-columns: 2em 1fr; gap: .55em; align-items: start; }
.av { width: 2em; height: 2em; display: grid; place-items: center; border-radius: .45em; background: var(--av); color: #fff; font-weight: 900; }
.msg b { display: block; font-weight: 900; }

/* Notes: a packing checklist */
.note { flex: 1; display: flex; flex-direction: column; gap: .5em; padding: .9em 1em; background: #fffdf5; }
.note-h { margin-bottom: .15em; font-size: 1.25em; font-weight: 900; }
.check { display: flex; align-items: center; gap: .5em; font-weight: 600; }
.check i { flex: none; width: 1em; height: 1em; border: 1.5px solid #c9a227; border-radius: 50%; }
.check.done { color: #8f8670; text-decoration: line-through; }
.check.done i { background: var(--lav-2); }

/* Safari: illustrated day plans and hiking routes */
.trip { flex: 1; display: flex; flex-direction: column; gap: .45em; padding: .8em .9em; }
.trip-img {
  flex: 1; min-height: 3em; border-radius: .6em; border: 1px solid #e3d9f3;
  background:
    radial-gradient(circle at 78% 32%, #fff3c4 0 9%, transparent 9.5%),
    linear-gradient(170deg, transparent 58%, #7b4bd8 58.4% 70%, #5a2bb5 70.4%),
    linear-gradient(#ffd08a, #ff8f7a);
}
.trip-h { font-size: 1.3em; font-weight: 900; line-height: 1.1; }
.trip-ln { color: #5b4b7a; font-weight: 600; }

/* Music: Up Next */
.music { flex: 1; display: flex; flex-direction: column; gap: .6em; padding: .9em 1em; }
.mu-h { font-size: 1.3em; font-weight: 900; }
.mu-row { display: grid; grid-template-columns: 2.6em 1fr; gap: .65em; align-items: center; color: #6b5d88; font-weight: 600; }
.mu-row b { display: block; color: var(--ink); font-weight: 800; }
.music .art, .album-art { width: 2.6em; height: 2.6em; border-radius: .45em; border: 1px solid var(--ink); background: linear-gradient(135deg, var(--art), #1d0b3f); }

/* Dock */
.dock-wrap { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; z-index: 5; pointer-events: none; }
.dock {
  pointer-events: auto;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 8px 4px;
  background: rgba(251, 247, 255, .88);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 4px 5px 0 var(--ink);
}
.dock-sep { width: 2px; align-self: stretch; margin: 4px 2px 10px; background: var(--ink); opacity: .35; border-radius: 2px; }
.dock-btn {
  position: relative;
  display: grid; justify-items: center; gap: 3px;
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit;
  border-radius: 12px;
}
.dock-btn .ic { width: clamp(30px, 3.4vw, 42px); height: clamp(30px, 3.4vw, 42px); transition: transform .14s ease; }
.dock-btn img.ic { border: 2px solid var(--ink); border-radius: 24%; }
.dock-btn:hover .ic { transform: translateY(-3px); }
.dock-btn:active .ic { transform: translateY(1px) scale(.96); }
.dock-btn[aria-expanded="true"] .ic { outline: 3px dashed var(--purple); outline-offset: 2px; border-radius: 12px; }
.dots { display: flex; gap: 3px; height: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.dock-btn.enter { animation: pop-in .36s var(--ease-pop); }

/* Switcher */
.switcher {
  position: absolute; inset: 26px 0 0; z-index: 7;
  display: grid; place-items: center;
  background: rgba(29, 11, 63, .18);
}
.tiles {
  display: flex; gap: clamp(6px, 1.2vw, 12px);
  max-width: 94%;
  padding: clamp(8px, 1.4vw, 14px);
  background: rgba(30, 19, 56, .9);
  border: 3px solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow);
  animation: pop-in .26s var(--ease-pop);
}
.tile {
  display: grid; justify-items: center; gap: 4px;
  width: clamp(76px, 10vw, 112px);
  padding: 8px 6px;
  font: inherit; font-size: .75rem; font-weight: 800; color: #f3eeff;
  background: transparent; border: 3px solid transparent; border-radius: 14px;
  cursor: pointer;
}
.tile[aria-current="true"] { background: rgba(255, 255, 255, .16); border-color: var(--cream); }
/* Minis are the real window markup at thumbnail scale; only the chrome keeps a floor. */
.mini { width: 100%; aspect-ratio: 4 / 3; display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-align: left; background: #fbf9ff; border: 2px solid var(--ink); }
.mini .win-bar { height: max(2.2em, 11px); }
.mini .lights i { width: max(.85em, 4px); height: max(.85em, 4px); }
.tile .mini { border-radius: 8px; }
.tile .ic { position: relative; width: 26px; height: 26px; margin-top: -16px; border: 2px solid var(--ink); border-radius: 24%; }
.tile .name { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Preview popover */
.preview {
  position: absolute; z-index: 8;
  bottom: calc(10px + 74px);
  transform: translateX(-50%);
  display: flex; gap: 10px;
  padding: 10px;
  background: #fffdfc;
  border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: var(--shadow);
  animation: rise .24s var(--ease-pop);
  max-width: calc(100% - 16px);
}
.preview::after {
  content: ""; position: absolute; left: var(--tail, 50%); bottom: -11px;
  width: 16px; height: 16px; margin-left: -8px;
  background: #fffdfc; border: solid var(--ink); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.pv { position: relative; display: grid; gap: 4px; width: clamp(104px, 13vw, 160px); }
.pv-shot {
  position: relative; display: block; width: 100%; padding: 0;
  font: inherit; background: none; border: 3px solid transparent; border-radius: 12px; cursor: pointer;
}
.pv-shot:hover, .pv.is-pick .pv-shot { border-color: var(--purple); }
.pv.is-pick .pv-shot { animation: nudge 1.5s 1.1s ease-in-out 3; }
.pv.is-pick .pv-name { color: var(--purple); }
.pv-shot .mini { border-radius: 9px; }
.pv-shot .mini .win-bar { height: 20px; }
.pv-shot .mini .lights { visibility: hidden; }
.pv-lights { position: absolute; top: 9px; left: 11px; display: flex; gap: 4px; z-index: 1; }
.pv-lights button, .pv-lights i {
  width: 12px; height: 12px; padding: 0; border-radius: 50%;
  border: 1.4px solid var(--ink); background: #ff5f57; cursor: pointer;
}
.pv-lights button { position: relative; }
.pv-lights button::before { content: ""; position: absolute; inset: -8px; } /* larger hit area */
.pv-lights i:nth-of-type(1) { background: #febc2e; cursor: default; }
.pv-lights i:nth-of-type(2) { background: #28c840; cursor: default; }
.pv-name { text-align: center; font-size: .78rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-empty { padding: .4rem .6rem; font-size: .8rem; font-weight: 800; white-space: nowrap; }
/* Opening example: a sticker names the problem the preview solves. */
.pv-hint {
  position: absolute; left: -12px; top: -1.35rem; z-index: 2;
  padding: .2rem .6rem;
  font-size: .8rem; font-weight: 900; white-space: nowrap;
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: 10px 8px 11px 7px;
  box-shadow: 2px 3px 0 var(--ink);
  transform: rotate(-4deg);
  pointer-events: none;
}

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.4rem; }
.seg { display: inline-flex; gap: .4rem; }
.chip {
  min-height: 44px; padding: .45rem .95rem;
  font-size: .95rem;
  background: var(--cream);
  border-radius: 12px 10px 13px 9px / 9px 13px 10px 12px;
  box-shadow: var(--shadow-sm);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 3px 4px 0 var(--lav-2); }
.chip small { font: inherit; font-weight: 700; opacity: .7; }
.chip-key { background: var(--lav); }
.chip-release { background: var(--lav); }
.chip-quiet { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }
.chip kbd { display: inline-block; min-width: 1.4em; padding: 0 .25em; border: 2px solid currentColor; border-radius: 6px; line-height: 1.2; text-align: center; }
.caption { margin-top: .9rem; min-height: 1.5em; font-weight: 700; color: var(--cream); }

/* ---------- Features ---------- */
.features, .detail { padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3.5rem); }
.features {
  background:
    radial-gradient(rgba(110, 36, 230, .12) 1.6px, transparent 1.8px) 0 0 / 26px 26px,
    var(--lav);
  border-top: 4px solid var(--ink);
}
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1; letter-spacing: -.02em;
}
.features .section-title { max-width: 1240px; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; color: var(--purple); text-shadow: 3px 4px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  max-width: 1140px; margin: 0 auto;
}
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature:nth-of-type(even) .feature-art { order: 2; }
.feature-art {
  width: 100%; height: auto; min-width: 0;
  margin: 0;
  border: 4px solid var(--ink);
  border-radius: var(--wobble);
  box-shadow: 8px 9px 0 var(--ink);
  overflow: hidden;
  background: var(--purple);
  transform: rotate(-1.2deg);
  transition: transform .25s var(--ease-pop), box-shadow .25s ease;
}
.feature:nth-of-type(even) .feature-art { transform: rotate(1.2deg); }
.feature-art img { width: 100%; height: auto; }
.feature-art:hover { transform: rotate(0) translate(-3px, -3px); box-shadow: 11px 12px 0 var(--ink); }
.num {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; margin-bottom: 1rem;
  font-weight: 900; font-size: 1.1rem; color: var(--cream);
  background: var(--purple); border: var(--line); border-radius: 50% 46% 52% 48%;
  box-shadow: var(--shadow-sm);
}
.feature-copy strong { color: var(--purple); font-weight: 900; }
.feature-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.015em; }
.feature-copy p { margin-top: .9rem; max-width: 40ch; line-height: 1.5; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; color: #3b2566; }

/* ---------- Detail ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  color: var(--cream);
  background:
    radial-gradient(rgba(255, 255, 255, .08) 1.6px, transparent 1.8px) 0 0 / 26px 26px,
    var(--deep);
  border-top: 4px solid var(--ink);
}
.detail > * { max-width: 560px; }
.detail-copy { justify-self: end; }
.detail .section-title { color: var(--cream); text-shadow: 3px 4px 0 var(--ink); }
.detail-copy p { margin-top: 1rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; max-width: 34ch; }
.settings {
  position: relative;
  width: 100%;
  color: var(--ink);
  background: #fbf9ff;
  border: 4px solid var(--ink); border-radius: var(--wobble);
  box-shadow: 8px 9px 0 var(--ink);
  transform: rotate(1.5deg);
}
.settings-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; background: #ece5f8; border-bottom: 2px solid var(--ink); border-radius: 22px 18px 0 0; font-size: .85rem; }
.settings-bar b { flex: 1; text-align: center; margin-right: 46px; }
.settings-dog { position: absolute; right: -22px; top: -44px; width: 76px; height: 76px; border: var(--line); border-radius: 30%; box-shadow: var(--shadow-sm); transform: rotate(10deg); }
.settings-rows { margin: 0; padding: .6rem 1rem 1rem; }
.settings-rows div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1.5px dashed #cfc4e6; }
.settings-rows div:last-child { border-bottom: 0; }
.settings-rows dt { font-weight: 700; font-size: .95rem; }
.settings-rows dd { margin: 0; flex: none; }
.pop { padding: .15rem .6rem; font-size: .82rem; font-weight: 800; background: #fff; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); }
.pop::after { content: " ⌄"; }
.toggle { display: block; width: 40px; height: 24px; border: 2px solid var(--ink); border-radius: 999px; background: #d8d0ea; position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-sizing: border-box; }
.toggle.on { background: var(--purple); }
.toggle.on::after { left: 18px; }

/* ---------- Download banner ---------- */
.get {
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 50% 0%, var(--purple-hi) 0 22%, transparent 22.2%),
    radial-gradient(rgba(255, 255, 255, .12) 1.6px, transparent 1.8px) 0 0 / 26px 26px,
    var(--purple);
  border-top: 4px solid var(--ink);
}
.get-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  max-width: 1040px; margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--ink);
  background: var(--cream);
  border: 4px solid var(--ink); border-radius: var(--wobble);
  box-shadow: 10px 11px 0 var(--ink);
}
.get-dog { width: clamp(120px, 17vw, 210px); height: auto; border: 4px solid var(--ink); border-radius: 30%; box-shadow: var(--shadow); transform: rotate(-5deg); }
.get .section-title { color: var(--purple); text-shadow: 3px 4px 0 var(--ink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.get-copy > p:not(.dl-note, .dl-hash) { margin-top: 1rem; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 600; color: #3b2566; }
.get .actions { margin-top: 1.5rem; }
.get .dl-note { color: #3b2566; }

.footer { padding: 1.4rem 1rem 2rem; background: var(--ink); color: var(--lav); text-align: center; font-weight: 700; font-size: .9rem; }
.footer p { display: inline-flex; align-items: center; gap: .5rem; }
.footer img { border-radius: 7px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .6rem; }
.footer-links a { text-decoration: none; padding: .3rem .1rem; }
.footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Motion ---------- */
.hero .brand-title, .hero .promise, .hero .lede, .hero .actions, .hero .dl-note { animation: settle .6s var(--ease-pop) both; }
.hero .promise { animation-delay: .08s; }
.hero .lede { animation-delay: .16s; }
.hero .actions { animation-delay: .22s; }
.hero .dl-note { animation-delay: .28s; }
.hero .mac { animation: settle .7s .12s var(--ease-pop) both; }
.stage-dog { animation: drop-in .8s .35s var(--ease-pop) both; }

.js .reveal { opacity: 0; transform: translateY(28px) rotate(-3deg); transition: opacity .5s ease, transform .6s var(--ease-pop), box-shadow .25s ease; }
.js .feature:nth-of-type(even) .reveal, .js .settings.reveal { transform: translateY(28px) rotate(3deg); }
.js .reveal.in { opacity: 1; transform: rotate(-1.2deg); }
.js .feature:nth-of-type(even) .reveal.in { transform: rotate(1.2deg); }
.js .settings.reveal.in { transform: rotate(1.5deg); }
.js .feature-art.reveal.in:hover { transform: rotate(0) translate(-3px, -3px); }
.js .get-banner.reveal { transform: translateY(28px); }
.js .get-banner.reveal.in { transform: none; }

@keyframes settle { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-60px) rotate(-14deg); } to { opacity: 1; transform: rotate(7deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.82); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 12px) scale(.92); } }
@keyframes desk-swap { from { opacity: 0; transform: translateX(var(--swap-from, 40px)); } }
@keyframes win-flash { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } }
@keyframes nudge { 50% { transform: translateY(-4px); box-shadow: 0 4px 0 var(--purple); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms; animation-delay: 0s; transition-duration: .001ms; }
  .js .reveal, .js .reveal.in { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 1.5rem; gap: 4.5rem; }
  .hero-copy { text-align: center; display: grid; justify-items: center; max-width: 640px; width: 100%; margin: 0 auto; }
  .lede { max-width: 38ch; }
  .actions { justify-content: center; }
  .stage { max-width: 680px; width: 100%; margin: 0 auto; }
  .controls { justify-content: center; }
  .caption { text-align: center; }
  .feature, .detail { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-art { order: 0; }
  .feature { max-width: 680px; }
  .feature-copy { display: grid; justify-items: start; }
  .detail-copy { justify-self: center; text-align: center; }
  .detail-copy p { margin-inline: auto; }
  .settings { justify-self: center; }
}
@media (max-width: 760px) {
  .get-banner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .get-dog { width: 120px; margin-top: -4.5rem; }
  .get-copy > p:not(.dl-note, .dl-hash) { margin-inline: auto; }
  .get .actions { justify-content: center; }
}
@media (max-width: 600px) {
  .hero { padding-inline: 1rem; }
  .nav { gap: .8rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 13rem; padding-inline: 1rem; font-size: 1.02rem; }
  .stage-dog { width: 76px; }
  .num { width: 2.6rem; height: 2.6rem; margin-bottom: .8rem; }
  .nav-links { display: none; }
  .status-pill { margin-left: auto; }
  .brand-title { -webkit-text-stroke-width: 1.5px; text-shadow: 3px 4px 0 var(--ink); }
  .mac { aspect-ratio: 4 / 4.2; }
  .stage-dog { top: -46px; right: -6px; }
  .win-bar .t { margin-right: 0; }
  .menubar-clock { display: none; }
  .dock { gap: 4px; padding: 5px 6px 3px; }
  .tile { width: 72px; padding: 6px 3px; }
  .tile .name { font-size: .68rem; }
  .settings-dog { right: -8px; }
  .feature-art, .settings { box-shadow: 5px 6px 0 var(--ink); }
  .get-banner { box-shadow: 6px 7px 0 var(--ink); }
}
@media (max-width: 380px) {
  .btn { width: 100%; }
  .tile { width: 62px; }
}

/* Keep semantic visibility after all component display and responsive rules. */
[hidden] { display: none !important; }
