:root {
  color-scheme: light;
  --ink: #111827;
  --ink-soft: #2f3a4a;
  --muted: #647084;
  --line: #d8dee8;
  --line-strong: #b8c2d1;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --bg: #f2f5f4;
  --soft: #e6f1ec;
  --accent: #0f7f67;
  --accent-dark: #075a4a;
  --accent-soft: #dff2ec;
  --blue: #315f8f;
  --blue-soft: #e8f0f7;
  --gold: #c8922b;
  --gold-ink: #724a0f;
  --gold-soft: #fff3d4;
  --danger: #a2413d;
  --shadow-sm: 0 8px 22px rgba(17, 24, 39, 0.07);
  --shadow-md: 0 18px 48px rgba(17, 24, 39, 0.11);
  --shadow-lg: 0 32px 78px rgba(17, 24, 39, 0.15);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eaf0ed;
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.7), rgba(255, 255, 255, 0) 380px),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.03) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(15, 127, 103, 0.028) 0 1px, transparent 1px 96px);
  pointer-events: none;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover { text-decoration: none; }

/* Content links (inside tables and panels) get a clear affordance beyond color. */
main table a,
.details a,
.panel p a {
  text-decoration: underline;
  text-decoration-color: rgba(19, 129, 111, 0.35);
  text-underline-offset: 2px;
}

main table a:hover,
main table a:focus-visible,
.details a:hover,
.panel p a:hover {
  text-decoration-color: currentColor;
}

/* Visible keyboard focus everywhere. */
a:focus-visible,
button:focus-visible,
label:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  border-radius: 7px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(184, 194, 209, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  font-size: 18px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.04em;
  box-shadow: inset 0 -3px 0 rgba(200, 146, 43, 0.48);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  padding: 9px 11px;
  border-radius: 7px;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

nav a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

nav a.nav-login {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

nav a.nav-login:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.nav-logout button {
  min-height: 0;
  padding: 8px 11px;
  font-size: 14px;
  font-weight: 750;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}

.nav-logout button:hover {
  color: var(--ink);
  transform: none;
}

/* Hamburger toggle: visually hidden (not display:none, so the label can
   still toggle it), the button is revealed on mobile via media query. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
}

.lede {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
  max-width: 720px;
  margin: 0 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

h1, h2 {
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(38px, 5.3vw, 68px);
  max-width: 900px;
  letter-spacing: -0.015em;
}

h2 {
  font-size: 22px;
}

p {
  margin-top: 0;
}

.marketing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 132px);
  margin: 16px 0 44px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.94) 46%, rgba(7, 90, 74, 0.98));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(200, 146, 43, 0.18) 0 8px, transparent 8px 28px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 76px);
  opacity: 0.7;
  pointer-events: none;
}

.marketing-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 70px solid rgba(200, 146, 43, 0.18);
  transform: rotate(12deg);
  pointer-events: none;
}

.marketing-hero > * {
  position: relative;
  z-index: 1;
}

.marketing-hero.compact {
  grid-template-columns: minmax(0, 1fr) 390px;
  min-height: 430px;
  padding-bottom: 34px;
}

.marketing-hero .eyebrow {
  color: #f4d58b;
}

.marketing-hero .lede,
.marketing-hero .hero-lede {
  color: #d7e0e9;
}

.marketing-hero .button {
  border-color: rgba(255, 255, 255, 0.28);
}

.marketing-hero .button:not(.primary) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.marketing-hero .button:not(.primary):hover {
  background: rgba(255, 255, 255, 0.18);
}

.marketing-hero .button.primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.marketing-hero .button.primary:hover {
  border-color: #f4d58b;
  background: #f4d58b;
  color: var(--ink);
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.metric-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.hero-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #eef4f2;
  font-size: 13px;
  font-weight: 760;
}

.hero-points span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.actions,
.workflow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 820;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(23, 32, 47, 0.11);
}

.button.primary,
button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button.primary:hover,
button.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.hero-media {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 6px;
  pointer-events: none;
}

.hero-media::before {
  content: "Live payout workflow";
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 1;
  padding: 7px 10px;
  border: 1px solid rgba(200, 146, 43, 0.45);
  border-radius: 999px;
  background: rgba(255, 243, 212, 0.94);
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 850;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.mini-proof,
.panel,
.section-grid article,
.pricing-grid article,
.timeline article,
.faq-grid article,
.link-grid a,
.metrics div {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.marketing-hero + .logo-strip-label {
  margin-top: -12px;
}

.mini-proof {
  padding: 26px;
  border-left: 4px solid var(--gold);
}

.mini-proof p,
.section-grid p,
.pricing-grid p,
.timeline p,
.faq-grid p,
.signup-band p {
  color: var(--muted);
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: -10px 0 54px;
}

.logo-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 820;
}

.logo-strip span:nth-child(1) {
  background: #fff3d4;
  border-color: rgba(200, 146, 43, 0.35);
  color: var(--gold-ink);
}

.logo-strip span:nth-child(2) {
  background: #dff2ec;
  border-color: rgba(15, 127, 103, 0.26);
  color: var(--accent-dark);
}

.logo-strip span:nth-child(3) {
  background: #e8f0f7;
  border-color: rgba(49, 95, 143, 0.26);
  color: var(--blue);
}

.logo-strip span:nth-child(4) {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.logo-strip span:nth-child(5) {
  background: #fff8e8;
  border-color: rgba(200, 146, 43, 0.28);
}

.section-heading {
  max-width: 780px;
  margin: 0 0 20px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

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

.section-grid article,
.pricing-grid article,
.link-grid a,
.timeline article,
.faq-grid article,
.metrics div {
  padding: 24px;
}

.section-grid article:nth-child(3n + 1),
.timeline article:nth-child(4n + 1),
.faq-grid article:nth-child(3n + 1) {
  border-top: 4px solid var(--gold);
}

.section-grid article:nth-child(3n + 2),
.timeline article:nth-child(4n + 2),
.faq-grid article:nth-child(3n + 2) {
  border-top: 4px solid var(--accent);
}

.section-grid article:nth-child(3n + 3),
.timeline article:nth-child(4n + 3),
.faq-grid article:nth-child(3n + 3) {
  border-top: 4px solid var(--blue);
}

.section-grid article h2,
.faq-grid article h2,
.timeline article h2 {
  font-size: 21px;
}

.section-grid article:hover,
.link-grid a:hover,
.timeline article:hover,
.faq-grid article:hover {
  border-color: rgba(15, 127, 103, 0.55);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section-grid article,
.link-grid a,
.timeline article,
.faq-grid article {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.split-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 54px;
  padding: 34px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.split-band h2 {
  font-size: clamp(26px, 3vw, 38px);
  max-width: 760px;
}

.split-band p {
  color: #d6dde8;
  margin-bottom: 0;
}

.split-band .eyebrow {
  color: #f4d58b;
}

.split-band .eyebrow::before {
  background: #f6c96f;
}

.split-band.light {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  color: var(--ink);
}

.split-band.light p { color: var(--muted); }
.split-band.light .eyebrow { color: var(--accent-dark); }

.split-band .timeline,
.split-band .link-grid {
  flex: 1 1 440px;
  margin-bottom: 0;
}

.split-band .timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-band .timeline article {
  color: var(--ink);
}

.split-band .timeline strong {
  display: block;
  margin-bottom: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 50px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 900;
}

.demo-tabs {
  margin: 0 0 52px;
}

.demo-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.demo-tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.demo-tab-list label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.demo-tab-list label:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

#demo-intake:checked ~ .demo-tab-list label[for="demo-intake"],
#demo-sale:checked ~ .demo-tab-list label[for="demo-sale"],
#demo-payout:checked ~ .demo-tab-list label[for="demo-payout"],
#demo-link:checked ~ .demo-tab-list label[for="demo-link"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.demo-panels {
  position: relative;
}

.demo-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 239, 0.7));
  box-shadow: var(--shadow-md);
}

#demo-intake:checked ~ .demo-panels .demo-panel-intake,
#demo-sale:checked ~ .demo-panels .demo-panel-sale,
#demo-payout:checked ~ .demo-panels .demo-panel-payout,
#demo-link:checked ~ .demo-panels .demo-panel-link {
  display: grid;
}

.demo-panel h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.demo-panel p {
  color: var(--muted);
}

.demo-detail-list {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.demo-detail-list div {
  padding: 12px 0;
}

.comparison-table,
.statement-card {
  margin: 0 0 50px;
}

.comparison-table table,
.statement-card table,
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f6f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-weight: 620;
}

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

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 50px;
}

.link-grid a {
  color: var(--ink);
  font-weight: 850;
}

.link-grid a:nth-child(4n + 1) { background: #fff8e8; border-color: rgba(200, 146, 43, 0.32); }
.link-grid a:nth-child(4n + 2) { background: #eef8f4; border-color: rgba(15, 127, 103, 0.26); }
.link-grid a:nth-child(4n + 3) { background: #f3f6fb; border-color: rgba(49, 95, 143, 0.24); }
.link-grid a:nth-child(4n + 4) { background: #111827; border-color: #111827; color: #fff; }

.link-grid a::after {
  content: " ->";
  color: var(--gold);
}

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

.faq-grid article {
  border-top: 4px solid var(--gold);
}

.statement-card {
  padding: 26px;
  border: 1px solid rgba(200, 146, 43, 0.28);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-md);
}

.template-preview {
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.table-wrap table {
  min-width: 860px;
}

.text-template-preview {
  max-height: 520px;
  overflow: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  color: var(--ink-soft);
  font: 650 14px/1.7 "Inter", system-ui, sans-serif;
  white-space: pre-wrap;
}

.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 20px;
}

.statement-head p {
  color: var(--muted);
  margin: 0;
}

.statement-head strong {
  color: var(--gold-ink);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.signup-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  gap: 26px;
  align-items: start;
  margin: 0 0 54px;
  padding: 30px;
  border: 1px solid rgba(200, 146, 43, 0.36);
  border-radius: var(--radius);
  background: #fff8e8;
  box-shadow: var(--shadow-md);
}

.signup-band h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signup-form textarea,
.signup-form button {
  grid-column: 1 / -1;
}

.messages {
  margin: 0 0 20px;
}

.messages p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #bdd8cf;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.marketing-title {
  margin-top: 50px;
  margin-bottom: 30px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.pricing-grid h2 {
  color: var(--ink);
  font-size: 38px;
}

.pricing-grid .featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 20px;
  align-items: start;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}

.calculator-result h2 {
  color: var(--accent-dark);
  font-size: 54px;
}

.copy-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  margin-top: 20px;
}

.copy-box textarea {
  min-height: 100px;
  color: var(--ink);
  background: #fbfcfd;
}

dl { margin: 20px 0 0; }

dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

dt { color: var(--muted); }
dd { margin: 0; font-weight: 850; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.panel {
  padding: 24px;
  margin-bottom: 34px;
}

.panel.narrow { max-width: 680px; }

.details p { margin: 8px 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.metrics span {
  display: block;
  color: var(--accent-dark);
  font-size: 32px;
  font-weight: 920;
}

.metrics p {
  color: var(--muted);
  margin: 4px 0 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head strong {
  color: var(--accent-dark);
  font-size: 36px;
  line-height: 1;
}

.panel-head a {
  color: var(--accent-dark);
  font-weight: 850;
  white-space: nowrap;
}

.progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  margin: 0 0 18px;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

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

.checklist a,
.next-actions a {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.checklist a:hover,
.next-actions a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.checklist span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.checklist .done span {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.checklist strong,
.next-actions strong {
  font-size: 16px;
}

.checklist em,
.next-actions span {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

.next-actions {
  display: grid;
  gap: 10px;
}

form p {
  display: grid;
  gap: 7px;
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea { min-height: 112px; }

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(19, 129, 111, 0.12);
  background: #fff;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto 0;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 430px;
}

.site-footer nav {
  justify-content: flex-end;
  max-width: 650px;
}

@media (max-width: 920px) {
  .page-header,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .nav-toggle-btn {
    display: flex;
    margin-left: auto;
  }

  .topbar nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 220ms ease, opacity 160ms ease;
  }

  .nav-toggle:checked ~ nav {
    max-height: 620px;
    opacity: 1;
  }

  .topbar nav .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .topbar nav a,
  .nav-logout button {
    padding: 12px 12px;
    text-align: left;
  }

  .nav-sep { display: none; }
  .nav-logout { width: 100%; }
  .nav-logout button { width: 100%; }

  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .marketing-hero,
  .marketing-hero.compact,
  .calculator-layout,
  .signup-band {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .marketing-hero {
    padding: 34px 26px;
  }

  .pricing-grid,
  .timeline,
  .metrics,
  .activity-grid,
  .dashboard-grid,
  .command-grid,
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-strip,
  .section-grid,
  .link-grid,
  .faq-grid,
  .demo-tab-list,
  .demo-panel,
  .checklist {
    grid-template-columns: 1fr;
  }

  .statement-head,
  .split-band {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar {
    width: min(100% - 16px, 1240px);
    margin-top: 8px;
  }

  .page {
    width: min(100% - 22px, 1180px);
    margin-top: 26px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    padding: 8px 9px;
  }

  h1,
  .hero-copy h1 {
    font-size: 40px;
  }

  .marketing-hero {
    margin-top: 8px;
    padding: 28px 18px;
  }

  .marketing-hero::after {
    width: 220px;
    height: 220px;
    border-width: 42px;
  }

  .hero-media {
    padding: 8px;
  }

  .pricing-grid,
  .timeline,
  .metrics,
  .signup-form,
  .activity-grid,
  .dashboard-grid,
  .command-grid,
  .result-grid,
  .quick-actions,
  .command-search form > div {
    grid-template-columns: 1fr;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}

/* ---- Accessibility: honor reduced-motion preference ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---- Form validation feedback ---- */
ul.errorlist {
  margin: 0 0 8px;
  padding: 10px 12px;
  list-style: none;
  border: 1px solid #e3b7b7;
  border-left: 4px solid var(--danger);
  border-radius: 7px;
  background: #fbf1f1;
  color: var(--danger);
  font-size: 14px;
  font-weight: 750;
}

.messages p.error {
  border-color: #e3b7b7;
  background: #fbf1f1;
  color: var(--danger);
}

.helptext {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* ---- List toolbar (search + count) ---- */
.list-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.list-toolbar form {
  display: flex;
  gap: 8px;
  flex: 1 1 260px;
  max-width: 420px;
}

.list-toolbar input[type="search"] {
  min-height: 42px;
}

.list-toolbar button {
  min-height: 42px;
  white-space: nowrap;
}

.list-toolbar .result-count {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}

.filter-pills a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 820;
}

.filter-pills a:hover,
.filter-pills a[aria-current="page"] {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.compact-metrics {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.row-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.row-actions a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
}

.empty-state h2 {
  margin: 0;
}

.empty-state p {
  max-width: 520px;
  color: var(--muted);
  margin: 0 0 8px;
}

.credential-box {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(200, 146, 43, 0.36);
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.credential-box strong {
  font-size: 24px;
  color: var(--gold-ink);
  word-break: break-all;
}

.credential-box p {
  margin: 0;
  color: var(--muted);
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}

.pagination a,
.pagination span.current {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}

.pagination span.current {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.pagination .muted {
  color: var(--muted);
  font-weight: 750;
}

/* ---- Table totals row ---- */
tfoot td {
  border-top: 2px solid var(--line-strong);
  border-bottom: 0;
  color: var(--ink);
  font-weight: 900;
  background: var(--surface-soft);
}

/* ---- Status pills ---- */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.pill.is-active,
.pill.is-confirmed,
.pill.is-approved { background: var(--accent-soft); border-color: transparent; color: var(--accent-dark); }
.pill.is-payout_due,
.pill.is-sold,
.pill.is-draft { background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.pill.is-paid { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.pill.is-disputed,
.pill.is-returned,
.pill.is-reversed,
.pill.is-voided,
.pill.is-withdrawn { background: #fbf1f1; border-color: transparent; color: var(--danger); }

.amount { font-variant-numeric: tabular-nums; }
.amount.owed { color: var(--gold-ink); font-weight: 900; }

/* ---- Item photos ---- */
.photo-uploader {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.photo-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  vertical-align: middle;
}

/* ---- Live sale preview ---- */
.sale-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 146, 43, 0.36);
  border-radius: var(--radius);
  background: var(--gold-soft);
}

.sale-preview dl { margin: 0; }
.sale-preview .payout-amount {
  color: var(--gold-ink);
  font-size: 30px;
  font-weight: 920;
  line-height: 1;
}

/* ---- Responsive: turn primary list tables into cards on phones ---- */
@media (max-width: 620px) {
  table.cards { display: block; overflow: visible; border: 0; box-shadow: none; background: transparent; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards tbody, table.cards tr, table.cards td { display: block; }
  table.cards tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 6px 14px;
  }
  table.cards td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
  }
  table.cards tr td:last-child { border-bottom: 0; }
  table.cards td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
  }
  table.cards td[data-label=""]::before { content: ""; }
}

/* ---- Auth helper links ---- */
.form-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 750;
}

.form-links a { text-decoration: underline; text-underline-offset: 2px; }

/* ===================================================================
   App shell: the product wears its own clothes, not the marketing suit.
   Compact chrome, dense type, sidebar on desktop, tab bar on mobile.
   =================================================================== */

body.app-body {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 0 1px, transparent 1px 96px),
    #eef2f1;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 228px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 18px;
  background: #111827;
  border-right: 1px solid rgba(17, 24, 39, 0.18);
}

.app-sidebar .brand { color: #fff; font-size: 16px; }

.app-sidebar .brand-mark {
  background: #fff;
  color: var(--ink);
}

.app-workspace {
  margin: 14px 0 4px;
  padding: 0 12px;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: #c7d0dd;
  font-size: 14px;
  font-weight: 750;
}

.app-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }

.app-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.app-nav a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
}

.app-sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-user {
  color: #c7d0dd;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-foot button,
.app-topbar button {
  min-height: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 750;
  color: #c7d0dd;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.app-sidebar-foot button:hover { color: #fff; transform: none; }
.app-topbar button:hover { color: var(--ink); transform: none; }

.app-main {
  flex: 1;
  min-width: 0;
  max-width: 1220px;
  padding: 26px 32px 64px;
}

.app-main .page-header {
  padding: 18px 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, #fffdf8, #f3faf7);
  box-shadow: var(--shadow-sm);
}

/* Quiet, app-scale typography inside the shell. */
.app-main h1 {
  font-size: 24px;
  line-height: 1.2;
  max-width: none;
  letter-spacing: -0.01em;
}

.app-main h2 { font-size: 17px; }

.app-main .lede {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.app-main .page-header { align-items: center; margin-bottom: 20px; }

.app-main .eyebrow { font-size: 11px; margin-bottom: 6px; }

.app-main th, .app-main td { padding: 11px 14px; }
.app-main td { font-size: 14px; }

.app-main .metrics { gap: 12px; margin-bottom: 20px; }
.app-main .metrics div { padding: 16px 18px; }
.app-main .metrics span { font-size: 24px; }
.app-main .metrics p { font-size: 13px; }

.app-main .metrics div:nth-child(4n + 1) { border-left: 4px solid var(--gold); }
.app-main .metrics div:nth-child(4n + 2) { border-left: 4px solid var(--accent); }
.app-main .metrics div:nth-child(4n + 3) { border-left: 4px solid var(--blue); }
.app-main .metrics div:nth-child(4n + 4) { border-left: 4px solid var(--ink); }

.app-main .panel { padding: 20px; margin-bottom: 20px; }
.app-main .panel-head strong { font-size: 26px; }
.app-main .dashboard-grid, .app-main .activity-grid { gap: 14px; margin-bottom: 14px; }

.app-main .button, .app-main button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.app-main .list-toolbar input[type="search"], .app-main .list-toolbar button { min-height: 40px; }

/* Attention list: the payout-first "what needs me now" panel. */
.attention-list { display: grid; gap: 8px; }

.attention-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

.attention-list a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.attention-list .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 900;
  font-size: 13px;
}

.command-search form {
  display: grid;
  gap: 10px;
}

.command-search label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.command-search form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.command-search input[type="search"] {
  min-height: 46px;
  border-color: rgba(17, 24, 39, 0.18);
  background: #fffdf8;
  font-weight: 700;
}

.result-grid,
.quick-actions {
  display: grid;
  gap: 10px;
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.result-grid article,
.quick-actions a {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.result-grid h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.result-grid article > a,
.quick-actions a {
  color: var(--ink);
  text-decoration: none;
}

.result-grid article > a {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
}

.result-grid span,
.quick-actions span,
.muted-line {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

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

.quick-actions a {
  background: #fffdf8;
}

.quick-actions a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.command-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

/* Mobile app chrome: compact top bar + bottom tab bar. */
.app-topbar { display: none; }
.app-tabbar { display: none; }

@media (max-width: 920px) {
  .app-sidebar { display: none; }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .app-topbar .brand-mark {
    background: var(--ink);
    color: #fff;
  }

  .app-topbar button {
    color: var(--muted);
    border-color: var(--line);
  }

  .app-topbar .app-workspace {
    flex: 1;
    margin: 0;
    padding: 0;
    font-size: 12px;
  }

  .app-topbar form { margin-left: auto; }

  .app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .app-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 2px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }

  .app-tabbar a svg { width: 20px; height: 20px; }

  .app-tabbar a[aria-current="page"] { color: var(--accent-dark); background: var(--accent-soft); }

  .app-main { padding: 18px 16px 104px; }
  .app-main .page-header { align-items: stretch; }
}

/* ===================================================================
   Marketing story: the before/after scene, DM chaos vs. one statement.
   =================================================================== */

.story-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin: 0 0 54px;
  padding: 28px;
  border: 1px solid rgba(15, 127, 103, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(223, 242, 236, 0.86), rgba(255, 248, 232, 0.82));
  box-shadow: var(--shadow-sm);
}

.story-compare > div { min-width: 0; }

.story-compare .statement-card { margin: 0; }

.dm-scene .dm-time {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dm-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dm-stack .dm {
  max-width: 400px;
  padding: 11px 15px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px 16px 16px 4px;
  background: #fffdf8;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.dm-stack .dm.out {
  align-self: flex-end;
  border-radius: 16px 16px 4px 16px;
  background: #111827;
  border-color: transparent;
  color: #fff;
}

.story-caption {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.hero-price-note {
  margin: 14px 0 0;
  color: #f4d58b;
  font-size: 14px;
  font-weight: 800;
}

.logo-strip-label {
  margin: -40px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .story-compare { grid-template-columns: minmax(0, 1fr); }
  .story-compare table { display: block; overflow-x: auto; }
}

/* Pricing cards: feature bullets + bottom-aligned CTA. */
.pricing-grid article { display: flex; flex-direction: column; }

.pricing-grid ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pricing-grid li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-grid article .button { margin-top: auto; }
