/* The About page (owner, 2026-12-02: mock-up v1 of the page,
 * https://claude.ai/artifact/Scm5PEv566ShcrU4qiApbf).
 *
 * Loaded only by templates/public/about.html, after site.css, whose tokens
 * and shared parts (.wrap, .sec, .h1/.h2/.h3, .lead, .head, .btn, .tag,
 * .frame, .mark, .link, .page-hero, .band) it builds on. The pictures are
 * small pieces of the app (templates/public/_about_parts.html); what moves
 * them is static/js/about.js. Every rule names one of this page's own
 * classes (`ab-`) or hooks (`data-ab-`), so it restyles nothing elsewhere.
 *
 * The rule from motion.css holds: the served markup is the finished page.
 * A "before" state is written only under a state about.js itself sets
 * (`ab-on` on the story, `lit` on a chapter, `ab-play`, a `data-view` or
 * `data-state` other than the served "now" and "done"), so a page whose
 * script never ran hides nothing. The approve loop runs only while its
 * picture is on screen (`ab-live`).
 */

.ab-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ab-ic.sm { width: 13px; height: 13px; }

/* ── hero ── */
.ab-hero .page-hero-in { padding-bottom: clamp(56px, 7vw, 104px); }
.ab-hero-copy .h1 { font-size: clamp(2.3rem, 4.8vw, 3.9rem); }
.ab-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ab-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.ab-facts span { display: inline-flex; align-items: center; gap: 7px; }
.ab-facts .ab-ic { width: 16px; height: 16px; color: var(--blue); }

/* before / now */
.ab-bn { box-shadow: var(--shadow); }
.ab-bn-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ab-bn-top b { white-space: nowrap; display: flex; align-items: center; gap: 8px; min-width: 0; font-family: var(--display); font-weight: 600; font-size: 15px; }
.ab-seg { margin-left: auto; display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: var(--panel); flex: none; }
.ab-seg button { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ab-seg button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 0 0 1px var(--line); }
.ab-bn-body { display: grid; padding: 16px; }
.ab-bn-body > div { grid-area: 1 / 1; min-width: 0; transition: opacity .45s, transform .5s cubic-bezier(.2, .8, .2, 1), visibility .45s; }
.ab-bn[data-view="now"] .ab-bn-before,
.ab-bn[data-view="before"] .ab-bn-now { opacity: 0; visibility: hidden; transform: translateY(8px); }
.ab-rows { display: grid; gap: 8px; }
.ab-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ab-nm { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-nm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.ab-q { min-width: 28px; text-align: right; font-family: var(--display); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.ab-bn-before .ab-q { color: var(--orange); }
.ab-bn-before .ab-q.zero { color: var(--red); }
.ab-bn-now .ab-row:first-child { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--blue-tint); }
.ab-sheet { display: grid; place-items: center; width: 46px; height: 30px; flex: none; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); }
.ab-sheet .ab-ic { width: 16px; height: 16px; }
/* The Prekio mark on a navy tile in both themes. */
.ab-p { display: grid; place-items: center; width: 46px; height: 30px; flex: none; border-radius: 8px; background: #1d2b3f; --logo-back: #7cc0ff; --logo-front: #ffffff; }
.ab-p svg { width: 18px; height: 18px; }
.ab-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ab-mark { flex: none; }

/* ── the story: four chapters on one line ── */
.ab-story { position: relative; display: grid; margin-top: clamp(44px, 6vw, 72px); }
.ab-story::before,
.ab-story::after { content: ""; position: absolute; left: 17px; top: 8px; width: 2px; }
.ab-story::before { bottom: 8px; background: var(--line); }
.ab-story::after { height: calc((100% - 16px) * var(--ab-fill, 1)); background: var(--blue); transition: height .3s linear; }
.ab-ch { position: relative; display: grid; gap: 22px 48px; padding: 0 0 clamp(48px, 6vw, 80px) 56px; }
.ab-ch:last-child { padding-bottom: 0; }
@media (min-width: 980px) { .ab-ch { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.ab-n { position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .3s, background-color .3s, color .3s; }
.ab-on .ab-ch:not(.lit) .ab-n { border-color: var(--line-2); background: var(--bg); color: var(--muted); }
.ab-copy { padding-top: 4px; }
.ab-copy .h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.025em; }
.ab-copy p { margin-top: 12px; max-width: 520px; font-size: 16.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.ab-pic .frame-in { padding: 16px; }

/* 1: the logins and the spreadsheet */
.ab-logins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ab-login { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ab-login span { min-width: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ab-login b { display: block; color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: .12em; }
.ab-ledger { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 13px; }
.ab-ledger-hd { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); }
.ab-ledger-hd .ab-ic { width: 16px; height: 16px; }
.ab-ledger-hd .tag { margin-left: auto; font-size: 11px; }
.ab-ledger-r { display: flex; justify-content: space-between; gap: 10px; }
.ab-ledger-r i { font-style: normal; font-weight: 600; color: var(--orange); font-variant-numeric: tabular-nums; }
.ab-ledger-r s { font-weight: 600; color: var(--red); }

/* 2: one place */
.ab-one-hd { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.ab-wordmark { height: 22px; width: auto; }
.ab-one-hd .tag { margin-left: auto; }
.ab-one { display: grid; gap: 6px; }
.ab-one li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-weight: 500; font-size: 14px; transition: opacity .45s, transform .5s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
.ab-one li > .ab-ic { color: var(--blue); }
.ab-one .tag { margin-left: auto; font-size: 11px; color: var(--green); }
.ab-on .ab-ch:not(.ab-play) .ab-one li { opacity: .25; transform: translateX(-6px); }

/* 3: an AI draft a person approves */
.ab-draft { position: relative; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.ab-draft-hd { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ab-draft-hd b { font-weight: 600; font-size: 14px; white-space: nowrap; }
.ab-draft-hd .tag { margin-left: auto; }
.ab-draft-tag { justify-self: start; }
.ab-ln { display: block; height: 8px; border-radius: 4px; background: var(--panel); }
.ab-ln.add { background: var(--green-tint); box-shadow: inset 3px 0 0 var(--green); }
.ab-draft-ft { position: relative; display: flex; align-items: center; margin-top: 4px; }
.ab-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 600; font-size: 13px; transition: transform .12s, background-color .2s; }
.ab-draft .ab-wait { display: none; }
.ab-draft[data-state="ready"] .ab-wait,
.ab-draft[data-state="press"] .ab-wait { display: inline-flex; }
.ab-draft[data-state="ready"] .ab-ok,
.ab-draft[data-state="press"] .ab-ok { display: none; }
.ab-draft[data-state="ready"] .ab-btn,
.ab-draft[data-state="press"] .ab-btn { background: var(--ink); color: var(--on-ink); }
.ab-draft[data-state="press"] .ab-btn { transform: scale(.94); }
.ab-pointer { position: absolute; left: 70px; top: 18px; width: 22px; height: 22px; opacity: 0; transition: opacity .3s, transform .5s cubic-bezier(.3, .7, .2, 1); pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.ab-draft[data-state="ready"] .ab-pointer { opacity: 1; transform: translate(14px, 10px); }
.ab-draft[data-state="press"] .ab-pointer { opacity: 1; transform: scale(.86); }

/* 4: a system of your own */
.ab-sys { display: grid; gap: 10px; }
.ab-url { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); font-size: 13.5px; font-weight: 500; }
.ab-url > .ab-ic { width: 15px; height: 15px; color: var(--green); }
.ab-url > span:not(.tag) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-url .tag { margin-left: auto; }
.ab-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ab-box { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); opacity: .55; }
.ab-box.me { opacity: 1; background: var(--card); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: 0 0 0 3px var(--blue-tint); }
.ab-box b { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--faint); }
.ab-box.me b { color: var(--text); }
.ab-box small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.ab-box small .ab-ic { width: 13px; height: 13px; }

/* ── what we believe ── */
.ab-bel { display: grid; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.ab-bel li { display: grid; gap: 12px; align-content: start; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ab-bel p { color: var(--muted); line-height: 1.6; }
.ab-num { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--blue); font-variant-numeric: tabular-nums; }
.ab-kicker { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--blue); flex: none; }
.ab-kicker .ab-ic { width: 20px; height: 20px; }
@media (min-width: 860px) {
  .ab-bel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-bel li { padding: 32px 28px 8px; border-bottom: 0; border-right: 1px solid var(--line); }
  .ab-bel li:first-child { padding-left: 0; }
  .ab-bel li:last-child { padding-right: 0; border-right: 0; }
}

/* ── three facts ── */
.ab-facts-sec { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.ab-fx .frame-in { display: grid; }
.ab-fx-cell { display: grid; gap: 10px; align-content: start; padding: 26px 24px; border-bottom: 1px solid var(--line); }
.ab-fx-cell:last-child { border-bottom: 0; }
.ab-fx-t { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; }
.ab-fx-t .ab-kicker { width: 34px; height: 34px; border-radius: 10px; background: var(--panel); border: 0; }
.ab-fx-t .ab-kicker .ab-ic { width: 17px; height: 17px; }
.ab-fx-cell p { color: var(--muted); line-height: 1.6; font-size: 15px; }
.ab-fx-cell .link { justify-self: start; margin-top: 4px; font-size: 14px; }
@media (min-width: 860px) {
  .ab-fx .frame-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-fx-cell { border-bottom: 0; border-right: 1px solid var(--line); }
  .ab-fx-cell:last-child { border-right: 0; }
}

@media (max-width: 560px) {
  .ab-ch { padding-left: 48px; }
  .ab-n { width: 32px; height: 32px; font-size: 12px; }
  .ab-story::before, .ab-story::after { left: 15px; }
  .ab-stack { gap: 6px; }
  .ab-box { padding: 10px 8px; }
}
/* A narrow phone: the logins one under another, the spreadsheet's note under
   its name, the address on its own line, and the other customers' boxes
   without their caption (only yours keeps it). */
@media (max-width: 420px) {
  .ab-logins { grid-template-columns: minmax(0, 1fr); }
  .ab-ledger-hd, .ab-url { flex-wrap: wrap; }
  .ab-url { border-radius: 14px; }
  .ab-url > span:not(.tag) { flex: 1 1 100%; order: 1; }
  .ab-url .tag { margin-left: 0; }
  .ab-stack { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
  .ab-box:not(.me) small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-bn-body > div, .ab-story::after, .ab-n, .ab-one li, .ab-btn, .ab-pointer { transition: none; }
}
