/* LedgerBeaver workflow and audience pages. Keep every selector under wf-* or body.wf-page. */

body.wf-page {
  min-width: 320px;
  background:
    linear-gradient(180deg, var(--bg-0) 0, var(--bg-1) 520px),
    var(--bg-1);
  caret-color: var(--amber);
}

body.wf-page ::selection {
  color: var(--text-hi);
  background: var(--select-bg);
}

body.wf-page :focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wf-skip {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 9px 13px;
  border: 1px solid var(--amber);
  border-radius: var(--r-sm);
  color: var(--text-hi);
  background: var(--bg-2);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-150%);
}

.wf-skip:focus {
  transform: translateY(0);
}

.wf-nav {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg-0) 92%, transparent);
  backdrop-filter: blur(16px);
}

.wf-nav-inner,
.wf-shell,
.wf-footer-inner {
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
}

.wf-nav-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wf-brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--amber-deep);
  border-radius: 10px;
  background: var(--amber);
  box-shadow: 0 6px 18px -8px var(--amber-glow);
}

.wf-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wf-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.wf-nav-links a {
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
}

.wf-nav-links a:hover {
  color: var(--text-hi);
}

.wf-nav .btn {
  min-height: 40px;
}

.wf-breadcrumb {
  margin: 0 0 42px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--text-lo);
  font-size: 12px;
}

.wf-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-dim);
}

.wf-breadcrumb a {
  color: var(--text-mid);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.wf-breadcrumb a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.wf-hero {
  padding: 38px 0 104px;
}

.wf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.68fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: end;
}

.wf-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: clamp(46px, 6.8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}

.wf-hero-lede {
  max-width: 66ch;
  margin: 28px 0 0;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.wf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.wf-actions .btn {
  min-height: 46px;
  padding-inline: 18px;
}

.wf-actions .btn-primary {
  color: var(--on-amber);
}

.wf-path {
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.wf-path-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
}

.wf-path-row + .wf-path-row {
  border-top: 1px solid var(--line);
}

.wf-path dt {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wf-path dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.wf-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.wf-section-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 110px);
  align-items: start;
  margin-bottom: 50px;
}

.wf-section h2,
.wf-cta h2 {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.wf-section h2 {
  max-width: 16ch;
  font-size: clamp(32px, 4.5vw, 52px);
}

.wf-section-head p {
  max-width: 68ch;
  margin: 2px 0 0;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.75;
}

.wf-workflow {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf-workflow li {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 110px);
  padding: 38px 0 42px;
  border-top: 1px solid var(--line);
}

.wf-workflow h3 {
  margin: 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.wf-workflow p {
  max-width: 70ch;
  margin: 0;
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.78;
}

.wf-faq-list {
  max-width: 900px;
  margin-left: auto;
}

.wf-faq-list details {
  border-top: 1px solid var(--line);
}

.wf-faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.wf-faq-list summary {
  position: relative;
  padding: 26px 46px 26px 0;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.wf-faq-list summary::-webkit-details-marker {
  display: none;
}

.wf-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
}

.wf-faq-list details[open] summary::after {
  content: "−";
}

.wf-faq-list summary:hover {
  color: var(--amber-hot);
}

.wf-faq-list p {
  max-width: 68ch;
  margin: -4px 0 26px;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.75;
}

.wf-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wf-related a {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  color: var(--text-hi);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.wf-related a + a {
  border-left: 1px solid var(--line);
}

.wf-related a:hover {
  background: var(--bg-2);
  color: var(--amber-hot);
}

.wf-related span {
  color: var(--amber);
  font-family: var(--font-sans);
  font-size: 17px;
}

.wf-cta {
  margin: 8px 0 96px;
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-card);
}

.wf-cta h2 {
  max-width: 17ch;
  font-size: clamp(28px, 4vw, 44px);
}

.wf-cta p {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
}

.wf-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-0);
}

.wf-footer-inner {
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-lo);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.wf-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.wf-footer a {
  color: var(--text-mid);
}

.wf-footer a:hover {
  color: var(--amber-hot);
}

@media (max-width: 820px) {
  .wf-nav-links {
    display: none;
  }

  .wf-nav .btn {
    margin-left: auto;
  }

  .wf-hero {
    padding-bottom: 76px;
  }

  .wf-hero-grid,
  .wf-section-head,
  .wf-workflow li,
  .wf-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .wf-hero-grid {
    gap: 50px;
  }

  .wf-section-head,
  .wf-workflow li {
    gap: 18px;
  }

  .wf-related {
    grid-template-columns: minmax(0, 1fr);
  }

  .wf-related a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .wf-cta {
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .wf-nav-inner,
  .wf-shell,
  .wf-footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .wf-nav-inner {
    min-height: 60px;
  }

  .wf-brand {
    font-size: 15px;
  }

  .wf-brand-mark {
    width: 30px;
    height: 30px;
  }

  .wf-nav .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .wf-hero {
    padding-top: 28px;
  }

  .wf-breadcrumb {
    margin-bottom: 30px;
  }

  .wf-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .wf-section {
    padding: 68px 0;
  }

  .wf-workflow li {
    padding: 30px 0 34px;
  }

  .wf-path-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .wf-related a {
    min-height: 104px;
    padding: 20px 0;
  }

  .wf-cta {
    margin-bottom: 68px;
  }

  .wf-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .wf-footer-links {
    justify-content: flex-start;
  }
}
