/* ==========================================================================
   app.css · the v2 design layer, aligned to the Whispor app
   --------------------------------------------------------------------------
   Loads AFTER styles.css and rebuild.css. Values were read from the app's
   stylesheet; the rules for using them are in docs/V2-PLAN.md section 2.

   - Headings and body in Inter. Neutral near-black text, #fcfcfc page.
   - Teal and coral stay in the logo. Light teal badges carry information,
     light coral badges carry attention. Coral is never decoration.
   - Primary buttons are near-black pills, as in the app.
   - Product visuals (goal box, plan card, review card) are HTML in the app's
     styles and always carry an "Illustration" label.

   Classes are prefixed .ap- so they cannot collide with .rb- or the global
   sheet. Shared shell (.nav, .footer, .container) is restyled in place.
   ========================================================================== */

:root {
  /* App palette */
  --ap-bg: #fcfcfc;
  --ap-fg: #151c28;
  --ap-heading: #0b0b0c;
  --ap-card: #ffffff;
  --ap-panel: #f0f2f4;
  --ap-accent: #e9eff1;
  --ap-accent-fg: #134d5d;
  --ap-border: #ebedef;
  --ap-input: #e2e6e9;
  --ap-muted: #646d7c; /* 5.1:1 on --ap-bg; the app's #7b8494 fails AA at small sizes */
  --ap-body2: #3d4655;
  --ap-brand: #e07a5f;
  --ap-brand-soft: #faeae5;
  --ap-brand-text: #b4492d;
  --ap-success: #25a876;
  --ap-success-soft: #e3f4ec;
  --ap-success-text: #17795a;
  --ap-warning-soft: #fdf5dc;
  --ap-warning-text: #92660b;
  --ap-info-soft: #e9eafd;
  --ap-info-text: #4f52c9;
  --ap-ink: #0a2e38;
  --ap-ink-2: #0f3c48;
  --ap-on-ink: #eff4f5;
  --ap-on-ink-2: #aebdc2;
  --ap-goal: #dcebee;
  --ap-goal-border: #b9d0d6;
  --ap-radius: 12px;
  --ap-radius-lg: 16px;
  --ap-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -16px rgba(16, 24, 40, 0.14);

  /* Repoint the shared tokens so the nav, footer and reused rb- blocks follow */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ink-900: #151c28;
  --ink-700: #3d4655;
  --ink-500: #646d7c;
  --mist-100: #f0f2f4;
  --mist-200: #e9eff1;
  --mist-300: #e9eff1;
  --line: #e2e6e9;
  --line-soft: #ebedef;
}

body {
  background: var(--ap-bg);
  color: var(--ap-fg);
  font-feature-settings: "cv11", "ss01";
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ap-heading);
}
h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: -0.032em;
  line-height: 1.1;
}
h3 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* Shell: navigation ------------------------------------------------------ */
.nav,
.nav.is-scrolled {
  background: rgba(252, 252, 252, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
.nav {
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  border-bottom-color: var(--ap-border);
  box-shadow: none;
}
.nav-links {
  color: var(--ap-body2);
  gap: 24px;
}
.nav-dropdown > button.nav-dropdown-trigger {
  color: var(--ap-body2);
  font-weight: 500;
}
.nav-dropdown > button.nav-dropdown-trigger:hover,
.nav-links a:hover {
  color: var(--ap-heading);
}
.nav-dropdown > button.nav-dropdown-trigger.is-active::after,
.nav-links a.is-active::after {
  background: var(--ap-heading);
}
.nav-dropdown-menu {
  border-color: var(--ap-border);
  border-radius: var(--ap-radius-lg);
  box-shadow: 0 24px 48px -24px rgba(16, 24, 40, 0.22);
  min-width: 290px;
}
.nav-dropdown-menu a:hover {
  background: var(--ap-panel);
}
.nav-dropdown-menu a .label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ap-heading);
}
.nav-dropdown-menu a .desc {
  color: var(--ap-muted);
}
.nav-dropdown-menu a.is-active .label {
  color: var(--ap-accent-fg);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  background: var(--ap-heading);
  font-size: 13.5px;
  padding: 9px 16px;
}
.nav-cta:hover {
  background: #2a2c31;
}
.nav-cta.nav-cta-ghost {
  background: transparent;
  color: var(--ap-heading);
  border: 1px solid var(--ap-input);
}
.nav-cta.nav-cta-ghost:hover {
  background: var(--ap-panel);
}
@media (max-width: 1180px) {
  .nav-cta.nav-cta-ghost {
    display: none;
  }
  .nav-links {
    gap: 18px;
  }
}
@media (max-width: 820px) {
  .nav.is-open .nav-links {
    background: var(--ap-bg);
    border-bottom-color: var(--ap-border);
  }
  .nav.is-open .nav-actions {
    position: absolute;
    top: 18px;
    right: 64px;
  }
  .nav.is-open .nav-cta:not(.nav-cta-ghost) {
    position: static;
  }
  .nav.is-open .nav-cta.nav-cta-ghost {
    display: none;
  }
  .nav-dropdown-menu {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-width: 0;
  }
}

/* Shell: footer ---------------------------------------------------------- */
.footer {
  background: var(--ap-ink);
  color: var(--ap-on-ink-2);
}
.footer-grid {
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 36px;
}
.footer h4 {
  color: var(--ap-on-ink);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.footer ul a:hover {
  color: var(--ap-on-ink);
}
.footer-tag {
  color: var(--ap-on-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-parent {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ap-on-ink-2);
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

/* Sections --------------------------------------------------------------- */
.ap-section {
  padding: clamp(64px, 8vw, 112px) 0;
}
.ap-panel {
  background: var(--ap-panel);
}
.ap-ink {
  background: var(--ap-ink);
  color: var(--ap-on-ink);
}
.ap-ink h2,
.ap-ink h3 {
  color: #fff;
}
.ap-ink p {
  color: var(--ap-on-ink-2);
}

.ap-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-bottom: 14px;
}
.ap-ink .ap-eyebrow {
  color: var(--ap-on-ink-2);
}
.ap-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.ap-head h2 {
  margin-bottom: 14px;
}
.ap-lede {
  font-size: clamp(1.04rem, 1.25vw, 1.16rem);
  line-height: 1.6;
  color: var(--ap-body2);
  max-width: 62ch;
  margin: 0;
}
.ap-ink .ap-lede {
  color: var(--ap-on-ink-2);
}
.ap-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ap-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ap-heading);
  border-bottom: 1px solid var(--ap-input);
  padding-bottom: 2px;
}
.ap-more:hover {
  border-bottom-color: var(--ap-heading);
}
.ap-ink .ap-more {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.ap-small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ap-muted);
}

/* Buttons ---------------------------------------------------------------- */
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.ap-btn:hover {
  transform: translateY(-1px);
}
.ap-btn-primary {
  background: var(--ap-heading);
  color: #fff;
}
.ap-btn-primary:hover {
  background: #2a2c31;
}
.ap-btn-secondary {
  background: var(--ap-card);
  color: var(--ap-heading);
  border-color: var(--ap-input);
}
.ap-btn-secondary:hover {
  background: var(--ap-panel);
}
.ap-btn-on-ink {
  background: #fff;
  color: var(--ap-heading);
}
.ap-btn-ghost-on-ink {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.ap-btn-ghost-on-ink:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ap-btn .arrow {
  transition: transform 0.25s var(--ease);
}
.ap-btn:hover .arrow {
  transform: translateX(3px);
}
.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ap-btn:focus-visible,
.ap-more:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--ap-accent-fg);
  outline-offset: 3px;
}

/* Badges ----------------------------------------------------------------- */
.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--ap-accent);
  color: var(--ap-accent-fg);
}
.ap-badge-attn {
  background: var(--ap-brand-soft);
  color: var(--ap-brand-text);
}
.ap-badge-attn::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-brand);
}
.ap-badge-ok {
  background: var(--ap-success-soft);
  color: var(--ap-success-text);
}
.ap-badge-neutral {
  background: var(--ap-panel);
  color: var(--ap-body2);
}

/* Illustration frame ----------------------------------------------------- */
.ap-mock {
  position: relative;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow);
  text-align: left;
}
.ap-illus {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-mock-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* Hero ------------------------------------------------------------------- */
.ap-hero {
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
  text-align: center;
  background: linear-gradient(180deg, var(--ap-bg) 0%, var(--ap-bg) 55%, var(--ap-panel) 100%);
}
.ap-hero .container {
  max-width: 980px;
}
.ap-hero h1 {
  max-width: 17ch;
  margin: 0 auto 22px;
}
.ap-hero h1 .ap-h1-2 {
  display: block;
}
.ap-hero .ap-lede {
  margin: 0 auto 30px;
  max-width: 60ch;
}
.ap-hero .ap-actions {
  justify-content: center;
}
.ap-hero-goal {
  max-width: 760px;
  margin: clamp(44px, 6vw, 64px) auto 0;
}

/* Goal box (app: Home) ---------------------------------------------------- */
.ap-goal {
  background: var(--ap-goal);
  border: 1px solid var(--ap-goal-border);
  border-radius: var(--ap-radius-lg);
  padding: 22px;
  text-align: left;
}
.ap-goal-q {
  font-size: 15px;
  font-weight: 600;
  color: var(--ap-heading);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.ap-goal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ap-card);
  border: 1px solid var(--ap-goal-border);
  border-radius: var(--ap-radius);
  padding: 10px 10px 10px 16px;
  min-height: 56px;
}
.ap-goal-text {
  flex: 1;
  font-size: 16px;
  color: var(--ap-fg);
}
.ap-goal-text .caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--ap-fg);
  animation: ap-blink 1.1s steps(1) infinite;
}
@keyframes ap-blink {
  50% {
    opacity: 0;
  }
}
.ap-goal-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ap-heading);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
}
.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.ap-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(19, 77, 93, 0.12);
  color: var(--ap-accent-fg);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
}
.ap-chip.is-on {
  background: #fff;
  border-color: var(--ap-goal-border);
}
.ap-goal-foot {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ap-accent-fg);
}

/* Plan card (app: Plan review) ------------------------------------------- */
.ap-plan {
  padding: clamp(20px, 2.6vw, 30px);
}
.ap-plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ap-border);
}
.ap-plan-goal {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin: 0 0 6px;
}
.ap-plan-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ap-heading);
  margin: 0;
}
.ap-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--ap-border);
}
.ap-stat b {
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ap-heading);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ap-stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ap-muted);
}
.ap-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
}
.ap-col {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 14px;
}
.ap-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.ap-col-head h3 {
  font-size: 14.5px;
  margin: 0;
}
.ap-col-head span {
  font-size: 12.5px;
  color: var(--ap-muted);
  font-variant-numeric: tabular-nums;
}
.ap-item {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  padding: 12px;
}
.ap-item + .ap-item {
  margin-top: 8px;
}
.ap-item-t {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ap-heading);
  margin: 0 0 8px;
}
.ap-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ap-item-v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-heading);
  font-variant-numeric: tabular-nums;
}
.ap-item-why {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ap-muted);
}
.ap-item-why b {
  font-weight: 500;
  color: var(--ap-body2);
}
.ap-left {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ap-body2);
}
.ap-left li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-left li:first-child {
  border-top: 0;
  padding-top: 0;
}
.ap-left li span:last-child {
  color: var(--ap-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ap-left-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ap-border);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ap-muted);
}
.ap-plan-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ap-border);
}
.ap-plan-foot p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ap-body2);
}
.ap-fakebtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  background: var(--ap-heading);
  color: #fff;
}
.ap-fakebtn.is-quiet {
  background: var(--ap-card);
  color: var(--ap-heading);
  border: 1px solid var(--ap-input);
}
.ap-fakebtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Knowledge list --------------------------------------------------------- */
.ap-know {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ap-border);
}
.ap-know li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ap-border);
}
.ap-know b {
  font-weight: 600;
  color: var(--ap-heading);
  letter-spacing: -0.01em;
}
.ap-know span {
  color: var(--ap-body2);
}
.ap-callout {
  margin-top: 28px;
  background: var(--ap-accent);
  border-radius: var(--ap-radius);
  padding: 18px 20px;
}
.ap-callout p {
  margin: 0;
  color: var(--ap-accent-fg);
  font-size: 15px;
  line-height: 1.55;
}
.ap-callout p + p {
  margin-top: 8px;
}
.ap-callout b {
  font-weight: 600;
}

/* Capability cards ------------------------------------------------------- */
.ap-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.ap-card {
  display: flex;
  flex-direction: column;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 22px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
a.ap-card:hover {
  border-color: var(--ap-input);
  box-shadow: var(--ap-shadow);
  transform: translateY(-2px);
}
.ap-card .ap-badge {
  align-self: flex-start;
  margin-bottom: 18px;
}
.ap-card h3 {
  margin: 0 0 8px;
}
.ap-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-card .ap-card-go {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ap-card-also {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--ap-muted) !important;
}
.ap-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ap-accent);
  color: var(--ap-accent-fg);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.ap-ico svg {
  width: 20px;
  height: 20px;
}

/* Autonomy levels (app: Limits and rules) -------------------------------- */
.ap-levels {
  padding: clamp(18px, 2.4vw, 26px);
}
.ap-seg {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: var(--ap-panel);
  border-radius: 999px;
  padding: 4px;
}
.ap-seg span {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ap-body2);
  padding: 9px 8px;
  border-radius: 999px;
  line-height: 1.25;
}
.ap-seg span.is-on {
  background: var(--ap-card);
  color: var(--ap-heading);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}
.ap-level-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.ap-level-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-level-list li:first-child {
  border-top: 0;
}
.ap-level-list .dot {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-input);
}
.ap-level-list li.is-on .dot {
  border: 5px solid var(--ap-heading);
}
.ap-level-list b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ap-heading);
}
.ap-level-list p {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--ap-radius);
  background: var(--ap-accent);
  color: var(--ap-accent-fg);
  font-size: 14px;
  line-height: 1.5;
}
.ap-rule svg {
  flex: 0 0 18px;
  margin-top: 2px;
}
.ap-points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ap-points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  color: var(--ap-body2);
  line-height: 1.55;
}
.ap-points svg {
  margin-top: 4px;
  color: var(--ap-accent-fg);
}
.ap-points b {
  color: var(--ap-heading);
  font-weight: 600;
}

/* Learning (app: Outcomes, Reviews) -------------------------------------- */
.ap-learn {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.ap-learn > div {
  border-top: 2px solid var(--ap-heading);
  padding-top: 16px;
}
.ap-learn h3 {
  margin: 0 0 8px;
}
.ap-learn p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ap-body2);
}
.ap-review {
  padding: clamp(20px, 2.6vw, 28px);
}
.ap-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.ap-kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ap-kv div {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: 10px;
  padding: 12px;
}
.ap-kv span {
  display: block;
  font-size: 12px;
  color: var(--ap-muted);
}
.ap-kv b {
  display: block;
  margin-top: 2px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ap-heading);
  font-variant-numeric: tabular-nums;
}
.ap-box {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 14px 16px;
}
.ap-box h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.ap-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-box li + li {
  margin-top: 4px;
}
.ap-box p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}

/* Proof ------------------------------------------------------------------ */
.ap-proofstrip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
}
.ap-proofstrip > div {
  padding: 22px 24px;
  border-left: 1px solid var(--ap-border);
}
.ap-proofstrip > div:first-child {
  border-left: 0;
}
.ap-proofstrip b {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ap-heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ap-proofstrip b .arr {
  color: var(--ap-muted);
  font-weight: 400;
  padding: 0 4px;
}
.ap-proofstrip > div > span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ap-muted);
}
.ap-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.ap-story {
  display: flex;
  flex-direction: column;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 22px;
}
.ap-story .ap-eyebrow {
  margin-bottom: 10px;
}
.ap-story .ap-story-v {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ap-heading);
  line-height: 1.1;
  margin: 0 0 4px;
}
.ap-story .ap-story-v small {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ap-body2);
}
.ap-story p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-story .ap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

/* Never does ------------------------------------------------------------- */
.ap-never {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ap-never li {
  display: flex;
  flex-direction: column;
  background: var(--ap-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ap-radius);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.ap-never li:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
/* Spot illustrations: line art in the on-ink tones, with one light-teal
   accent per drawing for the thing Whispor leaves to your team. */
.ap-never-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 160 / 96;
  padding: 14px 10px 6px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(143, 193, 204, 0.12), transparent 70%),
    rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(239, 244, 245, 0.9);
}
.ap-never-art .m {
  color: rgba(174, 189, 194, 0.7);
}
.ap-never-art .a {
  color: #8fc1cc;
}
.ap-never-art .f {
  fill: rgba(255, 255, 255, 0.05);
}
.ap-never-art .ab {
  fill: #8fc1cc;
}
.ap-never-art .ak {
  color: var(--ap-ink);
}
.ap-never-art .thumb {
  fill: var(--ap-on-ink);
}
.ap-never-art .t {
  font: 500 9.5px/1 var(--font-body);
  fill: var(--ap-on-ink-2);
  letter-spacing: 0.04em;
}
.ap-never-art .ta {
  fill: #8fc1cc;
}
.ap-never-body {
  padding: 16px 18px 20px;
}
.ap-never-t {
  margin: 0 !important;
  color: #fff !important;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.ap-never-s {
  margin: 6px 0 0 !important;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-on-ink-2) !important;
}
.ap-ink-rule {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: clamp(44px, 6vw, 64px) 0 clamp(28px, 4vw, 40px);
}
.ap-ink .rb-markrow .rb-mark-glyph .rb-ico-accent {
  stroke: var(--ap-on-ink-2);
}
.ap-ink .rb-markrow h3 {
  color: #fff;
}

/* Next step -------------------------------------------------------------- */
.ap-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--ap-goal-border);
  background: linear-gradient(180deg, var(--ap-accent) 0%, var(--ap-goal) 100%);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px);
}
/* Concentric rings: a target, centered under the box where the goal is typed. */
.ap-cta-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  stroke: rgba(19, 77, 93, 0.09);
  stroke-width: 1.2;
}
.ap-cta-in {
  max-width: 760px;
  margin: 0 auto;
}
.ap-cta .ap-eyebrow {
  color: var(--ap-accent-fg);
}
.ap-cta h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.038em;
  line-height: 1.06;
  max-width: 17ch;
  margin: 0 auto 16px;
}
.ap-cta .ap-lede {
  margin: 0 auto 30px;
  color: #2c4a53;
}
.ap-ask {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  margin: 0 auto;
  min-height: 68px;
  padding: 10px 10px 10px 22px;
  background: var(--ap-card);
  border: 1px solid var(--ap-goal-border);
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 18px 40px -20px rgba(19, 77, 93, 0.35);
  text-align: left;
  transition:
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.ap-ask:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 22px 44px -18px rgba(19, 77, 93, 0.45);
}
.ap-ask:focus-visible {
  outline: 2px solid var(--ap-accent-fg);
  outline-offset: 3px;
}
.ap-ask-text {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  color: var(--ap-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-ask-text .caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -0.18em;
  background: var(--ap-fg);
  animation: ap-blink 1.1s steps(1) infinite;
}
.ap-ask-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ap-heading);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
.ap-ask:hover .arrow {
  transform: translateX(3px);
}
.ap-ask .arrow {
  transition: transform 0.25s var(--ease);
}
.ap-promise {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-accent-fg);
}
.ap-promise li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.ap-cta .ap-more {
  margin-top: 26px;
  border-bottom-color: rgba(19, 77, 93, 0.3);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .ap-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-never {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ap-split,
  .ap-review-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  .ap-stories,
  .ap-learn {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .ap-never {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .ap-cards,
  .ap-never,
  .ap-proofstrip {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-proofstrip > div {
    border-left: 0;
  }
  .ap-never li {
    flex-direction: row;
    align-items: center;
  }
  .ap-never-art {
    flex: 0 0 128px;
    width: 128px;
    align-self: stretch;
    padding: 10px 6px;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .ap-never-body {
    padding: 14px 16px;
  }
  .ap-proofstrip > div + div {
    border-top: 1px solid var(--ap-border);
  }
  .ap-know li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .ap-seg {
    grid-template-columns: minmax(0, 1fr);
    border-radius: var(--ap-radius);
  }
  .ap-seg span {
    border-radius: 9px;
  }
  .ap-kv {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .ap-goal-input {
    flex-wrap: wrap;
  }
  .ap-goal-go {
    margin-left: auto;
  }
  .ap-ask {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }
  .ap-ask-text {
    white-space: normal;
    padding: 4px 6px 2px;
    min-height: 2.9em;
  }
  .ap-ask-go {
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-goal-text .caret,
  .ap-ask-text .caret {
    animation: none;
  }
  .ap-btn,
  .ap-card {
    transition: none;
  }
}

/* ==========================================================================
   Page components (inner pages)
   Template: Hero → Explain → Proof or Illustration → Control → Next step
   ========================================================================== */

/* Page hero -------------------------------------------------------------- */
.ap-pagehero {
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, var(--ap-bg) 0%, var(--ap-bg) 50%, var(--ap-panel) 100%);
}
.ap-pagehero .ap-split {
  align-items: center;
}
.ap-pagehero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 16ch;
}
.ap-pagehero .ap-lede {
  margin-bottom: 28px;
}
.ap-pagehero.is-center {
  text-align: center;
}
.ap-pagehero.is-center h1,
.ap-pagehero.is-center .ap-lede {
  margin-left: auto;
  margin-right: auto;
}
.ap-pagehero.is-center .ap-actions {
  justify-content: center;
}
.ap-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-crumb a:hover {
  color: var(--ap-heading);
}
.ap-crumb span[aria-hidden] {
  color: var(--ap-input);
}

/* Section header beside content ----------------------------------------- */
.ap-head.is-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.ap-head.is-center .ap-lede {
  margin: 0 auto;
}

/* Steps ------------------------------------------------------------------ */
.ap-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}
.ap-steps.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-steps.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ap-steps > li {
  counter-increment: step;
  position: relative;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 18px 18px 20px;
}
.ap-panel .ap-steps > li {
  background: var(--ap-card);
}
.ap-steps > li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ap-muted);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.ap-steps .ap-badge {
  position: absolute;
  top: 14px;
  right: 14px;
}
.ap-steps h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
}
.ap-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-badge-you {
  background: var(--ap-heading);
  color: #fff;
}

/* Static cards (not links) ---------------------------------------------- */
.ap-cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-cards.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
div.ap-card .ap-ico + h3 {
  margin-top: 0;
}
.ap-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-card ul li + li {
  margin-top: 4px;
}

/* Who does what ---------------------------------------------------------- */
.ap-who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ap-who > div {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 20px;
}
.ap-who h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 16px;
}
.ap-who ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-who li {
  padding: 8px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-who li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Terms table (app: Negotiation) ---------------------------------------- */
.ap-terms {
  padding: clamp(18px, 2.4vw, 26px);
}
.ap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.ap-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-muted);
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--ap-border);
  white-space: nowrap;
}
.ap-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--ap-border);
  color: var(--ap-body2);
  vertical-align: middle;
}
.ap-table td:first-child,
.ap-table th:first-child {
  padding-left: 0;
}
.ap-table td:first-child {
  font-weight: 500;
  color: var(--ap-heading);
}
.ap-table tr:last-child td {
  border-bottom: 0;
}
.ap-table .is-latest {
  font-weight: 600;
  color: var(--ap-heading);
}
.ap-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ap-round {
  margin-top: 16px;
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 14px 16px;
}
.ap-round-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-heading);
}
.ap-opt {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--ap-border);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-opt b {
  color: var(--ap-heading);
  font-weight: 600;
}
.ap-opt .dot {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-input);
}
.ap-opt.is-on .dot {
  border: 5px solid var(--ap-heading);
}

/* Call mock (app: Assisted Negotiation) --------------------------------- */
.ap-call {
  overflow: hidden;
}
.ap-call-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ap-border);
  font-size: 13px;
  color: var(--ap-body2);
}
.ap-call-top b {
  color: var(--ap-heading);
  font-weight: 600;
}
.ap-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ap-success-text);
}
.ap-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-success);
}
.ap-call-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}
.ap-transcript p {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-transcript b {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-bottom: 2px;
}
.ap-signal {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-left: 3px solid var(--ap-accent-fg);
  border-radius: 10px;
  padding: 12px 14px;
}
.ap-signal + .ap-signal {
  margin-top: 10px;
}
.ap-signal.is-attn {
  border-left-color: var(--ap-brand);
}
.ap-signal h4 {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}
.ap-signal p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-signal .move {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ap-accent-fg);
}

/* Training mock ---------------------------------------------------------- */
.ap-levels5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  background: var(--ap-panel);
  border-radius: 10px;
  padding: 4px;
  margin: 8px 0 14px;
}
.ap-levels5 span {
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  padding: 8px 4px;
  border-radius: 7px;
  color: var(--ap-body2);
}
.ap-levels5 span.is-on {
  background: var(--ap-card);
  color: var(--ap-heading);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}
.ap-field {
  margin-bottom: 12px;
}
.ap-field label,
.ap-field .lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ap-heading);
  margin-bottom: 6px;
}
.ap-field .val {
  background: var(--ap-card);
  border: 1px solid var(--ap-input);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ap-fg);
}
.ap-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ap-toggles span {
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--ap-input);
  color: var(--ap-body2);
  background: var(--ap-card);
}
.ap-toggles span.is-on {
  background: var(--ap-heading);
  color: #fff;
  border-color: var(--ap-heading);
}
.ap-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ap-score b {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ap-heading);
  line-height: 1;
}
.ap-score span {
  font-size: 13px;
  color: var(--ap-muted);
}
.ap-timeline {
  position: relative;
  height: 34px;
  margin: 8px 0 4px;
  border-radius: 8px;
  background: var(--ap-panel);
}
.ap-timeline i {
  position: absolute;
  top: 9px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--ap-accent-fg);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--ap-goal-border);
}
.ap-timeline i.is-attn {
  background: var(--ap-brand);
}
.ap-timeline-l {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ap-muted);
}

/* Data quality (app: Spend) ---------------------------------------------- */
.ap-quality {
  padding: clamp(18px, 2.4vw, 26px);
}
.ap-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--ap-panel);
  overflow: hidden;
  margin: 6px 0 4px;
}
.ap-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ap-muted);
}
.ap-bar.is-ok i {
  background: var(--ap-success);
}
.ap-qrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ap-body2);
}
.ap-qrow b {
  font-weight: 600;
  color: var(--ap-heading);
  font-variant-numeric: tabular-nums;
}
.ap-qrow + .ap-bar + .ap-qrow,
.ap-quality .ap-qblock + .ap-qblock {
  margin-top: 14px;
}
.ap-fixes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--ap-body2);
}
.ap-fixes li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-fixes li span:last-child {
  color: var(--ap-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Proof case ------------------------------------------------------------- */
.ap-case {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: clamp(24px, 3.4vw, 40px);
}
.ap-case h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.022em;
  margin: 0 0 12px;
}
.ap-case p {
  margin: 0 0 12px;
  color: var(--ap-body2);
  line-height: 1.6;
}
.ap-case-figs {
  display: grid;
  gap: 10px;
  align-content: start;
}
.ap-case-figs div {
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 14px 16px;
}
.ap-case-figs b {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ap-heading);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.ap-case-figs span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ap-muted);
}

/* Control list ----------------------------------------------------------- */
.ap-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ap-checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 16px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-checks li b {
  display: block;
  color: var(--ap-heading);
  font-weight: 600;
  margin-bottom: 2px;
}
.ap-checks svg {
  margin-top: 3px;
  color: var(--ap-accent-fg);
}
.ap-ink .ap-checks li {
  background: var(--ap-ink-2);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--ap-on-ink-2);
}
.ap-ink .ap-checks li b {
  color: #fff;
}
.ap-ink .ap-checks svg {
  color: #8fc1cc;
}

/* FAQ -------------------------------------------------------------------- */
.ap-faq {
  max-width: 860px;
  border-top: 1px solid var(--ap-border);
}
.ap-faq details {
  border-bottom: 1px solid var(--ap-border);
}
.ap-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ap-heading);
}
.ap-faq summary::-webkit-details-marker {
  display: none;
}
.ap-faq summary::after {
  content: "+";
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  color: var(--ap-muted);
}
.ap-faq details[open] summary::after {
  content: "−";
}
.ap-faq details p {
  margin: 0 0 18px;
  max-width: 70ch;
  color: var(--ap-body2);
  line-height: 1.6;
}
.ap-faq summary:focus-visible {
  outline: 2px solid var(--ap-accent-fg);
  outline-offset: 2px;
}

/* Inline note ------------------------------------------------------------ */
.ap-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ap-muted);
}

/* Prose (legal and long text pages) ------------------------------------- */
.ap-prose {
  max-width: 760px;
}
.ap-prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.ap-prose h3 {
  margin: 28px 0 8px;
}
.ap-prose p,
.ap-prose li {
  color: var(--ap-body2);
  line-height: 1.7;
}

/* Responsive: page components ------------------------------------------- */
@media (max-width: 1100px) {
  .ap-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ap-steps.cols-3,
  .ap-who,
  .ap-case,
  .ap-call-body,
  .ap-cards.cols-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-checks {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .ap-steps,
  .ap-steps.cols-2,
  .ap-cards.cols-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-levels5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .ap-levels5 span {
    font-size: 10.5px;
    padding: 7px 2px;
  }
}

/* Goal → plan → outcome stack (How Whispor works hero) ------------------ */
.ap-gpo {
  padding: 18px;
}
.ap-gpo-step {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  background: var(--ap-bg);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 14px 16px;
}
.ap-gpo-step + .ap-gpo-step {
  margin-top: 26px;
  position: relative;
}
.ap-gpo-step + .ap-gpo-step::before {
  content: "";
  position: absolute;
  left: 42px;
  top: -27px;
  height: 26px;
  border-left: 1.5px dashed var(--ap-goal-border);
}
.ap-gpo-k {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
  padding-top: 3px;
}
.ap-gpo-v {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ap-heading);
  margin: 0 0 6px;
}
.ap-gpo-m {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ap-gpo-step.is-goal {
  background: var(--ap-goal);
  border-color: var(--ap-goal-border);
}
@media (max-width: 480px) {
  .ap-gpo-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .ap-gpo-step + .ap-gpo-step::before {
    left: 24px;
  }
}

/* Two-column explain row: text beside a mock-up ------------------------- */
.ap-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.ap-row.is-flip > :first-child {
  order: 2;
}
@media (max-width: 900px) {
  .ap-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-row.is-flip > :first-child {
    order: 0;
  }
}

/* Use-case hero: the goal, then the part of the plan that answers it ----- */
.ap-uc-plan {
  margin-top: 12px;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow);
  padding: 16px 18px;
}
.ap-uc-plan .ap-left li span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-uc-plan-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ap-uc-plan-h b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-heading);
}

/* Forms in the app style ------------------------------------------------- */
.ap-formcard {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  box-shadow: var(--ap-shadow);
  padding: clamp(22px, 3vw, 32px);
}
.ap-formcard h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.ap-formcard > p {
  margin: 0 0 18px;
  color: var(--ap-body2);
  font-size: 14.5px;
}
.ap-formcard .field label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ap-heading);
}
.ap-formcard .field input,
.ap-formcard .field select,
.ap-formcard .field textarea {
  border: 1px solid var(--ap-input);
  border-radius: 10px;
  background: var(--ap-card);
  color: var(--ap-fg);
  font-size: 15px;
}
.ap-formcard .field input:focus,
.ap-formcard .field select:focus,
.ap-formcard .field textarea:focus {
  border-color: var(--ap-accent-fg);
  box-shadow: 0 0 0 3px rgba(19, 77, 93, 0.12);
  outline: 0;
}
.ap-formcard .rb-formfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 8px;
}
.ap-formcard .rb-formnote {
  margin: 0;
  font-size: 13px;
  color: var(--ap-muted);
}
.ap-formcard button.ap-btn {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.ap-steps.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .ap-steps.cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .ap-steps.cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .ap-steps.cols-5 {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ap-waves {
  width: 100%;
}

/* ==========================================================================
   Legacy alignment
   Pages not yet rebuilt on the ap- components (posts, insights, guides,
   glossary, compare, legal) still use the rb- and global classes. These
   rules bring those classes onto the app's rules: no coral eyebrows or
   buttons, near-black primary buttons, neutral panels.
   ========================================================================== */
.eyebrow {
  color: var(--ap-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.eyebrow::before {
  display: none;
}
.rb-dark .eyebrow,
.ap-ink .eyebrow {
  color: var(--ap-on-ink-2);
}
.btn-primary,
.btn-coral {
  background: var(--ap-heading);
  color: #fff;
}
.btn-primary:hover,
.btn-coral:hover {
  background: #2a2c31;
}
.btn-ghost {
  background: var(--ap-card);
  color: var(--ap-heading);
  border-color: var(--ap-input);
}
.btn-ghost:hover {
  background: var(--ap-panel);
}
.rb-soft {
  background: var(--ap-panel);
}
.rb-dark {
  background: var(--ap-ink);
}
.card {
  border-color: var(--ap-border);
  border-radius: var(--ap-radius);
}
.rb-kicker {
  color: var(--ap-muted);
}
.rb-ico .rb-ico-accent,
.rb-markrow .rb-mark-glyph .rb-ico-accent {
  stroke: var(--ap-accent-fg);
}
.rb-dark .rb-ico .rb-ico-accent {
  stroke: #8fc1cc;
}

/* Coral is for attention only. The legacy layers use the coral tokens for
   decoration (meta lines, kickers, numbers, list ticks), so on v2 those
   tokens point at the app's teal accent. The ap- components use --ap-brand
   for real attention states and are unaffected. The logo carries its own
   coral and is unaffected too. */
:root {
  --coral-500: #134d5d;
  --coral-400: #1d5365;
  --coral-ink: #134d5d;
  --coral-300: #8fc1cc;
}
@media (max-width: 820px) {
  /* A long cookie name in the contents list held the single column open. */
  .legal-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-toc li {
    overflow-wrap: anywhere;
  }
  .legal-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

/* ==========================================================================
   Expressive components (v2.1)
   Every page gets one centerpiece the others do not have. These are the
   parts: dark hero, statement band, count-up numbers, scrollytelling, a
   negotiation feed that plays, a supplier dot field, a switcher you click,
   a call window, sealed bids that open, a score ring.
   Motion is driven by assets/rebuild.js and always lands on the final
   state under prefers-reduced-motion.
   ========================================================================== */

/* Dark hero ---------------------------------------------------------------- */
.ap-darkhero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ap-ink);
  color: var(--ap-on-ink);
  padding: clamp(64px, 8vw, 112px) 0 clamp(64px, 8vw, 104px);
}
.ap-darkhero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(143, 193, 204, 0.22), transparent 70%);
}
.ap-darkhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.ap-darkhero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
  margin: 0 0 22px;
}
.ap-darkhero .ap-lede {
  color: var(--ap-on-ink-2);
  margin-bottom: 30px;
}
.ap-darkhero .ap-crumb,
.ap-darkhero .ap-eyebrow {
  color: #8fc1cc;
}
.ap-darkhero .ap-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.ap-darkhero .ap-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.ap-darkhero .ap-btn-primary {
  background: #fff;
  color: var(--ap-heading);
}
.ap-darkhero .ap-btn-primary:hover {
  background: var(--ap-accent);
}
.ap-darkhero .ap-split {
  align-items: center;
}
.ap-hl {
  color: #8fc1cc;
}
.ap-hl-dark {
  color: var(--ap-accent-fg);
}

/* Glass panel for mock-ups on dark */
.ap-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Statement band ----------------------------------------------------------- */
.ap-statement {
  padding: clamp(80px, 11vw, 160px) 0;
  text-align: center;
}
.ap-statement p.big,
.ap-statement h1.big {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.3rem, 6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--ap-heading);
}
.ap-statement p.big .muted,
.ap-statement h1.big .muted {
  color: #a3abb7;
}
.ap-statement.ap-ink p.big {
  color: #fff;
}
.ap-statement.ap-ink p.big .muted {
  color: rgba(255, 255, 255, 0.35);
}
.ap-statement .ap-lede {
  margin: 26px auto 0;
  text-align: center;
}

/* Giant numbers ------------------------------------------------------------ */
.ap-bignums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ap-border);
}
.ap-bignums > div {
  padding: 28px 24px 8px 0;
}
.ap-bignums > div + div {
  padding-left: 24px;
  border-left: 1px solid var(--ap-border);
}
.ap-bignums b {
  display: block;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--ap-heading);
  font-variant-numeric: tabular-nums;
}
.ap-bignums span {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  color: var(--ap-body2);
  max-width: 26ch;
}
.ap-ink .ap-bignums,
.ap-ink .ap-bignums > div + div {
  border-color: rgba(255, 255, 255, 0.12);
}
.ap-ink .ap-bignums b {
  color: #fff;
}
.ap-ink .ap-bignums span {
  color: var(--ap-on-ink-2);
}
.ap-goalband {
  background: linear-gradient(180deg, var(--ap-accent) 0%, var(--ap-goal) 100%);
}

/* Goal → outcome track (animated) ----------------------------------------- */
.ap-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(40px, 6vw, 64px);
}
.ap-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22px;
  border-top: 1.5px dashed rgba(255, 255, 255, 0.25);
}
.ap-track::after {
  content: "";
  position: absolute;
  top: 17px;
  left: 10%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #8fc1cc;
  box-shadow: 0 0 0 6px rgba(143, 193, 204, 0.18);
  animation: ap-travel 6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes ap-travel {
  0% {
    left: 10%;
  }
  85%,
  100% {
    left: 90%;
  }
}
.ap-track > div {
  position: relative;
  text-align: center;
}
.ap-track i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ap-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
}
.ap-track b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
.ap-track span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ap-on-ink-2);
}

/* Scrollytelling ----------------------------------------------------------- */
.ap-scrolly {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.ap-scrolly-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-scrolly-steps > li {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  opacity: 0.32;
  transition: opacity 0.4s var(--ease);
}
.ap-scrolly-steps > li.is-active {
  opacity: 1;
}
.ap-scrolly-steps .n {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ap-muted);
  margin-bottom: 10px;
}
.ap-scrolly-steps h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.ap-scrolly-steps p {
  margin: 0;
  max-width: 44ch;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ap-body2);
}
.ap-scrolly-steps .who {
  display: inline-flex;
  margin-top: 14px;
}
.ap-scrolly-stage {
  position: sticky;
  top: 120px;
  display: grid;
}
.ap-scrolly-stage > .ap-panelstate {
  grid-area: 1 / 1;
  align-self: start;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease);
  pointer-events: none;
}
.ap-scrolly-stage > .ap-panelstate.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ap-panelstate .ap-mock {
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.ap-stagefoot {
  margin-top: auto;
  font-size: 13px;
  color: var(--ap-muted);
}
.ap-inline-state {
  display: none;
}

/* Swimlanes ---------------------------------------------------------------- */
.ap-lanes {
  display: grid;
  gap: 12px;
}
.ap-lane {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-radius: 16px;
  padding: 16px 18px;
}
.ap-lane.is-whispor {
  background: var(--ap-ink);
}
.ap-lane.is-team {
  background: var(--ap-goal);
}
.ap-lane.is-left {
  background: var(--ap-card);
  border: 1px dashed var(--ap-input);
}
.ap-lane-h {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ap-lane.is-whispor .ap-lane-h {
  color: #fff;
}
.ap-lane-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ap-lane-items span {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.25;
  background: var(--ap-card);
  color: var(--ap-heading);
  border: 1px solid var(--ap-border);
}
.ap-lane.is-whispor .ap-lane-items span {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ap-on-ink);
  border-color: rgba(255, 255, 255, 0.12);
}
.ap-lane.is-team .ap-lane-items span {
  border-color: var(--ap-goal-border);
}
.ap-lane.is-left .ap-lane-items span {
  background: var(--ap-panel);
  color: var(--ap-body2);
  border-color: transparent;
  text-decoration: line-through;
  text-decoration-color: rgba(100, 109, 124, 0.5);
}

/* Switcher ------------------------------------------------------------------ */
.ap-switch-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--ap-panel);
  margin-bottom: 22px;
}
.ap-ink .ap-switch-tabs {
  background: rgba(255, 255, 255, 0.08);
}
.ap-switch-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ap-body2);
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}
.ap-ink .ap-switch-tabs button {
  color: var(--ap-on-ink-2);
}
.ap-switch-tabs button[aria-selected="true"] {
  background: var(--ap-card);
  color: var(--ap-heading);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}
.ap-switch-tabs button:focus-visible {
  outline: 2px solid var(--ap-accent-fg);
  outline-offset: 2px;
}
.ap-switch-panel[hidden] {
  display: none;
}
.ap-switch-panel {
  animation: ap-fadeup 0.35s var(--ease);
}
@keyframes ap-fadeup {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Negotiation feed ---------------------------------------------------------- */
.ap-feed {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  height: 330px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0, #000 40px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px);
}
.ap-feed > .ap-msg,
.ap-feed > .ap-typing {
  flex: 0 0 auto;
  display: none;
}
.ap-feed > .ap-msg.is-shown,
.ap-feed > .ap-typing.is-shown {
  display: block;
  animation: ap-fadeup 0.4s var(--ease);
}
.ap-feed > .ap-typing.is-shown {
  display: inline-flex;
}
.ap-msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.ap-msg.is-shown {
  opacity: 1;
  transform: none;
}
.ap-msg small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.ap-msg.from-w {
  align-self: flex-end;
  background: #fff;
  color: var(--ap-heading);
  border-bottom-right-radius: 4px;
}
.ap-msg.from-s {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ap-on-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-left-radius: 4px;
}
.ap-msg.is-alert {
  align-self: stretch;
  max-width: none;
  background: var(--ap-brand-soft);
  color: var(--ap-brand-text);
  border-radius: 12px;
  font-weight: 500;
}
.ap-msg.is-alert small {
  opacity: 1;
}
.ap-msg.is-done {
  align-self: stretch;
  max-width: none;
  background: var(--ap-success-soft);
  color: var(--ap-success-text);
  font-weight: 500;
}
.ap-feed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: var(--ap-on-ink-2);
}
.ap-feed-top b {
  color: #fff;
  font-weight: 600;
}
.ap-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0;
}
.ap-typing.is-shown {
  opacity: 1;
}
.ap-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-on-ink-2);
  animation: ap-dot 1s infinite;
}
.ap-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.ap-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ap-dot {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Supplier dot field -------------------------------------------------------- */
.ap-dots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 6px;
}
.ap-dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.ap-dots i.is-agreed {
  background: #8fc1cc;
}
.ap-dots i.is-person {
  background: #fff;
  transform: scale(1.15);
}
.ap-dotlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ap-on-ink-2);
}
.ap-dotlegend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -1px;
  background: rgba(255, 255, 255, 0.12);
}
.ap-dotlegend .k-agreed::before {
  background: #8fc1cc;
}
.ap-dotlegend .k-person::before {
  background: #fff;
}

/* Phone frame (supplier view) ----------------------------------------------- */
.ap-phone {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 34px;
  padding: 12px;
  background: #11161f;
  box-shadow: 0 40px 90px -40px rgba(16, 24, 40, 0.55);
}
.ap-phone-screen {
  border-radius: 24px;
  background: #fff;
  padding: 22px 18px;
  min-height: 460px;
}
.ap-phone-screen .from {
  font-size: 12px;
  color: var(--ap-muted);
}
.ap-phone-screen h4 {
  margin: 6px 0 14px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.ap-offer {
  border: 1px solid var(--ap-border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ap-body2);
}
.ap-offer b {
  display: block;
  color: var(--ap-heading);
  font-size: 14px;
  margin-bottom: 2px;
}
.ap-offer.is-picked {
  border-color: var(--ap-heading);
  box-shadow: 0 0 0 1px var(--ap-heading);
}
.ap-phone-note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ap-muted);
}

/* Call window --------------------------------------------------------------- */
.ap-callwin {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  overflow: hidden;
}
.ap-callwin-video {
  position: relative;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 12px;
  background: #0b1016;
}
.ap-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 38%, #2a3746 0%, #18212b 70%);
  display: grid;
  place-items: center;
}
.ap-tile svg {
  width: 46%;
  color: #3c4c5e;
}
.ap-tile .name {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 11.5px;
  color: #cfd8e0;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px 8px;
  border-radius: 6px;
}
.ap-tile.is-speaking {
  box-shadow: 0 0 0 2px #8fc1cc;
}
.ap-callbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 2px;
}
.ap-callbar i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1d2733;
}
.ap-callbar i:last-child {
  background: #b4492d;
}
.ap-callwin-side {
  background: var(--ap-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ap-callwin-side .h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ap-muted);
}
.ap-callwin-side .h b {
  color: var(--ap-heading);
  font-weight: 600;
}
.ap-callwin .ap-signal {
  opacity: 0;
  transform: translateX(10px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}
.ap-callwin .ap-signal.is-shown {
  opacity: 1;
  transform: none;
}
.ap-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #8fc1cc;
}
.ap-only::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25a876;
}

/* Sealed bids --------------------------------------------------------------- */
.ap-bids {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  perspective: 900px;
}
.ap-bid {
  position: relative;
  height: 170px;
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease);
}
.ap-bids.is-open .ap-bid {
  transform: rotateY(180deg);
}
.ap-bids.is-open .ap-bid:nth-child(2) {
  transition-delay: 0.12s;
}
.ap-bids.is-open .ap-bid:nth-child(3) {
  transition-delay: 0.24s;
}
.ap-bids.is-open .ap-bid:nth-child(4) {
  transition-delay: 0.36s;
}
.ap-bids.is-open .ap-bid:nth-child(5) {
  transition-delay: 0.48s;
}
.ap-bid > div {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.ap-bid .front {
  background: var(--ap-ink-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
  color: var(--ap-on-ink-2);
  font-size: 12.5px;
  gap: 10px;
}
.ap-bid .front svg {
  color: #8fc1cc;
}
.ap-bid .back {
  transform: rotateY(180deg);
  background: #fff;
  color: var(--ap-heading);
}
.ap-bid .back .s {
  font-size: 12.5px;
  color: var(--ap-muted);
}
.ap-bid .back .p {
  margin-top: auto;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.ap-bid .back .n {
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-success-text);
  min-height: 1.3em;
}
.ap-bid.is-out .back {
  opacity: 0.55;
}
.ap-bid.is-pick .back {
  box-shadow: 0 0 0 2px #8fc1cc;
}
.ap-bidsteps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--ap-on-ink-2);
}
.ap-bidsteps span.is-on {
  color: #fff;
  font-weight: 500;
}

/* Pipeline ------------------------------------------------------------------ */
.ap-pipe {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  counter-reset: pipe;
}
.ap-pipe > div {
  position: relative;
  padding: 18px 14px 0 0;
  border-top: 3px solid var(--ap-ink);
  counter-increment: pipe;
}
.ap-pipe > div.is-you {
  border-top-color: var(--ap-goal-border);
}
.ap-pipe > div::before {
  content: counter(pipe, decimal-leading-zero);
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-muted);
  margin-bottom: 8px;
}
.ap-pipe > div::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ap-ink);
  border: 3px solid var(--ap-bg);
}
.ap-pipe > div.is-you::after {
  background: var(--ap-goal-border);
}
.ap-pipe b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ap-heading);
  margin-bottom: 6px;
}
.ap-pipe span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ap-body2);
}
.ap-pipe .who {
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-accent-fg);
}
.ap-pipe .is-you .who {
  color: var(--ap-heading);
}

/* Score ring ---------------------------------------------------------------- */
.ap-ring {
  position: relative;
  width: 150px;
  height: 150px;
}
.ap-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ap-ring .track {
  stroke: var(--ap-panel);
}
.ap-ring .val {
  stroke: var(--ap-accent-fg);
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.ap-ring.is-in .val {
  stroke-dashoffset: calc(377 - 377 * var(--score) / 100);
}
.ap-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ap-heading);
}

/* Practice chat with a voice wave -------------------------------------------- */
.ap-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
}
.ap-wave i {
  width: 3px;
  border-radius: 2px;
  background: #8fc1cc;
  animation: ap-wave 1.1s ease-in-out infinite;
}
@keyframes ap-wave {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 30px;
  }
}

/* Bento --------------------------------------------------------------------- */
.ap-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.ap-bento > * {
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.ap-bento .w2 {
  grid-column: span 2;
}
.ap-bento .w3 {
  grid-column: span 3;
}
.ap-bento .w4 {
  grid-column: span 4;
}
.ap-bento .is-ink {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: var(--ap-on-ink);
}
.ap-bento .is-ink h3 {
  color: #fff;
}
.ap-bento .is-ink p {
  color: var(--ap-on-ink-2);
}
.ap-bento .is-goal {
  background: var(--ap-goal);
  border-color: var(--ap-goal-border);
}
.ap-bento h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.ap-bento p {
  margin: 0;
  color: var(--ap-body2);
  line-height: 1.55;
}
.ap-bento .big {
  margin-top: auto;
  padding-top: 18px;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ap-heading);
}
.ap-bento .is-ink .big {
  color: #fff;
}

/* Responsive: expressive components ----------------------------------------- */
@media (max-width: 1100px) {
  .ap-pipe {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }
  .ap-bids {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ap-bento .w2 {
    grid-column: span 3;
  }
  .ap-bento .w4 {
    grid-column: span 6;
  }
}
@media (max-width: 900px) {
  .ap-scrolly {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-scrolly-stage {
    display: none;
  }
  .ap-scrolly-steps > li {
    min-height: 0;
    opacity: 1;
    padding: 0 0 36px;
  }
  .ap-inline-state {
    display: block;
    margin-top: 18px;
  }
  .ap-callwin {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-lane {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .ap-bento .w2,
  .ap-bento .w3 {
    grid-column: span 6;
  }
}
@media (max-width: 720px) {
  .ap-bignums {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-bignums > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ap-border);
  }
  .ap-ink .ap-bignums > div + div {
    border-top-color: rgba(255, 255, 255, 0.12);
  }
  .ap-track {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    text-align: left;
  }
  .ap-track::before,
  .ap-track::after {
    display: none;
  }
  .ap-track > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    text-align: left;
  }
  .ap-track i {
    grid-row: span 2;
    margin: 0;
  }
  .ap-pipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-bids {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-track::after,
  .ap-wave i,
  .ap-typing i {
    animation: none;
  }
  .ap-msg,
  .ap-callwin .ap-signal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ap-bid {
    transition: none;
  }
}

/* Six facts: large numerals, two columns, on dark */
.ap-sixfacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  counter-reset: six;
}
.ap-sixfacts li {
  counter-increment: six;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ap-on-ink-2);
  font-size: 16px;
  line-height: 1.55;
}
.ap-sixfacts li::before {
  content: counter(six);
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #8fc1cc;
}
.ap-sixfacts b {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
@media (max-width: 820px) {
  .ap-sixfacts {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ap-statement .ap-eyebrow {
  display: block;
  margin-bottom: 22px;
}
@media (max-width: 900px) {
  .ap-bignums[style*="repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .ap-bignums[style*="repeat(4"] > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}
@media (max-width: 720px) {
  .ap-bignums[style*="repeat(4"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
.ap-bento .is-ink .ap-more,
.ap-goalband .ap-more {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.ap-bento .is-ink .ap-more {
  color: #fff;
}
.ap-goalband .ap-more {
  border-bottom-color: var(--ap-goal-border);
}
/* The supplier's reply at each push level */
.ap-reply {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.ap-reply .q,
.ap-reply .a {
  max-width: 82%;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
}
.ap-reply .q {
  justify-self: end;
  background: var(--ap-heading);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ap-reply .a {
  justify-self: start;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  color: var(--ap-heading);
  border-bottom-left-radius: 4px;
}
.ap-reply small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.ap-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ap-muted);
  margin: -10px 4px 18px;
}
.ap-leader {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-leader li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ap-on-ink);
  font-size: 14.5px;
}
.ap-leader li:first-child {
  border-top: 0;
}
.ap-leader .r {
  color: var(--ap-on-ink-2);
  font-size: 13px;
}
.ap-leader .s {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ap-leader .d {
  font-size: 12.5px;
  color: #8fc1cc;
}
a.w2,
a.w3,
a.w4 {
  color: inherit;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
a.w2:hover,
a.w3:hover,
a.w4:hover {
  transform: translateY(-3px);
  box-shadow: var(--ap-shadow);
}
.ap-goalband .ap-mock {
  box-shadow: 0 30px 70px -30px rgba(19, 77, 93, 0.35);
}

/* Three-way split: the plan branching into three columns ------------------ */
.ap-split3-root {
  display: flex;
  justify-content: center;
}
.ap-split3-root span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ap-heading);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
.ap-split3-branch {
  position: relative;
  height: 44px;
  margin: 0 calc(100% / 6);
  border-top: 1.5px solid var(--ap-input);
  margin-top: 22px;
}
.ap-split3-branch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -23px;
  height: 22px;
  border-left: 1.5px solid var(--ap-input);
}
.ap-split3-branch i {
  position: absolute;
  top: 0;
  height: 44px;
  border-left: 1.5px solid var(--ap-input);
}
.ap-split3-branch i:nth-child(1) {
  left: 0;
}
.ap-split3-branch i:nth-child(2) {
  left: 50%;
}
.ap-split3-branch i:nth-child(3) {
  right: 0;
}
.ap-split3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.ap-split3 > div {
  border-radius: 20px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}
.ap-split3 .c-whispor {
  background: var(--ap-ink);
  color: var(--ap-on-ink);
}
.ap-split3 .c-team {
  background: var(--ap-goal);
  border: 1px solid var(--ap-goal-border);
}
.ap-split3 .c-left {
  background: var(--ap-card);
  border: 1.5px dashed var(--ap-input);
}
.ap-split3 .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.ap-split3 .c-whispor .ic {
  background: rgba(143, 193, 204, 0.16);
  color: #8fc1cc;
}
.ap-split3 .c-team .ic {
  background: #fff;
  color: var(--ap-accent-fg);
}
.ap-split3 .c-left .ic {
  background: var(--ap-panel);
  color: var(--ap-muted);
}
.ap-split3 h3 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}
.ap-split3 .c-whispor h3 {
  color: #fff;
}
.ap-split3 .sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ap-body2);
}
.ap-split3 .c-whispor .sub {
  color: var(--ap-on-ink-2);
}
.ap-split3 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-split3 li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--ap-border);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ap-heading);
}
.ap-split3 .c-whispor li {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: var(--ap-on-ink);
}
.ap-split3 .c-team li {
  border-top-color: var(--ap-goal-border);
}
.ap-split3 .c-left li {
  color: var(--ap-body2);
}
.ap-split3 li svg {
  margin-top: 2px;
}
.ap-split3 .c-whispor li svg {
  color: #8fc1cc;
}
.ap-split3 .c-team li svg {
  color: var(--ap-accent-fg);
}
.ap-split3 .c-left li svg {
  color: var(--ap-muted);
}
.ap-split3 .foot {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ap-muted);
}
.ap-split3 .c-whispor .foot {
  color: var(--ap-on-ink-2);
}
@media (max-width: 900px) {
  .ap-split3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-split3-branch {
    display: none;
  }
  .ap-split3-root {
    margin-bottom: 18px;
  }
}

/* ==========================================================================
   v2.2 centerpieces for Commercial Intelligence, Outcomes & Learning and
   the use cases. Each page uses one of these; none uses two.
   ========================================================================== */

/* Grow on view: [data-w] widths and [data-h] heights animate in */
.ap-grow [data-w] {
  width: 0;
  transition: width 1.2s var(--ease);
}
.ap-grow [data-h] {
  height: 0;
  transition: height 1.1s var(--ease);
}

/* Constellation: what Whispor reads, around Whispor ----------------------- */
.ap-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 520px;
  margin: 0 auto;
}
.ap-orbit svg.lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ap-orbit svg.lines line {
  stroke: rgba(143, 193, 204, 0.35);
  stroke-width: 1.2;
}
.ap-orbit svg.lines circle.ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
}
.ap-orbit svg.lines .pulse {
  fill: #8fc1cc;
}
.ap-orbit .core,
.ap-orbit .node {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ap-orbit .core {
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, #1a5866, #0f3c48);
  border: 1px solid rgba(143, 193, 204, 0.4);
  box-shadow: 0 0 0 12px rgba(143, 193, 204, 0.06), 0 0 60px rgba(143, 193, 204, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.ap-orbit .core small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ap-on-ink-2);
}
.ap-orbit .node {
  min-width: 112px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ap-orbit .node small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ap-on-ink-2);
}

/* Big quality meter -------------------------------------------------------- */
.ap-qmeter {
  display: grid;
  gap: 26px;
}
.ap-qmeter .row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 18px;
}
.ap-qmeter .lbl {
  font-size: 15px;
  color: var(--ap-body2);
}
.ap-qmeter .bar {
  height: 22px;
  border-radius: 999px;
  background: var(--ap-panel);
  overflow: hidden;
}
.ap-qmeter .bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #a3abb7;
}
.ap-qmeter .row.is-ok .bar i {
  background: linear-gradient(90deg, var(--ap-accent-fg), var(--ap-success));
}
.ap-qmeter .num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ap-heading);
  text-align: right;
}
.ap-fixgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.ap-fixgrid div {
  border-radius: 14px;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  padding: 16px;
}
.ap-fixgrid b {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ap-heading);
}
.ap-fixgrid span {
  font-size: 13px;
  color: var(--ap-muted);
}

/* Alert stack (proactive) -------------------------------------------------- */
.ap-alerts.ap-feed {
  height: 400px;
  padding: 0 4px 6px;
  mask-image: linear-gradient(180deg, transparent 0, #000 70px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px);
}
.ap-alerts .ap-msg {
  max-width: none;
  align-self: stretch;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  color: var(--ap-heading);
  box-shadow: var(--ap-shadow);
  border-radius: 14px;
  display: none;
}
.ap-alerts .ap-msg.is-shown {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.ap-alerts .ap-msg .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ap-accent);
  color: var(--ap-accent-fg);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.ap-alerts .ap-msg.is-attn .ic {
  background: var(--ap-brand-soft);
  color: var(--ap-brand-text);
}
.ap-alerts .ap-msg b {
  display: block;
  font-size: 15px;
}
.ap-alerts .ap-msg span.t {
  display: block;
  font-size: 13.5px;
  color: var(--ap-body2);
  margin-top: 2px;
}
.ap-alerts .ap-msg .go {
  display: inline-block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-accent-fg);
}

/* Horizontal timeline (memory, week, calendar) ----------------------------- */
.ap-htl {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
}
.ap-htl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 34px;
  border-top: 2px solid var(--ap-border);
}
.ap-ink .ap-htl::before {
  border-top-color: rgba(255, 255, 255, 0.14);
}
.ap-htl > div {
  position: relative;
  padding-top: 58px;
}
.ap-htl > div::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ap-bg);
  border: 3px solid var(--ap-accent-fg);
}
.ap-ink .ap-htl > div::before {
  background: var(--ap-ink);
  border-color: #8fc1cc;
}
.ap-htl > div.is-now::before {
  background: var(--ap-accent-fg);
  box-shadow: 0 0 0 6px rgba(19, 77, 93, 0.15);
}
.ap-ink .ap-htl > div.is-now::before {
  background: #8fc1cc;
  box-shadow: 0 0 0 6px rgba(143, 193, 204, 0.18);
}
.ap-htl .when {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-ink .ap-htl .when {
  color: #8fc1cc;
}
.ap-htl .card {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
}
.ap-ink .ap-htl .card {
  background: var(--ap-ink-2);
  border-color: rgba(255, 255, 255, 0.08);
}
.ap-htl h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.ap-ink .ap-htl h4 {
  color: #fff;
}
.ap-htl p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-ink .ap-htl p {
  color: var(--ap-on-ink-2);
}

/* Vertical bars (forecast → agreed → paid) --------------------------------- */
.ap-vbars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  align-items: end;
  height: 360px;
  padding: 0 4px;
  position: relative;
}
.ap-vbars .goal {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--ap-brand);
}
.ap-vbars .goal span {
  position: absolute;
  right: 0;
  top: -26px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-brand-text);
}
.ap-vbars .col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.ap-vbars .val {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ap-heading);
  margin-bottom: 8px;
}
.ap-vbars .stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
}
.ap-vbars .seg {
  display: block;
  background: var(--ap-ink);
}
.ap-vbars .col.c2 .seg {
  background: var(--ap-accent-fg);
}
.ap-vbars .col.c3 .seg {
  background: var(--ap-success);
}
.ap-vbars .col.c3 .seg.pending {
  background: repeating-linear-gradient(45deg, var(--ap-success-soft), var(--ap-success-soft) 8px, #fff 8px, #fff 16px);
  border: 1.5px dashed var(--ap-success);
  border-bottom: 0;
}
.ap-vbars .lab {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-heading);
}
.ap-vbars .lab small {
  display: block;
  font-weight: 400;
  color: var(--ap-muted);
  font-size: 13px;
}

/* Countdown ring ----------------------------------------------------------- */
.ap-clock {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.ap-clock svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ap-clock .track {
  stroke: rgba(255, 255, 255, 0.1);
}
.ap-clock .used {
  stroke: #8fc1cc;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.ap-clock .notice {
  stroke: var(--ap-brand);
  stroke-linecap: round;
}
.ap-clock .mid {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
}
.ap-clock .mid b {
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.ap-clock .mid span {
  font-size: 14px;
  color: var(--ap-on-ink-2);
  margin-top: 6px;
}
.ap-clock.is-light .track {
  stroke: var(--ap-panel);
}
.ap-clock.is-light .used {
  stroke: var(--ap-accent-fg);
}
.ap-clock.is-light .mid {
  color: var(--ap-heading);
}
.ap-clock.is-light .mid span {
  color: var(--ap-muted);
}

/* Interactive approve ------------------------------------------------------ */
.ap-approve .after {
  display: none;
}
.ap-approve.is-approved .before {
  display: none;
}
.ap-approve.is-approved .after {
  display: block;
  animation: ap-fadeup 0.35s var(--ease);
}
.ap-approve button.ap-fakebtn {
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ap-approve button.ap-fakebtn:focus-visible {
  outline: 2px solid var(--ap-accent-fg);
  outline-offset: 2px;
}

/* Savings meter: segments toward a goal line ------------------------------- */
.ap-smeter {
  position: relative;
  padding-top: 46px;
}
.ap-smeter .track {
  display: flex;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.ap-smeter .track i {
  display: block;
  height: 100%;
  position: relative;
}
.ap-smeter .track i + i {
  box-shadow: inset 2px 0 0 var(--ap-ink);
}
.ap-smeter .s-auto {
  background: #8fc1cc;
}
.ap-smeter .s-src {
  background: #5f9fae;
}
.ap-smeter .s-assist {
  background: #e9eff1;
}
.ap-smeter .s-left {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 6px, transparent 6px, transparent 12px);
}
.ap-smeter .goalmark {
  position: absolute;
  top: 30px;
  bottom: -14px;
  border-left: 2px dashed var(--ap-brand);
}
.ap-smeter .goalmark span {
  position: absolute;
  top: -4px;
  left: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #f2b3a2;
}
.ap-smeter .scale {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ap-on-ink-2);
}
.ap-slegend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.ap-slegend div {
  border-top: 3px solid;
  padding-top: 12px;
}
.ap-slegend b {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
}
.ap-slegend span {
  font-size: 13.5px;
  color: var(--ap-on-ink-2);
}

/* Long-tail chart ----------------------------------------------------------- */
.ap-tail {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 300px;
}
.ap-tail i {
  flex: 1 1 0;
  min-width: 1px;
  border-radius: 2px 2px 0 0;
  background: #8fc1cc;
  transition: height 1s var(--ease);
}
.ap-tail i.is-head {
  background: #fff;
}
.ap-tail i.is-left {
  background: rgba(255, 255, 255, 0.16);
}
.ap-tailaxis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ap-on-ink-2);
}
.ap-hstack {
  display: flex;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
}
.ap-hstack i {
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}

/* Payment-terms calculator -------------------------------------------------- */
.ap-calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.ap-calc label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-on-ink-2);
  margin-bottom: 10px;
}
.ap-calc label output {
  float: right;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}
.ap-calc .field2 {
  margin-bottom: 28px;
}
.ap-calc input[type="range"] {
  width: 100%;
  accent-color: #8fc1cc;
  height: 28px;
}
.ap-calc .result {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
}
.ap-calc .result b {
  display: block;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ap-calc .result span {
  display: block;
  margin-top: 12px;
  color: var(--ap-on-ink-2);
  font-size: 15px;
}
.ap-calc .formula {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ap-on-ink-2);
  font-family: var(--font-mono);
}

/* Dumbbell chart (rate cards) ------------------------------------------------ */
.ap-dumb {
  display: grid;
  gap: 4px;
}
.ap-dumb .row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-dumb .name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ap-heading);
}
.ap-dumb .lane {
  position: relative;
  height: 28px;
}
.ap-dumb .lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 13px;
  border-top: 1px dashed var(--ap-input);
}
.ap-dumb .seg {
  position: absolute;
  top: 11px;
  height: 6px;
  border-radius: 3px;
  background: var(--ap-brand-soft);
}
.ap-dumb .row.is-ok .seg {
  background: var(--ap-accent);
}
.ap-dumb .pt {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--ap-input);
}
.ap-dumb .pt.paid {
  background: var(--ap-muted);
}
.ap-dumb .pt.mkt {
  background: var(--ap-accent-fg);
}
.ap-dumb .pt.prop {
  background: var(--ap-brand);
}
.ap-dumb .row.is-ok .pt.prop {
  background: var(--ap-heading);
}
.ap-dumb .verdict {
  text-align: right;
}
.ap-dumblegend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ap-body2);
}
.ap-dumblegend span::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -1px;
}
.ap-dumblegend .l-paid::before {
  background: var(--ap-muted);
}
.ap-dumblegend .l-mkt::before {
  background: var(--ap-accent-fg);
}
.ap-dumblegend .l-prop::before {
  background: var(--ap-brand);
}

/* Calendar grid (renewals) -------------------------------------------------- */
.ap-cal {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 6px;
}
.ap-cal .wk {
  display: flex;
  flex-direction: column-reverse;
  gap: 5px;
  min-height: 150px;
}
.ap-cal .wk i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: #8fc1cc;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.ap-cal.is-in .wk i {
  opacity: 1;
  transform: none;
}
.ap-cal .wk i.is-person {
  background: #fff;
}
.ap-cal .wk i.is-left {
  background: rgba(255, 255, 255, 0.18);
}
.ap-cal .wk span {
  font-size: 11px;
  color: var(--ap-on-ink-2);
  text-align: center;
  margin-top: 4px;
}

/* Week strip (strategic) ---------------------------------------------------- */
.ap-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.ap-week > div {
  border-radius: 18px;
  padding: 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
}
.ap-week .d {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-week .n {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ap-heading);
  margin: 4px 0 14px;
}
.ap-week h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
}
.ap-week p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ap-body2);
}
.ap-week .tag {
  margin-top: auto;
  padding-top: 14px;
}
.ap-week > div.is-day {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
}
.ap-week > div.is-day .d {
  color: #8fc1cc;
}
.ap-week > div.is-day .n,
.ap-week > div.is-day h4 {
  color: #fff;
}
.ap-week > div.is-day p {
  color: var(--ap-on-ink-2);
}

/* Responsive: v2.2 ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .ap-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ap-calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-fixgrid,
  .ap-slegend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ap-htl {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-htl::before {
    display: none;
  }
  .ap-htl > div {
    padding-top: 26px;
    padding-left: 0;
  }
  .ap-htl > div::before {
    display: none;
  }
  .ap-dumb .row {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .ap-dumb .lane {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
@media (max-width: 720px) {
  .ap-week {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-week > div {
    min-height: 0;
  }
  .ap-qmeter .row {
    grid-template-columns: minmax(0, 1fr) 70px;
  }
  .ap-qmeter .bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .ap-cal {
    gap: 3px;
  }
  .ap-cal .wk span {
    font-size: 9px;
  }
  .ap-orbit .node {
    min-width: 0;
    padding: 7px 9px;
    font-size: 12px;
  }
  .ap-orbit .node small {
    display: none;
  }
  .ap-tail {
    height: 200px;
  }
  .ap-vbars {
    height: 280px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-grow [data-w],
  .ap-grow [data-h],
  .ap-tail i,
  .ap-clock .used,
  .ap-cal .wk i {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-orbit .pulse {
    display: none;
  }
}

.ap-vbars {
  height: auto;
}
.ap-vbars .col {
  height: auto;
}
.ap-vbars .plot {
  position: relative;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ap-vbars .plot .goal {
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 73.0%;
  z-index: 1;
  border-top: 2px dashed var(--ap-brand);
}
.ap-vbars .plot .goal span {
  right: 8px;
  top: -24px;
  font-style: normal;
}
.ap-vbars .stack {
  position: relative;
}
@media (max-width: 720px) {
  .ap-vbars .plot {
    height: 190px;
  }
}
.ap-ink .ap-bento > :not(.is-ink) h3,
.ap-ink .ap-bento > :not(.is-ink) h4 {
  color: var(--ap-heading);
}
.ap-ink .ap-bento > :not(.is-ink) p {
  color: var(--ap-body2);
}
.ap-ink .ap-bento > :not(.is-ink) .ap-signal p {
  color: var(--ap-body2);
}

/* Spot-buy gates, the Net shift, the rate-card blanket ------------------- */
.ap-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ap-border);
}
.ap-gates > div {
  padding: 30px 28px 10px 0;
}
.ap-gates > div + div {
  padding-left: 28px;
  border-left: 1px solid var(--ap-border);
}
.ap-gates .gn {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--ap-ink);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.ap-gates h3 {
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.ap-gates p {
  margin: 0;
  color: var(--ap-body2);
  line-height: 1.6;
}
.ap-netshift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.ap-netshift .from,
.ap-netshift .to {
  border-radius: 22px;
  padding: 28px 22px;
  text-align: center;
}
.ap-netshift .from {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
}
.ap-netshift .to {
  background: var(--ap-ink);
  color: #fff;
}
.ap-netshift span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-netshift .to span {
  color: #8fc1cc;
}
.ap-netshift b {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.ap-netshift .arrow {
  position: relative;
  width: 90px;
  height: 2px;
  background: var(--ap-heading);
}
.ap-netshift .arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -6px;
  border: 7px solid transparent;
  border-left: 10px solid var(--ap-heading);
  border-right: 0;
}
.ap-netshift .arrow span {
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  text-align: center;
  color: var(--ap-accent-fg);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
}
.ap-blanket {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: clamp(40px, 6vw, 64px);
}
.ap-blanket > div:not(.arr) {
  min-width: 190px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.ap-blanket b {
  display: block;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #fff;
}
.ap-blanket span {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ap-on-ink-2);
}
.ap-blanket > div:first-child b {
  text-decoration: line-through;
  text-decoration-color: rgba(242, 179, 162, 0.8);
  text-decoration-thickness: 3px;
}
.ap-blanket .arr {
  font-size: 1.6rem;
  color: #8fc1cc;
}
@media (max-width: 900px) {
  .ap-gates {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-gates > div + div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--ap-border);
  }
  .ap-dumb + .ap-tailaxis {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ap-sixfacts[style] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media (max-width: 560px) {
  .ap-netshift {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-netshift .arrow {
    justify-self: center;
    width: 2px;
    height: 54px;
  }
  .ap-netshift .arrow::after {
    right: -6px;
    top: auto;
    bottom: -4px;
    border: 7px solid transparent;
    border-top: 10px solid var(--ap-heading);
    border-bottom: 0;
  }
  .ap-netshift .arrow span {
    top: 16px;
    left: 14px;
    right: auto;
    white-space: nowrap;
  }
  .ap-blanket .arr {
    display: none;
  }
}
.ap-cal .wk {
  align-items: center;
  min-height: 0;
}
.ap-cal .wk i {
  width: clamp(14px, 2.4vw, 26px);
  border-radius: 6px;
}
.ap-cal > span {
  text-align: center;
  font-size: 12px;
  color: var(--ap-on-ink-2);
}

/* ==========================================================================
   v2.3: results, security, about, compare, vs pages, buyer's guide
   ========================================================================== */

/* Coverage matrix: who covers which part of goal → outcome ---------------- */
.ap-cov {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.ap-cov th,
.ap-cov td {
  padding: 13px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ap-cov thead th {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-on-ink-2);
  vertical-align: bottom;
  line-height: 1.3;
}
.ap-cov tbody th {
  text-align: left;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.ap-cov tbody th small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ap-on-ink-2);
}
.ap-cov tr.is-us th,
.ap-cov tr.is-us td {
  background: rgba(143, 193, 204, 0.1);
}
.ap-cov tr.is-us th {
  border-radius: 12px 0 0 12px;
}
.ap-cov tr.is-us td:last-child {
  border-radius: 0 12px 12px 0;
}
.ap-cov .d,
.ap-covlegend .d {
  display: inline-block;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.ap-cov .d.f,
.ap-covlegend .d.f {
  background: #8fc1cc;
  border-color: #8fc1cc;
}
.ap-cov .d.p,
.ap-covlegend .d.p {
  border-color: #8fc1cc;
  background: linear-gradient(90deg, #8fc1cc 50%, transparent 50%);
}
.ap-covlegend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ap-on-ink-2);
}
.ap-covlegend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ap-covwrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ap-covwrap .ap-cov {
  min-width: 760px;
}

/* Light comparison table ------------------------------------------------------ */
.ap-ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.ap-ctable th,
.ap-ctable td {
  text-align: left;
  vertical-align: top;
  padding: 16px 14px;
  border-bottom: 1px solid var(--ap-border);
  line-height: 1.5;
}
.ap-ctable thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-ctable tbody th {
  font-weight: 600;
  color: var(--ap-heading);
  width: 18%;
}
.ap-ctable td {
  color: var(--ap-body2);
}
.ap-ctable .us {
  background: var(--ap-accent);
  color: var(--ap-heading);
}
.ap-ctable thead .us {
  color: var(--ap-accent-fg);
  border-radius: 12px 12px 0 0;
}

/* Vendor panels (inside a switcher) ------------------------------------------ */
.ap-vendor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.ap-vendor > div {
  border-radius: 18px;
  padding: 22px;
}
.ap-vendor .them {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
}
.ap-vendor .us {
  background: var(--ap-ink);
  color: var(--ap-on-ink);
}
.ap-vendor h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.ap-vendor .us h3 {
  color: #fff;
}
.ap-vendor ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}
.ap-vendor .them ul {
  color: var(--ap-body2);
}
.ap-vendor .us ul {
  color: var(--ap-on-ink-2);
}
.ap-vendor li + li {
  margin-top: 8px;
}
.ap-vendor .pick {
  grid-column: 1 / -1;
  background: var(--ap-goal);
  border: 1px solid var(--ap-goal-border);
  color: var(--ap-heading);
  font-size: 15px;
  line-height: 1.6;
}
.ap-vendor .lede2 {
  grid-column: 1 / -1;
  padding: 0 4px;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ap-body2);
}

/* Twelve boxes, horizontal bars, waves --------------------------------------- */
.ap-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 420px;
}
.ap-boxes i {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--ap-accent-fg);
}
.ap-boxes i.is-out {
  background: transparent;
  border: 2px dashed var(--ap-input);
}
.ap-hbars {
  display: grid;
  gap: 12px;
}
.ap-hbars .r {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  color: var(--ap-body2);
}
.ap-hbars .b {
  height: 16px;
  border-radius: 999px;
  background: var(--ap-panel);
  overflow: hidden;
}
.ap-hbars .b i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #a3abb7;
}
.ap-hbars .r.is-top {
  color: var(--ap-heading);
  font-weight: 600;
}
.ap-hbars .r.is-top .b i {
  background: var(--ap-accent-fg);
}
.ap-hbars .v {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ap-waves {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  height: 320px;
}
.ap-waves .w {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.ap-waves .w .bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 12px 12px 4px 4px;
  overflow: hidden;
}
.ap-waves .w .bar span {
  display: block;
}
.ap-waves .c1 {
  background: #e9eff1;
}
.ap-waves .c2 {
  background: #5f9fae;
}
.ap-waves .c3 {
  background: #8fc1cc;
}
.ap-waves b {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 8px;
}
.ap-waves small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ap-on-ink-2);
}

/* Monogram ------------------------------------------------------------------- */
.ap-mono {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ap-ink);
  color: #8fc1cc;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.ap-person {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-person h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}
.ap-person .role {
  display: block;
  margin: 4px 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-accent-fg);
}
.ap-person p {
  margin: 0 0 10px;
  color: var(--ap-body2);
  line-height: 1.65;
  max-width: 68ch;
}

/* Numbered beliefs ------------------------------------------------------------ */
.ap-beliefs {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: bel;
}
.ap-beliefs li {
  counter-increment: bel;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ap-border);
}
.ap-beliefs li::before {
  content: "0" counter(bel);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--ap-accent-fg);
}
.ap-beliefs b {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ap-heading);
}
.ap-beliefs span {
  color: var(--ap-body2);
  line-height: 1.6;
}

/* Platform cards (buyer's guide) --------------------------------------------- */
.ap-plats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ap-plat {
  background: var(--ap-card);
  border: 1px solid var(--ap-border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.ap-plat.is-us {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: var(--ap-on-ink);
}
.ap-plat .shape {
  align-self: flex-start;
  margin-bottom: 12px;
}
.ap-plat h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.ap-plat.is-us h3 {
  color: #fff;
}
.ap-plat > p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ap-body2);
}
.ap-plat.is-us > p {
  color: var(--ap-on-ink-2);
}
.ap-plat dl {
  margin: auto 0 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.ap-plat dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-top: 12px;
}
.ap-plat.is-us dt {
  color: #8fc1cc;
}
.ap-plat dd {
  margin: 4px 0 0;
  color: var(--ap-body2);
}
.ap-plat.is-us dd {
  color: var(--ap-on-ink-2);
}

/* Big "pick someone else" list ----------------------------------------------- */
.ap-elselist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-elselist li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.ap-elselist span {
  color: var(--ap-on-ink-2);
  font-size: 17px;
  line-height: 1.5;
}
.ap-elselist b {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (max-width: 1000px) {
  .ap-plats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 820px) {
  .ap-vendor,
  .ap-plats {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-beliefs li {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .ap-beliefs li span {
    grid-column: 2;
  }
  .ap-beliefs li::before {
    font-size: 1.8rem;
  }
  .ap-elselist li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ap-hbars .r {
    grid-template-columns: 110px minmax(0, 1fr) 54px;
    gap: 10px;
  }
  .ap-waves {
    height: 260px;
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .ap-person {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}
.ap-darkhero .ap-bignums b {
  color: #fff;
}
.ap-darkhero .ap-bignums span {
  color: var(--ap-on-ink-2);
}

.ap-split .ap-glass .ap-covwrap .ap-cov {
  min-width: 520px;
}
.ap-split .ap-glass .ap-cov thead th {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  padding: 10px 6px;
}

/* Legacy heroes on resource pages, brought onto the v2 dark hero ---------- */
.rb-pagehero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ap-ink) !important;
  color: var(--ap-on-ink);
}
.rb-pagehero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(closest-side at 75% 30%, rgba(143, 193, 204, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    100% 100%,
    64px 64px,
    64px 64px;
}
.rb-pagehero h1,
.page-hero h1 {
  color: #fff !important;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.042em;
}
.rb-pagehero .lede,
.rb-pagehero p,
.page-hero .lede,
.page-hero p {
  color: var(--ap-on-ink-2) !important;
}
.rb-pagehero .eyebrow,
.page-hero .eyebrow,
.rb-pagehero .rb-crumb,
.page-hero .crumb {
  color: #8fc1cc !important;
}
.rb-pagehero a:not(.btn),
.page-hero a:not(.btn) {
  color: #fff;
}
.article-hero {
  background: linear-gradient(180deg, var(--ap-bg) 0%, var(--ap-goal) 100%) !important;
}
.article-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
}
.page-hero .italic-serif,
.rb-pagehero .italic-serif {
  color: #8fc1cc !important;
}
.ap-faq .ap-faqgroup {
  margin: 36px 0 4px;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-accent-fg);
}
.ap-faq .ap-faqgroup:first-child {
  margin-top: 18px;
}

/* Big figures never wrap mid-figure ("11 of 12" broke onto two lines). */
.ap-bignums b,
.ap-case-figs b,
.ap-proofstrip b,
.ap-slegend b,
.ap-story .ap-story-v {
  white-space: nowrap;
}
.ap-bignums b {
  font-size: clamp(2.6rem, 5.6vw, 5.4rem);
}
