/* 6PT Apps pages (/apps, /apps/library and /apps/omnitip). Loaded after tool-4.css, which carries the shared frame (header, left menu, dashboard mode),
   the guide's FAQ cards and the blue call-to-action band. Everything here is prefixed ap- so it never collides with the tool pages.
   Mock-ups are drawn with markup and CSS (no pictures); each is labelled "Preview · sample data". Motion: two small moments, both off under reduced motion. */
:root { --warn: #A55300; --warn-soft: rgba(165, 83, 0, 0.11); }
.ap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px) 24px; }
html.embed .ap { padding-inline: 4px; }
.ap h1 { max-width: 20ch; }
/* App page title: the app icon beside the title. The marketing line under it (.ap-statement) is the hero statement. */
.ap-titlebar { display: flex; align-items: center; gap: 16px; margin: 0 0 6px; }
.ap-titlebar .ap-appicon { flex: none; }
.ap-titlebar h1 { margin: 0; max-width: none; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.ap-statement { margin: 4px 0 0; max-width: 20ch; font-family: var(--font-title); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
html.embed .embed-bar .embed-open { margin-left: auto; }
.ap-hero-solo h1 { max-width: none; }
.ap-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding-block: 14px 44px; }
.ap-hero-solo { padding-bottom: 10px; }
@container (min-width: 880px) { .ap-hero:not(.ap-hero-solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; } }
.ap-copy { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.ap-copy > * { margin: 0; }
.ap-copy .answer { max-width: 56ch; }
.ap-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 0.9375rem; text-decoration: none; transition: border-color 140ms, filter 140ms; }
.ap-btn:hover { border-color: var(--accent); color: var(--accent); }
.ap-btn-primary { border-color: transparent; color: #fff; background: linear-gradient(180deg, var(--accent-lift), var(--accent)); }
.ap-btn-primary:hover { color: #fff; border-color: transparent; filter: brightness(1.06); }
html.embed .ap-actions .ap-btn:not(.ap-btn-primary) { display: none; }

/* Layouts follow the width of the page's own column (.pane, a size container in tool-N.css), so the left menu never squeezes them. */
/* ---------- Sections ---------- */
.ap-sec { padding-block: 46px; border-top: 1px solid var(--rule-soft); scroll-margin-top: 80px; }
.ap-sec-first { border-top: 0; padding-top: 24px; }
.ap h2 { margin: 0 0 10px; font-family: var(--font-title); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.ap-copy p, .ap-head p { margin: 0; max-width: 54ch; color: var(--ink-2); font-size: 1.0625rem; }
.ap-head { margin-bottom: 22px; max-width: 70ch; }
.ap-head h2 { margin-bottom: 8px; }
.ap-feat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
@container (min-width: 840px) {
  .ap-feat { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; }
  .ap-feat:nth-of-type(even) .ap-copy { order: 2; }
}
.ap-vis { min-width: 0; }
.ap-note { margin: 22px 0 0; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Overview: app tiles ---------- */
.ap-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ap-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; min-height: 15rem;   /* one card size on both hub pages (/free-tools and /apps) */
  padding: 20px; border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--panel); box-shadow: 0 1px 2px rgba(23, 25, 28, 0.04); color: var(--ink); text-decoration: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.ap-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
/* The icon slot on an app tile: 64px, shared by both kinds. A real app icon (.ap-appicon) is the full artwork in a rounded square like an iOS icon
   (corner radius 22.4% of the width), with a very soft shadow and a hairline edge so a white icon tile still shows on the white card.
   An app without an icon yet keeps the symbol on a pale square (.ap-tile-ico). To add a real icon to any tile: <span class="ap-appicon"><img ...></span>. */
:root { --ap-icon: 4rem; }
.ap-appicon, .ap-tile-ico { display: block; position: relative; flex: none; width: var(--ap-icon); height: var(--ap-icon); }
.ap-appicon { border-radius: 22.4%; box-shadow: 0 1px 2px rgba(23, 25, 28, 0.10), 0 5px 12px -5px rgba(23, 25, 28, 0.20); }
.ap-appicon img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.ap-appicon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(23, 25, 28, 0.09); pointer-events: none; }
.ap-tile-ico { display: inline-grid; place-items: center; border-radius: 22.4%; background: var(--accent-soft); color: var(--accent); }
.ap-tile-ico svg { width: 1.75rem; height: 1.75rem; }
.ap-tile-ico.is-tool { color: #fff; background: linear-gradient(180deg, var(--accent-lift), var(--accent)); box-shadow: 0 10px 22px -12px rgba(33, 74, 200, 0.6); }   /* a free tool's symbol, the same blue square as in the dashboard */
.ap-tile-title { margin-top: 6px; font-family: var(--font-title); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.ap-tile-sub { color: var(--ink-2); }
/* The open icon: the same framed arrow-up-right as the Free Tools tiles and the Library app's Open button, bottom right of the tile. */
.ap-tile-go { display: grid; place-items: center; flex: none; align-self: flex-end; width: 28px; height: 28px; margin-top: auto; border: 1px solid var(--rule-soft); border-radius: 8px; background: var(--panel); color: var(--ink-2);
  transition: border-color 140ms var(--ease), color 140ms var(--ease); }
.ap-tile-go svg { width: 1rem; height: 1rem; transition: transform 140ms var(--ease); }
.ap-tile:hover .ap-tile-go { border-color: var(--accent); color: var(--accent); }
.ap-tile:hover .ap-tile-go svg { transform: translate(2px, -2px); }

/* ---------- Mock-ups ---------- */
.mock { border: 1px solid var(--rule); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; font-size: 0.8125rem; line-height: 1.4; color: var(--ink); text-align: left; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--rule-soft); background: var(--fill); font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.mock-tag { padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; white-space: nowrap; }
.mock-body { padding: 14px; }
.mock small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); }
.mock-split { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 14px; }
@container (max-width: 520px) { .mock-split { grid-template-columns: minmax(0, 1fr); } .m-side { display: none; } }
.m-side, .m-rows { margin: 0; padding: 0; list-style: none; }
.m-side li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.m-side li.is-on { background: var(--accent-soft); color: var(--accent); }
.m-side b { font-weight: 600; color: inherit; opacity: 0.75; }
.m-rows { display: grid; gap: 6px; }
.m-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--rule-soft); border-radius: 10px; background: var(--panel); }
.m-row:not(:has(.dot)) { grid-template-columns: minmax(0, 1fr); }
.m-name { min-width: 0; font-weight: 700; }
.m-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-tag { padding: 1px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.m-tag.ok { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.m-tag.warn { background: var(--warn-soft); color: var(--warn); }
@container (max-width: 420px) { .m-tag { display: none; } }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.dot.warn { background: var(--warn); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.m-chips-foot { margin: 12px 0 0; }
.m-chip { padding: 3px 11px; border: 1px solid var(--rule); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.m-chip.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.m-add { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.25fr); gap: 10px; align-items: center; }
@container (max-width: 520px) { .m-add { grid-template-columns: minmax(0, 1fr); } .m-add > .m-arrow { transform: rotate(90deg); justify-self: center; } }
.m-paste { display: grid; gap: 2px; padding: 10px 12px; border: 1px dashed var(--rule); border-radius: 10px; background: var(--fill); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.75rem; color: var(--ink-2); }
.m-paste span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-arrow { color: var(--accent); }
.m-arrow svg { display: block; width: 1.25rem; height: 1.25rem; }
.m-rows-tight .m-row { padding: 6px 10px; }
.m-foot { margin: 12px 0 0; font-size: 0.75rem; color: var(--ink-3); }
.m-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-cat { display: grid; gap: 1px; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 12px; }
.m-cat b { font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.m-cat span { font-size: 0.75rem; color: var(--ink-3); }
.m-summary { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-title { margin: 0 0 10px; font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.m-facts { display: grid; gap: 6px; margin: 0; }
.m-facts > div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 10px; padding: 7px 10px; border: 1px solid var(--rule-soft); border-radius: 10px; }
.m-facts dt { font-weight: 700; color: var(--ink-2); }
.m-facts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.m-facts .is-flag { border-color: color-mix(in srgb, var(--warn) 35%, transparent); background: var(--warn-soft); }
.m-src { padding: 0 8px; border-radius: 999px; background: var(--fill); font-size: 0.75rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.m-src.warn { background: transparent; color: var(--warn); }
.sheet { padding: 16px 18px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; box-shadow: 0 6px 18px -12px rgba(23, 25, 28, 0.35); }
.sheet p { margin: 0 0 6px; color: var(--ink-2); }
.sheet-title { margin-bottom: 10px !important; font-family: var(--font-title); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--ink) !important; }
.sheet-h { margin: 10px 0 2px !important; font-size: 0.75rem; font-weight: 700; color: var(--accent) !important; }
.m-ladder { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: center; }
@container (max-width: 520px) { .m-ladder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .m-ladder > .m-arrow { display: none; } }
.m-step { display: grid; gap: 1px; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 12px; text-align: center; }
.m-step b { font-family: var(--font-title); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; }
.m-step span { font-size: 0.75rem; color: var(--ink-3); }
.m-step.is-main { border-color: var(--accent); background: var(--accent-soft); }
.m-step.is-main b { color: var(--accent); }
.m-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.m-table th { padding: 4px 8px; border-bottom: 1px solid var(--rule); font-size: 0.75rem; font-weight: 700; color: var(--ink-3); text-align: left; }
.m-table th:nth-child(n+2), .m-table td:nth-child(n+2) { width: 3.75rem; text-align: center; }
.m-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule-soft); white-space: normal; overflow-wrap: anywhere; }
.m-table .cat td { padding-top: 12px; font-size: 0.75rem; font-weight: 700; color: var(--accent); border-bottom: 0; }
.m-table i { display: inline-block; width: 2.25rem; height: 1.25rem; border: 1px solid var(--rule); border-radius: 4px; vertical-align: middle; }

/* ---------- OmniTip mock-ups (copied from the real OmniTip screens; see docs/omnitip-previews.md) ---------- */
.mock .n { text-align: right; font-variant-numeric: tabular-nums; }
.mock .c { text-align: center; }
.m-muted { color: var(--ink-3); }
.m-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 8px; margin-bottom: 12px; }
.m-stat { display: grid; align-content: start; gap: 1px; padding: 10px 12px; border: 1px solid var(--rule-soft); border-radius: 12px; }
.m-stat b { font-family: var(--font-title); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.m-stat b.ok, .m-totals b.ok { color: var(--good); }
.m-stat.is-main { border-color: var(--accent); background: var(--accent-soft); }
.m-stat.is-main b { color: var(--accent); }
.m-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-t { display: grid; margin: 0; padding: 0; list-style: none; }
.m-t > li { display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--rule-soft); min-width: 0; }
.m-t > li.h { padding-block: 4px; border-bottom-color: var(--rule); font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.m-t > li:last-child { border-bottom: 0; }
.m-t-tight > li { padding-block: 5px; }
.m-t .m-name small { white-space: normal; }
@container (max-width: 520px) {
  .m-t > li { grid-template-columns: var(--cols-s, var(--cols)); }
  .m-t .opt { display: none; }
}
.m-bar { display: block; height: 5px; margin-top: 4px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.m-ok { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--good); }
.m-ok svg { width: 1rem; height: 1rem; flex: none; }
.m-sub { margin: 14px 0 8px; font-weight: 700; color: var(--ink-2); }
.m-group { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; color: var(--ink-3); }
.m-shift { border: 1px solid var(--rule-soft); border-radius: 12px; padding: 12px; }
.m-shift-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-shift-head b { font-family: var(--font-title); font-size: 1.125rem; letter-spacing: -0.02em; }
.m-explain { display: grid; gap: 4px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--rule-soft); list-style: none; color: var(--ink-2); }
.m-line { display: flex; justify-content: space-between; gap: 10px; color: var(--ink); }
.m-title-ico { display: inline-flex; align-items: center; gap: 6px; }
.m-title-ico svg { width: 1rem; height: 1rem; }
.m-row.m-upd, .m-row.m-alertrow { grid-template-columns: auto minmax(0, 1fr) auto; }
.m-new { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.m-sevico, .m-sev { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.m-sevico.update, .m-sev.update { background: var(--accent); }
.m-sevico.open, .m-sev.open { background: var(--warn); }
.m-sevico.urgent, .m-sev.urgent { background: var(--bad); }
.m-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.m-toolbar .m-btn, .m-toolbar .m-csv { margin-left: auto; }
.m-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); font-size: 0.75rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.m-btn.pri { border-color: transparent; background: linear-gradient(180deg, var(--accent-lift), var(--accent)); color: #fff; }
.m-btn.sm { padding: 2px 10px; }
.m-btn svg { width: 0.875rem; height: 0.875rem; }
.m-in { display: inline-block; min-width: 3rem; padding: 3px 9px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel); font-variant-numeric: tabular-nums; text-align: right; }
.m-in.l { text-align: left; font-weight: 600; }
.m-sw { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.m-sw.on { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.m-sw.off { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }
.m-tag.acc { background: var(--accent-soft); color: var(--accent); }
.m-totals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--rule-soft); border-radius: 12px; background: var(--fill); }
.m-totals > span:not(.m-actions) { display: grid; gap: 0; }
.m-totals b { font-family: var(--font-title); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.m-rules { display: grid; gap: 10px; margin-bottom: 12px; }
.m-rule { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--rule-soft); border-radius: 12px; }
.m-rule .m-chips { margin: 0; }
.m-alert { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 12px; }
.m-alert-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; }
.m-alert-who { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.m-alert-who .m-sev { margin-top: 5px; }
.m-alert-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-sevname { font-size: 0.75rem; color: var(--ink-3); }
.m-dl { display: grid; gap: 6px; margin: 0; }
.m-dl > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; }
.m-dl dt { font-weight: 700; color: var(--ink-2); }
.m-dl dd { margin: 0; }
@container (max-width: 520px) { .m-dl > div { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.m-fix { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--fill); }
.m-fix-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 8px; }
.m-fix-fields > span { display: grid; gap: 2px; }
.m-fix-fields .m-in { display: block; }
.m-fix-h { margin: 4px 0 0; font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.m-to { text-align: center; color: var(--ink-3); }
.m-rows + .m-rows, .m-alert + .m-rows { margin-top: 8px; }
.m-log { display: grid; margin: 0; padding: 0; list-style: none; }
.m-log li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 9px 2px; border-bottom: 1px solid var(--rule-soft); }
.m-log li:last-child { border-bottom: 0; }
.m-when { color: var(--ink-3); font-size: 0.75rem; padding-top: 1px; }
@container (max-width: 520px) { .m-log li { grid-template-columns: minmax(0, 1fr) auto; } .m-when { grid-column: 1 / -1; } }
.m-bar-right { display: inline-flex; align-items: center; gap: 8px; }
@container (max-width: 520px) { .m-bar-right .m-btn { display: none; } }
.m-widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (max-width: 520px) { .m-widgets { grid-template-columns: minmax(0, 1fr); } }
.m-w { display: grid; align-content: start; gap: 8px; padding: 12px; border: 1px solid var(--rule-soft); border-radius: 12px; min-width: 0; }
.m-w-tall { grid-row: span 2; }
@container (max-width: 520px) { .m-w-tall { grid-row: auto; } }
.m-wt { margin: 0; font-weight: 700; color: var(--ink-2); }
.m-donut-wrap { display: grid; justify-items: center; gap: 12px; padding-block: 4px; }
.m-donut { display: grid; place-items: center; width: 8rem; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#214AC8 0 48.2%, #7C9AF0 48.2% 85.3%, #C4D1F7 85.3% 100%); -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%); mask: radial-gradient(circle, transparent 57%, #000 58%); }
.m-donut b { display: none; }
.m-legend, .m-lead { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; width: 100%; }
.m-legend li, .m-lead li { display: flex; align-items: center; gap: 8px; }
.m-legend li b, .m-lead li b { margin-left: auto; font-variant-numeric: tabular-nums; }
.m-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.m-attn li { align-items: flex-start; }
.m-attn .m-sev { margin-top: 5px; }
.m-csv svg { width: 0.875rem; height: 0.875rem; }

/* ---------- OmniTip page: small text, the "no POS" band, pricing ---------- */
.ap-vis-stack { display: grid; gap: 14px; }
.ap-small { margin: 0; font-size: 0.8125rem !important; color: var(--ink-3) !important; }
.ap-band { display: grid; gap: 6px; padding: 28px clamp(18px, 3vw, 32px); border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--accent-soft); }
.ap-band h2 { margin: 0; }
.ap-band p { margin: 0; max-width: 60ch; color: var(--ink-2); font-size: 1.0625rem; }
.ap-head .ap-status { display: inline-block; margin-bottom: 10px; }
.ap-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ap-plan { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--panel); box-shadow: 0 1px 2px rgba(23, 25, 28, 0.04); }
.ap-plan > b { font-size: 1rem; }
.ap-price { margin: 0; color: var(--ink-2); }
.ap-amt { font-family: var(--font-title); font-weight: 700; font-size: 2.25rem; letter-spacing: -0.04em; color: var(--ink); }
.ap-amt.is-text { font-size: 1.5rem; letter-spacing: -0.02em; }
.ap-year { display: grid; gap: 2px; margin: 0; color: var(--ink-2); }
.ap-year span { font-size: 0.8125rem; color: var(--ink-3); }
.ap-year span a { color: var(--accent); font-weight: 700; }
.ap-grand { margin: 16px 0 0; max-width: 62ch; color: var(--ink-2); }

/* ---------- Motion: small, once, and only when the visitor has not asked for less ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mock[data-preview="pool-split"] .m-bar i { animation: ap-grow 700ms var(--ease) both; animation-delay: 300ms; }
  .mock[data-preview="pool-split"] .m-ok { animation: ap-tag 420ms var(--ease) both; animation-delay: 900ms; }
  @keyframes ap-grow { from { width: 0; } }
}

/* ---------- Modules ---------- */
.ap-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ap-modcard { display: grid; align-content: start; gap: 6px; padding: 16px; border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--panel); box-shadow: 0 1px 2px rgba(23, 25, 28, 0.04); }
.ap-modcard b { font-family: var(--font-title); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.02em; }
.ap-modcard p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.ap-modcard.is-first { border-color: var(--accent); }
.ap-status { justify-self: start; padding: 1px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; }
.ap-status.is-soon { background: var(--fill); color: var(--ink-3); }

/* ---------- How it works ---------- */
.ap-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: ap-step; }
.ap-steps li { position: relative; display: grid; gap: 4px; padding: 16px 16px 16px 56px; border: 1px solid var(--rule-soft); border-radius: 16px; background: var(--panel); counter-increment: ap-step; }
.ap-steps li::before { content: counter(ap-step); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.ap-steps b { font-size: 1rem; }
.ap-steps span { color: var(--ink-2); }

.ap-head.faq-head { max-width: none; margin-bottom: 16px; }
.ap .byline { margin: 28px 0 18px; }
.ap .cta-band { margin-top: 0; }

/* ---------- Motion: two small moments, both only when the visitor has not asked for less motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 1. The library list: each wine's dot goes from grey to green, one after another, once. */
  .m-row.run .dot { animation: ap-dot 520ms var(--ease) both; animation-delay: calc(var(--i, 0) * 650ms + 500ms); }
  @keyframes ap-dot { from { background: rgba(23, 25, 28, 0.2); transform: scale(0.6); } 60% { transform: scale(1.35); } to { transform: scale(1); } }
  .m-row.run .m-tag.ok { animation: ap-tag 360ms var(--ease) both; animation-delay: calc(var(--i, 0) * 650ms + 700ms); }
  @keyframes ap-tag { from { opacity: 0; } to { opacity: 1; } }
  /* 2. The staff guide writes itself when it scrolls into view (apps-1.js adds the classes). */
  html.ap-motion .mock-sheet .s-in { opacity: 0; transform: translateY(6px); }
  html.ap-motion .mock-sheet.is-in .s-in { opacity: 1; transform: none; transition: opacity 420ms var(--ease), transform 420ms var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
}
@media print { .ap .ap-actions, .ap .cta-band { display: none !important; } }
