:root {
  --color-ink: #17231f;
  --color-muted: #5c665f;
  --color-paper: #fbfaf6;
  --color-panel: #ffffff;
  --color-line: #d9ded6;
  --color-accent: #38b46b;
  --color-accent-strong: #20824a;
  --color-warm: #e6b85c;
  --shadow-soft: 0 18px 48px rgba(23, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header,
.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link,
.site-nav,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

/* The header wordmark. Its own artwork pads the lettering to ~43% of the
   file's height, so 52px of image reads as ~22px of type. */
.brand-wordmark {
  height: 52px;
  width: auto;
}

.site-nav {
  gap: 14px;
}

.nav-link,
.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.nav-link:hover,
.site-footer a:hover {
  color: var(--color-ink);
}

.public-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.minimal-public-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.placeholder-home {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.site-footer {
  min-height: 80px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  color: var(--color-muted);
}

/* Wraps as whole links: a link never breaks inside itself ("API / docs"). */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.footer-links a {
  white-space: nowrap;
}

.home-shell {
  min-height: calc(100vh - 152px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}

.home-logo {
  display: block;
  width: clamp(86px, 13vw, 132px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(23, 35, 31, 0.12);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-copy h1,
.workspace-page h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.home-copy h1 {
  max-width: 920px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.94;
}

.home-lede {
  max-width: 900px;
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--color-ink);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.primary-action:hover {
  background: var(--color-accent-strong);
  color: #ffffff;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
}

.secondary-action:hover {
  border-color: var(--color-ink);
}

.nwc-guide-page {
  padding-bottom: 32px;
  /* Bootstrap's pink inline code turned the spec sections red; ink on the
     same pale chip the integration pages use. */
  --bs-code-color: var(--color-ink);
}

.nwc-guide-page :not(pre) > code:not([class]) {
  padding: 1px 5px;
  background: #eef2ef;
  border-radius: 4px;
}

/* Section links: a quiet "#" after each heading, shown on hover or focus.
   Touch screens cannot hover, so there it stays faintly visible. */
.nwc-anchor {
  margin-left: 0.25em;
  color: var(--color-muted);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

h2:hover > .nwc-anchor,
h3:hover > .nwc-anchor,
.nwc-anchor:focus-visible {
  opacity: 1;
}

.nwc-anchor:hover {
  color: var(--color-accent-strong);
}

@media (hover: none) {
  .nwc-anchor {
    opacity: 0.35;
  }
}

.nwc-guide-page h3[id] {
  scroll-margin-top: 24px;
}

.nwc-hero {
  border-bottom: 1px solid var(--color-line);
}

.nwc-provider-section,
.nwc-verify,
.nwc-command-block {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-panel);
}

.nwc-provider-section {
  scroll-margin-top: 24px;
  padding: 24px;
}

.nwc-section-heading {
  margin-bottom: 18px;
}

.nwc-section-heading h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.05;
}

.nwc-provider-title-link {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.nwc-provider-title-link:hover,
.nwc-provider-title-link:focus-visible {
  color: var(--color-accent-strong);
}

.nwc-external-icon {
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.3em;
  vertical-align: middle;
  transform: translateY(-0.12em);
  opacity: 0.55;
}

.nwc-provider-title-link:hover .nwc-external-icon,
.nwc-provider-title-link:focus-visible .nwc-external-icon {
  opacity: 1;
}

.nwc-section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}

.nwc-provider-nav {
  position: sticky;
  top: 16px;
}

.nwc-provider-nav .list-group-item {
  color: var(--color-ink);
}

.nwc-provider-nav .list-group-item.nwc-provider-disabled {
  color: #9aa19b;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.55;
}

.nwc-provider-section-disabled {
  opacity: 0.58;
  background: #f0f1ee;
}

.nwc-provider-section-disabled a,
.nwc-provider-section-disabled span:not(.badge) {
  color: #6f7771;
}

.nwc-tutorial-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #101820;
}

.nwc-tutorial-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.nwc-tutorial-shot figcaption {
  min-height: 68px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--color-muted);
  line-height: 1.45;
}

.nwc-steps {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.nwc-command-block {
  height: 100%;
  padding: 18px;
}

.nwc-command-block pre {
  margin: 12px 0;
  overflow-x: auto;
  border-radius: 8px;
  background: #111816;
  color: #ffffff;
  padding: 12px;
}

/* Lightning Swap Connect URI diagram: one string, colour-coded parts. */
.lsc-uri-lede {
  margin: 10px 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.lsc-uri {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 0.95rem;
}

.lsc-env {
  color: #8fe0a8;
}

.lsc-punct {
  color: #93a29b;
}

.lsc-host {
  color: #ffffff;
  font-weight: 700;
}

.lsc-key {
  color: #f7c948;
  font-weight: 700;
}

.lsc-secret {
  color: #62d3f5;
  font-weight: 700;
}

.lsc-uri-legend {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  line-height: 1.5;
}

.lsc-uri-legend li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.lsc-chip {
  border-radius: 6px;
  background: #111816;
  padding: 3px 8px;
  font-size: 0.85rem;
}

.lsc-uri-note {
  margin: 14px 0 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.quickstart-page {
  padding: 28px 0 48px;
}

.quickstart-hero {
  max-width: 880px;
  padding: 42px 0 30px;
}

.quickstart-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  font-weight: 850;
  line-height: 0.96;
  letter-spacing: 0;
}

.quickstart-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.quickstart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.framework-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 16px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
}

.framework-switcher label {
  color: var(--color-muted);
  font-weight: 750;
}

.framework-switcher select {
  min-height: 42px;
  min-width: min(320px, 100%);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-ink);
  font: inherit;
  font-weight: 700;
  padding: 0 38px 0 12px;
}

.framework-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.framework-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-muted);
  font-weight: 750;
  text-decoration: none;
}

.framework-tab:hover,
.framework-tab.is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: #ffffff;
}

.quickstart-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.quickstart-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
}

.quickstart-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
}

.quickstart-sidebar a:hover {
  background: #eef3eb;
  color: var(--color-ink);
}

.quickstart-doc {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.quickstart-panel {
  scroll-margin-top: 18px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.quickstart-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: 0;
}

.quickstart-panel p {
  margin: 12px 0;
  color: var(--color-muted);
  line-height: 1.65;
}

.selected-framework-panel {
  background: #f3f8f0;
}

.framework-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: #092417;
  font-size: 0.78rem;
  font-weight: 820;
}

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

.quick-facts div {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.quick-facts dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 6px 0 0;
  font-weight: 750;
}

.code-card {
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #27342f;
  border-radius: 8px;
  background: #101614;
  box-shadow: 0 12px 26px rgba(23, 35, 31, 0.12);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-bottom: 1px solid #27342f;
  color: #d8e8dd;
  font-size: 0.85rem;
  font-weight: 750;
}

.code-copy-button {
  min-height: 30px;
  border: 1px solid #4a6457;
  border-radius: 8px;
  background: #1b2823;
  color: #eef8f1;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 10px;
  cursor: pointer;
}

.code-copy-button:hover {
  border-color: #83b695;
}

.code-card pre {
  max-height: 620px;
  margin: 0;
  overflow: auto;
  padding: 18px;
}

.code-card code {
  color: #f4f7f2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre;
}

.quickstart-note {
  margin-top: 18px;
  border: 1px solid #c9dbc3;
  border-radius: 8px;
  background: #f7fbf4;
  color: var(--color-muted);
  padding: 14px 16px;
  line-height: 1.55;
}

.quickstart-note strong {
  color: var(--color-ink);
}

.runtime-panel {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.runtime-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-line);
}

.runtime-row:last-child {
  border-bottom: 0;
}

.runtime-row span {
  color: var(--color-muted);
}

.js-heavy-body {
  min-height: 100vh;
  background: #f6f7f4;
}

#root {
  min-height: 100vh;
}

.workspace-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--color-line);
  background: #ffffff;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.workspace-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--color-ink);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
}

.workspace-tabs {
  display: grid;
  gap: 8px;
}

.workspace-tab {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-transform: capitalize;
  padding: 0 12px;
  cursor: pointer;
}

.workspace-tab:hover,
.workspace-tab.is-active {
  border-color: var(--color-line);
  background: #f2f5f0;
  color: var(--color-ink);
}

.workspace-content {
  display: grid;
  align-items: center;
  padding: 48px;
}

.workspace-page {
  max-width: 760px;
}

.workspace-page h1 {
  font-size: 3rem;
  line-height: 1;
}

.workspace-page p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.workspace-loader,
.app-fatal {
  width: min(520px, 100%);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px 20px;
}

.app-fatal {
  color: #8d2b2b;
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  .public-main {
    width: min(100% - 24px, 1120px);
  }

  .home-shell,
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .home-shell {
    min-height: auto;
    gap: 24px;
    padding: 32px 0;
  }

  .home-copy h1 {
    font-size: 3.25rem;
  }

  .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .workspace-content {
    padding: 28px 20px;
  }

  .workspace-page h1 {
    font-size: 2.3rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav,
  .footer-links {
    flex-wrap: wrap;
  }

  .site-footer {
    flex-direction: column;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .nwc-provider-section,
  .nwc-verify {
    padding: 18px;
  }

  .nwc-provider-nav {
    position: static;
  }

  .quickstart-page {
    padding-top: 10px;
  }

  .quickstart-hero {
    padding: 26px 0 22px;
  }

  .quickstart-hero h1 {
    font-size: 3rem;
  }

  .framework-switcher {
    align-items: flex-start;
    flex-direction: column;
  }

  .framework-switcher select {
    width: 100%;
  }

  .quickstart-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .quickstart-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quickstart-sidebar a {
    flex: 0 0 auto;
  }

  .quickstart-panel {
    padding: 18px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .code-card-header {
    min-height: 40px;
  }

  .code-card pre {
    padding: 14px;
  }

  .code-card code {
    font-size: 0.82rem;
  }
}

/* /brand — the asset catalogue. Cards sit in a two-up grid; the preview's
   ground is chosen by the file (see BrandAsset#ground) so a transparent cut
   is visibly transparent and a white-boxed cut is visibly boxed. */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-panel);
  scroll-margin-top: 24px;
}

.brand-preview {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  min-height: 180px;
  border-bottom: 1px solid var(--color-line);
}

.brand-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  height: auto;
  object-fit: contain;
}

.brand-preview-white {
  background: #ffffff;
}

.brand-preview-black {
  background: #000000;
}

.brand-preview-transparent {
  background-color: #eeeeee;
  background-image:
    linear-gradient(45deg, #d6d6d6 25%, transparent 25%),
    linear-gradient(-45deg, #d6d6d6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d6d6d6 75%),
    linear-gradient(-45deg, transparent 75%, #d6d6d6 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.brand-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.brand-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.2;
}

.brand-card-description {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.5;
}

.brand-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  font-size: 0.9rem;
}

.brand-spec dt {
  font-weight: 600;
  color: var(--color-muted);
}

.brand-spec dd {
  margin: 0;
}

.brand-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-copy {
  flex: 0 0 auto;
  min-width: 88px;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.brand-swatch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.brand-swatch-chip {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.brand-swatch-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-swatch-name {
  font-weight: 700;
}

.brand-swatch-hex {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  cursor: pointer;
}

.brand-swatch-hex:hover {
  text-decoration: underline;
}

.brand-swatch-usage {
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Server-rendered pages (privacy, contact, NWC setup): a long monospace URL
   in running text wraps on a phone instead of widening the page. */
main p,
main li {
  overflow-wrap: anywhere;
}

/* /learn articles (LearnPage): markdown tables carry no classes, so the
   comparison tables get their borders and phone scrolling here. */
.learn-article h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.6rem;
  font-weight: 800;
}

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

.learn-article h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.learn-article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.learn-article th,
.learn-article td {
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  vertical-align: top;
}

.learn-article th {
  background: var(--color-paper);
  text-align: left;
}

.learn-article a {
  color: var(--color-accent-strong);
}

/* A /learn article drawn for people (app/views/learn/articles/): a hero with
   the big button home, diagrams instead of paragraphs, and the button again at
   the end. Single column on a phone; every row stacks. */
.learn-page {
  padding: 24px 0 64px;
}

.learn-page h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
}

.learn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  padding: 24px 0 48px;
}

.learn-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1;
}

.learn-lede {
  max-width: 34rem;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 1.2rem;
}

.learn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--color-accent-strong);
  box-shadow: 0 10px 24px rgba(32, 130, 74, 0.3);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.learn-cta:hover,
.learn-cta:focus-visible {
  background: #18693b;
  color: #fff;
  transform: translateY(-2px);
}

.learn-cta-note {
  margin: 12px 0 0 6px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.learn-hero-shot {
  margin: 0;
  text-align: center;
}

.learn-hero-shot img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.learn-hero-shot figcaption {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.learn-block {
  margin: 0 0 32px;
  padding: 32px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-panel);
}

.learn-sub,
.learn-note {
  color: var(--color-muted);
}

.learn-note {
  margin: 20px 0 0;
}

.learn-page a:not(.learn-cta) {
  color: var(--color-accent-strong);
  font-weight: 600;
}

/* Three ways: one card each, the money path drawn as boxes and arrows. */
.learn-ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.learn-way {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-paper);
}

.learn-way.is-ours {
  border: 2px solid var(--color-accent);
  background: rgba(56, 180, 107, 0.07);
}

.learn-way h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}

.learn-way-eg {
  min-height: 2.6em;
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.learn-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.learn-path li {
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--color-line);
  font-size: 0.82rem;
  font-weight: 700;
}

.learn-path li + li::before {
  content: "→";
  margin: 0 8px 0 -2px;
  color: var(--color-muted);
}

.learn-path li.is-middle {
  border-color: var(--color-warm);
  background: rgba(230, 184, 92, 0.18);
}

.learn-path li:last-child {
  border-color: var(--color-accent);
  background: rgba(56, 180, 107, 0.14);
}

.learn-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-checks li {
  position: relative;
  margin: 8px 0;
  padding-left: 28px;
  font-size: 0.95rem;
}

.learn-checks li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 20px;
  text-align: center;
}

.learn-checks li.yes::before {
  content: "✓";
  background: var(--color-accent-strong);
}

.learn-checks li.no::before {
  content: "✕";
  background: #c2543f;
}

/* How a payment flows: two lanes of nodes and arrows. */
.learn-flow {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.learn-flow-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}

.learn-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-paper);
  text-align: center;
}

.learn-node strong {
  font-size: 1.05rem;
}

.learn-node span {
  color: var(--color-muted);
  font-size: 0.88rem;
}

.learn-node.is-goal {
  border: 2px solid var(--color-accent);
  background: rgba(56, 180, 107, 0.1);
}

.learn-coins {
  display: flex;
  gap: 4px;
}

.learn-arrow {
  align-self: center;
  color: var(--color-accent-strong);
  font-size: 1.8rem;
  font-weight: 800;
}

/* The freeze stat: one number, one sentence, two links. */
.learn-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  border-color: rgba(194, 84, 63, 0.35);
  background: rgba(194, 84, 63, 0.05);
}

.learn-stat {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  text-align: center;
}

.learn-stat strong {
  color: #c2543f;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
}

.learn-stat span {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.learn-warning p {
  margin: 0;
  font-size: 1.1rem;
}

/* Four steps as numbered cards. */
.learn-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.learn-steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-paper);
}

.learn-step-n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-strong);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.learn-steps strong {
  font-size: 1.1rem;
}

.learn-steps span:not(.learn-step-n) {
  flex: 1;
  color: var(--color-muted);
  font-size: 0.92rem;
}

/* Every integration page as a logo tile. */
.learn-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.learn-logos a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-paper);
  color: var(--color-ink) !important;
  font-size: 0.9rem;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  text-decoration: none;
}

.learn-logos a:hover,
.learn-logos a:focus-visible {
  border-color: var(--color-accent);
}

.learn-logos img {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.learn-page details {
  border-top: 1px solid var(--color-line);
  padding: 14px 0;
}

.learn-page details:last-of-type {
  border-bottom: 1px solid var(--color-line);
}

.learn-page summary {
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.learn-page details p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.learn-final {
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--color-ink);
  color: #fff;
  text-align: center;
}

.learn-final h2 {
  color: #fff;
}

.learn-final p {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .learn-hero,
  .learn-ways,
  .learn-warning {
    grid-template-columns: 1fr;
  }

  .learn-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-flow {
    gap: 40px;
  }

  .learn-flow-lane {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .learn-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .learn-block {
    padding: 20px 16px;
  }

  .learn-steps {
    grid-template-columns: 1fr;
  }

  .learn-cta {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 1.05rem;
  }
}


/*# sourceMappingURL=application-3ef893ed.css.map*/