/* Article kit — the quotation template's design and motion language
   (vacei-portal-backend src/modules/quote-pages/template/quote-page.v1.html) adapted to public,
   readable articles. Scoped under .ak so it sits inside the A4 (Next.js) or Vacei (static) chrome.
   Content is complete and visible without JavaScript and under reduced motion; article-kit.js adds
   motion only when the reader allows it. */

.ak {
  --ak-ink: #09090B;
  --ak-ink-2: #18181B;
  --ak-slab-end: #27272A;
  --ak-accent: #4F55F1;
  --ak-accent-2: #6468F3;
  --ak-accent-3: #8B8FF7;
  --ak-accent-text: #4F55F1;
  --ak-accent-on-dark: #8B8FF7;
  --ak-accent-rgb: 79, 85, 241;
  --ak-paper: #FFFFFF;
  --ak-paper-2: #F4F4F5;
  --ak-paper-3: #FAFAFA;
  --ak-line: #E4E4E7;
  --ak-text: #09090B;
  --ak-body: #3F3F46;
  --ak-muted: #52525B;
  --ak-faint: #71717A;
  --ak-on-dark: #FFFFFF;
  --ak-on-dark-body: #D4D4D8;
  --ak-on-dark-muted: #A1A1AA;
  --ak-btn-bg: #FFFFFF;
  --ak-btn-text: #09090B;
  --ak-btn-solid-bg: #09090B;
  --ak-btn-solid-text: #FFFFFF;
  --ak-switch-on: #4F55F1;
  --ak-warn: #B45309;
  /* gradient text: light surfaces end at #6468F3 (>=4.36:1); dark surfaces keep the quote's full gradient */
  --ak-grad-light: linear-gradient(90deg, #4F55F1 0%, #5A5FF2 55%, #6468F3 100%);
  --ak-grad-dark: linear-gradient(90deg, #4F55F1 0%, #6468F3 55%, #8B8FF7 100%);
  --ak-grad-pill: linear-gradient(90deg, #6468F3 0%, #8B8FF7 100%);
  --ak-slab: linear-gradient(120deg, #4F55F1 0%, #27272A 100%);
  --ak-font-display: var(--font-outfit, "Outfit"), "Outfit", Inter, system-ui, sans-serif;
  --ak-font-body: var(--font-inter, "Inter"), "Inter", system-ui, sans-serif;
  --ak-wrap: 1280px;
  --ak-gutter: clamp(20px, 5vw, 72px);
  --ak-section: clamp(100px, 13vw, 180px);
  --ak-header-offset: 72px;
  --ak-ease: cubic-bezier(.16, 1, .3, 1);

  font-family: var(--ak-font-display);
  color: var(--ak-text);
  background: var(--ak-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.ak--vacei {
  --ak-ink: #0F2226;
  --ak-ink-2: #173B40;
  --ak-slab-end: #173B40;
  --ak-accent: #346A76;
  --ak-accent-2: #4E7B84;
  --ak-accent-3: #E9F16D;
  --ak-accent-text: #346A76;
  --ak-accent-on-dark: #E9F16D;
  --ak-accent-rgb: 52, 106, 118;
  --ak-paper: #FFFFFF;
  --ak-paper-2: #EDF2ED;
  --ak-paper-3: #FAFBF9;
  --ak-line: #DCE3DE;
  --ak-text: #173B40;
  --ak-body: #465D60;
  --ak-muted: #607174;
  --ak-faint: #607174;
  --ak-on-dark-body: #DCE7E8;
  --ak-on-dark-muted: #B7CDD0;
  --ak-btn-bg: #E9F16D;
  --ak-btn-text: #0F2226;
  --ak-btn-solid-bg: #173B40;
  --ak-btn-solid-text: #FFFFFF;
  --ak-switch-on: #346A76;
  --ak-grad-light: linear-gradient(90deg, #173B40 0%, #346A76 55%, #4E7B84 100%);
  --ak-grad-dark: linear-gradient(90deg, #E9F16D 0%, #D9EC9A 55%, #B7CDD0 100%);
  --ak-grad-pill: linear-gradient(90deg, #E9F16D 0%, #B7CDD0 100%);
  --ak-slab: linear-gradient(120deg, #4E7B84 0%, #173B40 100%);
  --ak-font-display: "Google Sans Flex", "Outfit", Inter, system-ui, sans-serif;
  --ak-font-body: "Google Sans Flex", Inter, system-ui, sans-serif;
  --ak-header-offset: 0px;
}

.ak *, .ak *::before, .ak *::after { box-sizing: border-box; }
.ak [hidden] { display: none !important; }
.ak [id] { scroll-margin-top: calc(var(--ak-header-offset) + 24px); }
.ak :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
.ak ::selection { background: var(--ak-accent); color: #fff; }
.ak a { color: var(--ak-accent-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.ak a:hover { text-decoration-thickness: 2px; }
.ak :focus-visible { outline: 3px solid var(--ak-accent); outline-offset: 3px; border-radius: 6px; }
.ak .ak-dark :focus-visible, .ak .ak-qc--dark :focus-visible, .ak .ak-result :focus-visible { outline-color: var(--ak-accent-on-dark); }
.ak-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ak-wrap { position: relative; width: 100%; max-width: var(--ak-wrap); margin: 0 auto; padding: 0 var(--ak-gutter); }
.ak-gt { background-image: var(--ak-grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.ak-dark .ak-gt, .ak-result .ak-gt, .ak-qc--dark .ak-gt { background-image: var(--ak-grad-dark); }
@media (forced-colors: active) { .ak-gt, .ak-result__num, .ak-pill__val, .ak-doc__total b { color: CanvasText !important; -webkit-text-fill-color: CanvasText !important; background: none !important; } }
.ak-nw { white-space: nowrap; }

/* surfaces (quote: DARK_GRID, DARK_CARD, LIGHT_08, LIGHT_14) */
.ak-dark { position: relative; color: var(--ak-on-dark);
  background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 64px 64px, var(--ak-ink); }
.ak-light-08 { position: relative;
  background: radial-gradient(1000px 800px at 24% 20%, rgba(var(--ak-accent-rgb), .08), rgba(var(--ak-accent-rgb), 0) 70%), radial-gradient(900px 700px at 80% 74%, rgba(161,161,170,.14), rgba(161,161,170,0) 70%), var(--ak-paper); }
.ak-light-14 { position: relative;
  background: radial-gradient(1000px 800px at 24% 20%, rgba(var(--ak-accent-rgb), .14), rgba(var(--ak-accent-rgb), 0) 70%), radial-gradient(900px 700px at 80% 74%, rgba(161,161,170,.14), rgba(161,161,170,0) 70%), var(--ak-paper-2); }
.ak-glow { position: absolute; width: 1100px; height: 1100px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--ak-accent-rgb), .28) 0%, rgba(var(--ak-accent-rgb), 0) 65%); }
.ak--vacei .ak-glow { background: radial-gradient(circle, rgba(233,241,109,.10) 0%, rgba(78,123,132,.28) 30%, rgba(78,123,132,0) 65%); }
.ak-slab { position: absolute; pointer-events: none; }
.ak-slab__in { position: absolute; inset: 0; }
.ak-slab__in > div { position: absolute; inset: 0; transform: skewX(-30deg); border-radius: 28px; background: var(--ak-slab); opacity: .55; }
.ak-band { position: relative; overflow: hidden; padding: var(--ak-section) 0; }

/* ── hero ─────────────────────────────────────────────── */
.ak-hero { min-height: min(100vh, 980px); overflow: hidden; display: flex; flex-direction: column; padding: calc(var(--ak-header-offset) + clamp(48px, 7vw, 104px)) 0 clamp(72px, 8vw, 112px); }
.ak-hero .ak-glow { left: 28%; top: -40%; }
.ak-hero .ak-slab { right: -16vw; top: 16vh; width: 50vw; height: 96vh; }
.ak-hero__grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1100px) { .ak-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .85fr); } }
.ak-hero__text { display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); min-width: 0; }
.ak-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-family: var(--ak-font-body); font-size: 14px; color: var(--ak-on-dark-muted); }
.ak-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.ak-crumbs a { color: var(--ak-on-dark-body); text-decoration: none; }
.ak-crumbs a:hover { color: var(--ak-on-dark); text-decoration: underline; }
.ak-eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; font-size: clamp(16px, 1.5vw, 22px); font-weight: 600; letter-spacing: .02em; color: var(--ak-on-dark-muted); }
.ak-eyebrow b { color: var(--ak-accent-on-dark); font-weight: 600; }
.ak-h1 { font-size: clamp(40px, 5.2vw, 84px); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.ak-h1 .ak-gt { font-weight: 600; display: inline; }
.ak-deck { max-width: 720px; font-size: clamp(19px, 1.8vw, 26px); font-weight: 500; letter-spacing: -.015em; line-height: 1.38; color: var(--ak-on-dark-muted); text-wrap: pretty; }
.ak-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ak-chip { min-height: 36px; padding: 6px 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); font-size: 15px; font-weight: 500; color: var(--ak-on-dark-muted); }
.ak-chip strong { color: var(--ak-on-dark); font-weight: 500; }
.ak-chip--warn { border-color: rgba(250, 204, 21, .45); color: #FDE68A; }
.ak-chip--warn strong { color: #FEF3C7; }
.ak-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ak-scrollcue { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.ak-scrollcue span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ak-on-dark-muted); }
.ak-scrollcue__line { position: relative; width: 1px; height: 44px; overflow: hidden; background: rgba(255,255,255,.14); }
.ak-scrollcue__line i { position: absolute; left: 0; top: 0; width: 1px; height: 44px; background: var(--ak-accent-on-dark); }
@media (max-height: 760px), (max-width: 760px) { .ak-scrollcue { display: none; } }
.ak-motionctl { position: absolute; right: var(--ak-gutter); bottom: 22px; z-index: 3; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(9,9,11,.4); color: var(--ak-on-dark-body); font-family: var(--ak-font-body); font-size: 13px; font-weight: 600; cursor: pointer; }
.ak-motionctl:hover { color: var(--ak-on-dark); border-color: rgba(255,255,255,.35); }

/* hero visual: decorative, aria-hidden, runs once */
.ak-hv { position: relative; perspective: 1400px; }
.ak-hv__card { position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: 28px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 100px rgba(0,0,0,.45); transform: rotateX(8deg) rotateY(-14deg) rotateZ(1.5deg); transform-origin: 60% 50%;
  background: radial-gradient(420px 320px at 85% 0%, rgba(var(--ak-accent-rgb), .30), rgba(var(--ak-accent-rgb), 0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, rgba(24,24,27,.92); }
.ak--vacei .ak-hv__card { background: radial-gradient(420px 320px at 85% 0%, rgba(233,241,109,.14), rgba(233,241,109,0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, rgba(23,59,64,.94); }
.ak-hv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ak-hv__title { font-size: 19px; font-weight: 600; letter-spacing: -.02em; color: var(--ak-on-dark); }
.ak-hv__tag { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ak-on-dark-muted); }
.ak-hv__rows { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ak-hv__row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ak-hv__tick { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ak-accent); color: #fff; }
.ak--vacei .ak-hv__tick { background: #E9F16D; color: #0F2226; }
.ak-hv__tick svg { width: 16px; height: 16px; }
.ak-hv__name { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; color: var(--ak-on-dark); }
.ak-hv__state { font-family: var(--ak-font-body); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(var(--ak-accent-rgb), .22); color: var(--ak-on-dark); white-space: nowrap; }
.ak-hv__foot { margin-top: 18px; padding-right: 150px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--ak-font-body); font-size: 13px; color: var(--ak-on-dark-muted); }
.ak-hv__stamp { position: absolute; right: -14px; bottom: -22px; display: flex; align-items: center; gap: 6px; padding: 6px 14px; border: 3px solid var(--ak-accent-on-dark); border-radius: 12px; color: var(--ak-accent-on-dark); font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(9,9,11,.55); }
.ak-hv__stamp svg { width: .9em; height: .9em; }
.ak-hv__bars { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }
.ak-hv__barlab { display: flex; justify-content: space-between; font-size: 15px; color: var(--ak-on-dark-body); }
.ak-hv__barlab b { font-weight: 600; color: var(--ak-on-dark); font-variant-numeric: tabular-nums; }
.ak-hv__track { margin-top: 8px; height: 22px; border-radius: 7px; overflow: hidden; display: flex; background: rgba(255,255,255,.08); }
.ak-hv__seg { height: 100%; transform-origin: left center; }
.ak-hv__seg + .ak-hv__seg { border-left: 2px solid var(--ak-ink); }
@media (max-width: 760px) { .ak-hv { display: none; } }

/* buttons (quote: 58px pills) */
.ak-btn { min-height: 54px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; border: 1px solid transparent; font-family: var(--ak-font-display); font-size: 17px; font-weight: 600; line-height: 1.1; text-decoration: none; cursor: pointer; transition: transform .25s var(--ak-ease), box-shadow .25s, background .25s, color .25s, border-color .25s; }
.ak a.ak-btn { text-decoration: none; }
.ak-btn--light { background: var(--ak-btn-bg); color: var(--ak-btn-text); }
.ak a.ak-btn--light { color: var(--ak-btn-text); }
.ak-btn--ghost { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: var(--ak-on-dark); font-weight: 500; }
.ak a.ak-btn--ghost { color: var(--ak-on-dark); }
.ak-btn--solid { background: var(--ak-btn-solid-bg); color: var(--ak-btn-solid-text); }
.ak-btn--line { border-color: var(--ak-line); background: var(--ak-paper); color: var(--ak-text); }
.ak-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ak-btn:hover { transform: translateY(-1px); }
.ak-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.ak-draft { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .08); color: #FEF3C7; font-family: var(--ak-font-body); font-size: 14px; line-height: 1.5; max-width: 780px; }
.ak-draft strong { color: #FDE68A; }

/* ── decorative display taglines (quote: typed line + words line). Never headings. ── */
.ak-tagline { font-size: clamp(44px, 7.2vw, 128px); font-weight: 500; letter-spacing: -.035em; line-height: 1.06; color: var(--ak-text); text-wrap: balance; }
.ak-tagline--center { text-align: center; }
.ak-tagline--md { font-size: clamp(40px, 5.8vw, 100px); }
.ak-dark .ak-tagline { color: var(--ak-on-dark); }
.ak-tagline__typed { position: relative; display: inline-block; }
.ak-tagline__words { font-weight: 600; }
.ak-tagline__words [data-w] { display: inline-block; }
.ak-caret { position: absolute; left: 0; top: .12em; width: .06em; height: .86em; background: var(--ak-accent); opacity: 0; pointer-events: none; }
.ak-dark .ak-caret { background: var(--ak-accent-on-dark); }
.ak-bandhead { margin-top: clamp(56px, 7vw, 112px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.ak-bandhead__text { max-width: 640px; }
.ak-kicker { display: flex; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--ak-muted); }
.ak-kicker b { color: var(--ak-accent-text); font-weight: 600; }
.ak-dark .ak-kicker { color: var(--ak-on-dark-muted); }
.ak-dark .ak-kicker b { color: var(--ak-accent-on-dark); }
.ak-h2b { margin-top: 14px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
.ak-lede { margin-top: 14px; max-width: 640px; font-family: var(--ak-font-body); font-size: 17px; line-height: 1.6; color: var(--ak-muted); }
.ak-dark .ak-lede { color: var(--ak-on-dark-muted); }

/* ── short answer + contents ──────────────────────────── */
.ak-answer { padding: clamp(64px, 8vw, 112px) 0 0; }
.ak-answer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 1000px) { .ak-answer__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.ak-card { position: relative; border-radius: 28px; border: 1px solid var(--ak-line); background: var(--ak-paper); box-shadow: 0 50px 120px rgba(9,9,11,.10); }
.ak-answer__card { padding: clamp(26px, 4vw, 48px); }
.ak-answer__text { margin-top: 18px; font-size: clamp(20px, 1.9vw, 27px); font-weight: 500; letter-spacing: -.015em; line-height: 1.42; color: var(--ak-text); text-wrap: pretty; }
.ak-toc { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--ak-paper-2); border: 1px solid var(--ak-line); }
.ak-toc h2 { font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ak-muted); }
.ak-toc ol { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: toc; }
.ak-toc li { counter-increment: toc; border-top: 1px solid var(--ak-line); }
.ak-toc li:first-child { border-top: 0; }
.ak-toc a { display: flex; gap: 14px; padding: 11px 0; color: var(--ak-text); text-decoration: none; font-size: 17px; font-weight: 500; line-height: 1.35; }
.ak-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ak-accent-text); font-weight: 600; font-size: 15px; padding-top: 2px; }
.ak-toc a:hover { color: var(--ak-accent-text); }

/* ── prose ────────────────────────────────────────────── */
.ak-prose { padding: clamp(64px, 8vw, 112px) 0; }
.ak-prose__col { max-width: 760px; }
.ak-sec + .ak-sec { margin-top: clamp(56px, 6vw, 88px); }
.ak-h2 { font-size: clamp(30px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.ak-h2 .ak-num { display: block; margin-bottom: 12px; font-size: 18px; font-weight: 600; letter-spacing: .02em; color: var(--ak-accent-text); }
.ak-p { margin-top: 20px; font-family: var(--ak-font-body); font-size: clamp(17px, 1.25vw, 19px); line-height: 1.72; color: var(--ak-body); text-wrap: pretty; }
.ak-list { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ak-list li { position: relative; padding-left: 34px; font-family: var(--ak-font-body); font-size: clamp(17px, 1.2vw, 18px); line-height: 1.6; color: var(--ak-body); }
.ak-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: rgba(var(--ak-accent-rgb), .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F55F1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ak--vacei .ak-list li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346A76' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ── pull-quote band (quote: "why" section with the sweeping slab) ── */
.ak-pull .ak-glow { left: 40%; top: -10%; }
.ak-sweep { position: absolute; left: 0; top: -20%; width: 38vw; height: 140%; pointer-events: none; }
.ak-sweep > div { position: absolute; inset: 0; transform: skewX(-30deg); border-radius: 28px; background: var(--ak-slab); opacity: .5; filter: blur(2px); }
.ak-pull__q { position: relative; z-index: 2; max-width: 22ch; font-size: clamp(36px, 5vw, 80px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; color: var(--ak-on-dark); text-wrap: balance; }
.ak-pull__q [data-w] { display: inline-block; }
.ak-pull__q strong { font-weight: 600; }
.ak-pull__cap { position: relative; z-index: 2; margin-top: 28px; font-family: var(--ak-font-body); font-size: 15px; color: var(--ak-on-dark-muted); }

/* ── process flow (quote: hw-*) ───────────────────────── */
.ak-flow { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.ak-flow__line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ak-flow__steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--ak-steps, 5), minmax(0, 1fr)); gap: 48px clamp(12px, 2.4vw, 32px); }
.ak-flow__step { position: relative; min-width: 0; }
.ak-flow__node { position: relative; width: 56px; height: 56px; }
.ak-flow__dot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ak-paper); border: 2px solid var(--ak-line); color: var(--ak-faint); transition: background .45s, border-color .45s, color .45s, box-shadow .45s, transform .45s var(--ak-ease); }
.ak-flow__dot svg { width: 26px; height: 26px; display: block; }
.ak-flow__node[data-lit="1"] .ak-flow__dot { background: var(--ak-accent); border-color: var(--ak-accent); color: #fff; box-shadow: 0 14px 34px rgba(var(--ak-accent-rgb), .32); transform: scale(1.06); }
.ak-flow__orbit { position: absolute; left: -24px; top: -24px; width: 104px; height: 104px; transform-origin: 50% 50%; pointer-events: none; }
.ak-flow__copy { margin-top: 28px; }
.ak-flow__num { font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--ak-accent-text); }
.ak-flow__title { margin-top: 8px; font-size: clamp(19px, 2vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.ak-flow__p { margin-top: 10px; font-family: var(--ak-font-body); font-size: 16px; line-height: 1.55; color: var(--ak-muted); text-wrap: pretty; }
.ak-flow__link { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; }
.ak-flow__stamp { position: absolute; z-index: 2; left: 34px; top: -30px; display: flex; align-items: center; gap: 6px; padding: 4px 12px; border: 3px solid var(--ak-accent); border-radius: 12px; background: rgba(255,255,255,.94); color: var(--ak-accent-text); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; transform: rotate(-8deg); pointer-events: none; }
.ak-flow__stamp svg { width: .9em; height: .9em; }
.ak-flow__note { margin-top: clamp(56px, 7vw, 96px); max-width: 900px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; letter-spacing: -.015em; line-height: 1.4; color: var(--ak-muted); }
@media (max-width: 760px) {
  .ak-flow__steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ak-flow__step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 20px; align-items: start; }
  .ak-flow__copy { margin-top: 2px; }
  .ak-flow__stamp { left: auto; right: 0; top: -4px; }
}

/* ── tool shell ───────────────────────────────────────── */
.ak-seg { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--ak-paper-2); border: 1px solid var(--ak-line); }
.ak-light-14 .ak-seg { background: var(--ak-paper); }
.ak-seg button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--ak-muted); font-family: var(--ak-font-display); font-size: 15px; font-weight: 600; cursor: pointer; transition: background .3s, color .3s; }
.ak-seg button[aria-selected="true"] { background: var(--ak-btn-solid-bg); color: var(--ak-btn-solid-text); }
.ak-seg__note { display: block; margin-top: 10px; font-family: var(--ak-font-body); font-size: 13px; font-weight: 500; color: var(--ak-faint); text-align: right; }
.ak-tool__grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) { .ak-tool__grid { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); gap: 24px; } .ak-result { position: sticky; top: calc(var(--ak-header-offset) + 24px); } }
.ak-noscript { margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--ak-paper); border: 1px dashed var(--ak-line); font-family: var(--ak-font-body); font-size: 15px; color: var(--ak-muted); }

/* quote cards (cardHTML + paintCards): alternating white / dark, switch, big word, line, rule + chip */
.ak-qcs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ak-qc { position: relative; overflow: hidden; min-height: 300px; border-radius: 24px; display: flex; flex-direction: column; background: var(--ak-paper); border: 1px solid var(--ak-line); color: var(--ak-text); transition: border-color .35s, box-shadow .35s, background .35s; }
.ak-qc--dark { color: var(--ak-on-dark); border-color: rgba(255,255,255,.06);
  background: radial-gradient(420px 320px at 85% 0%, rgba(var(--ak-accent-rgb), .30), rgba(var(--ak-accent-rgb), 0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, var(--ak-ink); }
.ak-qc[data-state="done"] { border-color: rgba(var(--ak-accent-rgb), .45); box-shadow: 0 24px 60px rgba(var(--ak-accent-rgb), .12); }
.ak-qc--dark[data-state="done"] { border-color: rgba(139,143,247,.45); box-shadow: 0 24px 60px rgba(9,9,11,.28); }
.ak--vacei .ak-qc--dark[data-state="done"] { border-color: rgba(233,241,109,.45); }
.ak-qc[data-state="na"] { opacity: .78; }
.ak-qc__hit { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 0; cursor: pointer; user-select: none; }
.ak-qc__top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.ak-qc__n { display: flex; align-items: baseline; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--ak-muted); }
.ak-qc--dark .ak-qc__n { color: var(--ak-on-dark-muted); }
.ak-qc__n b { font-weight: 600; transition: color .3s; }
.ak-qc[data-state="done"] .ak-qc__n b { color: var(--ak-accent-text); }
.ak-qc--dark[data-state="done"] .ak-qc__n b { color: var(--ak-accent-on-dark); }
.ak-switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--ak-line); transition: background .3s; flex-shrink: 0; }
.ak-qc--dark .ak-switch { background: rgba(255,255,255,.16); }
.ak-switch i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 11px; background: #fff; box-shadow: 0 1px 3px rgba(9,9,11,.3); transition: transform .35s var(--ak-ease); }
.ak-qc input[type="checkbox"]:checked ~ .ak-qc__top .ak-switch, .ak-qc[data-state="done"] .ak-switch { background: var(--ak-switch-on); }
.ak--vacei .ak-qc--dark[data-state="done"] .ak-switch { background: #E9F16D; }
.ak-qc[data-state="done"] .ak-switch i { transform: translateX(20px); }
.ak-qc input.ak-qc__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ak-qc:has(.ak-qc__input:focus-visible) { outline: 3px solid var(--ak-accent); outline-offset: 3px; }
.ak-qc--dark:has(.ak-qc__input:focus-visible) { outline-color: var(--ak-accent-on-dark); }
.ak-qc__word { position: relative; display: flex; align-items: center; min-height: 84px; font-size: clamp(30px, 2.6vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; color: var(--ak-faint); transition: color .45s; }
.ak-qc--dark .ak-qc__word { color: var(--ak-on-dark-muted); }
.ak-qc[data-state="done"] .ak-qc__word { color: var(--ak-text); }
.ak-qc--dark[data-state="done"] .ak-qc__word { color: var(--ak-on-dark); }
.ak-qc__word .ak-caret { width: .42em; height: .78em; top: .2em; background: var(--ak-accent-on-dark); }
.ak-qc__line { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.35; text-wrap: pretty; }
.ak-qc__meaning { font-family: var(--ak-font-body); font-size: 14px; line-height: 1.5; color: var(--ak-muted); }
.ak-qc--dark .ak-qc__meaning { color: var(--ak-on-dark-muted); }
.ak-qc__rule { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 26px 0; padding: 14px 0 22px; border-top: 1px solid var(--ak-line); }
.ak-qc--dark .ak-qc__rule { border-top-color: rgba(255,255,255,.1); }
.ak-qc__chip { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: rgba(180, 83, 9, .1); color: #92400E; transition: all .3s; }
.ak-qc--dark .ak-qc__chip { background: rgba(251, 191, 36, .14); color: #FDE68A; }
.ak-qc[data-state="done"] .ak-qc__chip { background: rgba(var(--ak-accent-rgb), .1); color: var(--ak-accent-text); }
.ak-qc--dark[data-state="done"] .ak-qc__chip { background: rgba(255,255,255,.1); color: var(--ak-on-dark); }
.ak-qc[data-state="na"] .ak-qc__chip { background: var(--ak-paper-2); color: var(--ak-muted); }
.ak-qc--dark[data-state="na"] .ak-qc__chip { background: rgba(255,255,255,.08); color: var(--ak-on-dark-muted); }
.ak-qc__na { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ak-font-body); font-size: 13px; font-weight: 600; color: var(--ak-muted); cursor: pointer; }
.ak-qc--dark .ak-qc__na { color: var(--ak-on-dark-muted); }
.ak-qc__na input { width: 18px; height: 18px; accent-color: var(--ak-accent); margin: 0; }
.ak-qc__reason { margin: -8px 26px 20px; }
.ak-qc__reason label { display: block; font-family: var(--ak-font-body); font-size: 13px; font-weight: 600; }
.ak-qc__reason input { width: 100%; min-height: 40px; margin-top: 6px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ak-line); background: var(--ak-paper); color: var(--ak-text); font-family: var(--ak-font-body); font-size: 14px; }
.ak-qc--dark .ak-qc__reason input { background: rgba(9,9,11,.4); border-color: rgba(255,255,255,.16); color: #fff; }
.ak-qc[data-state="na"] .ak-qc__reason { display: block; }
.ak-qc__reason { display: none; }

/* guided mode */
.ak-guided { display: none; margin-top: 18px; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ak-tool[data-mode="guided"] .ak-guided { display: flex; }
.ak-tool[data-mode="guided"] [data-step] { display: none; }
.ak-tool[data-mode="guided"] [data-step][data-current] { display: flex; }
.ak-tool[data-mode="guided"] .ak-qcs { grid-template-columns: minmax(0, 1fr); }
.ak-tool[data-mode="guided"] .ak-qc { min-height: 340px; }
.ak-tool[data-mode="guided"] .ak-qc__word { font-size: clamp(36px, 4vw, 60px); min-height: 110px; }
.ak-guided__count { font-size: 15px; font-weight: 600; color: var(--ak-muted); }
.ak-dots { display: flex; gap: 6px; }
.ak-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--ak-line); transition: background .3s, transform .3s; }
.ak-dots span[data-done] { background: rgba(var(--ak-accent-rgb), .5); }
.ak-dots span[data-on] { background: var(--ak-accent); transform: scale(1.3); }

/* result panel (quote: the dark retainer card + its stamp) */
.ak-result { position: relative; padding: clamp(24px, 3vw, 34px); border-radius: 28px; color: var(--ak-on-dark); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 100px rgba(9,9,11,.28);
  background: radial-gradient(420px 320px at 85% 0%, rgba(var(--ak-accent-rgb), .30), rgba(var(--ak-accent-rgb), 0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, var(--ak-ink); }
.ak-result:focus { outline: none; }
.ak-result__title { font-size: 15px; font-weight: 600; color: var(--ak-on-dark-body); }
.ak-result__big { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ak-result__num { font-size: clamp(56px, 6vw, 96px); font-weight: 600; letter-spacing: -.04em; line-height: 1; background-image: var(--ak-grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; font-variant-numeric: tabular-nums; }
.ak-result__unit { font-family: var(--ak-font-body); font-size: 16px; font-weight: 500; color: var(--ak-on-dark-muted); }
.ak-result__sub { margin-top: 8px; font-family: var(--ak-font-body); font-size: 15px; line-height: 1.55; color: var(--ak-on-dark-muted); }
.ak-meter { margin-top: 18px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.ak-meter > span { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(var(--p, 0)); background: var(--ak-grad-dark); border-radius: inherit; transition: transform .6s var(--ak-ease); }
.ak-actionlist { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow: auto; }
.ak-actionlist li { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.ak-actionlist__label { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ak-on-dark); }
.ak-actionlist__hint { margin-top: 4px; font-family: var(--ak-font-body); font-size: 14px; line-height: 1.5; color: var(--ak-on-dark-muted); }
.ak-actionlist input { width: 100%; min-height: 40px; margin-top: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(9,9,11,.4); color: #fff; font-family: var(--ak-font-body); font-size: 15px; }
.ak-actionlist input::placeholder { color: var(--ak-on-dark-muted); }
.ak-result__empty { margin-top: 14px; font-family: var(--ak-font-body); font-size: 15px; line-height: 1.55; color: var(--ak-on-dark-body); }
.ak-result__btns { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.ak-result .ak-btn--line { background: transparent; color: var(--ak-on-dark); border-color: rgba(255,255,255,.22); }
.ak-result__note { margin-top: 16px; font-family: var(--ak-font-body); font-size: 13px; line-height: 1.55; color: var(--ak-on-dark-muted); }
.ak-result__error { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(185, 28, 28, .18); border: 1px solid rgba(248, 113, 113, .4); font-family: var(--ak-font-body); font-size: 15px; color: #FECACA; }
.ak-result__stamp { position: absolute; right: 22px; top: 112px; display: flex; align-items: center; gap: 6px; padding: 4px 12px; border: 3px solid var(--ak-accent-on-dark); border-radius: 12px; color: var(--ak-accent-on-dark); font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(9,9,11,.4); pointer-events: none; }
.ak-result__stamp svg { width: .9em; height: .9em; }

/* calculator: unit-of-work cards (selectable), input cards, document-style result */
.ak-units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0 0 16px; padding: 0; border: 0; }
.ak-units legend { font-size: 15px; font-weight: 600; color: var(--ak-muted); margin-bottom: 10px; padding: 0; }
.ak-unit { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; border-radius: 20px; border: 1px solid var(--ak-line); background: var(--ak-paper); cursor: pointer; transition: border-color .35s, box-shadow .35s; }
.ak-unit input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ak-unit:has(input:checked) { border-color: rgba(var(--ak-accent-rgb), .45); box-shadow: 0 24px 60px rgba(var(--ak-accent-rgb), .12); }
.ak-unit:has(input:focus-visible) { outline: 3px solid var(--ak-accent); outline-offset: 3px; }
.ak-unit__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ak-unit__name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.ak-unit__ex { font-family: var(--ak-font-body); font-size: 14px; line-height: 1.45; color: var(--ak-muted); }
.ak-unit .ak-switch { width: 22px; height: 22px; border-radius: 50%; background: var(--ak-paper); border: 2px solid var(--ak-line); }
.ak-unit:has(input:checked) .ak-switch { border-color: var(--ak-switch-on); background: var(--ak-switch-on); box-shadow: inset 0 0 0 4px #fff; }
.ak-unit .ak-switch i { display: none; }
.ak-icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.ak-icard { position: relative; padding: 22px 22px 18px; border-radius: 24px; border: 1px solid var(--ak-line); background: var(--ak-paper); transition: border-color .35s, box-shadow .35s; }
.ak-icard:focus-within { border-color: rgba(var(--ak-accent-rgb), .45); box-shadow: 0 24px 60px rgba(var(--ak-accent-rgb), .12); }
.ak-icard[data-invalid] { border-color: #B91C1C; }
.ak-icard--dark { color: var(--ak-on-dark); border-color: rgba(255,255,255,.06);
  background: radial-gradient(420px 320px at 85% 0%, rgba(var(--ak-accent-rgb), .30), rgba(var(--ak-accent-rgb), 0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, var(--ak-ink); }
.ak-icard__n { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ak-accent-text); }
.ak-icard--dark .ak-icard__n { color: var(--ak-accent-on-dark); }
.ak-icard label { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.3; min-height: 42px; }
.ak-icard__val { margin-top: 10px; display: flex; align-items: baseline; gap: 8px; }
.ak-icard__val input { width: 100%; min-width: 0; padding: 0; border: 0; border-bottom: 2px solid var(--ak-line); background: transparent; color: inherit; font-family: var(--ak-font-display); font-size: clamp(34px, 3vw, 46px); font-weight: 600; letter-spacing: -.04em; line-height: 1.15; font-variant-numeric: tabular-nums; border-radius: 0; -moz-appearance: textfield; }
.ak-icard__val input::-webkit-outer-spin-button, .ak-icard__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ak-icard--dark .ak-icard__val input { border-bottom-color: rgba(255,255,255,.16); }
.ak-icard__val input:focus { outline: none; border-bottom-color: var(--ak-accent); }
.ak-icard--dark .ak-icard__val input:focus { border-bottom-color: var(--ak-accent-on-dark); }
.ak-icard__val input[aria-invalid="true"] { border-bottom-color: #DC2626; }
.ak-icard__unit { font-family: var(--ak-font-body); font-size: 15px; font-weight: 500; color: var(--ak-faint); white-space: nowrap; }
.ak-icard--dark .ak-icard__unit { color: var(--ak-on-dark-muted); }
.ak-icard__ctl { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.ak-step { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ak-line); background: var(--ak-paper); color: var(--ak-text); font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer; transition: border-color .25s, background .25s; }
.ak-icard--dark .ak-step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; }
.ak-step:hover { border-color: var(--ak-accent); }
.ak-range { flex: 1; min-width: 0; accent-color: var(--ak-accent); height: 28px; }
.ak-icard--dark .ak-range { accent-color: var(--ak-accent-on-dark); }
.ak-icard__hint { margin-top: 8px; font-family: var(--ak-font-body); font-size: 13px; line-height: 1.45; color: var(--ak-faint); }
.ak-icard--dark .ak-icard__hint { color: var(--ak-on-dark-muted); }
.ak-icard__err { margin-top: 6px; font-family: var(--ak-font-body); font-size: 14px; font-weight: 600; color: #B91C1C; }
.ak-icard--dark .ak-icard__err { color: #FCA5A5; }
.ak-groupcap { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin-top: 10px; }
.ak-groupcap:first-child { margin-top: 0; }
.ak-groupcap h3 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ak-groupcap b { font-size: 15px; color: var(--ak-accent-text); }
.ak-groupcap p { font-family: var(--ak-font-body); font-size: 14px; color: var(--ak-muted); }
.ak-tool[data-mode="guided"] .ak-icards > .ak-groupcap, .ak-tool[data-mode="guided"] .ak-icards > .ak-icard { display: none; }
.ak-tool[data-mode="guided"] .ak-icards > [data-current] { display: block; }
.ak-tool[data-mode="guided"] .ak-icards > .ak-groupcap[data-current] { display: flex; }
.ak-doc { margin-top: 18px; }
.ak-doc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--ak-font-body); font-size: 15px; color: var(--ak-on-dark-body); }
.ak-doc__row b { font-family: var(--ak-font-display); font-weight: 600; font-size: 17px; color: var(--ak-on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-doc__row small { display: block; font-size: 12px; color: var(--ak-on-dark-muted); }
.ak-doc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.ak-doc__total span { font-size: 20px; font-weight: 600; color: var(--ak-on-dark); }
.ak-doc__total b { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; background-image: var(--ak-grad-dark); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }
.ak-bars { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.ak-bar__label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--ak-font-body); font-size: 14px; color: var(--ak-on-dark-body); }
.ak-bar__label b { font-family: var(--ak-font-display); color: var(--ak-on-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.ak-bar__track { margin-top: 6px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; display: flex; }
.ak-bar__seg { height: 100%; flex: 0 0 auto; width: var(--w, 0%); transition: width .6s var(--ak-ease); }
.ak-bar__seg + .ak-bar__seg { border-left: 2px solid var(--ak-ink); }
.ak-seg-a { background: #A1A1AA; } .ak-seg-b { background: var(--ak-accent); } .ak-seg-c { background: var(--ak-accent-3); } .ak-seg-d { background: #F59E0B; } .ak-seg-e { background: #71717A; }
.ak--vacei .ak-seg-a { background: #B7CDD0; } .ak--vacei .ak-seg-b { background: #E9F16D; } .ak--vacei .ak-seg-c { background: #8FAEB3; }
.ak-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--ak-font-body); font-size: 13px; color: var(--ak-on-dark-muted); }
.ak-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ak-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ak-math { margin-top: 16px; }
.ak-math summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ak-on-dark-body); }
.ak-math__body { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(9,9,11,.35); border: 1px solid rgba(255,255,255,.08); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.8; color: var(--ak-on-dark-body); overflow-x: auto; }
.ak-math__body div { white-space: nowrap; }

/* sticky action pill (quote: data-pill). Wide screens only; never covers content on phones. */
.ak-pill { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: none; justify-content: center; padding: 0 12px; pointer-events: none; transform: translateY(120px); opacity: 0; transition: transform .5s var(--ak-ease), opacity .4s; }
@media (min-width: 900px) { .ak-pill { display: flex; } }
.ak-pill[data-on] { transform: none; opacity: 1; }
.ak-pill__in { pointer-events: auto; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 8px 0 22px; border-radius: 30px; background: rgba(9,9,11,.92); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(9,9,11,.35); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.ak--vacei .ak-pill__in { background: rgba(15,34,38,.94); }
.ak-pill__txt { font-family: var(--ak-font-body); font-size: 14px; font-weight: 500; color: #D4D4D8; white-space: nowrap; }
.ak-pill__bar { width: 1px; height: 22px; background: rgba(255,255,255,.14); }
.ak-pill__val { font-size: 22px; font-weight: 600; letter-spacing: -.03em; white-space: nowrap; background-image: var(--ak-grad-pill); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-variant-numeric: tabular-nums; }

/* ── FAQ, method, sources, review ─────────────────────── */
.ak-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .ak-faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ak-faq__item { padding: 28px; border-radius: 24px; background: var(--ak-paper); border: 1px solid var(--ak-line); }
.ak-faq__item:nth-child(4n+2), .ak-faq__item:nth-child(4n+3) { background: var(--ak-paper-3); }
.ak-faq__q { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ak-faq__a { margin-top: 10px; font-family: var(--ak-font-body); font-size: 17px; line-height: 1.65; color: var(--ak-body); }
.ak-trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 40px; }
@media (min-width: 1000px) { .ak-trust { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.ak-panel { padding: clamp(24px, 3vw, 34px); border-radius: 28px; background: var(--ak-paper); border: 1px solid var(--ak-line); }
.ak-panel h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.ak-panel p, .ak-panel li { font-family: var(--ak-font-body); font-size: 16px; line-height: 1.6; color: var(--ak-body); }
.ak-panel p { margin-top: 10px; }
.ak-sources { margin: 14px 0 0; padding: 0; list-style: none; }
.ak-sources li { padding: 12px 0; border-top: 1px solid var(--ak-line); }
.ak-sources li:first-child { border-top: 0; }
.ak-sources a { font-weight: 600; }
.ak-sources small { display: block; margin-top: 3px; font-size: 13px; color: var(--ak-faint); }
.ak-people { margin: 14px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-family: var(--ak-font-body); font-size: 15px; }
.ak-people dt { font-weight: 600; color: var(--ak-muted); }
.ak-people dd { color: var(--ak-text); }
.ak-pending { color: var(--ak-warn) !important; font-weight: 600; }

/* ── CTA (quote: closing dark section) ───────────────── */
.ak-cta .ak-glow { left: 40%; top: -20%; }
.ak-cta__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.ak-cta__h { max-width: 18ch; font-size: clamp(32px, 3.8vw, 56px); font-weight: 600; letter-spacing: -.035em; line-height: 1.06; }

/* ── related ──────────────────────────────────────────── */
.ak-related { padding: clamp(80px, 10vw, 140px) 0; }
.ak-related__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ak-rel { display: flex; flex-direction: column; gap: 12px; min-height: 220px; padding: 28px; border-radius: 24px; background: var(--ak-paper); border: 1px solid var(--ak-line); text-decoration: none; color: var(--ak-text); transition: border-color .35s, box-shadow .35s, transform .35s var(--ak-ease); }
.ak a.ak-rel { color: var(--ak-text); text-decoration: none; }
.ak-rel:nth-child(2) { color: var(--ak-on-dark); border-color: rgba(255,255,255,.06); background: radial-gradient(420px 320px at 85% 0%, rgba(var(--ak-accent-rgb), .30), rgba(var(--ak-accent-rgb), 0) 70%), linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 32px 32px, var(--ak-ink); }
.ak a.ak-rel:nth-child(2) { color: var(--ak-on-dark); }
.ak-rel:nth-child(2) .ak-rel__k { color: var(--ak-accent-on-dark); }
.ak-rel:nth-child(2) .ak-rel__m { color: var(--ak-on-dark-muted); }
.ak-rel:hover { border-color: rgba(var(--ak-accent-rgb), .45); box-shadow: 0 24px 60px rgba(var(--ak-accent-rgb), .12); transform: translateY(-2px); }
.ak-rel__k { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ak-accent-text); }
.ak-rel__t { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.22; }
.ak-rel__m { margin-top: auto; font-family: var(--ak-font-body); font-size: 14px; color: var(--ak-faint); }

/* ── reduced motion and print ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ak *, .ak *::before, .ak *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .ak-btn:hover, .ak-rel:hover { transform: none; }
  .ak-motionctl, .ak-scrollcue__line i { display: none !important; }
  .ak-hv__card { transform: none; }
}
@media print {
  .ak-cta, .ak-pill, .ak-glow, .ak-slab, .ak-sweep, .ak-seg, .ak-guided, .ak-result__btns, .ak-hero .ak-actions, .ak-hv, .ak-motionctl, .ak-scrollcue, .ak-tagline { display: none !important; }
  .ak-dark, .ak-result, .ak-qc--dark, .ak-icard--dark { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .ak-dark *, .ak-result *, .ak-qc--dark *, .ak-icard--dark * { color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .ak-tool[data-mode="guided"] [data-step] { display: flex !important; }
  .ak-hero { min-height: 0; }
}
