/* PureShot X website: the category standard, played straight. White and #F5F5F7 fields, near-black ink,
   one action color (violet, from the app icon), SF Pro, pill buttons, large rounded media. The quality bar is
   cleanshot.com and Apple's product pages (see .impeccable/surfaces).
   Radius system, three values only: buttons and tags 980px (pill), controls var(--r-ctl) 12px,
   cards and media var(--r-card) 22px. */

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --raised: #FFFFFF;
  --text: #1D1D1F;
  --text-2: #6E6E73;
  --text-3: #6E6E73;
  --line: #D2D2D7;
  --tile: rgba(0, 0, 0, .05);
  --action: #7C3AED;
  --action-hover: #6D28D9;
  --accent: #7C3AED;
  --accent-text: #6D28D9;
  --accent-tint: rgba(124, 58, 237, .09);
  --ink-tile: #1D1D1F;
  --shadow-media: 0 2px 6px rgba(0, 0, 0, .06), 0 24px 64px -20px rgba(0, 0, 0, .22);
  --r-ctl: 12px;
  --r-card: 22px;
  --media-gap: 128px; /* sticky header plus breathing room above and below a demo */
  --max: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #1D1D1F;
    --raised: #1D1D1F;
    --text: #F5F5F7;
    --text-2: #A1A1A6;
    --text-3: #A1A1A6;
    --line: #424245;
    --tile: rgba(255, 255, 255, .08);
    --accent: #8B5CF6;
    --accent-text: #A78BFA;
    --accent-tint: rgba(139, 92, 246, .18);
    --ink-tile: #F5F5F7;
    --shadow-media: 0 2px 6px rgba(0, 0, 0, .5), 0 30px 70px -20px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--text); }
html { accent-color: var(--accent); caret-color: var(--accent); scrollbar-color: color-mix(in srgb, var(--text) 28%, transparent) transparent; }
a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.price b, .compare td, .when { font-variant-numeric: tabular-nums; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-ctl); }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 54ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 980px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform 160ms var(--ease), filter 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-ghost { background: transparent; color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.btn-ghost:hover { background: var(--accent-tint); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn i { font-size: 1.15em; }
.link { color: var(--accent-text); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--text-2); font-weight: 500; transition: color 160ms var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r-ctl); border: 0; background: var(--tile); color: var(--text); font-size: 20px; cursor: pointer; }
@media (max-width: 860px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: 0; }
  .header-cta { margin-left: auto; }
  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0;
  }
  .site-header.open .nav a { padding: 12px 4px; font-size: 17px; }
}

/* Sections */
section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 640px; }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
.hero-stack { display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero-stack .lede { margin-inline: auto; }
.hero-icon { width: 96px; height: 96px; margin-bottom: 4px; }
.hero h1 { font-size: clamp(42px, 6vw, 80px); line-height: 1.03; max-width: 16ch; }
.hero .media { width: min(100%, 1080px); margin-top: clamp(28px, 4vw, 48px); justify-self: center; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 8px; }
.hero-stack .hero-actions { justify-content: center; }
.hero-note { font-size: 14px; color: var(--text-3); }

/* Media frames */
.media {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-media);
  aspect-ratio: 1360 / 960;
  outline: 1px solid var(--line); outline-offset: -1px;
  /* Never taller than the screen below the sticky header: the whole demo fits when scrolled to it. */
  max-width: min(100%, max(320px, calc((100svh - var(--media-gap)) * 1360 / 960)));
  margin-inline: auto;
}
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.media .play {
  position: absolute; inset: auto 14px 14px auto; width: 40px; height: 40px; border-radius: 980px;
  border: 0; background: rgba(15, 15, 20, .55); color: #fff; font-size: 18px; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 160ms var(--ease);
}
.media:hover .play, .media .play:focus-visible, .media.paused .play { opacity: 1; }

/* Wide feature (full-width media under copy) */
.wide-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 40px; }
.wide-head .lede { margin-top: 14px; }
@media (max-width: 760px) { .wide-head { grid-template-columns: 1fr; } }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.split.flip .split-media { order: 2; }
.split-copy { display: grid; gap: 18px; align-content: start; }
@media (max-width: 960px) {
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
}

/* Mini feature list (icon + title + line) */
.minis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 10px; }
.mini { display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: start; }
.mini i { grid-row: span 2; width: 36px; height: 36px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font-size: 19px; }
.mini b { font-weight: 650; font-size: 16px; }
.mini span { color: var(--text-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .minis { grid-template-columns: 1fr; } }

/* Tabs that switch a video */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.tab {
  height: 38px; padding: 0 16px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--tile); color: var(--text-2); font: 600 14px/1 var(--font);
  display: inline-flex; align-items: center; gap: 8px; transition: background 160ms var(--ease), color 160ms var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.cell {
  border-radius: var(--r-card); background: var(--bg-2); overflow: hidden;
  display: flex; flex-direction: column;
}
.cell .cell-copy { padding: 26px 26px 22px; display: grid; gap: 8px; }
.cell .cell-copy p { color: var(--text-2); font-size: 15.5px; }
.cell .media { border-radius: 0; box-shadow: none; outline: 0; margin-top: auto; }
.cell.c4 { grid-column: span 4; }
.cell.c3 { grid-column: span 3; }
.cell.c2 { grid-column: span 2; }
.cell.tint { background: var(--ink-tile); color: var(--bg); }
.cell.tint .cell-copy p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
.cell.tint .big-icon { color: var(--bg); }
.cell .big-icon { font-size: 44px; color: var(--accent-text); padding: 26px 26px 0; }
.cell.plain { background: var(--bg-2); }
.cell .cell-foot { margin-top: auto; padding: 0 26px 24px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell.c4, .cell.c3 { grid-column: span 2; }
  .cell.c2 { grid-column: span 1; }
}
@media (max-width: 560px) { .cell.c2 { grid-column: span 2; } }

/* Native strip (horizontal scroll-snap pills) */
.native { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.native > div { padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.native i { font-size: 26px; color: var(--accent-text); }
.native p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 960px) { .native { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; } }
@media (max-width: 560px) { .native { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  border-radius: var(--r-card); background: var(--bg-2); padding: 30px; display: flex; flex-direction: column; gap: 18px;
}
.plan.featured { outline: 2px solid var(--accent); outline-offset: -2px; position: relative; }
/* Hovering a plan lifts it and fills its button, pointing at the one thing to click. */
.plan { transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), outline-color 200ms var(--ease); outline: 2px solid transparent; outline-offset: -2px; }
.plan.featured { outline-color: var(--accent); }
@media (hover: hover) {
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-media); outline-color: color-mix(in srgb, var(--accent) 50%, transparent); }
  .plan.featured:hover { outline-color: var(--accent); }
  .plan:hover .btn-ghost { background: var(--action); color: #fff; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .plan:hover { transform: none; } }
.plan .badge { position: absolute; top: -13px; left: 28px; background: var(--action); color: #fff; font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 980px; }
.plan h2, .plan h3 { font-size: 21px; letter-spacing: -.015em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 700 46px/1 var(--font-display); letter-spacing: -.03em; }
.price span { color: var(--text-2); font-size: 15px; }
.plan .sub { color: var(--text-2); font-size: 15px; min-height: 2.9em; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li i { color: var(--accent-text); font-size: 18px; margin-top: 2px; flex: none; }
.plan .btn { margin-top: auto; width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.free-band {
  margin-top: 18px; border-radius: var(--r-card); background: var(--bg-2); padding: 26px 28px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
@media (max-width: 760px) { .free-band { grid-template-columns: 1fr; } }

/* Compare table */
/* Free vs Pro: plan headers stay in view while you scroll the table; the Pro column is a tinted band */
.compare-wrap { max-width: 980px; }
.compare-wrap > h2 { margin-bottom: 10px; }
.compare-wrap > .lede { margin-bottom: 36px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; font-weight: 400; }
.compare thead th { position: sticky; top: 64px; z-index: 2; background: var(--bg); vertical-align: bottom; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.compare .plan-col { width: 190px; text-align: center; }
.compare .plan-col > * { display: block; margin-inline: auto; }
.compare .plan-name { font: 700 21px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--text); }
.compare .plan-price { font-size: 14px; color: var(--text-2); margin: 4px 0 14px; }
.compare .plan-col .btn { display: inline-flex; }
.compare td.c { text-align: center; }
.compare tbody th { color: var(--text); }
.compare tbody tr:not(.group) > * { border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); transition: background 160ms var(--ease); }
.compare tbody tr:not(.group):hover > * { background: var(--tile); }
.compare tbody td:last-child { background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--bg); }
.compare thead .pro { border-radius: var(--r-card) var(--r-card) 0 0; background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--bg); } /* opaque: rows scroll under the sticky header */
.compare tbody tr:last-child td:last-child { border-radius: 0 0 var(--r-card) var(--r-card); border-bottom: 0; }
.compare tbody tr:not(.group):hover td:last-child { background: linear-gradient(var(--accent-tint), var(--accent-tint)), linear-gradient(var(--tile), var(--tile)), var(--bg); }
.compare .group th { padding-top: 34px; padding-bottom: 10px; font: 700 18px/1.3 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.compare .group:first-child th { padding-top: 22px; }
.compare tbody tr.group + tr > *, .compare .group + tr > * { border-top: 0; }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 980px; font-size: 15px; }
.mark.yes { background: var(--accent); color: #fff; }
.mark.no { color: var(--text-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.table-scroll { overflow: visible; }
@media (max-width: 760px) {
  /* Phones: the table fits the screen; plan buttons drop out (the plan cards above have them). */
  .compare { font-size: 15px; }
  .compare thead th { top: 64px; padding-bottom: 12px; }
  .compare .plan-col { width: 74px; }
  .compare .plan-col .btn { display: none; }
  .compare .plan-name { font-size: 17px; }
  .compare .plan-price { font-size: 12px; margin-bottom: 0; }
  .compare th, .compare td { padding: 12px 8px; }
  .compare tbody th { padding-left: 4px; }
  .compare .group th { padding-left: 4px; font-size: 16px; }
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-card); background: var(--bg-2); box-shadow: inset 0 0 0 1px transparent; transition: background 200ms var(--ease), box-shadow 200ms var(--ease); }
.faq details:hover { background: color-mix(in srgb, var(--accent) 7%, var(--bg-2)); }
.faq details[open]:not(.closing) { background: var(--accent-tint); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 22px; font-weight: 650; position: relative; border-radius: var(--r-card); transition: color 160ms var(--ease); }
.faq summary:hover, .faq details[open]:not(.closing) summary { color: var(--accent-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; border-radius: 980px;
  display: grid; place-items: center; transform: translateY(-50%); font-size: 20px; font-weight: 500; line-height: 1;
  color: var(--text-2); background: var(--bg); transition: transform 240ms var(--ease), background 160ms var(--ease), color 160ms var(--ease);
}
.faq summary:hover::after { background: var(--accent); color: #fff; }
.faq details[open]:not(.closing) summary::after { transform: translateY(-50%) rotate(45deg); background: var(--accent); color: #fff; }
.faq details > div { padding: 0 22px 22px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }

/* Feature directory */
.dir { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 48px; align-items: start; }
.dir-nav { position: sticky; top: 92px; z-index: 2; display: grid; gap: 2px; }
.dir-nav a { text-decoration: none; color: var(--text-2); padding: 7px 12px; border-radius: var(--r-ctl); font-size: 15px; font-weight: 500; transition: background 160ms var(--ease), color 160ms var(--ease); white-space: nowrap; }
.dir-nav a:hover { background: var(--tile); color: var(--text); }
.dir-nav a[aria-current="true"] { background: var(--accent-tint); color: var(--accent-text); font-weight: 600; }
.dir-group { padding-block: clamp(56px, 7vw, 88px); scroll-margin-top: 40px; }
.dir-group:first-child { padding-top: 8px; }
/* Every other group sits on a full-width gray band (counting only the groups the filter leaves showing). */
.dir-group:nth-child(even of :not([hidden])) { background: var(--bg-2); box-shadow: 0 0 0 100vmax var(--bg-2); clip-path: inset(0 -100vmax); }
.dir-group:nth-child(even of :not([hidden])) .flist li > i { background: var(--bg); }
.dir-nav a[hidden] { display: none; }
/* All / Free / Pro filter */
.page-tools[hidden] { display: none; }
.page-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 980px; background: var(--tile); }
.seg button { border: 0; background: none; font: 600 14px/1 var(--font); color: var(--text-2); padding: 8px 16px; border-radius: 980px; cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .06); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.page-tools output { color: var(--text-2); font-size: 15px; }
/* Each group opens with its copy beside its demo, alternating sides. */
.fhead { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; margin-bottom: 36px; }
.fhead.flip { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); }
.fhead.flip .fhead-copy { order: 2; }
.fhead.solo { grid-template-columns: 1fr; margin-bottom: 28px; }
.fhead .media { width: 100%; margin: 0; }
.fhead-copy { display: grid; gap: 10px; }
.fhead-copy h2 { font-size: clamp(28px, 3vw, 36px); }
.fhead-copy p { color: var(--text-2); font-size: 17px; max-width: 40ch; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.flist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.flist li[hidden] { display: none; }
.flist li > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font-size: 18px; transition: background 180ms var(--ease), color 180ms var(--ease), transform 220ms var(--ease); }
@media (hover: hover) {
  .flist li:hover > i, .dir-group:nth-child(even of :not([hidden])) .flist li:hover > i { background: var(--accent); color: #fff; transform: scale(1.06); }
}
.flist h3 { font-size: 16px; font-weight: 650; letter-spacing: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.flist p { color: var(--text-2); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.flist .tag { margin-left: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fcard { border-radius: var(--r-card); background: var(--bg-2); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.fcard .t { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.fcard .t i { color: var(--accent-text); font-size: 20px; }
.fcard p { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.tag { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 980px; letter-spacing: .02em; }
.tag.pro { background: var(--accent-tint); color: var(--accent-text); }
.tag.free { background: var(--tile); color: var(--text-2); }
@media (max-width: 960px) {
  .dir { grid-template-columns: 1fr; gap: 0; }
  /* On narrower screens the group menu becomes a swipeable bar pinned under the header. */
  .dir-nav {
    top: 64px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(50% - 50vw); padding: 10px max(16px, calc(50vw - 50%)); background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 28px;
  }
  .dir-nav::-webkit-scrollbar { display: none; }
  .dir-nav a { padding: 7px 14px; border-radius: 980px; font-size: 14px; background: var(--tile); }
  .dir-group { scroll-margin-top: 110px; }
  .dir-group:first-child { padding-top: 0; }
  .fhead, .fhead.flip { grid-template-columns: 1fr; }
  .fhead.flip .fhead-copy { order: 0; }
}
@media (max-width: 640px) { .cards, .flist { grid-template-columns: 1fr; } }

/* Page head for inner pages */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 48px); display: grid; gap: 16px; }
.page-head.center { justify-items: center; text-align: center; }
.page-head.center .lede { margin-inline: auto; }

/* Changelog */
.release { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.release .when { color: var(--text-2); font-size: 15px; }
.release .when h2 { color: var(--text); font-size: 28px; margin-bottom: 4px; }
.release h3 { margin: 26px 0 10px; font-size: 19px; }
.release h3:first-child { margin-top: 0; }
.release ul { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; }
@media (max-width: 640px) { .release { grid-template-columns: 1fr; gap: 12px; } }

/* Prose (legal) */
.prose { color: var(--text-2); font-size: 16.5px; }
.prose h2 { font-size: 24px; color: var(--text); margin: 44px 0 12px; letter-spacing: -.015em; }
.prose h3 { font-size: 18px; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent-text); }
.prose .updated { font-size: 14px; color: var(--text-3); }

/* Support cards */
.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 72px; }
.help a { text-decoration: none; }
@media (max-width: 860px) { .help { grid-template-columns: 1fr; } }

/* Final CTA */
.cta-band {
  border-radius: var(--r-card); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  background: var(--bg-2);
}
.cta-band img { width: 96px; height: 96px; }
.cta-band .lede { margin-top: 10px; }
.cta-band .hero-actions { margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; text-align: left; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: .02em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-legal { margin-top: 44px; color: var(--text-3); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: span 2; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Trust row under the hero */
.trust { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; border-block: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust i { display: inline-flex; color: var(--accent-text); font-size: 19px; }
@media (max-width: 560px) { .trust { justify-content: flex-start; gap: 12px 24px; } }

/* Panel: heading and demo together on one gray card, with even padding all round */
.breakout {
  border-radius: var(--r-card); padding: clamp(36px, 6vw, 64px) clamp(16px, 5vw, 64px);
  background: var(--bg-2);
  display: grid; justify-items: center; text-align: center; gap: clamp(28px, 4vw, 44px);
}
.breakout-copy { display: grid; gap: 14px; justify-items: center; max-width: 640px; }
.breakout-copy .lede { margin-inline: auto; }
.breakout .media { width: min(100%, 1040px); }

/* Two short stories side by side under one demo */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; margin-top: 36px; }
.pair article { display: grid; gap: 10px; align-content: start; }
.pair article > i { font-size: 28px; color: var(--accent-text); }
.pair p { color: var(--text-2); max-width: 52ch; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

/* Features page: one demo per group */

/* Inline SVG icons (Phosphor, built into a sprite by site/build.py) */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; fill: currentColor; }

/* "And everything else": one dense list of links instead of more cards */
.also { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 56px; align-items: start; border-top: 1px solid var(--line); padding-top: 40px; }
.also h2 { font-size: clamp(26px, 2.6vw, 34px); }
.also ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.also li { break-inside: avoid; padding: 7px 0; }
.also li a { text-decoration: none; color: var(--text); font-weight: 500; }
.also li a:hover { color: var(--accent-text); }
.also > .link { grid-column: 2; }
@media (max-width: 760px) { .also { grid-template-columns: 1fr; } .also ul { columns: 1; } .also > .link { grid-column: 1; } }

/* Closing band: two actions side by side */
.cta-band .hero-actions { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band .hero-actions { justify-content: flex-start; } }

/* On phones, demos crop in on the part that matters (each .media sets --focus) instead of shrinking the whole desktop */
@media (max-width: 640px) {
  .media[style*="--focus"] { aspect-ratio: 4 / 3.4; }
  .media[style*="--focus"] video { object-fit: cover; object-position: var(--focus); transform: scale(var(--zoom, 1.32)); transform-origin: var(--focus); }
  .media .play { inset: 10px 10px auto auto; width: 34px; height: 34px; font-size: 15px; }
}

/* Editor section: copy and tool picker on the left, the demo on the right, so switching never needs a scroll.
   Each tool is an accordion row: its description opens under the label while it's selected or hovered. */
.tabsplit { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.tabsplit-copy { display: grid; gap: 16px; align-content: start; }
.tabs-vertical { flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin: 10px 0 0; gap: 8px; }
.tabs-vertical .tab {
  height: auto; padding: 14px 18px; display: block; text-align: left; font-size: 16px;
  border-radius: var(--r-ctl); background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
}
.tabs-vertical .tab:hover { background: var(--tile); }
.tabs-vertical .tab[aria-selected="true"] { background: var(--accent-tint); box-shadow: inset 0 0 0 2px var(--accent); }
.tab-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.tab-head .icon { font-size: 19px; color: var(--accent-text); }
.tab-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease); }
.tab-desc > span { overflow: hidden; min-height: 0; transition: padding-top 320ms var(--ease), min-height 320ms var(--ease); color: var(--text-2); font-weight: 400; font-size: 15.5px; line-height: 1.5; }
/* Exactly one description is open at a time (the hovered row, else the selected one), and every open
   description takes the height of the longest (--desc-h, measured by site.js), so the section never resizes
   and the demo beside it never moves. */
.tab[aria-selected="true"] .tab-desc { grid-template-rows: 1fr; }
.tab[aria-selected="true"] .tab-desc > span { padding-top: 8px; min-height: var(--desc-h, 0); }
@media (hover: hover) {
  .tabs-vertical .tab:hover .tab-desc { grid-template-rows: 1fr; }
  .tabs-vertical .tab:hover .tab-desc > span { padding-top: 8px; min-height: var(--desc-h, 0); }
  .tabs-vertical:has(.tab:hover) .tab[aria-selected="true"]:not(:hover) .tab-desc { grid-template-rows: 0fr; }
  .tabs-vertical:has(.tab:hover) .tab[aria-selected="true"]:not(:hover) .tab-desc > span { padding-top: 0; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .tab-desc { transition: none; } }
@media (max-width: 960px) { .tabsplit { grid-template-columns: 1fr; } }
