:root {
  --bg: #06070a;
  --bg-2: #0a0c12;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --surface-solid: #14161e;
  --border: rgba(232, 236, 248, 0.09);
  --border-strong: rgba(232, 236, 248, 0.18);
  --hairline: rgba(255, 255, 255, 0.07);
  --text: #f2f3f8;
  --muted: #9aa3b8;
  --faint: #6d758c;
  --accent: #0a84ff;
  --accent-2: #64b4ff;
  --accent-dim: rgba(10, 132, 255, 0.16);
  --glow: rgba(10, 132, 255, 0.3);
  --on-accent: #ffffff;
  --danger: #ff453a;
  --ok: #32d74b;
  --warn: #f5c16c;
  --dot-red: #ff5f57;
  --dot-yellow: #febc2e;
  --dot-green: #28c840;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-control: 11px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 30px 90px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 82% -8%, rgba(10, 132, 255, 0.2), transparent 60%),
    radial-gradient(760px 420px at -6% 14%, rgba(100, 90, 255, 0.09), transparent 55%),
    radial-gradient(900px 500px at 60% 115%, rgba(10, 132, 255, 0.08), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.16);
  background-clip: padding-box;
  border: 3px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.26);
  background-clip: padding-box;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

p {
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  letter-spacing: -0.035em;
  font-weight: 650;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hero h1,
.page-head h1 {
  background: linear-gradient(180deg, #ffffff 25%, #cbdaf7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wrap,
.wrap-wide {
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

.wrap {
  max-width: 1120px;
}

.wrap-wide {
  max-width: 1220px;
}

.skip {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  z-index: 90;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  clip: auto;
  clip-path: none;
  overflow: visible;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  -webkit-backdrop-filter: blur(26px) saturate(1.6);
  backdrop-filter: blur(26px) saturate(1.6);
  background: rgba(8, 9, 14, 0.66);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
  width: 52px;
  height: 36px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(10, 132, 255, 0.35));
}

.brand .x {
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

#site-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  transition: background 0.15s ease, color 0.15s ease;
}

#site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

#site-nav a.is-active {
  color: var(--text);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 3px rgba(0, 0, 0, 0.3);
}

#site-nav a.cta {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  font-weight: 600;
  padding: 8px 15px;
  margin-left: 6px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px rgba(10, 132, 255, 0.35);
}

#site-nav a.cta:hover,
#site-nav a.cta.is-active {
  color: var(--on-accent);
  filter: brightness(1.08);
}

/* The nav's nine links need about 1,120px in one row: tighter below
   1240px, and the Go to menu (as on phones) below 1000px — never a label
   wrapping onto two lines. */
@media (max-width: 1240px) {
  .site-header .wrap {
    gap: 12px;
  }

  #site-nav a {
    padding: 7px 9px;
    font-size: 0.88rem;
  }

  #site-nav a.cta {
    padding: 8px 12px;
    margin-left: 4px;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }

  #site-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    background: var(--surface-solid);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  #site-nav.is-open {
    display: flex;
  }

  #site-nav a {
    padding: 12px 13px;
  }

  #site-nav a.cta {
    margin: 8px 0 0;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }
}







/* Hero / page heads */

.hero,
.page-head {
  padding: 72px 0 28px;
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 10px 0 0 var(--dot-yellow), 20px 0 0 var(--dot-green);
  margin-right: 20px;
}

.hero p.lede,
.page-head p.lede {
  font-size: 1.18rem;
  max-width: 42rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 26px rgba(10, 132, 255, 0.38);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 14px 32px rgba(10, 132, 255, 0.46);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  color: var(--faint);
  font-size: 0.88rem;
  margin-top: 18px;
}

/* Screenshots / lightbox triggers */

.shot {
  margin: 0;
  position: relative;
}

.shot a {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--border);
  background: #000;
  text-decoration: none;
  cursor: zoom-in;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.shot a:hover {
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-strong);
}

.shot img {
  width: 100%;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.shot a:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

.shot-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(6, 8, 14, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot a:hover .shot-hint,
.shot a:focus-visible .shot-hint {
  opacity: 1;
  transform: none;
}

.shot figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 0.9rem;
}

.hero-shot {
  margin: 48px auto 8px;
  position: relative;
  z-index: 2;
}

.hero-shot .shot,
.hero-shot .shot a {
  display: block;
  width: 100%;
}

.hero-shot .shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-shot .shot a {
  border-radius: 22px;
}

/* Grids */

.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 48px 0;
}

.card {
  position: relative;
  padding: 46px 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 38px, var(--hairline) 39px, var(--hairline) 40px, transparent 40px),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 16px 0 0 var(--dot-yellow), 32px 0 0 var(--dot-green);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

section {
  padding: 28px 0 56px;
  position: relative;
  z-index: 2;
}

.section-label {
  color: var(--faint);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
  padding: 36px 0 64px;
}

.split.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.split.reverse .copy {
  order: 2;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Feature catalog */

.catalog {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}

.catalog article {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.catalog article:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2) 0%, rgba(255, 255, 255, 0.02) 100%), var(--surface-solid);
}

.catalog h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.feat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.feat-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.feat-icon:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 18px rgba(10, 132, 255, 0.4);
}

.feat-icon:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.catalog p {
  margin: 0;
  font-size: 0.92rem;
}

#help-finder,
#help-terminal,
#help-embedded-terminal,
#help-favourites-toggle,
#help-favourites,
#help-edit,
#help-delete,
#help-pane-header {
  scroll-margin-top: 88px;
}

#catalog,
#panes,
#git,
#favourites,
#remote,
#ftp-log,
#finder-terminal,
#terminal-follows,
#compare,
#bulk,
#files,
#find,
#preview,
#help,
#also-included,
#devtools,
#about {
  scroll-margin-top: 88px;
}

/* /Features: land below the header, promo strip and Jump to bar. */
#actionbar,
.features-page > section > div[id] {
  scroll-margin-top: calc(var(--sticky-offset) + 70px) !important;
}

.gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 22px;
}

.gallery .shot:last-child {
  display: grid;
  gap: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.tools-grid .shot img {
  background: #1c1c22;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

kbd,
.key {
  font-family: var(--mono);
  font-size: 0.78em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}

/* Download / steps */

.dl-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 44px, var(--hairline) 45px, var(--hairline) 46px, transparent 46px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px 32px 32px;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
  margin: 28px 0 56px;
}

.dl-panel::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green);
}

.dl-panel h2 {
  margin-bottom: 8px;
}

.req-list,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.req-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.req-list li:last-child {
  border-bottom: 0;
}

.req-list strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.req-list p {
  margin: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.steps li:last-child {
  border-bottom: 0;
}

.dl-panel .shot a,
.contact-card .shot a,
.logo-shot a {
  background: #f4f5f7;
  box-shadow: none;
  padding: 28px;
}

.dl-panel .shot img,
.contact-card .shot img,
.logo-shot img {
  max-height: 260px;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.step-n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.85rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 18px 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.callout strong {
  color: var(--text);
}

.warn {
  border-left-color: var(--warn);
}

/* Releases */

.timeline {
  border-left: 1px solid var(--border-strong);
  margin: 12px 0 0 12px;
  padding-left: 28px;
}

.release {
  position: relative;
  padding-bottom: 48px;
}

.release::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  margin-bottom: 8px;
}

.release-head time {
  color: var(--faint);
  font-size: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--accent-2);
}

/* Marks a Pro-only feature wherever the Free and Pro editions are shown
   side by side — a distinct purple so it never reads as the same thing
   as the blue "Latest" tag on Releases. */
.badge-pro {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(191, 90, 242, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #bf5af2;
  vertical-align: middle;
}

.catalog h3 .badge-pro,
.acc-list .badge-pro {
  margin-left: 8px;
}

/* Tier pills (see TagHelpers/EditionBadgeTagHelper.cs): FREE (teal), MAXFOLDERS (green) and PRO
   (purple) — one for each tier that has the feature. The green and teal stay clear of the blue
   "Latest" tag and the orange Git chip. */
.ed-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  vertical-align: middle;
}

.badge-free,
.badge-store {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.badge-free {
  background: rgba(48, 213, 200, 0.16);
  color: #30d5c8;
}

.badge-store {
  background: rgba(50, 215, 75, 0.14);
  color: #32d74b;
}

/* A Free pill with a note is "partly": starred, the note in its tooltip. */
.badge-free.is-reduced::after {
  content: "*";
  margin-left: 2px;
}

.ed-badges .badge-pro {
  margin-left: 0;
}

.acc-list .ed-badges {
  margin-left: 8px;
}

/* Catalog cards: edition pills on their own row above, title and AI chip together below. */
.catalog h3 {
  flex-wrap: wrap;
  row-gap: 6px;
}

.catalog h3 .ed-badges {
  order: -1;
  flex: 0 0 100%;
  margin-left: 0;
}

.catalog h3 .ai-chip {
  margin-left: 0;
}

.catalog h3 .ed-badges .badge-free,
.catalog h3 .ed-badges .badge-store,
.catalog h3 .ed-badges .badge-pro,
.acc-list .ed-badges .badge-free,
.acc-list .ed-badges .badge-store,
.acc-list .ed-badges .badge-pro {
  padding: 1px 6px;
  font-size: 0.52rem;
  letter-spacing: 0.02em;
}

.ab-item .ed-badges {
  position: absolute;
  top: 5px;
  right: 5px;
}

.ab-item .ed-badges .badge-free,
.ab-item .ed-badges .badge-store,
.ab-item .ed-badges .badge-pro {
  padding: 1px 6px;
  font-size: 0.58rem;
}

.jump-list a .ed-badges {
  margin-left: 6px;
}

/* "Coming soon" stand-in for the App Store button: not a link, so it looks inert. */
.btn-appstore.is-soon {
  opacity: 0.6;
  cursor: default;
  border-style: dashed;
}

.ct-part {
  color: var(--warn);
  font-weight: 700;
  font-size: 1rem;
  cursor: help;
}


/* A toolbar tile on /Features keeps its size: the badge sits in the corner. */
.ab-item {
  position: relative;
}

.ab-item .badge-pro {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 1px 6px;
  font-size: 0.58rem;
}

.pricing-grid {
  align-items: start;
}

.pricing-grid .price {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 4px 0 14px;
}

.release ul {
  color: var(--muted);
  padding-left: 1.1em;
}

.release li {
  margin: 6px 0;
}

/* Contact */

.contact-card {
  position: relative;
  max-width: 560px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 44px, var(--hairline) 45px, var(--hairline) 46px, transparent 46px),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 36px 36px;
  box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--dot-red);
  box-shadow: 18px 0 0 var(--dot-yellow), 36px 0 0 var(--dot-green);
}

.contact-card dl {
  margin: 22px 0 0;
}

.contact-card dt {
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 18px;
}

.contact-card dd {
  margin: 4px 0 0;
}

.contact-card a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

.contact-card a:hover {
  color: var(--accent-2);
}

.contact-card .shot-logo {
  width: 140px;
}

.contact-card .shot-logo a {
  padding: 14px;
}

.contact-card .shot-logo img {
  max-height: 90px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.card-head h3 {
  margin: 0;
}

.card-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-2);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 0.88rem;
  position: relative;
  z-index: 2;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.band {
  margin: 12px 0 64px;
  padding: 36px;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 90% 0%, var(--glow), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%),
    var(--surface-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.band p {
  margin: 8px 0 0;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 4, 8, 0.86);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1400px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #d5d9e6;
  margin: 0;
  font-size: 0.92rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(16, 18, 28, 0.8);
  color: #fff;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 15px;
  height: 15px;
  padding: 0;
  border-radius: 50%;
  background: var(--dot-red);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.15s ease;
}

.lightbox-close::before {
  content: "\2715";
  font-size: 9px;
  line-height: 1;
  color: rgba(76, 0, 2, 0.7);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.lightbox-close:hover {
  filter: brightness(1.08);
}

.lightbox-close:hover::before {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: var(--on-accent);
}

body.lb-open {
  overflow: hidden;
}

/* Utilities */

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.fine {
  font-size: 0.88rem;
  color: var(--faint);
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0 40px;
}

@media (max-width: 960px) {
  .grid-3,
  .cards,
  .catalog,
  .grid-2,
  .split,
  .split.reverse,
  .dl-panel,
  .gallery {
    grid-template-columns: 1fr;
  }

  .split.reverse .copy {
    order: 0;
  }
}

@media (max-width: 760px) {
  .hero,
  .page-head {
    padding-top: 40px;
  }

  .dl-panel,
  .band,
  .contact-card {
    padding: 22px;
    padding-top: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .shot img,
  .shot-hint,
  .card,
  .catalog article {
    transition: none;
  }
}

/* Home feature accordion */

.accordion {
  display: grid;
  gap: 12px;
  margin: 28px 0 8px;
}

.acc-item {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.acc-item:hover,
.acc-item[open] {
  border-color: var(--border-strong);
}

.acc-item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

.acc-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.acc-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.acc-title {
  flex: 1;
}

.acc-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

.acc-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 2px;
}

.acc-item[open] .acc-chevron {
  transform: rotate(-135deg);
}

.acc-list {
  list-style: none;
  margin: 0;
  padding: 0 20px 18px 70px;
  display: grid;
  gap: 2px;
}

.acc-list a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--border);
}

.acc-list li:last-child a {
  border-bottom: none;
}

.acc-list a:hover {
  color: var(--text);
}

@media (max-width: 600px) {
  .acc-list {
    padding-left: 20px;
  }
}

/* Docs */

.docs-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}

.sym {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: -3px;
}

.sym-lg {
  width: 22px;
  height: 22px;
}

.sym-gold {
  filter: sepia(1) saturate(8) hue-rotate(8deg) brightness(1.15);
}

h2.help-h,
h3.help-h,
h4.help-h {
  display: flex;
  align-items: center;
  gap: 10px;
}

h4.help-sub {
  font-size: 1rem;
  color: var(--muted);
  margin: 28px 0 8px;
  scroll-margin-top: 88px;
}

.help-block {
  scroll-margin-top: 88px;
}

.help-block {
  margin-bottom: 44px;
}

.help-block p,
.help-block li {
  max-width: 46rem;
}

.help-block ul {
  color: var(--muted);
  padding-left: 1.15em;
}

.help-block li {
  margin: 6px 0;
}

.tb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
  align-items: stretch;
}

.tb-group {
  display: inline-flex;
  align-items: stretch;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tb-group .tb-item {
  border: none;
  background: transparent;
  border-radius: 0;
  min-width: 56px;
  padding: 8px 8px 6px;
}

.tb-group .tb-item + .tb-item {
  border-left: 1px solid var(--border);
}

.tb-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 64px;
  max-width: 76px;
  padding: 10px 6px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.68rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.tb-sep {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 48px;
  margin: 4px 10px;
  background: var(--border);
}

.tb-item img {
  width: 22px;
  height: 22px;
}

.shortcut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0 0 36px;
}

.shortcut-table th {
  text-align: left;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 10px 10px 0;
  border-bottom: 1px solid var(--border-strong);
}

.shortcut-table td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.shortcut-table td:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.shortcut-table .keys {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.note {
  font-size: 0.92rem;
  color: var(--faint);
}

/* macOS-style fancy bulleted list */

.mac-list {
  list-style: none;
  margin: 16px 0 10px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mac-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  scroll-margin-top: 88px;
}

.mac-list li + li {
  border-top: 1px solid var(--border);
}

.mac-list li::before {
  content: "";
  position: absolute;
  left: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.mac-list li.has-icon {
  padding-left: 10px;
}

.mac-list li.has-icon::before {
  content: none;
}

.mac-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.mac-list li:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.dl-form-wrap {
  margin: 1em 0;
}

.dl-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dl-email {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
}

.dl-email::placeholder {
  color: var(--faint);
}

.dl-email:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.dl-error {
  color: var(--danger);
}

/* Action bar tour (Features page) */

.actionbar-tour {
  padding: 28px 0 8px;
}

.actionbar-tour .lede {
  max-width: 42rem;
  color: var(--muted);
}

.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin: 24px 0;
}

.ab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ab-item img {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.ab-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  color: var(--text);
}

.ab-item:hover img {
  opacity: 1;
}

.ab-item.is-focused {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--shadow);
}

.ab-item.is-focused img {
  opacity: 1;
}

.ab-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.02) 42px, var(--hairline) 43px, var(--hairline) 44px, transparent 44px),
    var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.28s ease;
}

.ab-panel.is-open {
  max-height: 480px;
  opacity: 1;
  pointer-events: auto;
  margin: 4px 0 32px;
}

.ab-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.ab-panel-close {
  width: 13px;
  height: 13px;
  padding: 0;
  border-radius: 50%;
  background: var(--dot-red);
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}

.ab-panel-close::before {
  content: "\2715";
  font-size: 8px;
  line-height: 1;
  color: rgba(76, 0, 2, 0.7);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ab-panel-close:hover {
  filter: brightness(1.08);
}

.ab-panel-close:hover::before {
  opacity: 1;
}

.ab-panel-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ab-panel-dot-y {
  background: var(--dot-yellow);
}

.ab-panel-dot-g {
  background: var(--dot-green);
}

.ab-panel-icon {
  width: 18px;
  height: 18px;
  margin-left: 10px;
}

.ab-panel-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.ab-panel-desc {
  margin: 0;
  padding: 18px 20px 22px;
  color: var(--muted);
  max-width: 46rem;
}

/* Compare page: macOS-window-style collapsible comparison tables */

.mac-window-stack {
  display: grid;
  gap: 18px;
  margin: 28px 0 8px;
}

.mac-window {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.015) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mac-window[open] {
  border-color: var(--border-strong);
}

.mac-window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.mac-window[open] .mac-window-bar {
  border-bottom: 1px solid var(--border);
}

.mac-window-bar::-webkit-details-marker {
  display: none;
}

.mac-window-bar:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -2px;
}

.mac-window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mac-window-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 0;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

span.mac-window-dot {
  cursor: default;
}

button.mac-window-dot {
  cursor: pointer;
  transition: filter 0.15s ease;
}

button.mac-window-dot:hover {
  filter: brightness(1.15);
}

.mac-window-dot-red {
  background: var(--dot-red);
}

.mac-window-dot-yellow {
  background: var(--dot-yellow);
}

.mac-window-dot-green {
  background: var(--dot-green);
}

.mac-window-title {
  flex: 1;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
  font-size: 0.98rem;
}

.mac-window-hint {
  color: var(--faint);
  font-size: 0.78rem;
  flex-shrink: 0;
  display: none;
}

@media (min-width: 620px) {
  .mac-window-hint {
    display: inline;
  }
}

.mac-window-chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 2px;
}

.mac-window[open] .mac-window-chevron {
  transform: rotate(-135deg);
}

.mac-window-body {
  padding: 6px 18px 22px;
}

.table-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table thead th {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
}

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.ct-yes,
.ct-no {
  font-size: 1rem;
}

.ct-yes {
  color: var(--ok);
  font-weight: 700;
}

.ct-no {
  color: var(--faint);
}

.compare-table.ct-detailed td {
  text-align: left;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 620px) {
  .mac-window-body {
    padding: 6px 14px 18px;
  }
}

/* Mac App Store badge (Pages/Shared/_AppStoreBadge.cshtml) */

.btn-appstore {
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: #000;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.btn-appstore:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.appstore-logo {
  width: 22px;
  height: 26px;
  flex: none;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: left;
}

.appstore-text small {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------------------------------------------------------------------------
   /Features: full-width showcase layout and the Mac-style "Jump to" pop-up
   (the pop-up is shared with /Docs).
   --------------------------------------------------------------------------- */

:root {
  --header-h: 69px;
  --promo-h: 44px;
  --sticky-offset: calc(var(--header-h) + var(--promo-h));
}

/* On a phone the promo strip wraps to several lines: the Jump to bar sticks
   right under the header instead, over the strip once you scroll. */
@media (max-width: 760px) {
  :root {
    --sticky-offset: var(--header-h);
  }
}

.jump-bar {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 30;
  padding: 10px 0;
  margin-bottom: 8px;
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  background: rgba(8, 9, 14, 0.62);
  border-bottom: 1px solid var(--border);
}

.jump-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jump-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.jump-menu {
  position: relative;
}

/* An NSPopUpButton: rounded, a hint of gradient, stacked chevrons on the right. */
.mac-popup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 250px;
  padding: 6px 8px 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 1px 3px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
}

.mac-popup:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
}

.mac-popup:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 1px;
}

.mac-popup .jump-current {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-popup-chevrons {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.mac-popup-chevrons::before {
  content: "";
  width: 8px;
  height: 11px;
  background:
    linear-gradient(135deg, transparent 50%, #fff 50%) left 0 top 0 / 4px 4px no-repeat,
    linear-gradient(225deg, transparent 50%, #fff 50%) right 0 top 0 / 4px 4px no-repeat,
    linear-gradient(45deg, transparent 50%, #fff 50%) left 0 bottom 0 / 4px 4px no-repeat,
    linear-gradient(315deg, transparent 50%, #fff 50%) right 0 bottom 0 / 4px 4px no-repeat;
}

.jump-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(1000px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  /* Opaque, and no backdrop-filter of its own: inside the bar's blurred backdrop,
     Safari drew a translucent list with the page text showing through it. */
  background: #181a22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(0, 0, 0, 0.8);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px 14px;
  animation: jump-in 0.14s ease-out;
}

.jump-list[hidden] {
  display: none;
}

@keyframes jump-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.jump-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.jump-group > p {
  margin: 2px 8px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.jump-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
}

.jump-list a .badge-pro {
  margin-left: auto;
  padding: 1px 7px;
  font-size: 0.62rem;
}

.jump-list a:hover,
.jump-list a:focus-visible,
.jump-list a.is-active {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.jump-list a:hover .sym,
.jump-list a:focus-visible .sym,
.jump-list a.is-active .sym {
  filter: brightness(0) invert(1);
}

.jump-list a.is-current::after {
  content: "✓";
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--accent-2);
}

.jump-list a.is-current:hover::after,
.jump-list a.is-current.is-active::after {
  color: #fff;
}

.jump-list a.is-current .badge-pro {
  margin-left: 6px;
}

.jump-steps {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.jump-step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.jump-step:hover {
  color: var(--text);
  background: var(--surface-2);
}

.features-page {
  padding-bottom: 48px;
}

/* Showcase: heading across the full width, then the screenshot and its
   points side by side — the screenshot sticks while the points scroll, so
   a long list never leaves it stranded at the top of an empty column. */
.features-page .split,
.features-page .showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-auto-flow: row dense;
  gap: 0 44px;
  align-items: start;
  padding: 44px 0 56px;
}

.features-page .split.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

.features-page .split .copy {
  display: contents;
}

.features-page .split > *,
.features-page .split .copy > *,
.features-page .showcase > * {
  grid-column: 1 / -1;
}

.features-page .split > .shot,
.features-page .showcase > .shot {
  grid-column: 1;
  position: sticky;
  top: calc(var(--sticky-offset) + 72px);
  margin-top: 18px;
}

.features-page .split .copy > .feature-list,
.features-page .showcase > .feature-list {
  grid-column: 2;
}

.features-page .split.reverse > .shot {
  grid-column: 2;
}

.features-page .split.reverse .copy > .feature-list {
  grid-column: 1;
}

.features-page .split h2,
.features-page .showcase h2 {
  max-width: 34ch;
}

.features-page .split .lede,
.features-page .showcase .lede {
  max-width: 70ch;
}

/* The points read as a tidy stack of small cards instead of a long wall. */
.features-page .split .feature-list,
.features-page .showcase .feature-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.features-page .split .feature-list li,
.features-page .showcase .feature-list li {
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.5;
}

.features-page .split .feature-list li::before,
.features-page .showcase .feature-list li::before {
  left: 14px;
  top: 1.25em;
}

.features-page .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

/* "New in 1.6.x" above a section, on /Features and the home page. */
.feature-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.22), rgba(191, 90, 242, 0.22));
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-new + .badge-pro {
  margin-left: 8px;
}

@media (max-width: 960px) {
  .jump-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-page .split,
  .features-page .split.reverse,
  .features-page .showcase,
  .features-page .duo {
    grid-template-columns: 1fr;
  }

  .features-page .split > .shot,
  .features-page .showcase > .shot,
  .features-page .split.reverse > .shot,
  .features-page .split .copy > .feature-list,
  .features-page .split.reverse .copy > .feature-list,
  .features-page .showcase > .feature-list {
    grid-column: 1;
    position: static;
  }
}

@media (max-width: 620px) {
  .jump-label,
  .jump-steps {
    display: none;
  }

  .mac-popup {
    min-width: 0;
    width: 100%;
  }

  .jump-menu {
    flex: 1;
  }

  /* Anchored to the full-width bar (a fixed menu would be, too: the bar's
     backdrop blur makes it the containing block). */
  .jump-menu {
    position: static;
  }

  .jump-list {
    left: 16px;
    right: 16px;
    top: calc(100% + 4px);
    width: auto;
    grid-template-columns: 1fr;
  }


}

/* A split whose copy is plain paragraphs: the text sits beside the shot. */
.features-page .split:not(:has(.feature-list)) .copy > p:not(.section-label):not(.max-slogan) {
  grid-column: 2;
  margin: 18px 0 0;
  color: var(--muted);
}

.features-page .split.reverse:not(:has(.feature-list)) .copy > p:not(.section-label):not(.max-slogan) {
  grid-column: 1;
}

.features-page .split:not(:has(.feature-list)) > .shot {
  grid-row: span 4;
}

/* Sections with several screenshots (or none): the points as a two-column
   grid of tiles above them. */
.features-page section > div[id]:not(.split):not(.showcase):not(#catalog):not(#also-included) > .feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 20px;
}

.features-page section > div[id]:not(.split):not(.showcase):not(#catalog):not(#also-included) > .feature-list li {
  padding: 12px 14px 12px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.95rem;
  line-height: 1.5;
}

.features-page section > div[id]:not(.split):not(.showcase):not(#catalog):not(#also-included) > .feature-list li::before {
  left: 14px;
  top: 1.25em;
}

.features-page > section {
  border-top: 1px solid var(--hairline);
}

.features-page > section:first-child {
  border-top: 0;
}

.features-page > section > div[id]:not(.split) {
  padding: 44px 0 20px;
}

@media (max-width: 960px) {
  .features-page .split:not(:has(.feature-list)) .copy > p:not(.section-label):not(.max-slogan),
  .features-page .split.reverse:not(:has(.feature-list)) .copy > p:not(.section-label):not(.max-slogan) {
    grid-column: 1;
  }

  .features-page .split:not(:has(.feature-list)) > .shot {
    grid-row: auto;
  }

  .features-page section > div[id]:not(.split):not(.showcase):not(#catalog):not(#also-included) > .feature-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .jump-bar {
    z-index: 45;
  }

  /* The strip wraps to several lines here, taller than the Jump to bar it
     would stick under: on a page with that bar, let it scroll away. */
}

/* ---------------------------------------------------------------------------
   /Docs: the same "Jump to" pop-up as /Features, plus a search field, and
   full-width topics — each with a sticky rail (group, title, its sub-topics,
   a link to its shortcuts) beside the text.
   --------------------------------------------------------------------------- */

.jump-search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  column-span: all;
}

.jump-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}

.jump-search .sym {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.jump-filter {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.jump-filter::placeholder {
  color: var(--faint);
}

.jump-filter::-webkit-search-cancel-button {
  filter: invert(1) opacity(0.5);
}

.jump-list a[hidden],
.jump-group[hidden],
.jump-empty[hidden] {
  display: none;
}

.jump-list a small {
  margin-left: auto;
  padding-left: 12px;
  font-size: 0.75rem;
  color: var(--faint);
}

.jump-list a.is-active small,
.jump-list a:hover small {
  color: rgba(255, 255, 255, 0.8);
}

.jump-list a .badge-pro + small {
  margin-left: 8px;
}

/* While searching, the groups give way to one list of matches in columns. */
.jump-list.is-filtering {
  display: block;
  column-count: 3;
  column-gap: 14px;
}

.jump-list.is-filtering .jump-group {
  display: contents;
}

.jump-list.is-filtering .jump-group > p {
  display: none;
}

.jump-list.is-filtering a {
  break-inside: avoid;
}

.jump-empty {
  column-span: all;
  margin: 6px 8px;
  color: var(--faint);
  font-size: 0.9rem;
}

.docs-page {
  padding-bottom: 64px;
}

.docs-page [id] {
  scroll-margin-top: calc(var(--sticky-offset) + 72px);
}

.docs-page .doc-topic {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 0 56px;
  align-items: start;
  margin: 0;
  padding: 44px 0;
  border-top: 1px solid var(--hairline);
}

.docs-page .doc-topic:first-child {
  border-top: 0;
  padding-top: 28px;
}

.doc-rail {
  position: sticky;
  top: calc(var(--sticky-offset) + 76px);
  max-height: calc(100vh - var(--sticky-offset) - 100px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.doc-rail .section-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.doc-rail .help-h {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* The topic's icon, as a small app-icon tile. */
.doc-rail .help-h > img {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(10, 132, 255, 0.28), rgba(191, 90, 242, 0.14));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px rgba(0, 0, 0, 0.35);
}

.doc-count {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.doc-subnav {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-left: 1px solid var(--border);
}

.doc-subnav:empty {
  display: none;
}

.doc-subnav a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: -1px;
  padding: 4px 0 4px 13px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-decoration: none;
}

.doc-subnav a:hover {
  color: var(--text);
}

.doc-subnav a.is-current {
  color: var(--text);
  border-left-color: var(--accent);
}

.doc-subnav .badge-pro {
  padding: 1px 6px;
  font-size: 0.6rem;
}

.doc-keys {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.doc-keys .sym {
  width: 15px;
  height: 15px;
}

.doc-keys:hover {
  color: var(--text);
  background: var(--surface-2);
}

.doc-body > :first-child {
  margin-top: 0;
}

.doc-body > p:first-child {
  font-size: 1.06rem;
  color: var(--text);
}

.docs-page .help-block p,
.docs-page .help-block li {
  max-width: 72ch;
}

.docs-page h4.help-sub {
  margin: 30px 0 8px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  font-size: 1.05rem;
  color: var(--text);
}

/* The Shortcut Guide starts the second half of the page. */
.docs-page #shortcuts {
  margin-top: 28px;
  border-top: 1px solid var(--border-strong);
}

.docs-page .shortcut-table {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--surface);
}

.docs-page .shortcut-table th {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.docs-page .shortcut-table td {
  padding: 10px 14px;
}

.docs-page .shortcut-table tr:last-child td {
  border-bottom: 0;
}

.docs-page .shortcut-table tbody tr:hover td {
  background: var(--accent-dim);
}

.docs-page .shortcut-table td:first-child {
  width: 24%;
}

.docs-page .shortcut-table td:nth-child(2) {
  width: 30%;
}

@media (max-width: 960px) {
  .jump-list.is-filtering {
    column-count: 2;
  }

  .docs-page .doc-topic {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .doc-rail {
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 20px;
  }

  .doc-rail .help-h {
    flex-direction: row;
    align-items: center;
  }

  .doc-subnav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    border-left: 0;
  }

  .doc-subnav a {
    margin: 0;
    padding: 4px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
  }

  .doc-subnav a.is-current {
    border-color: var(--border);
  }

  .doc-keys {
    margin-top: 12px;
  }
}

@media (max-width: 620px) {
  .jump-list.is-filtering {
    column-count: 1;
  }

  /* Each shortcut becomes a small card: keys, then menu, then action. */
  .docs-page .shortcut-table thead {
    display: none;
  }

  .docs-page .shortcut-table,
  .docs-page .shortcut-table tbody,
  .docs-page .shortcut-table tr,
  .docs-page .shortcut-table td {
    display: block;
    width: auto;
  }

  .docs-page .shortcut-table tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }

  .docs-page .shortcut-table tr:last-child {
    border-bottom: 0;
  }

  .docs-page .shortcut-table td,
  .docs-page .shortcut-table td:nth-child(n) {
    width: auto;
    padding: 2px 0;
    border: 0;
  }

  .docs-page .shortcut-table td:nth-child(2) {
    color: var(--faint);
    font-size: 0.85rem;
  }
}

.docs-page .doc-body > h4.help-sub:first-child {
  padding-top: 0;
  border-top: 0;
}

.jump-list:not(.is-filtering) .jump-from {
  display: none;
}

.jump-list.is-filtering a.is-current::after {
  margin-left: 8px;
}

/* Apple Intelligence (1.6.63): the hero's second line and the home page's
   second section. The gradient echoes Apple Intelligence's own colours. */
:root {
  --ai-gradient: linear-gradient(90deg, #5aa9ff 0%, #a77bff 38%, #ff6fb1 68%, #ffb35c 100%);
}

.hero h1 .ai-line {
  display: block;
  margin-top: 0.12em;
  font-size: 0.62em;
  line-height: 1.15;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-meta {
  color: var(--text);
}

.ai-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--ai-gradient);
  text-transform: none;
}

.ai-section {
  padding-top: 64px;
  padding-bottom: 80px;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 25% 20%, rgba(90, 169, 255, 0.18), transparent 70%),
    radial-gradient(35% 50% at 55% 10%, rgba(167, 123, 255, 0.16), transparent 70%),
    radial-gradient(35% 50% at 80% 25%, rgba(255, 111, 177, 0.12), transparent 70%);
}

.ai-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ai-section .center .lede {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 28px;
}

.ai-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 20px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%), var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 123, 255, 0.45);
}

.ai-card h3 {
  margin: 4px 6px 0;
}

.ai-card p {
  margin: 0 6px;
  font-size: 0.95rem;
}

.ai-thumb {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

.ai-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.ai-thumb:hover img {
  transform: scale(1.03);
}

.ai-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 10px 0 30px;
}

.ai-promises > div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.ai-promises strong {
  color: var(--text);
}

.center-actions {
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .ai-grid,
  .ai-promises {
    grid-template-columns: 1fr;
  }
}

/* Git Assistant (Pro) — the section after Apple Intelligence on the home
   page and its /Features section, in git's own warm orange. */
:root {
  --git-gradient: linear-gradient(100deg, #f05033 0%, #ff8a3d 55%, #ffb347 100%);
}

.git-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--git-gradient);
  text-transform: none;
}

.git-title {
  background: var(--git-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.git-section .git-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
}

.git-title .badge-pro {
  -webkit-text-fill-color: initial;
  vertical-align: middle;
}

.git-section {
  position: relative;
  padding-top: 64px;
  padding-bottom: 80px;
}

.git-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 55% at 25% 20%, rgba(240, 80, 51, 0.14), transparent 70%),
    radial-gradient(35% 50% at 70% 15%, rgba(255, 138, 61, 0.12), transparent 70%);
}

.git-section .center .lede {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.git-grid {
  grid-template-columns: repeat(2, 1fr);
}

.git-card:hover {
  border-color: rgba(255, 138, 61, 0.5);
}

@media (max-width: 900px) {
  .git-grid {
    grid-template-columns: 1fr;
  }
}

/* "maX <word>" slogan above each /Features section; the X matches the logo's */
.max-slogan {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.max-slogan .x {
  color: var(--accent-2);
}

/* Edition cards (home, Compare, edition pages) */

.edition-cards .price {
  margin-bottom: 10px;
}

.edition-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.edition-points li {
  position: relative;
  padding-left: 22px;
}

.edition-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent, #ff5fa8);
  font-weight: 700;
}

.edition-card.is-current {
  outline: 2px solid var(--accent, #ff5fa8);
  outline-offset: -2px;
}

.edition-card .actions {
  margin-top: auto;
}

.edition-cards .card {
  display: flex;
  flex-direction: column;
}

/* Toolbar tour: which editions have the tool, shown in the panel rather than on every tile */

.ab-panel-avail {
  margin: -8px 0 0;
  padding: 0 20px 18px;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
}

.ab-panel-avail[hidden] {
  display: none;
}

.ct-legend {
  margin: 0 0 .75rem;
  font-size: .85rem;
  color: var(--muted);
}
.ct-legend .ct-part, .ct-legend .ct-yes { margin: 0 .15rem; }

/* Home page: sections reached from the Jump to bar land below the sticky bars. */
main section[id] {
  scroll-margin-top: calc(var(--sticky-offset) + 72px);
}

/* ---- /Features: up to three screenshots, then "Show more" with captions ---- */
.features-page .showcase > .shot-set,
.features-page .showcase > .editor-chips {
  grid-column: 1 / -1;
}

.shot-set {
  margin-top: 26px;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shot-row .shot {
  position: static;
  margin: 0;
}

.shot-row .shot figcaption {
  font-size: 0.86rem;
  line-height: 1.45;
}

.more-shots {
  margin-top: 20px;
}

.more-shots > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 600;
}

.more-shots > summary::-webkit-details-marker {
  display: none;
}

.more-shots > summary::after {
  content: "▾";
  font-size: 0.8rem;
}

.more-shots[open] > summary::after {
  content: "▴";
}

.more-shots > summary:hover,
.more-shots > summary:focus-visible {
  border-color: var(--accent, currentColor);
}

.more-shots .more-close,
.more-shots[open] .more-open {
  display: none;
}

.more-shots[open] .more-close {
  display: inline;
}

.more-shots .more-grid {
  margin-top: 20px;
}

.editor-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}

.editor-chips a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  text-decoration: none;
}

.editor-chips a:hover {
  border-color: var(--border-strong);
}

@media (max-width: 860px) {
  .shot-row,
  .shot-row.two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .shot-row:not(.two) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A showcase whose screenshots sit in a full-width set: the points run across two columns above it. */
.features-page .showcase:has(> .shot-set) > .feature-list {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .features-page .showcase:has(> .shot-set) > .feature-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Collapsible sections (folds.js): a Mac-style disclosure panel ---- */
.fold {
  position: relative;
  z-index: 2;
}

.fold--top > .fold-bar,
.fold-tools.fold--top > .fold-tools-inner {
  width: calc(100% - 40px);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.fold-bar {
  padding: 8px 0;
  scroll-margin-top: calc(var(--sticky-offset, 0px) + 72px);
}

.fold-head {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 14px 18px 14px 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    var(--surface-solid);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.09) inset,
    0 10px 30px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.fold-head:hover {
  border-color: rgba(100, 180, 255, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 14px 38px rgba(0, 0, 0, 0.4),
    0 0 0 4px var(--accent-dim);
  transform: translateY(-1px);
}

.fold-head:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.fold.is-open > .fold-bar > .fold-head {
  border-color: rgba(100, 180, 255, 0.3);
}

.fold-disc {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--accent-2);
  background: radial-gradient(circle at 30% 25%, rgba(100, 180, 255, 0.32), rgba(10, 132, 255, 0.12));
  box-shadow: 0 0 0 1px rgba(100, 180, 255, 0.3) inset, 0 1px 0 rgba(255, 255, 255, 0.18) inset;
  transition: transform 0.28s cubic-bezier(0.3, 0.9, 0.3, 1), background-color 0.2s ease;
}

.fold-head:hover .fold-disc {
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #64b4ff, #0a84ff);
}

.fold.is-open > .fold-bar .fold-disc {
  transform: rotate(90deg);
}

.fold-icon {
  flex: none;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.fold-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.fold-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.fold-eyebrow .x {
  color: var(--accent-2);
}

.fold-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  background: linear-gradient(100deg, #ffffff 30%, #9cc9ff 70%, #c9a7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fold-sub {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.fold.is-open > .fold-bar .fold-sub {
  color: var(--faint);
}

.fold-tail {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fold-hint {
  min-width: 3.2em;
  padding: 4px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.fold-head:hover .fold-hint {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

.fold-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.9, 0.3, 1);
}

.fold.is-open > .fold-body {
  grid-template-rows: 1fr;
}

.fold-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fold.is-open > .fold-body > .fold-inner {
  opacity: 1;
}

.fold.is-open.is-settled > .fold-body > .fold-inner {
  overflow: visible;
}

.fold--instant,
.fold--instant .fold-body,
.fold--instant .fold-inner,
.fold--instant .fold-disc {
  transition: none !important;
}

/* A section's own padding is spare once it sits under its panel bar. */
.fold-inner > section:first-child {
  padding-top: 16px;
}

.fold-tools-inner {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 4px 0 2px;
}

.fold-tools {
  position: relative;
  z-index: 2;
}

.fold-tool {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.fold-tool:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.fold-tool:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.timeline .fold {
  margin-bottom: 4px;
}

.timeline .fold > .fold-bar {
  padding: 6px 0;
}

@media (max-width: 640px) {
  .fold-head {
    gap: 10px;
    padding: 12px;
  }
  .fold-title {
    font-size: 1.05rem;
  }
  .fold-hint {
    display: none;
  }
  .fold-head {
    flex-wrap: wrap;
  }
  .fold-words {
    flex: 1 1 0;
  }
  .fold-tail {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fold-body,
  .fold-inner,
  .fold-disc,
  .fold-head {
    transition: none;
  }
}

section.fold-host {
  padding-top: 0;
  padding-bottom: 0;
}

/* Release notes: the panel bar carries the version, tag and date, and the timeline dot. */
.timeline .fold::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.timeline .fold:not(.is-open)::before {
  background: var(--faint);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.timeline .release::before,
.timeline .fold .release-head {
  display: none;
}

.timeline .fold.is-open .release {
  padding-top: 8px;
}

.edition-icon { display: block; width: 96px; height: 96px; margin: 0 0 14px; }

/* Home: maX efficiency */

.efficiency-home .lede {
  max-width: none;
  color: var(--muted);
}

.efficiency-home .cards {
  margin: 36px 0 0;
}

@media (max-width: 860px) {
  .efficiency-home .cards {
    grid-template-columns: 1fr;
  }
}

/* /Features: each group of sections follows the app's menus (2.1.9). */
.feature-group-head {
  margin: 72px 0 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border-strong);
}
.features-page > section:first-child > .feature-group-head {
  margin-top: 32px;
}
.feature-group-head .kicker {
  margin-bottom: 8px;
}
.feature-group-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 6px;
}
.feature-group-lede {
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
}
