/* =========================================================================
   Marketing pages: home, All Tools, tool landing pages, and 404.
   Builds on marker.css. Layout follows the Marker Build boards on the
   design canvas (G-Tools, M-Landing, G-404) and the Audit Mockups Home
   board (N-Home).

   The --art-* values are the backdrop colors the boards give illustration
   tiles. They sit behind artwork only, never behind body copy. The fake app
   screens inside the illustrations keep their own colors in dark mode,
   because finished work keeps its own colors.
   ========================================================================= */

:root {
  --pg-bg: var(--surface);
  --pg-band: var(--paper);
  --art-blue: #DDE8FB;   --art-blue-ink: #1E4FB8;
  --art-sand: #E9DFD3;   --art-sand-ink: #5C4630;
  --art-green: #D9EEDF;  --art-green-ink: #1F6B3D;
  --art-ink: #141414;    --art-ink-ink: #FF6A3D;
  --art-paper: var(--paper);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pg-bg: var(--paper);
    --pg-band: var(--surface);
    --art-blue: #16233B;   --art-blue-ink: #8FB8FF;
    --art-sand: #2B241C;   --art-sand-ink: #D9C2A5;
    --art-green: #15281C;  --art-green-ink: #7FD1A1;
    --art-ink: #0A0A0A;
    --art-paper: var(--raised);
  }
}
:root[data-theme="dark"] {
  --pg-bg: var(--paper);
  --pg-band: var(--surface);
  --art-blue: #16233B;   --art-blue-ink: #8FB8FF;
  --art-sand: #2B241C;   --art-sand-ink: #D9C2A5;
  --art-green: #15281C;  --art-green-ink: #7FD1A1;
  --art-ink: #0A0A0A;
  --art-paper: var(--raised);
}

body.pg { background: var(--pg-bg); }
.pg .site-footer { margin-top: 0; }
.pg a:not(.btn):not(.chip):hover { color: var(--marker-text); }

/* ---- Type for these pages --------------------------------------------- */
.pg-xl { font-size: 76px; line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.pg-h1 { font-size: 68px; line-height: .98; font-weight: 800; letter-spacing: -.035em; }
.pg-h2 { font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.pg-h2-md { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.pg-h2-sm { font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -.02em; }
.pg-lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.pg-text { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.pg-link { font-size: 15px; font-weight: 600; color: var(--marker-text); text-decoration: none; }
.pg-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 24px; }
.pg-head-row.is-baseline { align-items: baseline; }
.pg-note { font-size: 15px; color: var(--muted); }

@media (max-width: 720px) {
  .pg-xl { font-size: 48px; line-height: 1; }
  .pg-h1 { font-size: 44px; line-height: 1; }
  .pg-h2, .pg-h2-md { font-size: 36px; }
  .pg-lead { font-size: 17px; }
}

/* ---- Questions (details list) ----------------------------------------- */
.faq { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.faq-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.faq-list { flex: 2 1 600px; min-width: 0; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 32px; font-size: 18px; line-height: 1.35; font-weight: 600;
  list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { color: var(--muted); }
.faq-list summary .faq-minus, .faq-list details[open] summary .faq-plus { display: none; }
.faq-list details[open] summary .faq-minus { display: inline-block; }
.faq-list details p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.faq-list details p + p { margin-top: 10px; }
.faq-list.is-compact details { padding: 18px 0; }
.faq-list.is-compact summary { font-size: 17px; }
.faq-list.is-compact details p { font-size: 15px; margin-top: 10px; }
@media (max-width: 720px) {
  .faq-list { flex-basis: 100%; }
  .faq-list summary { font-size: 17px; }
  /* 44 px touch targets on phones. The answer links grow their hit area
     with padding that a negative margin takes back, so lines keep their
     spacing. */
  .faq-list summary { min-height: 44px; }
  .faq-list details p a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* ---- Artwork primitives ------------------------------------------------ */
/* Fake app screens drawn in HTML. Fixed colors in both themes. */
.art { color: #1F2328; font-family: var(--font-body); line-height: normal; }
.art-card { background: #FFFFFF; border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.art-muted { color: #5B616E; }
.art-btn { background: #2B44B3; color: #FFFFFF; font-weight: 600; border-radius: 4px; }
.art-badge {
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #D63A12; color: #FFFFFF; font-weight: 700;
  box-shadow: 0 0 0 3px #FFFFFF;
}

/* Pixelated redaction drawn in CSS. */
.px-redact { display: inline-block; height: 14px; vertical-align: middle; background:
  linear-gradient(90deg, #8E939C 0 12%, #C5C8CE 12% 30%, #A4A8B0 30% 46%, #D6D8DC 46% 62%, #9599A2 62% 80%, #BFC2C8 80% 100%) 0 0 / 100% 50% no-repeat,
  linear-gradient(90deg, #C9CCD1 0 18%, #9EA2AA 18% 36%, #D2D4D8 36% 52%, #ABAFB6 52% 70%, #CDD0D4 70% 88%, #9A9EA6 88% 100%) 0 100% / 100% 50% no-repeat; }

/* A box drawn at a fixed size, scaled to fit its parent by pages.js. */
.fit { position: relative; width: 100%; }
.fit > .fit-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }

/* ---- Home -----------------------------------------------------------------
   The Home board on the Audit Mockups canvas page (N-Home). Every picture
   is a real export (scripts/shots-home.mjs, scripts/render-home.mjs). The
   tile colors sit behind finished work only, and darken in dark mode the
   way the --art-* colors do; the work keeps its own colors. */
:root {
  --hm-blue: #E8F0FF;
  --hm-sun: #FFE9A8;
  --hm-mint: #DDEFE3;
  --hm-peach: #FFD6C2;
  --hm-navy: #0F1A2B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hm-blue: #16233B; --hm-sun: #2E2814; --hm-mint: #15281C; --hm-peach: #2E1D16; --hm-navy: #0A111D; }
}
:root[data-theme="dark"] { --hm-blue: #16233B; --hm-sun: #2E2814; --hm-mint: #15281C; --hm-peach: #2E1D16; --hm-navy: #0A111D; }

.hm-main .wrap { max-width: 1280px; }

/* Hero: the words beside the looping example. */
.hm-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 64px 0 48px; }
.hm-hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hm-hero-copy .pg-lead { max-width: 460px; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-hero-art { flex: 1.25 1 560px; min-width: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.hm-stage { grid-column: 1 / -1; }
.hm-stage { padding: 36px; border-radius: var(--r-stage); background: var(--marker-tint); box-shadow: var(--shadow-stage); }
.hm-screen { position: relative; aspect-ratio: 1280 / 800; overflow: hidden; border-radius: 10px; background: #FFFFFF; box-shadow: 0 10px 28px rgba(60, 20, 50, .22); }
.hm-screen img, .hm-screen video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-screen video { opacity: 0; transition: opacity .2s ease; }
.hm-screen.is-playing video { opacity: 1; }
.hm-controls { display: flex; align-items: center; gap: 12px; }
.hm-pause { flex-shrink: 0; }
.hm-pause .i-play, .hm-pause[aria-pressed="true"] .i-pause { display: none; }
.hm-pause[aria-pressed="true"] .i-play { display: block; }
.hm-progress { flex: 1; min-width: 40px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hm-progress span { display: block; height: 100%; width: 100%; border-radius: 2px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); }
.hm-hero-art figcaption { font-size: 13px; line-height: 18px; color: var(--muted); }

/* Tools: one large card and four small ones, each showing what it makes. */
.hm-tools { display: flex; flex-direction: column; gap: 20px; padding: 40px 0; }
.hm-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-tool {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  transition: border-color .12s ease;
}
.hm-tool:hover { border-color: var(--ink); }
.hm-tool:has(.hm-tool-link:focus-visible) { outline: 2px solid var(--selection); outline-offset: 2px; }
.hm-tool.is-big { grid-row: span 2; }
.hm-tool-art { position: relative; height: 190px; overflow: hidden; }
.hm-tool.is-big .hm-tool-art { flex: 1; height: auto; min-height: 420px; }
.hm-tool-text { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.hm-tool.is-big .hm-tool-text { padding: 18px 20px 20px; }
.hm-tool h3 { font-size: 20px; line-height: 26px; }
.hm-tool p { font-size: 14px; line-height: 20px; color: var(--muted); }
.hm-tool-link { text-decoration: none; color: var(--ink); }
.hm-tool-link:focus-visible { outline: none; }
.hm-tool-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pg .hm-tool:hover .hm-tool-link { color: var(--marker-text); }
.hm-art-blue { background: var(--hm-blue); }
.hm-art-sun { background: var(--hm-sun); }
.hm-art-mint { background: var(--hm-mint); }
.hm-art-peach { background: var(--hm-peach); }
.hm-art-navy { background: var(--hm-navy); }
/* Mark Up: the export sits in the corner, held to the bottom right so the
   callout, arrow, and box always show. */
.hm-tool-art .hm-shot-corner { position: absolute; left: 36px; right: 0; top: 40px; bottom: 0; width: calc(100% - 36px); height: calc(100% - 40px); max-width: none; object-fit: cover; object-position: right bottom; border-radius: 12px 0 0 0; box-shadow: 0 12px 30px rgba(30, 50, 120, .2); }
.hm-tool-art .hm-shot-gif { position: absolute; left: 24px; right: 24px; top: 22px; width: calc(100% - 48px); height: auto; aspect-ratio: 600 / 338; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; }
.hm-tool-art .hm-shot-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-tool-art .hm-shot-store { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 92%; height: auto; max-width: 420px; }
.hm-tool-art .hm-shot-page { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 76%; max-width: 300px; height: auto; border-radius: 6px 6px 0 0; box-shadow: 0 8px 20px rgba(20, 60, 40, .18); }
.hm-chip { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hm-chip.is-gif { background: #C6F35E; color: #141414; }
.hm-chip.is-rec { background: #A11E1E; color: #FFFFFF; }
.hm-chip.is-rec i { width: 7px; height: 7px; border-radius: 50%; background: #FFFFFF; }

/* Reuse a Recording: the recording and the three things made from it. */
.hm-reuse { display: flex; flex-direction: column; gap: 24px; padding: 48px 0; }
.hm-reuse .pg-head-row p { max-width: 380px; font-size: 16px; line-height: 25px; color: var(--ink-2); }
.hm-reuse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-rec { grid-row: span 2; position: relative; margin: 0; min-height: 380px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border-radius: var(--r-stage); background: var(--hm-navy); }
.hm-rec-screen { position: absolute; left: 32px; right: 32px; top: 32px; bottom: 92px; display: flex; align-items: center; justify-content: center; }
.hm-rec-screen video { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hm-rec figcaption { position: relative; display: flex; align-items: center; gap: 12px; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.hm-play { width: 44px; height: 44px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #FFFFFF; color: #141414; cursor: pointer; }
.hm-play:hover { background: #F0F0EC; }
.hm-play:focus-visible { outline-color: #8FB8FF; }
.hm-play .i-pause, .hm-play[aria-pressed="true"] .i-play { display: none; }
.hm-play[aria-pressed="true"] .i-pause { display: block; }
.hm-piece { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.hm-piece.is-wide { grid-column: 2 / -1; }
.hm-piece-pic { position: relative; flex: 0 0 150px; height: 96px; overflow: hidden; border-radius: 8px; background: var(--canvas); }
.hm-piece-pic img { width: 100%; height: 100%; object-fit: cover; }
.hm-piece-pic.is-page { background: var(--raised); }
.hm-piece-pic.is-page img { width: 76px; height: 88px; margin: 8px auto 0; object-fit: cover; object-position: top; border-radius: 3px 3px 0 0; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
button.hm-piece-pic { padding: 0; border: 0; cursor: pointer; }
.hm-piece-pic .hm-gif-badge { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(20, 20, 20, .78); color: #FFFFFF; }
.hm-piece-pic .hm-gif-badge .icon { width: 14px; height: 14px; }
.hm-piece-pic .i-pause, .hm-piece-pic[aria-pressed="true"] .i-play { display: none; }
.hm-piece-pic[aria-pressed="true"] .i-pause { display: block; }
.hm-piece-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hm-piece-text h3 { font-size: 20px; line-height: 26px; }
.hm-piece-text p { font-size: 14px; line-height: 20px; color: var(--muted); }
.hm-piece .btn { flex-shrink: 0; }

/* Examples: six finished pieces in a justified row, each as wide as its
   picture's shape. */
.hm-ex { display: flex; flex-direction: column; gap: 20px; padding: 48px 0 96px; }
.hm-ex-row { display: flex; flex-wrap: wrap; gap: 20px 16px; }
.hm-ex-item { flex: var(--ar) 1 calc(var(--ar) * 170px); min-width: 0; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.hm-ex-pic { aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--r-card); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.hm-ex-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.hm-ex-item:hover .hm-ex-pic img { transform: scale(1.02); }
.hm-ex-item b { display: block; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--ink); }
.hm-ex-item span { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.pg .hm-ex-item:hover b { color: var(--marker-text); }

.hm-faq { padding: 0 0 104px; }

@media (max-width: 1023px) {
  .hm-tool-grid, .hm-reuse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-piece.is-wide { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hm-hero { gap: 28px; padding: 20px 0 32px; }
  .hm-hero-copy { gap: 18px; flex-basis: 100%; }
  .hm-hero-art { flex-basis: 100%; }
  .hm-actions .btn { flex: 1 1 auto; }
  .hm-stage { padding: 14px; }
  .hm-hero-art { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-art figcaption { margin-top: -4px; }
  .hm-tools, .hm-reuse { padding: 28px 0; }
  .hm-tool-grid, .hm-reuse-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hm-tool.is-big, .hm-rec { grid-row: auto; }
  .hm-tool.is-big .hm-tool-art { min-height: 300px; }
  .hm-rec { min-height: 0; aspect-ratio: 4 / 3.4; padding: 16px; }
  .hm-rec-screen { left: 16px; right: 16px; top: 16px; bottom: 76px; }
  .hm-piece { flex-wrap: wrap; }
  .hm-piece-pic { flex-basis: 120px; height: 80px; }
  .hm-piece .btn { flex: 1 1 100%; }
  .hm-ex { padding: 28px 0 56px; }
  .hm-ex-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .hm-ex-pic { aspect-ratio: 1; }
  .hm-ex-pic img { object-position: left top; }
  .hm-faq { padding-bottom: 56px; }
}

/* ---- Icon tiles (All Tools, Goes Well With) --------------------------- */
.tile-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 14px; }
.tile-red   { background: var(--marker-tint); color: var(--marker-text); }
.tile-ink   { background: var(--art-ink); color: #FFFFFF; }
.tile-ink.is-hot { color: var(--art-ink-ink); }
.tile-blue  { background: var(--art-blue); color: var(--art-blue-ink); }
.tile-sand  { background: var(--art-sand); color: var(--art-sand-ink); }
.tile-green { background: var(--art-green); color: var(--art-green-ink); }
.tile-paper { background: var(--art-paper); color: var(--ink); }

/* ---- All Tools --------------------------------------------------------- */
.tl-head { display: flex; flex-direction: column; gap: 14px; padding: 56px 0 36px; }
.tl-head > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tl-head .pg-h1 { max-width: 900px; }
.tl-head .pg-lead { font-size: 18px; max-width: 560px; }

/* Category tabs and search share one bar under the header. */
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tl-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--canvas); }
.tl-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.tl-tab span { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-tab:hover { color: var(--ink); }
.tl-tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .08), 0 0 0 1px var(--line); }
.tl-search { width: 340px; max-width: 100%; min-height: 48px; }
.tl-search input { height: 46px; font-size: 15px; }

.tl-group { display: flex; flex-direction: column; gap: 24px; padding: 56px 0 8px; }
.tl-group[hidden] { display: none; }
.tl-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.tl-group-head h2 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tl-group-head p { font-size: 15px; color: var(--muted); }

/* Four columns: the first card of a group takes a 2 by 2 spot, so nine
   image tools and five video tools both fill whole rows. */
.tl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.tl-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; color: inherit; }
.tl-card[hidden] { display: none; }
.tl-thumb {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line);
}
.tl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.tl-card:hover .tl-thumb img { transform: scale(1.025); }
.tl-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-card b { font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }
.tl-card small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tl-meta { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.pg .tl-card:hover b { color: var(--marker-text); }

.tl-card.is-big { grid-column: span 2; grid-row: span 2; }
.tl-card.is-big .tl-thumb { aspect-ratio: auto; flex: 1 1 auto; min-height: 320px; }
/* The 2 by 2 spot is taller than the 16:10 pictures, so they fill it. A
   picture whose subject sits at one side says so with object-position. */
.tl-card.is-big .tl-thumb img { object-fit: cover; }
.tl-card.is-big b { font-size: 24px; }
.tl-card.is-big small { font-size: 15px; }
/* Search shows a plain grid, so the big card shrinks back to one spot. */
.tl-group.is-filtered .tl-card.is-big { grid-column: auto; grid-row: auto; }
.tl-group.is-filtered .tl-card.is-big .tl-thumb { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
.tl-group.is-filtered .tl-card.is-big b { font-size: 18px; }

.tl-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px 48px; }
.tl-card.is-wide b { font-size: 24px; }
.tl-card.is-wide small { font-size: 16px; max-width: 420px; }

/* Links to the one-device mockup pages, under the Images grid. Search
   shows cards only, so the row steps aside while a search is on. */
.tl-models { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding-top: 4px; font-size: 15px; }
.tl-models h3 { font: 600 15px/1.4 var(--font-body); letter-spacing: 0; margin-right: 4px; }
.tl-models a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--control-border); text-underline-offset: 3px; }
.tl-models a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tl-group.is-filtered .tl-models { display: none; }

.tl-empty { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 28px 32px; border-radius: var(--r-stage); background: var(--pg-band); }
.tl-empty[hidden] { display: none; }
.tl-main { padding-bottom: 80px; }
.tl-empty p { color: var(--ink-2); }

@media (max-width: 1100px) {
  .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .tl-card.is-big { grid-row: auto; }
  .tl-card.is-big .tl-thumb { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .tl-card.is-wide { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tl-head { padding: 20px 0 24px; gap: 12px; }
  .tl-bar { padding-bottom: 16px; }
  .tl-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tl-tabs::-webkit-scrollbar { display: none; }
  .tl-tab { flex-shrink: 0; padding: 0 12px; }
  .tl-search { width: 100%; }
  .tl-group { padding-top: 36px; gap: 16px; }
  .tl-group-head h2 { font-size: 26px; }
  .tl-card b, .tl-card.is-big b, .tl-card.is-wide b { font-size: 16px; }
  .tl-card small, .tl-card.is-big small, .tl-card.is-wide small { font-size: 13px; }
  .tl-main { padding-bottom: 56px; }
  .tl-models { gap: 0 16px; }
  .tl-models h3 { flex-basis: 100%; }
  .tl-models a { display: inline-flex; align-items: center; min-height: 44px; }
}
/* Phones: a compact list, small preview on the left. */
@media (max-width: 520px) {
  .tl-grid { grid-template-columns: 1fr; gap: 16px; }
  .tl-card, .tl-card.is-big, .tl-card.is-wide { grid-column: auto; display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 14px; }
  .tl-card .tl-thumb, .tl-card.is-big .tl-thumb { aspect-ratio: 16 / 10; min-height: 0; border-radius: 10px; }
  .tl-meta { margin-top: 2px; }
}

/* ---- Tool landing template -------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) {
  .crumbs { align-items: center; gap: 0 8px; padding-top: 2px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
}
.ld-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 28px 0 36px; }
.ld-head-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ld-head .pg-h1 { max-width: 760px; }
.ld-head .pg-lead { max-width: 560px; }
.ld-head-actions { display: flex; flex-direction: column; gap: 10px; }
.ld-head-actions > div { display: flex; flex-wrap: wrap; gap: 12px; }
.ld-preview { position: relative; margin-bottom: 96px; padding: 14px; border-radius: var(--r-stage); background: var(--canvas); }
.ld-preview-try {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--surface);
  font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap;
  box-shadow: var(--shadow-popover);
}
.pg .ld-preview-try:hover { background: var(--ink-2); color: var(--surface); }
/* The editor preview: a drawing of the editor with the sample loaded. */
.ld-ed { display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ld-ed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ld-ed-top > span { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ld-ed-top b { font-weight: 600; }
.ld-ed-top small { font-size: 13px; color: var(--muted); }
.ld-ed-top i { font-style: normal; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; background: var(--ink); color: var(--surface); font-weight: 600; font-size: 13px; }
.ld-ed-body { display: flex; min-height: 470px; }
.ld-ed-rail { width: 60px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; border-right: 1px solid var(--line); }
.ld-ed-rail span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink-2); }
.ld-ed-rail span.is-on { background: var(--marker-tint); color: var(--marker); }
.ld-ed-stage { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 32px 96px; background: var(--canvas); }
.ld-ed-stage .fit { max-width: 560px; aspect-ratio: 560 / 340; }
.ld-ed-panel { width: 248px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; padding: 18px 16px; border-left: 1px solid var(--line); font-size: 13px; }
.ld-ed-panel > b { font-family: var(--font-head); font-size: 17px; letter-spacing: -.015em; }
.ld-ed-panel > div { display: flex; flex-direction: column; gap: 8px; }
.ld-ed-panel label { color: var(--muted); }
.ld-ed-sw { display: flex; gap: 8px; }
.ld-ed-sw i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.ld-ed-sw i.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.ld-ed-seg { display: flex; padding: 3px; border-radius: 10px; background: var(--raised); }
.ld-ed-seg span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 12px; }
.ld-ed-seg span.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-raised); }
.ld-ed-range { position: relative; height: 4px; margin: 8px 0; border-radius: 2px; background: var(--raised); }
.ld-ed-range span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--marker); }
.ld-ed-range i { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--marker); }
@media (max-width: 900px) { .ld-ed-panel { display: none; } }
@media (max-width: 720px) {
  .ld-ed-rail { display: none; }
  .ld-ed-body { min-height: 0; }
  .ld-ed-stage { padding: 16px 12px 76px; }
  .ld-ed-top { height: 46px; }
  .ld-ed-top small { display: none; }
}

/* App Store preview: a strip of captioned screens. */
/* Previews that show a real export from the editor. */
.ld-ed-stage.is-shot { padding: 40px 40px 96px; }
.ld-ed-shot { display: block; width: 100%; max-width: 620px; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 10px 30px rgba(20, 20, 20, .14); }
/* Redact: matches Find Private Text has not covered yet, drawn over the
   export the way the editor outlines them. Artwork colors, both themes. */
.ld-ed-shotbox { position: relative; display: block; width: 100%; max-width: 620px; }
.ld-ed-match { position: absolute; margin: -0.4% 0 0 -0.4%; padding: 0.4%; box-sizing: content-box; border: 1.5px dashed #D63A12; background: rgba(214, 58, 18, .12); }
.ld-ed-seg.is-4 span { font-size: 11px; letter-spacing: -.01em; white-space: nowrap; }
/* Five styles sit three across, the way the Redact editor sets them. */
.ld-ed-seg.is-5 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.ld-ed-seg.is-5 span { font-size: 11px; letter-spacing: -.01em; white-space: nowrap; }
.ld-ed-found { gap: 10px !important; }
.ld-ed-found label { display: flex; justify-content: space-between; }
.ld-ed-hit { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); }
.ld-ed-hit em { font-style: normal; font-weight: 600; font-size: 12px; margin-left: auto; }
.ld-ed-hit > span { display: flex; flex-direction: column; min-width: 0; font-size: 12px; white-space: nowrap; }
.ld-ed-hit small { color: var(--muted); font-size: 11px; }
.ld-ed-hit i, .ld-ed-hit-all i { font-style: normal; flex-shrink: 0; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--control-border); font-weight: 600; font-size: 12px; }
.ld-ed-hit-all { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 12px; color: var(--ink); }
.ld-ed-hit-all i { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ld-ed-field { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: 8px; color: var(--ink); background: var(--surface); }
.ld-ed-field .icon { color: var(--muted); }
.ld-icons { display: flex; align-items: flex-end; justify-content: center; gap: 28px; flex-wrap: wrap; }
.ld-icons span { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ld-icons img { display: block; box-shadow: 0 1px 2px rgba(20, 20, 20, .08), 0 8px 20px rgba(20, 20, 20, .14); }
@media (max-width: 720px) { .ld-icons { gap: 14px; } .ld-icons span:first-child img { width: 120px; height: 120px; border-radius: 27px !important; } }
/* Small controls drawn inside step artwork. */
.ld-mini-seg { display: inline-flex; padding: 3px; border-radius: 8px; background: #F0F0EC; font-size: 10px; font-weight: 600; color: #5E5E5A; }
.ld-mini-seg span { padding: 4px 9px; border-radius: 6px; }
.ld-mini-seg span.is-on { background: #FFFFFF; color: #141414; box-shadow: 0 1px 2px rgba(20, 20, 20, .08); }
.ld-mini-sw { display: inline-flex; gap: 7px; }
.ld-mini-sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(20, 20, 20, .18); }
.ld-mini-sw i.is-on { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #141414; }
.ld-mini-icons { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(20, 20, 20, .08); color: #3D3D3A; }
.ld-mini-icons i { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ld-mini-icons i.is-on { background: #FBE3DA; color: #D63A12; }
.ld-mini-icons .icon { width: 18px; height: 18px; }
.ld-mini-sizes { display: inline-flex; align-items: flex-end; gap: 8px; }
.ld-mini-sizes i { border-radius: 3px; background: #FBE3DA; box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .12); }
.ld-ed-stage.is-strip { padding: 32px 24px 96px; }
.ld-ed-stage.is-strip .fit { max-width: 664px; aspect-ratio: 664 / 340; }
.sp-strip { display: flex; gap: 16px; width: 664px; height: 340px; }
.sp-screen { position: relative; width: 154px; height: 335px; flex-shrink: 0; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 22px; }
.sp-screen.is-on { box-shadow: 0 0 0 2px var(--canvas), 0 0 0 4px #2F6FED; }
.sp-screen b { font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1.08; letter-spacing: -.02em; text-align: center; padding: 0 12px; }
.sp-phone { width: 118px; flex: 1; padding: 5px 5px 0; border-radius: 20px 20px 0 0; background: #1A1A19; overflow: hidden; }
.sp-phone img { width: 100%; height: auto; border-radius: 15px 15px 0 0; }
.ld-ed-sizes { display: flex; flex-direction: column; gap: 10px; }
.ld-ed-sizes span { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ld-ed-sizes i { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; border: 1px solid var(--field-border); display: flex; align-items: center; justify-content: center; }
.ld-ed-sizes i.is-on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ld-ed-sizes i .icon { width: 12px; height: 12px; }
.ld-ed-sizes small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ld-ed-top .ld-ed-acts { display: flex; gap: 8px; }
.ld-ed-top .ld-ed-acts i.is-quiet { background: var(--surface); color: var(--ink); border: 1px solid var(--control-border); }
@media (max-width: 720px) {
  .ld-ed-stage.is-strip { padding: 16px 12px 76px; }
  .ld-ed-stage.is-shot { padding: 16px 12px 76px; }
  .ld-ed-top .ld-ed-acts i.is-quiet { display: none; }
}

.ld-how { display: flex; flex-wrap: wrap; gap: 32px 48px; margin-bottom: 96px; }
.ld-how-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.ld-how-side p { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 320px; }
.ld-steps { flex: 2 1 640px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ld-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ld-step-num { width: 44px; font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--marker); }
.ld-step-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ld-step-text h3 { font-size: 22px; line-height: 1.2; }
.ld-step-text p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ld-step-art { position: relative; width: 240px; height: 112px; flex-shrink: 0; border-radius: 12px; background: var(--art-paper); overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ld-rel { display: flex; flex-direction: column; gap: 20px; margin-bottom: 96px; }
.ld-rel-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.ld-rel-card {
  flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface);
  text-decoration: none; transition: border-color .12s ease;
}
.ld-rel-card:hover { border-color: var(--ink); }
.ld-rel-card .tile-icon { width: 48px; height: 48px; border-radius: 12px; }
.ld-rel-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ld-rel-card b { font-weight: 600; font-size: 16px; }
.ld-rel-card span { font-size: 14px; color: var(--muted); }
.ld-rel-card:hover b { color: var(--marker-text); }
.ld-faq { margin-bottom: 96px; }
.ld-faq .faq-side { flex-basis: 280px; }
/* Sizes and Limits: a plain spec table on a tool page, with its sources. */
.ld-specs { display: flex; flex-direction: column; gap: 16px; margin-bottom: 96px; }
.ld-specs table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.ld-specs :is(th, td) { padding: 14px 20px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); overflow-wrap: break-word; }
.ld-specs :is(th, td):last-child { padding-right: 0; }
.ld-specs thead th { padding-top: 12px; padding-bottom: 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted); }
.ld-specs tbody th { font-weight: 600; color: var(--ink); }
.ld-specs td b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.ld-specs a { text-decoration: underline; text-underline-offset: 3px; }
.ld-specs-note { font-size: 13px; line-height: 18px; color: var(--muted); }
@media (max-width: 720px) {
  .ld-specs { margin-bottom: 56px; }
  .ld-specs table { font-size: 14px; line-height: 20px; }
  .ld-specs :is(th, td) { padding: 12px 12px 12px 0; }
}
@media (max-width: 720px) {
  .ld-head { padding: 16px 0 24px; gap: 20px; }
  .ld-head-copy { flex-basis: 100%; }
  .ld-head-actions { width: 100%; }
  .ld-head-actions .btn { flex: 1 1 auto; }
  .ld-preview { margin-bottom: 56px; padding: 8px; }
  .ld-preview-try { bottom: 16px; }
  .ld-how, .ld-rel, .ld-faq { margin-bottom: 56px; }
  .ld-steps li { gap: 16px; padding: 22px 0; }
  .ld-step-num { width: 32px; font-size: 32px; }
  .ld-step-art { width: 100%; }
}

/* ---- 404 ---------------------------------------------------------------- */
.nf { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding-top: 40px; padding-bottom: 72px; }
.nf-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.nf-code { font-weight: 600; font-size: 15px; color: var(--marker-text); }
.nf-copy .pg-lead { font-size: 18px; max-width: 460px; }
.nf-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.nf-pills .chip { font-size: 14px; }
.nf-hint { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 460px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.nf-art { flex: 1 1 480px; min-width: 0; display: flex; justify-content: center; padding: 48px 36px; border-radius: var(--r-stage); background: var(--marker-tint); }
.nf-art .fit { max-width: 460px; aspect-ratio: 460 / 300; }
.nf-scene { position: relative; width: 460px; height: 300px; }
.nf-browser { position: absolute; inset: 0; border-radius: 10px; background: #FFFFFF; overflow: hidden; box-shadow: 0 18px 40px rgba(120, 40, 10, .18); }
.nf-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #F6F6F3; }
.nf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3E3DE; }
.nf-bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: #FFFFFF; font-size: 11px; color: #5E5E5A; }
.nf-lines { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; }
.nf-lines span { height: 10px; border-radius: 5px; background: #ECECEF; }
.nf-scene svg { position: absolute; inset: 0; overflow: visible; }
.nf-q { position: absolute; left: 380px; top: 94px; width: 28px; height: 28px; }
.nf-q .icon { width: 18px; height: 18px; color: #FFFFFF; }
.nf-call { position: absolute; left: 30px; top: 252px; padding: 10px 14px; border-radius: 10px; background: #D63A12; color: #FFFFFF; font-weight: 600; font-size: 14px; white-space: nowrap; }
.nf-arrow { stroke-dasharray: 260; animation: nf-draw 4s ease-in-out infinite; }
.nf-head { animation: nf-head 4s ease-in-out infinite; }
@keyframes nf-draw { 0%, 10% { stroke-dashoffset: 260; } 40%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
@keyframes nf-head { 0%, 38% { opacity: 0; } 42%, 90% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 720px) {
  .nf { padding-top: 16px; padding-bottom: 56px; gap: 32px; }
  .nf-copy { flex-basis: 100%; }
  .nf-copy .hm-actions .btn { flex: 1 1 auto; }
  .nf-art { flex-basis: 100%; padding: 24px 14px; }
}

/* ---- Examples (examples.html) -------------------------------------------
   Finished pieces from the editors, grouped by kind on a 12 column grid.
   Each piece sets its width in columns (--span); the pictures keep their
   own shape, except guides (the top of the page) and the tall preview. */
.xp-main { max-width: 1280px; padding-bottom: 96px; }
.xp-head { display: flex; flex-direction: column; gap: 14px; padding: 40px 0 24px; }
.xp-head .pg-lead { font-size: 18px; max-width: 680px; }
.xp-jump { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.xp-jump .chip { text-decoration: none; }
.xp-group { display: flex; flex-direction: column; gap: 24px; padding: 48px 0 8px; scroll-margin-top: 16px; }
.xp-group + .xp-group { border-top: 1px solid var(--line); margin-top: 32px; }
.xp-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.xp-group-head h2 { font-size: 28px; line-height: 34px; }
.xp-group-head p { max-width: 520px; font-size: 16px; line-height: 25px; color: var(--ink-2); }
.xp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.xp { grid-column: span var(--span, 4); min-width: 0; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 16px; }
.xp-pic { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.xp-pic img { width: 100%; height: auto; }
.xp.is-tall { align-self: stretch; }
.xp.is-tall .xp-pic { flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.xp.is-tall .xp-pic img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; }
.xp.is-doc .xp-pic { aspect-ratio: 4 / 3; background: var(--hm-mint); padding: 32px 48px 0; box-shadow: none; }
.xp.is-doc .xp-pic img { height: 100%; object-fit: cover; object-position: top; border-radius: 6px 6px 0 0; box-shadow: 0 8px 24px rgba(20, 60, 40, .18); }
.xp-text { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.xp-text > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xp-text h3 { font-size: 18px; line-height: 24px; margin-bottom: 2px; }
.xp.is-big .xp-text h3 { font-size: 20px; line-height: 26px; }
.xp-text p { font-size: 14px; line-height: 20px; color: var(--muted); }
.xp-text p a { color: var(--ink-2); }
.xp-text .btn { flex-shrink: 0; }

@media (max-width: 1023px) {
  .xp { grid-column: span 6; }
  .xp.is-big, .xp.is-doc { grid-column: span 12; }
  .xp.is-doc .xp-pic { aspect-ratio: 16 / 9; padding: 32px 18% 0; }
  .xp.is-tall { grid-column: span 6; }
}
@media (max-width: 720px) {
  .xp-head { padding: 12px 0 8px; }
  .xp-group { padding: 32px 0 0; gap: 18px; }
  .xp-group + .xp-group { margin-top: 24px; }
  .xp-grid { gap: 32px; }
  .xp, .xp.is-tall { grid-column: span 12; }
  .xp.is-tall .xp-pic { min-height: 0; aspect-ratio: 4 / 5; }
  .xp.is-doc .xp-pic { aspect-ratio: 4 / 3; padding: 20px 24px 0; }
  .xp-text .btn { flex: 1 1 100%; }
  .xp-main { padding-bottom: 56px; }
}

/* ---- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .nf-arrow, .nf-head { animation: none; }
  .hm-ex-item:hover .hm-ex-pic img { transform: none; }
}

/* GIF Maker preview: the exported GIF over a small timeline. */
.ld-ed-stage.is-gif { padding: 36px 36px 96px; }
.ld-gif { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 14px; }
.ld-gif .ld-ed-shot { max-width: none; }
.ld-tl { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ld-tl-track { position: relative; flex: 1; height: 26px; border-radius: 5px; background: repeating-linear-gradient(90deg, var(--surface) 0 30px, var(--raised) 30px 32px); box-shadow: inset 0 0 0 1px var(--line); }
.ld-tl-track i { position: absolute; top: -3px; bottom: -3px; border: 3px solid var(--marker); border-radius: 6px; }
.ld-tl-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: -6px; }
.ld-ed-est { display: flex !important; flex-direction: row !important; justify-content: space-between; align-items: baseline; margin-top: auto; padding: 12px; border-radius: 10px; background: var(--paper); }
.ld-ed-est span { color: var(--muted); }

/* Screen Recorder preview: a recording with the camera bubble over the recording bar. */
.ld-ed-stage.is-rec { padding: 36px 36px 96px; }
.ld-rec { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ld-rec .ld-ed-shot { max-width: none; width: 100%; }
.ld-recbar { display: inline-flex; align-items: center; gap: 6px; padding: 5px 5px 5px 12px; border-radius: 999px; background: #141414; color: #FFFFFF; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.ld-recbar i { width: 8px; height: 8px; border-radius: 50%; background: #FF6A3D; }
.ld-recbar b { min-width: 34px; font-variant-numeric: tabular-nums; }
.ld-recbar span { padding: 5px 10px; border-radius: 999px; background: #2C2C2A; }
.ld-recbar span.is-stop { background: #FFFFFF; color: #141414; }
.ld-recbar.is-mini { font-size: 10px; padding: 4px 4px 4px 10px; }
.ld-recbar.is-mini span { padding: 3px 8px; }
/* Shrink a Video preview: the old and new file size. */
.ld-shrink { display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-raised); color: var(--muted); }
.ld-shrink > span { display: flex; flex-direction: column; line-height: 1.15; }
.ld-shrink small { font-size: 12px; color: var(--muted); }
.ld-shrink b { font-family: var(--font-head); font-size: 22px; letter-spacing: -.02em; color: var(--ink); }
.ld-shrink > span:first-child b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.ld-shrink.is-mini { gap: 8px; padding: 6px 10px; border-radius: 10px; background: #FFFFFF; color: #5E5E5A; box-shadow: 0 1px 2px rgba(20, 20, 20, .08); }
.ld-shrink.is-mini small { font-size: 9px; color: #5E5E5A; }
.ld-shrink.is-mini b { font-size: 14px; color: #141414; }
.ld-shrink.is-mini > span:first-child b { color: #5E5E5A; }
/* App Store Preview Videos preview: the portrait frame beside its checklist. */
.ld-ed-stage.is-ap { padding: 32px 36px 96px; }
.ld-ap { display: flex; align-items: center; justify-content: center; gap: 32px; width: 100%; }
.ld-ap .ld-ed-shot { width: 210px; max-width: 42%; height: auto; border-radius: 22px; }
.ld-ap-checks { list-style: none; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-raised); font-size: 13px; color: var(--ink); }
.ld-ap-checks li { display: flex; align-items: center; gap: 8px; white-space: nowrap; line-height: 17px; }
.ld-ap-checks .icon { color: var(--success); flex-shrink: 0; }
@media (max-width: 760px) {
  .ld-ed-stage.is-gif, .ld-ed-stage.is-rec { padding: 16px 12px 76px; }
  .ld-ed-stage.is-ap { padding: 16px 12px 76px; }
  .ld-ap { gap: 14px; }
  .ld-ap .ld-ed-shot { width: 120px; border-radius: 14px; }
  .ld-ap-checks { padding: 10px 12px; gap: 8px; font-size: 11px; }
  .ld-ap-checks li { white-space: normal; }
  .ld-recbar { font-size: 11px; }
  .ld-recbar span { padding: 4px 8px; }
}

/* Screenshot Checker preview: the Store Rules dialog over a dimmed strip. */
.sc-wrap { position: relative; }
/* The set behind the dialog fades under a scrim (an overlay, so contrast
   checks read it as covered text). */
.sc-dim { position: relative; display: flex; gap: 16px; }
.sc-dim::after { content: ""; position: absolute; inset: -2px; background: color-mix(in srgb, var(--canvas) 65%, transparent); }
.sc-dlg {
  position: absolute; left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border-radius: 12px; background: #FFFFFF; color: #141414;
  box-shadow: 0 1px 2px rgba(20, 20, 20, .08), 0 16px 40px rgba(20, 20, 20, .2);
  font-size: 12px; line-height: 16px;
}
.sc-dlg > b { font-family: var(--font-head); font-size: 17px; line-height: 22px; letter-spacing: -.015em; }
.sc-dlg > small { color: #5E5E5A; font-size: 11px; }
.sc-dlg ul { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.sc-dlg li { display: flex; gap: 10px; align-items: flex-start; }
.sc-dlg li span { display: flex; flex-direction: column; gap: 2px; color: #5E5E5A; }
.sc-dlg li strong { color: #141414; font-weight: 600; }
.sc-dlg .icon, .sc-mini .icon { width: 16px; height: 16px; flex-shrink: 0; }
.sc-dlg .is-ok .icon, .sc-mini.is-ok .icon { color: #1F7A45; }
.sc-dlg .is-warn .icon, .sc-mini.is-warn .icon { color: #9A6200; }
.sc-mini { width: 200px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; }

/* ---- Feature rows (landing pages) ---------------------------------------
   Real exports where the spec table and drawn steps were, with the facts
   list and the "Next" links under them. Shared by the landing pages whose
   body has class "ft-page"; :where() keeps the specificity the rules had as
   an inline block, so page styles that came after still win. Landing pages
   with their own feature row block do not take the class. */
:where(.ft-page) .ft-feats { display: flex; flex-direction: column; gap: 72px; margin-bottom: 96px; }
:where(.ft-page) .ft-feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px; }
:where(.ft-page) .ft-feat.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
:where(.ft-page) .ft-feat.is-flip .ft-copy { order: 2; }
:where(.ft-page) .ft-copy { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }
:where(.ft-page) .ft-copy .pg-text { margin: 0; }
:where(.ft-page) .ft-art { border-radius: var(--r-stage); background: var(--art-paper); padding: 28px; min-width: 0; }
:where(.ft-page) .ft-art img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(20, 20, 20, .06), 0 6px 18px rgba(20, 20, 20, .10); }
:where(.ft-page) .ft-art figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
:where(.ft-page) .ft-art figcaption { font-size: 13px; line-height: 18px; color: var(--muted); text-align: center; }
:where(.ft-page) .ft-grid { display: grid; gap: 20px 24px; }
:where(.ft-page) .ft-grid.is-1 { grid-template-columns: minmax(0, 1fr); }
:where(.ft-page) .ft-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
:where(.ft-page) .ft-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
:where(.ft-page) .ft-grid > .is-wide { grid-column: 1 / -1; }
:where(.ft-page) .ft-grid.is-pair { grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr); align-items: end; }
:where(.ft-page) .ft-grid.is-strips { gap: 14px; }
:where(.ft-page) .ft-art .is-ui img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08); }
:where(.ft-page) .ft-art .is-pad img { background: #FFFFFF; padding: 12px; }
:where(.ft-page) .ft-art .is-narrow img { max-width: 360px; margin: 0 auto; }
:where(.ft-page) .ft-facts { display: flex; flex-direction: column; gap: 16px; margin-bottom: 96px; }
:where(.ft-page) .ft-facts dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
:where(.ft-page) .ft-facts dl > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
:where(.ft-page) .ft-facts dt { font-weight: 600; font-size: 15px; line-height: 22px; color: var(--ink); }
:where(.ft-page) .ft-facts dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-2); overflow-wrap: break-word; }
:where(.ft-page) .ft-facts dd b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
:where(.ft-page) .ft-facts a { text-decoration: underline; text-underline-offset: 3px; }
:where(.ft-page) .ft-facts-note { font-size: 13px; line-height: 18px; color: var(--muted); }
:where(.ft-page) .ft-next { display: flex; flex-direction: column; gap: 16px; margin-bottom: 96px; }
:where(.ft-page) .ft-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
:where(.ft-page) .ft-next li { border-bottom: 1px solid var(--line); }
:where(.ft-page) .ft-next a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; text-decoration: none; }
:where(.ft-page) .ft-next b { font-weight: 600; font-size: 16px; }
:where(.ft-page) .ft-next span { font-size: 14px; color: var(--muted); text-align: right; }
:where(.ft-page) .ft-next a:hover b { color: var(--marker-text); }
@media (max-width: 860px) {
  :where(.ft-page) .ft-feat, :where(.ft-page) .ft-feat.is-flip { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  :where(.ft-page) .ft-feat.is-flip .ft-copy { order: 0; }
  :where(.ft-page) .ft-next ul, :where(.ft-page) .ft-facts dl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  :where(.ft-page) .ft-feats { gap: 48px; margin-bottom: 56px; }
  :where(.ft-page) .ft-art { padding: 16px; }
  :where(.ft-page) .ft-grid { gap: 14px 10px; }
  :where(.ft-page) .ft-facts, :where(.ft-page) .ft-next { margin-bottom: 56px; }
  :where(.ft-page) .ft-next a { flex-direction: column; gap: 2px; }
  :where(.ft-page) .ft-next span { text-align: left; }
}
