/* Swyft Advance — palette tokens. Every color on the site comes from this block. */
:root {
  /* PALETTE:BEGIN */
  --cream: #F7F3EC;
  --paper: #FDFBF7;
  --white: #ffffff;
  --line: #E6DFD2;
  --ink: #3A2244;
  --body: #6B5876;
  --muted: #9B8AA5;
  --nav: #5C4568;
  --primary: #4A2355;
  --primary-deep: #351840;
  --primary-rgb: 74, 35, 85;
  --accent: #A5457E;
  --accent-dark: #8A3468;
  --accent-rgb: 165, 69, 126;
  --on-dark: #C9B4D2;
  --on-dark-soft: #D9CBE0;
  --on-dark-accent: #E8A9CB;
  --on-dark-accent-rgb: 232, 169, 203;
  --tint: #F6F0F8;
  --border-strong: #D5C9D9;
  /* PALETTE:END */
  --error: #B3261E;
  --ok: #2F6B4F;
  --grad: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 60%, var(--accent) 140%);
  --grad-btn: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 70%);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --shadow: 0 24px 48px rgba(var(--primary-rgb), .10);
  --wrap: 1200px;
  /* Type scale: serif titles + numbers at 600, Public Sans for everything else */
  --fs-h1: 58px; --fs-h2: 40px; --fs-h3: 26px; --fs-h4: 22px; --fs-num: 27px; --fs-num-lg: 44px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 16px; }
h1, h2, h3, h4 { line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 52px; }
.serif { font-family: var(--serif); }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 15.5px; padding: 15px 32px; border-radius: 99px; border: 0; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-berry { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px rgba(var(--accent-rgb), .25); }
.btn-berry:hover { background: var(--accent-dark); box-shadow: none; }
.btn-aub { background: var(--primary); color: var(--cream); }
.btn-aub:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-under { font-size: 14.5px; font-weight: 600; color: var(--primary); text-decoration: none; border-bottom: 1.5px solid var(--primary); padding-bottom: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--nav); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .has-menu { position: relative; }
.nav .has-menu > a { display: inline-flex; align-items: center; gap: 6px; }
.nav .has-menu > a svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .15s; }
.nav .has-menu:hover > a svg, .nav .has-menu:focus-within > a svg { transform: rotate(180deg); }
.nav .menu { position: absolute; top: calc(100% + 14px); left: -18px; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(60,30,60,.12); padding: 10px; display: none; flex-direction: column; z-index: 60; }
.nav .menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu { display: flex; }
.nav .menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--primary); }
.nav .menu a:hover, .nav .menu a[aria-current="page"] { background: var(--cream); color: var(--primary); }
.nav .menu a b { font-weight: 600; font-size: 14px; }
.nav .menu a span { font-size: 12.5px; font-weight: 400; color: var(--body); }
.nav .menu .menu-all { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0; font-weight: 600; font-size: 13px; color: var(--accent); }
.nav .menu .menu-all:hover { background: none; color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-cta .phone { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.header-cta .btn { padding: 11px 26px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; color: var(--primary); cursor: pointer; }

/* Hero */
.hero .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: var(--fs-h1); line-height: 1.08; font-weight: 600; color: var(--ink); margin-top: 12px; text-wrap: pretty; }
.hero .lede { font-size: 17px; line-height: 1.7; color: var(--body); margin-top: 20px; max-width: 470px; }
.hero .actions { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-family: var(--serif); font-size: var(--fs-num); font-weight: 600; color: var(--primary); line-height: 1.2; }
.stat:last-child b { color: var(--accent); }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Card + fields */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card h2, .card h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; color: var(--ink); }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fields { display: grid; gap: 12px; margin-top: 20px; }
.field label, .field .label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--paper); transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); background: #fff; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A5457E' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field.invalid .input, .field.invalid .dropzone, .field.invalid .sigpad { border-color: var(--error); }
.field .err { display: none; font-size: 12.5px; color: var(--error); margin-top: 5px; }
.field.invalid .err { display: block; }
.row { display: grid; gap: 14px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }
.row-4 { grid-template-columns: 2fr 1fr 1fr 1fr; }

/* Solutions band */
.band { background: var(--grad); color: var(--cream); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; }
.band .eyebrow { color: var(--on-dark); }
.band h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; margin-top: 8px; max-width: 640px; }
.solutions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
.solution h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; }
.solution p { font-size: 14px; line-height: 1.65; color: var(--on-dark); margin-top: 8px; }
.solution .num { font-family: var(--serif); font-style: italic; color: var(--on-dark-accent); font-size: 15px; margin-bottom: 10px; }

/* Generic sections */
.section .wrap { padding-top: 88px; padding-bottom: 88px; }
.section h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; margin-top: 8px; color: var(--ink); text-wrap: pretty; }
.section .intro { font-size: 17px; color: var(--body); margin-top: 16px; max-width: 620px; line-height: 1.7; }
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; counter-reset: step; }
.steps.five { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps.five .step { padding: 24px 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.step h3 { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; margin-top: 10px; }
.step p { font-size: 14.5px; color: var(--body); margin-top: 8px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checklist { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--body); font-size: 16px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' stroke='%23F7F3EC' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat; }

.program { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.program + .program { margin-top: 24px; }
.program h3 { font-family: var(--serif); font-size: var(--fs-h3); font-weight: 600; }
.program > p { color: var(--body); margin-top: 10px; max-width: 720px; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin-top: 28px; }
.benefit b { display: block; font-size: 15px; color: var(--primary); }
.benefit span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; line-height: 1.6; }
.rc-steps { list-style: none; counter-reset: rc; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; padding: 0; }
.rc-steps li { counter-increment: rc; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.rc-steps li::before { content: counter(rc, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 15px; }
.rc-steps b { display: block; font-size: 15px; color: var(--primary); margin-top: 4px; }
.rc-steps span { display: block; font-size: 14px; color: var(--body); margin-top: 4px; line-height: 1.55; }

.industries { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 18px; font-size: 14px; color: var(--primary); font-weight: 500; }

.example { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.example dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 18px 0 22px; }
.example dt { font-size: 12.5px; color: var(--muted); }
.example dd { font-family: var(--serif); font-size: var(--fs-h4); font-weight: 600; color: var(--primary); }
.example p { font-size: 14.5px; color: var(--body); margin-top: 10px; }
.example p b { color: var(--ink); }

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--body); max-width: 760px; }

/* CTA */
.cta { text-align: center; }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; }
.cta h2 { font-family: var(--serif); font-size: var(--fs-h2); font-weight: 600; color: var(--cream); margin: 0 auto; max-width: 760px; }
.cta p { color: var(--on-dark); margin-top: 12px; font-size: 17px; }
.cta .actions { display: flex; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }
.cta .btn-ghost { color: var(--cream); border-color: rgba(247, 243, 236, .35); }
.cta .btn-ghost:hover { border-color: var(--cream); }

/* Footer */
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; font-size: 13px; color: var(--muted); }
.site-footer img { height: 30px; width: auto; }
.site-footer nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; line-height: 1.6; }

/* Legal pages */
.legal .wrap { max-width: 860px; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1.1; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }
.legal .doc { margin-top: 36px; color: var(--body); font-size: 15.5px; }
.legal .doc h2, .legal .doc h3, .legal .doc h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; margin: 32px 0 10px; line-height: 1.3; }
.legal .doc h2 { font-size: 26px; } .legal .doc h3 { font-size: 21px; } .legal .doc h4 { font-size: 18px; }
.legal .doc p, .legal .doc ul, .legal .doc ol { margin: 0 0 14px; }
.legal .doc ul, .legal .doc ol { padding-left: 22px; }
.legal .doc li { margin-bottom: 6px; }
.legal .doc a { color: var(--accent); }

/* Shared chrome (used by index + product pages) */
.hero-serving { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 18px 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--primary); }
.hero-serving svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.disclosures { grid-column: 1 / -1; text-align: left; padding-top: 22px; border-top: 1px solid var(--line); }
.disclosures h4 { font-family: var(--serif); font-size: 15px; color: var(--ink); }
.disclosures p { font-size: 12px; line-height: 1.6; color: var(--muted); margin-top: 8px; max-width: 980px; }
@media (max-width: 600px) { .hero-serving { font-size: 17px; white-space: nowrap; padding: 9px 16px 9px 12px; } .hero-serving svg { width: 20px; height: 20px; } }

/* Product pages (e.g. merchant-cash-advance.html) */
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.glance dl { display: grid; gap: 14px; margin: 22px 0 26px; }
.glance dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.glance dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.glance dd { color: var(--ink); }
.glance .btn { width: 100%; }
.cmp { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.cmp th { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--primary); }
.cmp td:first-child { color: var(--muted); font-size: 13px; width: 26%; }
.cmp td:nth-child(2) { color: var(--ink); font-weight: 500; }
.cmp tr:last-child td { border-bottom: 0; }
.checklist li b { color: var(--ink); font-weight: 600; }
.checklist li a, .benefit a, .faq details a { color: var(--accent); }
.hero .glance { align-self: start; }
@media (max-width: 600px) {
  .glance dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding-right: 6px; }
}

/* Responsive */
@media (max-width: 1080px) {
  .solutions, .steps, .steps.five { grid-template-columns: repeat(2, 1fr); }
  .benefits, .rc-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .hero h1 { font-size: 42px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .nav { display: none; }
  .header-cta .phone { display: none; }
  .menu-btn { display: block; }
  .nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .has-menu > a svg { display: none; }
  .nav.open .menu { position: static; display: flex; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 4px 16px; border-radius: 0; }
  .nav.open .menu::before { display: none; }
  .nav.open .menu a { padding: 10px 0; border-radius: 0; border-bottom: 0; }
  .nav.open .menu a:hover, .nav.open .menu a[aria-current="page"] { background: none; color: var(--accent); }
  .nav.open .menu a span { display: none; }
  .nav.open .menu .menu-all { margin-top: 0; padding-top: 10px; }
  .site-header .wrap { position: relative; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; }
  .section h2, .band h2 { font-size: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .solutions, .steps, .steps.five, .benefits, .rc-steps, .example dl { grid-template-columns: 1fr; }
  .row-2, .row-3, .row-4 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .program { padding: 26px 20px; }
  .stats { gap: 24px; }
  .header-cta .btn { padding: 10px 18px; }
  .logo img { height: 34px; }
  .cta h2 { font-size: 32px; }
}
