:root {
  --blue: #185fa5;
  --blue-light: #eaf3fc;
  --blue-dark: #0c447c;
  --text: #1a1a1a;
  --muted: #4a4946;
  --faint: #5c6670;
  --line: rgba(0, 0, 0, 0.12);
  --bg: #ffffff;
  --section: #f7f7f6;
  --success: #3b6d11;
  --success-bg: #edf5e3;
  --warning: #854f0b;
  --warning-bg: #fbf1e2;
  --danger: #a32d2d;
  --danger-bg: #fdf0f0;
  --radius-sm: 8px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(24, 95, 165, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  transform: translateY(-150%);
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
}

.skip-link:focus {
  transform: translateY(0);
}

p,
.lead,
.prose p,
.prose ul {
  font-size: 15px;
}

.menu a:not(.btn):hover {
  color: var(--blue);
}

.logo-mark {
  width: 28px;
  height: 28px;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-icon::before {
  top: -6px;
}

.menu-toggle-icon::after {
  top: 6px;
}

.menu a[aria-current="page"] {
  color: var(--blue);
  font-weight: 600;
}

.topic-link:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.breadcrumb a {
  color: var(--blue);
}

.landing-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

.landing-hero .lead {
  max-width: 720px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.75;
}

.cta-block .inline-link {
  color: #fff;
}

.cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.content-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.content-section.alt {
  background: var(--section);
}

.content-intro h2 {
  margin-bottom: var(--heading-gap);
  font-size: var(--h2-size);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.feature-card,
.fact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
}

.feature-card h3,
.fact-card h3 {
  margin: 0 0 var(--heading-gap);
  color: var(--text);
  font-size: var(--h3-size);
  font-weight: 600;
}

.feature-card p,
.fact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.comparison-table td {
  color: var(--muted);
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(90deg);
}

.faq-a[hidden] {
  display: none;
}

.faq-a:not([hidden]) {
  display: block;
}

.logo img,
img.logo-mark {
  flex: 0 0 auto;
}

.f-links a,
.f-copy {
  color: var(--faint);
  font-size: 12px;
}

.f-links a:hover {
  color: var(--blue);
}

@media (max-width: 900px) {
  .feature-card-grid,
  .facts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  header nav {
    min-height: 56px;
    height: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  header .menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: #fff;
    padding: 12px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
  }

  header .menu.is-open {
    display: flex;
  }

  header .menu a,
  header .menu a:not(.primary) {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    border-radius: 6px;
    padding: 12px 12px;
  }

  header .menu .primary {
    justify-content: center;
  }

  header .menu a:not(.btn)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 48px 0 40px;
  }

  .cta-block {
    padding: 36px 24px;
  }

  .content-section {
    padding: 48px 0;
  }

  .f-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ManagedMargin B2B public-site system — 2026-08-23 */
:root {
  --blue-hover: #14528f;
  --blue-ink: #0a365f;
  --blue-soft: #f4f8fc;
  --text: #17212b;
  --muted: #4d5965;
  --faint: #5c6670;
  --line: rgba(23, 33, 43, 0.13);
  --line-strong: rgba(23, 33, 43, 0.2);
  --section: #f6f8fa;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 2px 6px rgba(17, 24, 39, 0.05), 0 20px 50px rgba(17, 24, 39, 0.09);
  /* 8-point spacing scale — every padding, margin, and gap resolves to one of these */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 40px;
  --sp-8: 48px;
  --sp-9: 56px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  /* Section rhythm — one source of truth for vertical pace */
  --section-y: 80px;
  --hero-y-top: 88px;
  --hero-y-bottom: 72px;
  --split-gap: 48px;
  --heading-gap: 16px;
  --frame-caption-gap: 12px;
  --caption-cards-gap: 32px;
  --container-max: 1160px;
  --container-gutter: 40px;
  /* Type scale — section headings resolve to one of these */
  --h1-size: clamp(26px, 5vw, 34px);
  --h2-size: clamp(20px, 3.2vw, 26px);
  --h2-size-sm: 21px;
  --h3-size: 17px;

  /* Buttons — one size for every action, on any background */
  --btn-min-height: 44px;
  --btn-padding-y: 12px;
  --btn-padding-x: 24px;
  --btn-font-size: 14px;
  --btn-transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

h2 {
  margin-bottom: var(--heading-gap);
  font-size: var(--h2-size);
  font-weight: 550;
  letter-spacing: -0.018em;
  line-height: 1.22;
}

h3 {
  font-size: var(--h3-size);
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.4;
}

section {
  padding: var(--section-y) 0;
}

/* Keep linked sections below the sticky navigation. */
main section[id] {
  scroll-margin-top: 80px;
}

.container {
  width: min(var(--container-max), calc(100% - var(--container-gutter)));
  margin-inline: auto;
}

.lead,
.prose p,
.prose ul {
  font-size: 16px;
}

.lead {
  line-height: 1.78;
}

strong {
  font-weight: 600;
}

.text-danger {
  color: var(--danger);
}
.text-success {
  color: var(--success);
}

.inline-link,
.prose a,
.legal-section a,
.form-hint a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

header nav {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.menu a:not(.btn) {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.menu a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: var(--blue);
  content: "";
  transition: transform 160ms ease;
}

.menu a:not(.btn):hover::after,
.menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.btn,
.cta-primary,
.cta-secondary {
  display: inline-flex;
  min-height: var(--btn-min-height);
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 600;
  cursor: pointer;
  transition: var(--btn-transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(12, 68, 124, 0.2);
}

.primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 16px rgba(12, 68, 124, 0.18);
  transform: translateY(-1px);
}

.secondary {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--text);
}

.secondary:hover {
  background: var(--blue-soft);
  border-color: rgba(24, 95, 165, 0.38);
}

.tag {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--blue);
  padding: var(--sp-1) var(--sp-3);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(24, 95, 165, 0.14);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: var(--sp-6);
}

/* the hero owns its vertical rhythm; the wrapper only supplies the landmark */
.home-hero {
  overflow: clip;
  padding: 0;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: var(--sp-9);
  align-items: center;
  padding: var(--hero-y-top) 0 var(--hero-y-bottom);
}

.hero > * {
  min-width: 0;
}

/* Alternate the desktop hero with the workflow presentation below it.
   Keep the source order text-first for narrow screens and screen readers. */
@media (min-width: 981px) {
  .home-hero > .container {
    width: min(1280px, calc(100% - var(--container-gutter)));
  }

  .home-hero .hero {
    grid-template-columns: minmax(440px, 1.1fr) minmax(0, 1fr);
  }

  .home-hero h1 {
    font-size: clamp(34px, 2.8vw, 42px);
    letter-spacing: -0.025em;
  }

  .home-hero .hero-product-visual {
    grid-column: 1;
    grid-row: 1;
  }

  .home-hero .hero-copy {
    grid-column: 2;
    grid-row: 1;
  }

  .home-hero .hero::before {
    top: -48px;
    right: auto;
    left: -320px;
    width: 820px;
    height: 700px;
  }
}

/* A soft layer connects the preview to the canvas without covering its data. */
.home-hero .hero-product-visual::before {
  top: -12px;
  right: -12px;
  bottom: 28px;
  left: -12px;
  border-radius: 42% 58% 46% 54% / 54% 42% 58% 46%;
  background: linear-gradient(135deg, rgba(24, 95, 165, 0.12), rgba(24, 95, 165, 0.03));
  transform: rotate(-3deg);
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -90px;
  right: -260px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 95, 165, 0.095), rgba(24, 95, 165, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero h1 {
  max-width: 670px;
}

.hero .lead {
  max-width: 660px;
  margin-top: 24px;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.topic-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  gap: 8px;
}

.topic-link::after {
  content: "→";
}

.badge,
.free-pill,
.role-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
}

.badge {
  padding: 4px 8px;
  font-size: 12px;
}
.br {
  background: var(--danger-bg);
  color: var(--danger);
}
.bi {
  background: var(--blue-light);
  color: var(--blue);
}

.free-pill {
  margin-right: 8px;
  background: var(--success-bg);
  color: var(--success);
  padding: 4px 8px;
  font-size: 12px;
}

.free-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12px;
}

.app-mock {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.dot-r {
  background: #d35c55;
}
.dot-y {
  background: #d8a33f;
}
.dot-g {
  background: #5a9d63;
}

.app-mock,
.product-shot {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 38px;
  border-bottom: 1px solid var(--line);
  background: #f3f5f7;
}

.mock-bar::after {
  margin-left: 8px;
  color: var(--faint);
  content: "Product preview";
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-icon,
.number-icon,
.takeaway-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  font-weight: 700;
}

.number-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(24, 95, 165, 0.2);
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.value-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--section);
  padding: 0;
}

.value-strip-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}

.value-strip-item {
  min-height: 96px;
  border-right: 1px solid var(--line);
  padding: 24px 24px;
}

.value-strip-item:first-child {
  padding-left: 0;
}
.value-strip-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.value-strip-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.value-strip-item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.value-strip-item p {
  font-size: 12px;
  line-height: 1.55;
}

.surface-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--section);
}

.spreadsheet-section {
  border-top: 1px solid var(--line);
  padding-top: var(--sp-8);
}

.section-intro {
  max-width: 670px;
}

.section-intro + .feature-card-grid,
.section-intro + .facts-grid {
  margin-top: var(--sp-6);
}

/* Illustrated chapter books: equal frames, mirrored pages. */
.story-section-workflow {
  background: var(--section);
  border-block: 1px solid var(--line);
}

.story-section-benefits {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.story-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--split-gap);
  margin-bottom: var(--sp-6);
}

.story-section-heading h2 {
  margin: 0;
}

.story-section-heading > p {
  max-width: 34ch;
  font-size: 15px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.story-book {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 0 -3px #fff, 0 8px 0 -2px #d9e1e9, 0 16px 0 -6px #fff, 0 16px 0 -5px #e0e6ed, var(--shadow-md);
}

.story-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: #fff;
}

.story-toolbar[hidden], .story-image-open[hidden] {
  display: none;
}

.story-tabs {
  display: flex;
  flex: 1;
  gap: 4px;
}

.story-tab, .story-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.story-tab {
  flex: 1;
}

.story-tab[aria-selected="true"], .story-tab:hover, .story-dialog-close:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}

.story-tab[aria-selected="true"] {
  font-weight: 700;
}

.story-pages {
  overflow: hidden;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  touch-action: pan-y pinch-zoom;
}

.story-page {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  min-height: 460px;
  background: #fff;
}

.story-page + .story-page {
  border-top: 1px solid var(--line);
}

.story-book.is-ready .story-pages {
  display: grid;
}

.story-book.is-ready .story-page {
  grid-area: 1 / 1;
  visibility: hidden;
  pointer-events: none;
  border-top: 0;
}

.story-book.is-ready .story-page.is-active, .story-book.is-ready .story-page.is-leaving {
  visibility: visible;
}

.story-book.is-ready .story-page.is-active {
  pointer-events: auto;
  z-index: 1;
}

.story-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  padding: 40px;
}

.story-chapter {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .025em;
}

.story-chapter > span {
  margin-inline: 8px;
  color: #8995a2;
}

.story-copy h3 {
  font-size: clamp(26px,2.6vw,34px);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.17;
  margin-bottom: 20px;
}

.story-copy > p {
  max-width: 43ch;
  font-size: 16px;
  line-height: 1.75;
}

.story-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin-top: 24px;
  font-size: 15px;
}

.story-media {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.story-media::before {
  position: absolute;
  z-index: -1;
  inset: 20px 12px 20px -12px;
  border-radius: 46% 20% 28% 18% / 32% 26% 38% 22%;
  background: linear-gradient(135deg,#f4f8fc,#e3effb);
  content: "";
}

.story-media figcaption {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.story-shot {
  overflow: hidden;
  margin-left: -12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

.story-page:nth-child(2) .story-shot {
  transform: rotate(1deg);
}

.story-shot > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
}

.story-image-open {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: end;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  cursor: zoom-in;
}

.story-image-open:hover {
  background: var(--blue-soft);
}

.story-book-reverse .story-page {
  grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
}

.story-book-reverse .story-copy {
  order: 2;
}

.story-book-reverse .story-media {
  order: 1;
}

.story-book-reverse .story-media::before {
  inset: 20px -12px 20px 12px;
  border-radius: 18% 42% 26% 34% / 24% 28% 24% 32%;
  background: linear-gradient(225deg,#f4f8fc,#e3effb);
}

.story-visual-label {
  display: block;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.story-pricing-visual, .story-access-visual, .story-variance-visual {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}

.story-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateX(-12px) rotate(-1deg);
  color: var(--muted);
  font-size: 14px;
}

.story-price strong {
  color: var(--text);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.story-price-rule {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-block: 16px;
  padding-block: 16px;
  border-block: 1px solid rgba(24,95,165,.2);
  color: var(--muted);
  font-size: 14px;
}

.story-margin > span {
  display: block;
  color: var(--blue-dark);
  font-size: 14px;
}

.story-margin {
  padding-left: 28px;
}

.story-margin strong {
  color: var(--blue-dark);
  font-size: clamp(52px,5vw,72px);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: 1.2;
}

.story-margin strong span {
  font-size: .55em;
  margin-left: 4px;
}

.story-access-visual > svg {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
}

.story-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-bottom: 1px solid rgba(24,95,165,.2);
  font-size: 14px;
}

.story-access-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  white-space: nowrap;
}

.story-access-row strong.story-private {
  color: var(--muted);
}

.story-bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.story-bar-label strong {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.story-bar {
  height: 12px;
  border-radius: 3px;
  background: #dce5ed;
  overflow: hidden;
}

.story-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.story-bar-planned {
  width: 91.225%;
  background: var(--blue);
}

.story-bar-actual {
  width: 61.075%;
  background: var(--danger);
}

.story-hours {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(24,95,165,.2);
}

.story-hours strong {
  font-size: 40px;
  font-weight: 500;
  color: var(--danger);
  letter-spacing: -.04em;
}

.story-hours span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.story-image-dialog {
  width: min(1200px,calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.story-image-dialog::backdrop {
  background: rgba(10,25,40,.65);
}

.story-image-dialog-bar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
}

.story-image-dialog-body {
  overflow: auto;
}

.story-image-dialog-body img {
  display: block;
  width: 100%;
  min-width: 800px;
  height: auto;
}

@media (max-width: 980px) {
  .story-section-heading {
    display: block;
  }
  .story-section-heading > p {
    max-width: 54ch;
    margin-top: 16px;
  }
  .story-copy {
    padding: 28px;
  }
  .story-media {
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .story-toolbar {
    position: sticky;
    top: 60px;
    z-index: 3;
    padding: 12px 16px;
  }
  .story-tab {
    padding-inline: 8px;
  }
  .story-page, .story-book-reverse .story-page {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(336px,auto) minmax(390px,auto);
  }
  .story-copy, .story-book-reverse .story-copy {
    order: 0;
    min-height: 336px;
    padding: 24px;
  }
  .story-chapter {
    margin-bottom: 20px;
  }
  .story-copy h3 {
    font-size: 28px;
  }
  .story-copy > p {
    font-size: 15px;
  }
  .story-link {
    margin-top: 16px;
  }
  .story-media, .story-book-reverse .story-media {
    order: 1;
    min-height: 360px;
    padding: 24px;
  }
  .story-media::before, .story-book-reverse .story-media::before {
    inset: 12px 10px;
    border-radius: 48px 24px 48px 24px;
  }
  .story-shot, .story-page:nth-child(2) .story-shot {
    margin-left: 0;
    transform: none;
  }
  .story-price {
    padding-inline: 12px;
    transform: none;
  }
  .story-shot > img {
    max-height: 240px;
  }
  .story-margin strong {
    font-size: 58px;
  }
  .story-price strong {
    font-size: 26px;
  }
  .story-access-row {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .story-page, .story-book-reverse .story-page {
    grid-template-rows: minmax(384px,auto) minmax(410px,auto);
  }
}

@media print {
  .story-toolbar, .story-image-open, .story-image-dialog {
    display: none !important;
  }
  .story-book.is-ready .story-pages {
    display: block;
  }
  .story-book.is-ready .story-page {
    visibility: visible;
    break-inside: avoid;
  }
}

.pain-grid,
.steps,
.roles-grid,
.vs-card,
.w19-col,
.step-grid,
.feature-list,
.comparison-wrap,
.feature-card,
.fact-card,
.card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.step-content h3 {
  margin-bottom: var(--heading-gap);
  font-size: 17px;
}

.pain-cell p,
.step-body p,
.step-content p {
  font-size: 14px;
  line-height: 1.72;
}

.steps,
.step-grid {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  margin-top: 36px;
  border-radius: var(--radius-md);
  background: #fff;
}

.step-row,
.step-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.step-row:last-child,
.step-item:last-child {
  border-bottom: 0;
}

.step-n,
.step-num-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: var(--blue-soft);
}

.step-circle,
.step-num {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.step-tag,
.step-eyebrow {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.step-body,
.step-content {
  padding: 24px 28px;
}

.role-tag.bi {
  background: var(--blue-light);
  color: var(--blue);
}

.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.vs-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
}

.vs-card.featured {
  border-color: rgba(24, 95, 165, 0.38);
}

.vs-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  padding: 16px 20px;
}

.vs-body {
  padding: 0 20px;
}

.vs-head.featured {
  background: var(--blue-light);
}

.vs-head.featured h3 {
  color: var(--blue-dark);
}

.vs-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 0;
  font-size: 13px;
}

.vs-row:last-child {
  border-bottom: 0;
}
.vs-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  font-weight: 600;
}

.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 820px;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  display: flex;
  gap: var(--sp-4);
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.faq-chevron {
  flex: 0 0 auto;
}

.faq-q:hover,
.faq-q[aria-expanded="true"] {
  color: var(--blue);
  background: var(--blue-soft);
}

.faq-a {
  border-top: 1px solid var(--line);
  padding: 16px 20px 20px;
  font-size: 14px;
  line-height: 1.75;
}

.page-hero,
.landing-hero {
  scroll-margin-top: 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  padding: var(--hero-y-top) 0 var(--hero-y-bottom);
}

.page-hero::after,
.landing-hero::after {
  position: absolute;
  right: -120px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 95, 165, 0.1), rgba(24, 95, 165, 0) 70%);
  content: "";
  pointer-events: none;
}

.page-hero .container,
.landing-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.landing-hero h1 {
  max-width: 840px;
  font-size: var(--h1-size);
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.12;
}

.page-hero .lead,
.landing-hero .lead {
  max-width: 780px;
  margin-top: 20px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--faint);
  font-size: 12px;
}

.landing-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 56px;
  align-items: end;
}

.landing-hero-layout.visual-hero {
  /* Was 0.82fr/1.18fr (effectively 41/59), which squeezed the text column
     to ~374px at 1024px viewport and forced 3-line H1 wraps. Matched to the
     home hero's own ~51/49 split for both more room and cross-page
     consistency. */
  grid-template-columns: minmax(380px, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
}

.visual-hero .lead {
  max-width: 590px;
}

.hero-summary {
  border: 1px solid rgba(24, 95, 165, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-summary > span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-summary ol,
.hero-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-summary li {
  position: relative;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 0 12px 24px;
  font-size: 13px;
  line-height: 1.5;
}

.hero-summary li:first-child {
  border-top: 0;
}

.hero-summary li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.content-section,
.prose-section {
  border-bottom: 1px solid var(--line);
  padding: var(--section-y) 0;
}

.content-intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.content-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.feature-card-grid,
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.fact-card,
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
}

.feature-card::before,
.fact-card::before,
.card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(24, 95, 165, 0.22));
  content: "";
}

.feature-card p,
.fact-card p,
.card p {
  font-size: 14px;
}

.feature-card > .inline-link {
  display: inline-flex;
  min-height: var(--btn-min-height);
  align-items: center;
  margin-top: var(--sp-3);
}

.comparison-wrap {
  overflow-x: auto;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.comparison-table th {
  background: #f3f5f7;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
}

.workflow-split {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: var(--split-gap);
  align-items: center;
}

.workflow-split.reverse {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, 0.78fr);
}

.workflow-split.reverse .workflow-copy {
  order: 2;
}

.workflow-split.reverse .workflow-visual {
  order: 1;
}

.workflow-copy {
  max-width: 520px;
}

.workflow-copy .step-kicker {
  display: inline-flex;
  margin-bottom: var(--sp-4);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-copy h2 {
  font-size: var(--h2-size);
}

.workflow-visual {
  position: relative;
  z-index: 0;
  width: 100%;
}

.workflow-visual::before {
  position: absolute;
  z-index: -1;
  top: -12px;
  right: -12px;
  bottom: 12px;
  left: 12px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  content: "";
}

.workflow-visual .app-mock {
  margin: 0;
}

.product-crop {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.product-crop .product-shot {
  display: block;
  /* Captures are now cropped to their own content at source, so the frame shows
     the whole image. The old percentage crop existed to hide ~262px of empty
     canvas the previous screenshots carried; these have 16px of air and nothing
     to trim. */
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-mock .product-crop {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workflow-caption {
  margin-top: var(--frame-caption-gap);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.hero-product-visual {
  align-self: center;
}

/* Leave room for the same 12px frame accent used by the other product images. */
.annotated-product-visual {
  margin-top: var(--sp-6);
}

.annotated-product-visual::before {
  content: none;
}

/* Keep the figures below the frame without reserving empty blue bands. */
.shot-annotated {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
}

.shot-annotated > .app-mock {
  min-width: 0;
  grid-column: 1 / -1;
  box-shadow: 12px -12px 0 var(--blue-light), var(--shadow-md);
}

.shot-annotation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  line-height: 1.2;
}

.shot-annotation-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

.shot-annotation-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.shot-annotation.is-blue .shot-annotation-value { color: var(--blue); }
.shot-annotation.is-danger .shot-annotation-value { color: var(--danger); }

@media (max-width: 760px) {
  .shot-annotated {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shot-annotation-hours {
    grid-column: 1 / -1;
  }

  .shot-annotation {
    padding: var(--sp-3);
  }
}

.compact-points {
  display: grid;
  gap: 8px;
  margin: 20px 0 20px;
  padding: 0;
  list-style: none;
}

.compact-points li {
  position: relative;
  color: var(--muted);
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
}

.compact-points li::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  color: var(--blue);
  content: "✓";
  font-weight: 700;
}

.workflow-split + .workflow-detail {
  margin-top: var(--caption-cards-gap);
}

.workflow-detail .card h3 {
  margin-bottom: var(--heading-gap);
}

.workflow-detail .card p {
  line-height: 1.75;
}

.workflow-cta {
  background: var(--section);
  padding: var(--section-y) 0;
}

.motion-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (content-visibility: auto) {
  main > .content-section,
  main > .prose-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }

  /* Fragment navigation needs actual section heights before the browser
     calculates its destination, including on direct loads and history visits. */
  main:has(:target) > .content-section,
  main:has(:target) > .prose-section {
    content-visibility: visible;
  }
}

/* Printing and PDF export paint the whole document at once, where neither the
   scroll reveal nor skipped rendering can be relied on. Show everything. */
@media print {
  main > .content-section,
  main > .prose-section {
    content-visibility: visible;
}

  .motion-ready .reveal-target {
  opacity: 1;
  transform: none;
  transition: none;
}
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.callout > span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.callout-info {
  border-color: rgba(24, 95, 165, 0.2);
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.callout-info > span {
  background: var(--blue-light);
  color: var(--blue);
}
.callout-tip {
  border-color: rgba(59, 109, 17, 0.2);
  background: var(--success-bg);
  color: var(--success);
}

.feature-list {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: #fff;
}

.feature-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 20px 20px;
}

.feature-row:last-child {
  border-bottom: 0;
}
.feature-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.feature-check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.plan-card {
  overflow: hidden;
  max-width: 480px;
  border: 1px solid rgba(24, 95, 165, 0.3);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.plan-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, var(--blue-soft), #fff);
  padding: 32px 32px 24px;
}

.plan-price {
  margin: 12px 0 4px;
  color: var(--blue);
  font-size: 50px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.plan-note {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.plan-body {
  padding: 20px 32px 28px;
}

.plan-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

.plan-item:last-child {
  border-bottom: 0;
}
.plan-check {
  flex: 0 0 auto;
  color: var(--success);
  font-weight: 700;
}

.plan-cta {
  padding-top: 20px;
}
.plan-cta .btn {
  width: 100%;
}

.centered-prose {
  max-width: 650px;
  margin-inline: auto;
  text-align: center;
}

.centered-actions {
  margin-top: 24px;
}

.prose h2 {
  margin-bottom: 16px;
  font-size: var(--h2-size);
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 17px;
}

.prose p {
  margin-bottom: 16px;
  line-height: 1.82;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 56px;
  align-items: start;
}

.contact-form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-group textarea {
  min-height: 140px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}

.form-hint {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.65;
}

.library-state {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}

.library-intro,
.library-link {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.library-intro {
  background: var(--blue-soft);
}
.library-intro .number-icon {
  margin-bottom: 20px;
}

.library-intro h2 {
  font-size: var(--h2-size-sm);
}
.library-intro p {
  font-size: 14px;
  line-height: 1.75;
}

.library-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.library-link {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.library-link span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.library-link strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 16px;
}

.library-link p {
  font-size: 13px;
  line-height: 1.65;
}

.library-link::after {
  margin-top: 16px;
  color: var(--blue);
  content: "Open product guide →";
  font-size: 12px;
  font-weight: 600;
}

.library-link.article-link::after {
  content: "Read article →";
}

.library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.library-summary-item {
  min-width: 0;
  padding: 20px 20px;
}
.library-summary-item + .library-summary-item {
  border-left: 1px solid var(--line);
}

.library-summary-item strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.library-summary-item span {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.45;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.pillar-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.pillar-card:hover {
  border-color: rgba(24, 95, 165, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-card .tag {
  align-self: flex-start;
}

.pillar-card h3 {
  margin: 28px 0 12px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.pillar-card p {
  font-size: 14px;
  line-height: 1.7;
}

.pillar-card .text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.topic-index {
  display: grid;
  gap: 24px;
  margin-top: 44px;
}

.topic-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.topic-heading {
  position: sticky;
  top: 96px;
}
.topic-heading .eyebrow {
  margin-bottom: 16px;
}

.topic-heading h2 {
  max-width: 320px;
  font-size: var(--h2-size);
}

.topic-heading p {
  max-width: 340px;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.topic-articles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.topic-articles .topic-link {
  display: flex;
  min-height: 164px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.topic-articles .topic-link:hover {
  border-color: rgba(24, 95, 165, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.topic-articles .topic-link span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.topic-articles .topic-link strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.topic-articles .topic-link p {
  font-size: 13px;
  line-height: 1.6;
}

.topic-articles .topic-link::after {
  margin-top: 20px;
  color: var(--blue);
  content: "Read guide →";
  font-size: 12px;
  font-weight: 600;
}

.article-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--blue-soft), #fff 88%);
  padding: 60px 0 52px;
}

.article-hero h1 {
  max-width: 900px;
  margin-top: 20px;
}

.article-deck {
  max-width: 780px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
}

.article-meta strong {
  color: var(--text);
  font-weight: 600;
}

.article-wrap {
  padding: 68px 0 76px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.article-toc {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--section);
  padding: var(--sp-5);
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.article-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.article-toc a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.article-toc a:hover {
  color: var(--blue);
}

.article-content {
  min-width: 0;
  max-width: 760px;
}

.article-content [id] {
  scroll-margin-top: 92px;
}

.article-content h2 {
  scroll-margin-top: 92px;
  margin: 48px 0 16px;
  font-size: var(--h2-size);
  letter-spacing: -0.025em;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  scroll-margin-top: 92px;
  margin: 32px 0 12px;
  font-size: 20px;
}

.article-content p,
.article-content li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding-left: 24px;
}

.article-content a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.answer-block,
.formula-card,
.article-note {
  border: 1px solid rgba(24, 95, 165, 0.18);
  border-radius: var(--radius-md);
  background: var(--blue-soft);
  padding: 24px 24px;
}

.answer-block {
  margin-bottom: 36px;
}

.answer-block strong,
.formula-card strong,
.article-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
}

.answer-block p,
.formula-card p,
.article-note p {
  margin: 0;
  color: var(--text);
}

.formula-card {
  margin: 24px 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.formula {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(17px, 2.3vw, 21px);
  font-weight: 600;
  line-height: 1.55;
}

.article-note {
  margin: 24px 0;
  border-color: var(--line);
  background: var(--section);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.article-table-wrap.is-scrollable,
.comparison-wrap.is-scrollable {
  margin-bottom: var(--sp-2);
}

.table-scroll-hint,
.article-content .table-scroll-hint {
  margin: 0 0 var(--sp-5);
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.app-mock[tabindex]:focus-visible,
.article-table-wrap[tabindex]:focus-visible,
.comparison-wrap[tabindex]:focus-visible {
  outline: 3px solid rgba(24, 95, 165, 0.28);
  outline-offset: 2px;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.article-table th,
.article-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 16px;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.article-table th {
  background: var(--section);
  color: var(--text);
  font-weight: 600;
}
.article-table td {
  color: var(--muted);
}
.article-table tr:last-child td {
  border-bottom: 0;
}

.article-figure {
  margin: 32px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.article-sources {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.article-sources h2 {
  margin-top: 0;
  font-size: var(--h2-size-sm);
}
.article-sources li {
  font-size: 14px;
}

.related-reading {
  border-top: 1px solid var(--line);
  background: var(--section);
  padding: 68px 0;
}

.related-reading h2 {
  margin-bottom: 24px;
  font-size: var(--h2-size-sm);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.related-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 17px;
  line-height: 1.4;
}

.related-card p {
  font-size: 13px;
  line-height: 1.65;
}

.related-card::after {
  margin-top: 20px;
  color: var(--blue);
  content: "Continue reading →";
  font-size: 12px;
  font-weight: 600;
}

.legal-wrap {
  padding: 60px 0;
  background: var(--section);
}

.legal-copy {
  max-width: 820px;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 20px 44px 24px;
  box-shadow: var(--shadow-sm);
}

.legal-copy > .callout {
  margin: 8px 0 20px;
}

.legal-section {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section ul {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.82;
}

.legal-section p {
  margin-bottom: 12px;
}
.legal-section ul {
  margin-bottom: 12px;
  padding-left: 24px;
}

.legal-highlight {
  margin: 16px 0;
  border: 1px solid rgba(163, 45, 45, 0.26);
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.cta-block {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 60px 48px;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-block::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  right: -110px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

/* Keep the heading, copy, and actions on the same center line. */
.cta-block h2,
.cta-block p,
.cta-block .cta-btns {
  max-width: 680px;
  margin-inline: auto;
}

.cta-block h2 {
  margin-block: 0;
  color: #fff;
  font-size: var(--h2-size);
  font-weight: 550;
}

.cta-block p {
  max-width: 580px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.cta-primary {
  background: #fff;
  color: var(--blue);
}

.cta-secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cta-block a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
}

.cta-primary:hover {
  background: #eef4fb;
  box-shadow: 0 6px 16px rgba(6, 40, 76, 0.24);
}

.cta-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.cta-primary:active,
.cta-secondary:active,
.primary:active,
.secondary:active {
  transform: translateY(0);
}

.cta-section {
  padding-top: var(--section-y);
}

footer {
  border-top: 1px solid var(--line);
  background: #f3f5f7;
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  grid-template-columns: auto 1fr auto;
}

.f-links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 980px) {
  :root {
    --section-y: var(--sp-10);
    --hero-y-top: 72px;
    --hero-y-bottom: var(--sp-9);
    --split-gap: var(--sp-7);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }

  .hero > div:last-child { max-width: 740px; }

  .landing-hero-layout,
  .pricing-layout,
  .contact-grid,
  .library-state,
  .topic-section,
  .workflow-split,
  .workflow-split.reverse {
    grid-template-columns: 1fr;
  }

  /* .visual-hero carries its own 2-class grid-template-columns
     (minmax(340px,.82fr) minmax(480px,1.18fr)) which OUT-SPECIFICITIES the
     single-class collapse rule above regardless of source order or media
     query — so pre-sales/delivery hero never actually went single-column
     below 980px, forcing the H1 into a permanent ~340px-wide column and a
     3-line wrap. Match its specificity here to actually win. */
  .landing-hero-layout.visual-hero {
    grid-template-columns: 1fr;
  }

  .workflow-split.reverse .workflow-copy,
  .workflow-split.reverse .workflow-visual {
    order: initial;
  }

  .workflow-copy {
    max-width: 700px;
  }

  .hero-summary { max-width: 680px; }
  .visual-hero .workflow-visual { max-width: 760px; }
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-toc { position: static; }
  .article-content { max-width: none; }
  .topic-heading { position: static; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card-grid,
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-strip-item:nth-child(2) { border-right: 0; }
  .value-strip-item:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .value-strip-item:first-child,
  .value-strip-item:last-child { padding-inline: 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .workflow-split,
  .workflow-visual,
  .shot-annotated,
  .app-mock,
  .hero,
  .hero > * {
    min-width: 0;
    max-width: 100%;
  }

  /* A 1440px product capture scaled into a 375px column is decoration, not evidence.
     Below 760px the whole browser frame holds its full width and scrolls as one
     unit, so the interface stays legible. The crop still trims the blank canvas,
     so the scroll stops exactly at the edge of the interface with no dead space. */
  .app-mock {
    overflow-x: auto;
    overscroll-behavior-x: contain;
  }

  .app-mock .mock-bar,
  .app-mock .product-crop {
    width: 820px;
  }

  .app-mock.is-scrollable + .workflow-caption::after,
  .shot-annotated:has(.app-mock.is-scrollable) + .workflow-caption::after {
    content: ' Scroll the frame sideways to read the full screen.';
  }

  :root {
    --section-y: var(--sp-9);
    --hero-y-top: var(--sp-9);
    --hero-y-bottom: var(--sp-8);
    --split-gap: var(--sp-6);
  }

  .pain-grid,
  .vs-grid,
  .w19-wrap,
  .w19-results,
  .feature-card-grid,
  .facts-grid,
  .two-col,
  .feature-points { grid-template-columns: 1fr; }
  .plan-card { max-width: none; }
  .library-links { grid-template-columns: 1fr; }
  .pillar-grid,
  .topic-articles { grid-template-columns: 1fr; }
  .library-summary { grid-template-columns: 1fr; }
  .library-summary-item + .library-summary-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .article-hero { padding: 48px 0 44px; }
  .article-deck { font-size: 16px; }
  .article-wrap,
  .related-reading { padding: 56px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .legal-wrap { padding: 36px 0; }
  .legal-copy { padding: 12px 24px 20px; }
}

@media (max-width: 640px) {
  /* A 999px pill radius assumes single-line content. Longer tag text
     (e.g. a multi-word phrase) wraps to two lines on a narrow phone, and
     that same radius then reads as an oversized, bulging shape instead
     of a pill -- so narrow screens get a moderate rounded-rect radius
     and a touch less padding/font-size instead. */
  .tag {
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .container { width: min(100% - 30px, 1160px); }

  header nav { min-height: 60px; }

  header .menu a:not(.btn)::after { display: none; }

  :root {
    --section-y: var(--sp-8);
    --hero-y-top: var(--sp-8);
    --hero-y-bottom: var(--sp-7);
  }

  .hero {
    gap: var(--sp-6);
  }

  .btns > .btn {
    width: 100%;
  }

  .hero .lead,
  .page-hero .lead,
  .landing-hero .lead { font-size: 15px; }
  .roles-grid,
  .value-strip-grid { grid-template-columns: 1fr; }

  .value-strip-item {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .value-strip-item:first-child,
  .value-strip-item:last-child { padding-inline: 0; }
  .value-strip-item:last-child { border-bottom: 0; }
  .step-row,
  .step-item { grid-template-columns: 54px 1fr; }
  .step-body,
  .step-content { padding: 20px; }
  .w19-col,
  .contact-form-card,
  .library-intro { padding: 20px; }
  .cta-block { padding: 44px 24px; }
  .cta-primary,
  .cta-secondary { width: 100%; }
}
