/*
 * Page layouts for the multi-page site. The materials (stage, panel, row, tile, glass, buttons)
 * stay in site.css and mirror the app; this file only arranges them into pages.
 */

/* ---------- top bar: active link, log-in link, mobile menu ---------- */

.nav a.active {
  color: var(--foreground);
  background: color-mix(in oklab, var(--card) 85%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}
.topbar-right .login {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
}
.topbar-right .login:hover {
  color: var(--foreground);
}
.topbar-right .login.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--tile);
  color: var(--tile-foreground);
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  transition: box-shadow 0.2s, transform 0.2s;
}
.topbar-right .login.avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 30%, transparent);
}
.topbar-right .login.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#menu-toggle {
  display: none;
}
@media (max-width: 760px) {
  #menu-toggle {
    display: inline-flex;
  }
  .topbar-right .login:not(.avatar) {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in oklab, var(--card) 96%, transparent);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.6);
  }
  .nav.open a {
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* ---------- home hero: centred text in the stage, the screenshot hanging below ---------- */

.hero-center {
  text-align: center;
  padding-bottom: clamp(96px, 12vw, 150px);
}
.hero-center .lede,
.hero-center .hero-actions,
.hero-center .facts,
.hero-center .lcd {
  margin-inline: auto;
}
.hero-center .lede {
  max-width: 58ch;
}
.hero-center .hero-actions,
.hero-center .facts {
  justify-content: center;
}
.hero-center h1 {
  font-size: clamp(40px, 6vw, 72px);
}
.hero-center .lcd {
  max-width: 560px;
}
.hero-shot {
  width: min(1040px, 100%);
  margin: clamp(-70px, -9vw, -110px) auto 0;
  position: relative;
  z-index: 1;
}
.hero-shot .shot {
  border-radius: 22px;
}

/* ---------- section rhythm ---------- */

main.wrap:not(.narrow) > section {
  margin-top: clamp(64px, 9vw, 110px);
}
/* The first section sits right under the top bar. */
main.wrap:not(.narrow) > section.hero {
  margin-top: 24px;
}
/* Inner pages: the first section follows the page title closely. */
main.wrap:not(.narrow) > .page-head + section {
  margin-top: clamp(32px, 5vw, 56px);
}
.section-head.center {
  text-align: center;
}
.section-head.center p {
  margin-inline: auto;
}
.nav .only-mobile {
  display: none;
}
.nav.open .only-mobile {
  display: block;
}
.section-head .link,
.panel-head .link {
  color: var(--link);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
}
.panel-head .link {
  margin-top: 0;
  color: var(--link);
  font-weight: 700;
  font-size: 14px;
}
.section-head .link svg,
.panel-head .link svg {
  width: 16px;
  height: 16px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
}
.kicker svg {
  width: 14px;
  height: 14px;
}

/* ---------- how it works: the app's numbered step cards ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}
.step {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.step h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}
.step p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.step .kbd {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ---------- split sections: text on one side, a screenshot on the other ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.split.flip > .split-text {
  order: 2;
}
.split > * {
  min-width: 0;
}
@media (max-width: 900px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.flip > .split-text {
    order: 0;
  }
}
.split-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.split-text > p {
  margin-top: 12px;
  color: var(--muted-foreground);
  max-width: 48ch;
}
.split-text .rows {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.split-text .rows .row {
  padding: 12px 14px;
}
.split-text .rows .tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.split-text .rows .tile svg {
  width: 18px;
  height: 18px;
}
.split-text .btn {
  margin-top: 22px;
}
.split .shot {
  box-shadow:
    0 40px 80px -40px color-mix(in oklab, var(--primary) 40%, transparent),
    0 20px 40px -30px rgb(0 0 0 / 0.5);
}

/* ---------- feature grids ---------- */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 860px) {
  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.grid3 .row,
.grid2 .row,
.row.stack {
  align-items: flex-start;
}
.row.stack {
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

/* ---------- call-to-action band ---------- */

.cta {
  text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 52px);
}
.cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.cta p {
  margin: 12px auto 0;
  max-width: 54ch;
  color: var(--muted-foreground);
}
.cta .hero-actions {
  justify-content: center;
}
.cta .hero-note {
  margin-top: 14px;
}

/* ---------- inner pages ---------- */

.page-head {
  margin-top: clamp(36px, 6vw, 64px);
  max-width: 760px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-head .lede {
  margin-top: 14px;
  font-size: 17px;
  color: var(--muted-foreground);
  max-width: 60ch;
}
.page-head .hero-actions {
  margin-top: 22px;
}
.page-head + section {
  margin-top: clamp(32px, 5vw, 56px);
}

/* side-nav for long pages (features, help) */
.with-aside {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .with-aside {
    grid-template-columns: minmax(0, 1fr);
  }
  .with-aside aside {
    display: none;
  }
}
.with-aside aside {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 600;
}
.with-aside aside a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted-foreground);
}
.with-aside aside a:hover,
.with-aside aside a.active {
  color: var(--foreground);
  background: var(--muted);
}
.with-aside .group + .group {
  margin-top: 40px;
}
.with-aside .group .section-head {
  margin-bottom: 14px;
}
.with-aside .group .section-head h2 {
  font-size: 22px;
}
.with-aside .group .shot {
  margin-bottom: 14px;
}

/* ---------- pricing page ---------- */

.pricing.wide {
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pricing.wide.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) {
  .pricing.wide.three {
    grid-template-columns: minmax(0, 1fr);
  }
}
.price-amount.big {
  font-size: 48px;
}
.compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
.compare th,
.compare td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.compare th {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.compare td.yes {
  color: var(--link);
  font-weight: 800;
}
.compare tr:last-child td {
  border-bottom: 0;
}

/* ---------- download page ---------- */

.req {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 860px) {
  .req {
    grid-template-columns: minmax(0, 1fr);
  }
}
.req dl {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.req dt {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.req dd {
  margin: 6px 0 0;
  font-size: 14px;
}
.req dd + dt {
  margin-top: 14px;
}
.notice {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.notice a {
  color: var(--link);
  font-weight: 700;
}
.notice p + p {
  margin-top: 8px;
}

/* ---------- changelog ---------- */

.release {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.release:first-of-type {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 720px) {
  .release {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}
.release .when {
  position: sticky;
  top: 84px;
  align-self: start;
}
.release .ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.release .ver svg {
  width: 14px;
  height: 14px;
}
.release .ver.latest {
  border-color: var(--primary);
  color: var(--link);
}
.release .date {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.release h2 {
  font-size: 20px;
  font-weight: 800;
}
.release h3 {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.release ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.release li + li {
  margin-top: 6px;
}
.release li strong {
  color: var(--foreground);
  font-weight: 700;
}

/* ---------- help ---------- */

.help-cards .action {
  gap: 14px;
}
.help-cards .action h3 {
  font-size: 16px;
}
.contact-row .btn {
  margin-left: auto;
}
@media (max-width: 600px) {
  .contact-row {
    flex-wrap: wrap;
  }
  .contact-row .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* ---------- footer with columns ---------- */

footer.site-footer .wrap {
  display: block;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.footer-grid .brand {
  font-size: 15px;
}
.footer-grid .blurb {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13px;
}
.footer-grid h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--foreground);
}
.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 12.5px;
}

/* ---------- the mascot (same drawing and motion as the app) ---------- */

.brand img.mark {
  width: 34px;
  height: 36px;
  border-radius: 0;
  background: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.25));
  transition: transform 0.2s;
}
.brand:hover img.mark {
  transform: translateY(-2px);
}
.hero-mascot {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.mascot {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.3));
}
/* Small animated mascots beside section titles (assets/mascot-anim-<mood>.svg, made from the app). */
.section-mascot {
  display: block;
  width: 84px;
  height: 88px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 12px 16px rgb(0 0 0 / 0.28));
}
.section-head:not(.center) .section-mascot,
.section-mascot.left {
  margin-left: 0;
}
.auth-mascot {
  margin-bottom: 14px;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.3));
}
.notfound {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) 24px;
}
.notfound img {
  margin: 0 auto 20px;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.3));
}

/* ---------- /button: the bookmarklet page ---------- */
.bm-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 16px; border: 1px dashed var(--border); border-radius: 16px; background: color-mix(in oklab, var(--primary) 6%, transparent); text-align: center; }
.bm-button { font-size: 16px; padding: 14px 24px; cursor: grab; }
.bm-button:active { cursor: grabbing; }
.bm-hint { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.bm-hint.shake { animation: bm-shake 0.4s ease; }
@keyframes bm-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bm-tip { margin-top: 14px; font-size: 14px; color: var(--muted-foreground); }
.bm-tip strong { color: var(--foreground); }
.bm-tip kbd { display: inline-block; padding: 2px 7px; border: 1px solid var(--border); border-radius: 7px; background: var(--muted); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--foreground); }
.bm-steps { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.bm-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.bm-code code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--foreground); }
@media (prefers-reduced-motion: reduce) { .bm-hint.shake { animation: none; } }

/* ---------- premium top bar: a floating glass pill, centred links with a sliding highlight ---------- */

.topbar {
  top: 12px;
  height: auto;
  margin-top: 12px;
  border-bottom: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}
.topbar .wrap {
  position: relative;
  height: 60px;
  padding: 0 10px 0 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in oklab, var(--foreground) 10%, transparent);
  background: color-mix(in oklab, var(--card) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, var(--foreground) 7%, transparent),
    0 12px 32px -18px rgb(0 0 0 / 0.45);
  pointer-events: auto;
  transition:
    height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    background-color 0.3s;
}
/* a hairline of brand light along the top edge */
.topbar .wrap::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--primary) 70%, transparent), color-mix(in oklab, var(--spark, var(--primary)) 60%, transparent), transparent);
  pointer-events: none;
}
.topbar.scrolled .wrap {
  height: 52px;
  background: color-mix(in oklab, var(--card) 86%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in oklab, var(--foreground) 7%, transparent),
    0 18px 40px -16px rgb(0 0 0 / 0.55);
}
@media (min-width: 761px) {
  .topbar .nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    background: color-mix(in oklab, var(--muted) 70%, transparent);
  }
}
.nav {
  isolation: isolate;
}
.nav a {
  position: relative;
  z-index: 1;
  background: none !important;
  box-shadow: none !important;
}
.nav a.active {
  color: var(--foreground);
}
.nav .nav-pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 9px;
  background: var(--card);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.18),
    inset 0 -2px 0 var(--spark, var(--primary));
  opacity: 0;
  transition:
    left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s;
}
.nav.open .nav-pill {
  display: none;
}
.brand .mark {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover .mark {
  transform: rotate(-8deg) scale(1.08);
}
.topbar-right .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}
.topbar-right .login.avatar {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px color-mix(in oklab, var(--primary) 55%, transparent);
}
@media (max-width: 760px) {
  .topbar {
    top: 8px;
    margin-top: 8px;
  }
  .nav.open {
    top: 70px;
  }
}

/* Selected page: a yellow pill with deep purple text, as in the app's top bar. */
.nav .nav-pill {
  background: var(--spark, #ffc94d);
  box-shadow: 0 4px 14px -6px var(--spark, #ffc94d);
}
.nav a.on-pill,
.nav a.on-pill:hover {
  color: var(--brand-purple-800, #4e3590);
  font-weight: 700;
}

/* A swapped-in page fades up; the top bar stays put. */
main.page-in {
  animation: page-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- home hierarchy (three levels) ----------
   tier-1 chapters (the tool map, "a closer look", pricing): large heads, room around them.
   tier-2 stories (download, convert, compress, notch): closer together under their chapter.
   tier-3 details (how it works, small things, privacy, FAQ): small heads, compact. */
main.wrap:not(.narrow) > section.tier-1 {
  margin-top: clamp(96px, 12vw, 150px);
}
main.wrap:not(.narrow) > section.tier-2 {
  margin-top: clamp(48px, 6vw, 76px);
}
main.wrap:not(.narrow) > section.tier-3 {
  margin-top: clamp(64px, 8vw, 96px);
}
main.wrap:not(.narrow) > section.chapter + section.tier-2 {
  margin-top: 8px;
}
.tier-1 .section-head h2 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.tier-1 .section-head p {
  font-size: 17px;
}
.tier-3 .section-head {
  margin-bottom: 16px;
}
.tier-3 .section-head h2 {
  font-size: clamp(22px, 2.4vw, 27px);
}

/* The tool map: the app's Home, as a page section. */
.toolmap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.toolgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}
@media (max-width: 960px) {
  .toolgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Phones: two small cards a row (icon above the words), so twenty tools stay a short scroll. */
@media (max-width: 600px) {
  .toolgrid {
    gap: 6px;
    padding: 6px;
  }
  .toolgrid .tool {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  .toolgrid .tool .row-title {
    font-size: 14px;
  }
}
.tool {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.tool-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tool .row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 15px;
}
.tool .row-detail {
  font-size: 13px;
}
.tool .tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  background: color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--link);
}
.tool .note {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.tool:hover,
.tool:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -16px var(--primary);
  outline: none;
}
.tool:hover .row-detail,
.tool:hover .note,
.tool:focus-visible .row-detail,
.tool:focus-visible .note {
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
}
.tool:hover .tile,
.tool:focus-visible .tile {
  background: color-mix(in oklab, white 18%, transparent);
  color: var(--primary-foreground);
}
.tool:hover .tag,
.tool:focus-visible .tag {
  background: color-mix(in oklab, white 22%, transparent);
  color: var(--primary-foreground);
}

/* Small things: a compact list, not another grid of cards. */
.smalllist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 40px;
}
@media (max-width: 720px) {
  .smalllist {
    grid-template-columns: minmax(0, 1fr);
  }
}
.smalllist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted-foreground);
}
.smalllist strong {
  color: var(--foreground);
  font-weight: 800;
}
.tile.sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.tile.sm svg {
  width: 16px;
  height: 16px;
}

/* Privacy: one band with the sleeping mascot. */
.band {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--primary) 16%, var(--card)) 0%, var(--card) 60%);
}
.band-mascot {
  flex-shrink: 0;
  filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.3));
}
.band h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.band p {
  margin-top: 8px;
  color: var(--muted-foreground);
  max-width: 62ch;
}
.band-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 14.5px;
}
.band-points strong {
  font-weight: 800;
}
@media (max-width: 640px) {
  .band {
    flex-direction: column;
    align-items: flex-start;
  }
  .band-mascot {
    width: 84px;
    height: 88px;
  }
}

/* ---------- the hero's one entrance (first paint only) ----------
   The mascot drops in asleep (site.js wakes it), the headline rises word by word, the rest
   follows, the status display boots, the screenshot settles last. Uses translate/scale so it
   never fights the elements' own transforms. Off with reduced motion. */
.hero h1 .w {
  display: inline-block;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .hero-mascot {
    animation: hero-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .hero .eyebrow {
    animation: hero-in 0.5s ease-out 0.3s both;
  }
  .hero h1 .w {
    animation: hero-word 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero h1 .w:nth-child(1) {
    animation-delay: 0.4s;
  }
  .hero h1 .w:nth-child(2) {
    animation-delay: 0.55s;
  }
  .hero h1 .w:nth-child(3) {
    animation-delay: 0.7s;
  }
  .hero .lede {
    animation: hero-in 0.6s ease-out 0.9s both;
  }
  .hero .hero-actions,
  .hero .hero-note {
    animation: hero-in 0.6s ease-out 1s both;
  }
  .hero .facts {
    animation: hero-in 0.6s ease-out 1.1s both;
  }
  .hero .lcd {
    animation: lcd-boot 0.7s linear 1.2s both;
  }
  .hero .hero-shot {
    animation: hero-settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.25s both;
  }
}
@keyframes hero-drop {
  0% {
    opacity: 0;
    translate: 0 -70px;
    scale: 0.9 1.1;
  }
  55% {
    opacity: 1;
    translate: 0 6px;
    scale: 1.1 0.9;
  }
  75% {
    translate: 0 -6px;
    scale: 0.97 1.03;
  }
  100% {
    translate: none;
    scale: none;
  }
}
@keyframes hero-word {
  from {
    opacity: 0;
    translate: 0 0.45em;
    rotate: 4deg;
    filter: blur(6px);
  }
}
@keyframes hero-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
}
@keyframes lcd-boot {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  25% {
    opacity: 0.15;
  }
  45% {
    opacity: 1;
  }
  55% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
@keyframes hero-settle {
  from {
    opacity: 0;
    translate: 0 48px;
    scale: 0.97;
  }
}

/* ---------- features page: a head with a mascot, jump chips, major and minor groups ---------- */
.page-head.with-mascot {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  align-items: center;
}
.page-head.with-mascot > :not(.head-mascot) {
  grid-column: 1;
}
.head-mascot {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 170px;
  height: 178px;
  margin-right: clamp(0px, 4vw, 60px);
  filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.3));
}
@media (max-width: 720px) {
  .page-head.with-mascot {
    grid-template-columns: minmax(0, 1fr);
  }
  .head-mascot {
    grid-column: 1;
    grid-row: auto;
    width: 96px;
    height: 100px;
    margin-bottom: 8px;
  }
}
.page-head h1 .w {
  display: inline-block;
}

/* Jump chips: where the side list is hidden (tablets and phones). */
.jump {
  display: none;
}
main.wrap:not(.narrow) > .jump + section {
  margin-top: clamp(32px, 5vw, 56px);
}
@media (max-width: 900px) {
  .jump {
    display: flex;
    gap: 8px;
    margin-top: 22px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .jump::-webkit-scrollbar {
    display: none;
  }
  .jump a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    font-weight: 700;
  }
  .jump svg {
    width: 14px;
    height: 14px;
    color: var(--link);
  }
}

/* The five tool groups carry the page; the three around them are quieter. */
.with-aside .group.major + .group.major {
  margin-top: clamp(56px, 7vw, 88px);
}
.with-aside .group.major .section-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
}
.group-chapter {
  margin: clamp(64px, 8vw, 104px) 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 15px;
  font-weight: 800;
  color: var(--muted-foreground);
}
.with-aside .group-chapter + .group.minor {
  margin-top: 14px;
}
.with-aside .group.minor .section-head h2 {
  font-size: 20px;
}
.with-aside .group.minor .section-head p {
  font-size: 14px;
}
.with-aside .group.minor .shot {
  max-width: 640px;
}

/* Inner page heads with .enter: the same entrance as the home hero, shorter. */
@media (prefers-reduced-motion: no-preference) {
  .page-head.enter .head-mascot {
    animation: hero-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
  }
  .page-head.enter h1 .w {
    animation: hero-word 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .page-head.enter h1 .w:nth-child(1) {
    animation-delay: 0.15s;
  }
  .page-head.enter h1 .w:nth-child(2) {
    animation-delay: 0.25s;
  }
  .page-head.enter h1 .w:nth-child(3) {
    animation-delay: 0.35s;
  }
  .page-head.enter h1 .w:nth-child(4) {
    animation-delay: 0.45s;
  }
  .page-head.enter .lede {
    animation: hero-in 0.6s ease-out 0.6s both;
  }
  .page-head.enter .hero-actions {
    animation: hero-in 0.6s ease-out 0.7s both;
  }
}
/* The side list is for wide screens; the jump chips take over below 900px. (The base
   .with-aside aside rule sits after the older media query, so this one has to come last.) */
@media (max-width: 900px) {
  .with-aside > aside {
    display: none;
  }
}

/* ---------- features page, second pass: one card head, a sticky chip bar, two-column groups ---------- */
.page-head.stage-head {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--primary) 20%, var(--card)) 0%, var(--card) 55%, var(--background) 100%);
}
.page-head.stage-head .head-mascot {
  margin-right: clamp(0px, 3vw, 48px);
}

/* The chip bar: the page's navigation on every width, stuck under the top bar. */
.jump[data-spy] {
  position: sticky;
  top: 80px;
  z-index: 15;
  display: flex;
  gap: 6px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in oklab, var(--background) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  overflow-x: auto;
  scrollbar-width: none;
}
.jump[data-spy]::-webkit-scrollbar {
  display: none;
}
.jump[data-spy] a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.jump[data-spy] a:hover {
  color: var(--foreground);
  background: var(--muted);
}
.jump[data-spy] a.active {
  background: var(--primary);
  color: var(--primary-foreground);
}
.jump[data-spy] svg {
  width: 14px;
  height: 14px;
  color: var(--link);
}
.jump[data-spy] a.active svg {
  color: inherit;
}
.fgroup {
  scroll-margin-top: 150px;
}

/* A tool group: the words and the feature list on one side, a large screenshot that stays in
   view on the other; sides alternate. */
.fgroup.major + .fgroup.major {
  margin-top: clamp(80px, 10vw, 130px);
}
.fsplit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.fsplit.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.fsplit.flip > .ftext {
  order: 2;
}
.fshot {
  position: sticky;
  top: 160px;
}
.ftext h2,
.fhead h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.fdesc {
  margin-top: 10px;
  font-size: 16px;
  color: var(--muted-foreground);
  max-width: 54ch;
}
.flist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.flist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.flist strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--foreground);
}
.flist.cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
}
@media (max-width: 900px) {
  .fsplit,
  .fsplit.flip {
    grid-template-columns: minmax(0, 1fr);
  }
  .fsplit.flip > .ftext {
    order: 0;
  }
  .fshot {
    position: static;
  }
  .flist.cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .flist.cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The three around the tools: quieter. */
.group-chapter + .fgroup.minor,
.group-chapter + .fgroup.major {
  margin-top: 14px;
}
/* The first chapter label sits right under the jump bar. */
.group-chapter.first {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.fgroup.minor + .fgroup.minor {
  margin-top: clamp(56px, 7vw, 80px);
}
.fgroup.minor h2 {
  font-size: clamp(22px, 2.4vw, 26px);
}
.fgroup.minor .fsplit {
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
}
@media (max-width: 900px) {
  .fgroup.minor .fsplit {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fshot .shot {
  margin: 0;
}
/* Phones and tablets: heading, then the screenshot, then the list (not the list first). */
@media (max-width: 900px) {
  .fsplit > .ftext {
    display: contents;
  }
  .fsplit .kicker {
    order: 1;
  }
  .fsplit .ftext h2 {
    order: 2;
  }
  .fsplit .fdesc {
    order: 3;
  }
  .fsplit .fshot {
    order: 4;
    margin-top: 18px;
  }
  .fsplit .flist {
    order: 5;
  }
  .fsplit {
    gap: 0;
  }
}
/* A hairline dashed rule between groups (the site's panel dash), the space split around it. */
.fgroup.major + .fgroup.major,
.fgroup.minor + .fgroup.minor {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px dashed var(--border);
}

/* Inner pages (pricing, download, help, changelog): the card head's fifth word, dashed rules
   between big sections, and between the help page's question groups. */
@media (prefers-reduced-motion: no-preference) {
  .page-head.enter h1 .w:nth-child(5) {
    animation-delay: 0.55s;
  }
}
main.wrap:not(.narrow) > section.ruled {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px dashed var(--border);
}
.with-aside .group + .group {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px dashed var(--border);
}

/* ---------- help: first open on a Mac (two-column steps, a drawn Privacy & Security row, a command box) ---------- */
.steps.steps-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .steps.steps-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.mock-settings {
  margin: 14px 0 0;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: color-mix(in oklab, var(--primary) 6%, transparent);
}
.mock-window {
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45);
  overflow: hidden;
  font-size: 13px;
}
.mock-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  font-weight: 700;
}
.mock-dots {
  position: absolute;
  left: 14px;
  display: flex;
  gap: 6px;
}
.mock-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--muted-foreground) 35%, transparent);
}
.mock-body {
  padding: 14px 16px 16px;
}
.mock-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}
.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
}
.mock-row.dim {
  color: var(--muted-foreground);
}
.mock-select {
  font-size: 12px;
  white-space: nowrap;
}
.mock-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 30%, transparent);
}
.mock-settings figcaption {
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
  text-align: center;
}
@media (max-width: 520px) {
  .mock-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
.cmd {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--background);
}
.cmd code {
  overflow-wrap: anywhere;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--foreground);
  user-select: all;
}

/* Features: each section shows its first four points; the rest open under "N more". */
.fmore {
  margin-top: 14px;
}
.fmore > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--link);
  cursor: pointer;
  list-style: none;
}
.fmore > summary::-webkit-details-marker {
  display: none;
}
.fmore > summary::after {
  content: "+";
  font-weight: 800;
}
.fmore[open] > summary::after {
  content: "−";
}
.fmore[open] > summary span {
  font-size: 0;
}
.fmore[open] > summary span::before {
  content: "Show less";
  font-size: 13.5px;
}
.fmore > .flist {
  margin-top: 16px;
}
