:root {
  --bg: #f6f4ef;
  --paper: #ffffff;
  --paper-soft: #fbfaf7;
  --ink: #18211f;
  --muted: #66706d;
  --quiet: #8b938f;
  --line: #ded9cf;
  --line-dark: #2f3936;
  --green: #156247;
  --green-dark: #0f4b37;
  --red: #a64234;
  --gold: #ba8f36;
  --night: #151b1a;
  --night-2: #1c2422;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(22, 33, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Aptos, "Segoe UI", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.48;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong,
summary,
button,
input {
  font-weight: 400;
}

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 62px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(222, 217, 207, 0.78);
  background: rgba(246, 244, 239, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.brand-logo {
  display: block;
  width: 136px;
  max-width: 32vw;
  height: auto;
  max-height: 34px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #46514e;
  font-size: 12px;
}

.desktop-nav a {
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--green);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  color: #46514e;
  font-size: 12px;
}

.login-link {
  color: #46514e;
}

.primary-button,
.outline-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.primary-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 98, 71, 0.16);
}

.primary-button:hover,
.outline-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.outline-button {
  min-height: 38px;
  border-color: #54615d;
  color: #f5f6f2;
  background: transparent;
}

.outline-button:hover {
  border-color: #d6ddda;
  background: rgba(255, 255, 255, 0.04);
}

.ghost-button {
  min-height: 32px;
  padding: 0 13px;
  border-color: #d6d1c7;
  background: transparent;
  color: #26332f;
  font-size: 12px;
}

.section-grid {
  background:
    linear-gradient(rgba(38, 51, 47, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 51, 47, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8f7f2 0%, #f2efe7 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

.hero {
  position: relative;
  min-height: 700px;
  padding: 126px 24px 42px;
  overflow: hidden;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.86fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-content {
  width: min(600px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 22px;
  padding: 0 11px;
  border: 1px solid #d7d1c4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--green-dark);
  font-size: 12px;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  color: #17201e;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 520px;
  margin: 24px 0 26px;
  color: #596560;
  font-size: 18px;
  line-height: 1.5;
}

.hero-form {
  display: grid;
  grid-template-columns: minmax(0, 265px) auto;
  gap: 10px;
  width: min(450px, 100%);
  padding: 0;
}

.hero-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid #d4cec3;
  border-radius: 6px;
  padding: 0 14px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: #1b2724;
}

.hero-form input:focus {
  border-color: rgba(21, 98, 71, 0.7);
  box-shadow: 0 0 0 3px rgba(21, 98, 71, 0.1);
}

.hero-form input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(166, 66, 52, 0.1);
}

.form-note {
  min-height: 20px;
  margin: 12px 0 0;
  color: #52615c;
  font-size: 12px;
}

.license-panel {
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-topline,
.route-row,
.panel-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-topline {
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid #e5dfd4;
  color: #4a5753;
  font-size: 12px;
}

.panel-topline span:last-child {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(21, 98, 71, 0.22);
  border-radius: 999px;
  color: var(--green-dark);
}

.panel-balance {
  min-height: 132px;
  padding: 28px 22px;
  border-bottom: 1px solid #e5dfd4;
}

.panel-balance span:first-child {
  color: var(--quiet);
  font-size: 13px;
}

.panel-balance span:last-child {
  color: #111a18;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.route-list {
  display: grid;
}

.route-row {
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #ece7df;
  color: #68736f;
  font-size: 13px;
}

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

.route-row span:last-child {
  color: #202d29;
  text-align: right;
}

.route-row.status span:last-child {
  color: var(--green-dark);
}

.compliance-strip {
  width: min(1120px, 100%);
  margin: 54px auto 0;
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: #52615c;
  padding: 13px 18px;
  font-size: 12px;
}

.global-section,
.faq-section {
  padding: 82px 24px;
  background: var(--bg);
}

.narrow {
  width: min(760px, 100%);
  margin: 0 auto;
}

.center {
  text-align: center;
}

.global-section {
  padding-top: 92px;
}

.global-section h2,
.section-heading h2,
.faq-section h2,
.cta-section h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
}

.global-section .narrow p {
  width: min(520px, 100%);
  margin: 14px auto 42px;
  color: #69746f;
  font-size: 15px;
}

.payment-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(18px, 7vw, 88px);
  align-items: center;
  width: min(880px, calc(100% - 32px));
  min-height: 334px;
  margin: 0 auto 58px;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(21, 98, 71, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f4f1ea);
}

.payment-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42px;
  bottom: 42px;
  width: 1px;
  background: #ddd7cc;
}

.mini-document {
  position: relative;
  z-index: 1;
  min-height: 136px;
  border: 1px solid #e0dbd2;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: 0 16px 34px rgba(22, 33, 31, 0.08);
}

.sender {
  transform: translateY(-4px);
}

.receipt {
  transform: translateY(10px);
}

.doc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #26332f;
  font-size: 12px;
}

.doc-header span:first-child {
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #d1c8ba;
  border-radius: 50%;
  background: #178b49;
  overflow: hidden;
}

.doc-header span:first-child::before,
.doc-header span:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.doc-header span:first-child::before {
  width: 13px;
  height: 13px;
  background: #f5d246;
  transform: translate(-50%, -50%) rotate(45deg);
}

.doc-header span:first-child::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #233f8f;
}

.mini-document p,
.mini-document li {
  margin: 0;
  color: #6a756f;
  font-size: 11px;
}

.mini-document p + p {
  margin-top: 7px;
}

.amount-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.amount-value {
  color: #1f2a27;
  font-size: 20px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.receipt ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.receipt li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.receipt-value {
  color: #26332f;
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(660px, calc(100% - 32px));
  margin: 0 auto 78px;
}

.stats-grid div {
  min-height: 94px;
  padding: 0 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  color: #1f2a27;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1;
}

.stats-grid span:not(.stat-value) {
  display: block;
  width: min(135px, 100%);
  margin: 11px auto 0;
  color: #69746f;
  font-size: 11px;
}

.quote {
  width: min(650px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 42px;
  text-align: center;
  border-bottom: 1px solid #2a3531;
}

.quote p {
  margin: 0 0 16px;
  color: #2e3935;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.24;
}

.quote cite {
  color: #6b756f;
  font-size: 12px;
  font-style: normal;
}

.workflow-section {
  padding: 86px 24px 88px;
  background: #efebe2;
}

.section-heading {
  width: min(660px, 100%);
  margin: 0 auto 62px;
  text-align: center;
}

.workflow-grid {
  display: grid;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: center;
}

.workflow-grid.top {
  grid-template-columns: minmax(220px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(30px, 8vw, 108px);
}

.workflow-grid.bottom {
  grid-template-columns: minmax(340px, 1fr) minmax(220px, 0.72fr);
  gap: clamp(30px, 8vw, 108px);
  margin-top: 62px;
}

.feature-intro {
  width: min(300px, 100%);
}

.feature-intro.right {
  justify-self: end;
}

.feature-intro h3 {
  margin: 0 0 18px;
  color: #26332f;
  font-size: 21px;
  line-height: 1.2;
}

.invoice-visual,
.vendor-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  border: 1px solid #d8d1c4;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(186, 143, 54, 0.08), transparent 42%),
    linear-gradient(180deg, #fbfaf7, #e9e4da);
}

.vendor-visual {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(21, 98, 71, 0.08), transparent 44%),
    linear-gradient(180deg, #fbfaf7, #e5e1d7);
}

.invoice-visual::before,
.vendor-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(92, 82, 66, 0.12);
}

.invoice-card,
.vendor-sheet {
  position: relative;
  z-index: 1;
  width: min(226px, 74%);
  border: 1px solid #ddd7cd;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(22, 33, 31, 0.08);
}

.invoice-badge,
.sheet-logo {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  border: 1px solid #d7d1c4;
  border-radius: 50%;
  overflow: hidden;
}

.invoice-badge {
  background:
    linear-gradient(180deg, #74acdf 0 34%, #ffffff 34% 66%, #74acdf 66% 100%);
}

.invoice-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4c542;
  transform: translate(-50%, -50%);
}

.sheet-logo {
  background:
    linear-gradient(180deg, #f4c430 0 33%, #17408b 33% 66%, #c82333 66% 100%);
}

.sheet-logo::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    -7px -1px 0 #ffffff,
    7px -1px 0 #ffffff,
    -4px 5px 0 #ffffff,
    4px 5px 0 #ffffff;
  transform: translate(-50%, -50%);
}

.invoice-card p,
.vendor-sheet p {
  margin: 0 0 9px;
  color: #7c8580;
  text-align: center;
  font-size: 11px;
}

.invoice-card h4,
.vendor-sheet h4 {
  margin: 0 0 18px;
  text-align: center;
  color: #25312e;
  font-size: 13px;
}

.invoice-line {
  height: 7px;
  width: 68%;
  margin: 9px auto;
  border-radius: 99px;
  background: #ede9e2;
}

.invoice-line.wide {
  width: 100%;
}

.invoice-line.short {
  width: 46%;
}

.invoice-card button,
.vendor-sheet button {
  width: 100%;
  min-height: 32px;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  background: #26332f;
  color: #fff;
  font-size: 11px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(980px, 100%);
  margin: 28px auto 0;
}

.feature-grid article {
  min-height: 138px;
}

.feature-grid h3 {
  margin: 0 0 8px;
  color: #26332f;
  font-size: 15px;
  line-height: 1.24;
}

.feature-grid p {
  margin: 0 0 14px;
  color: #6d7772;
  font-size: 12px;
  line-height: 1.45;
}

.feature-grid a {
  color: var(--green-dark);
  font-size: 11px;
}

.vendor-sheet {
  width: min(240px, 78%);
}

.vendor-sheet ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.vendor-sheet li {
  min-height: 28px;
  border: 1px solid #e4ded4;
  border-radius: 6px;
  padding: 7px 10px;
  color: #68736f;
  font-size: 11px;
}

.platform-section {
  padding: 82px 24px 90px;
  background: var(--night);
  color: #f5f6f2;
}

.section-heading.dark {
  margin-bottom: 36px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.platform-card {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 48%),
    var(--night-2);
  padding: 24px;
  overflow: hidden;
}

.platform-card:hover .mock-window,
.platform-card:hover .ledger-mock,
.platform-card:hover .approval-mock,
.platform-card:hover .flow-card {
  transform: translateY(-2px);
}

.platform-visual {
  position: relative;
  display: grid;
  min-height: 184px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid #d8d1c4;
  border-radius: 6px;
  background:
    linear-gradient(rgba(78, 88, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 88, 82, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f9f6ee, #ebe4d7);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  color: #5f6b66;
  overflow: hidden;
}

.platform-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid rgba(21, 98, 71, 0.18);
}

.mock-window,
.ledger-mock,
.approval-mock {
  position: relative;
  z-index: 1;
  width: min(330px, 100%);
  border: 1px solid #d7cfbf;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(35, 45, 41, 0.1);
  transition: transform 180ms ease;
}

.banking-mock {
  padding: 14px;
}

.mock-header,
.ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5dfd4;
  color: #5c6863;
  font-size: 11px;
}

.mock-header span:last-child,
.ledger-head span:last-child {
  color: var(--green-dark);
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #ece7df;
  color: #283530;
  font-size: 12px;
}

.account-row.main {
  color: #121c19;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 8px;
  height: 42px;
  margin-top: 14px;
}

.mini-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: rgba(21, 98, 71, 0.18);
}

.mini-chart span:nth-child(1) {
  height: 36%;
}

.mini-chart span:nth-child(2) {
  height: 62%;
}

.mini-chart span:nth-child(3) {
  height: 48%;
}

.mini-chart span:nth-child(4) {
  height: 78%;
  background: rgba(186, 143, 54, 0.28);
}

.platform-visual.invoice {
  grid-template-columns: minmax(74px, 1fr) 28px minmax(74px, 1fr) 28px minmax(74px, 1fr);
  gap: 0;
  padding: 22px;
}

.flow-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 86px;
  width: 100%;
  border: 1px solid #d7cfbf;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
  color: #26332f;
  text-align: center;
  font-size: 11px;
  box-shadow: 0 14px 30px rgba(35, 45, 41, 0.08);
  transition: transform 180ms ease;
}

.flow-card span:last-child {
  color: #7a847f;
}

.flow-card.active {
  border-color: rgba(21, 98, 71, 0.35);
  background: #ffffff;
}

.flow-card.active span:last-child {
  color: var(--green-dark);
}

.flow-line {
  position: relative;
  z-index: 0;
  height: 1px;
  background: #cfc6b7;
}

.flow-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #c2b8a8;
  border-right: 1px solid #c2b8a8;
  transform: rotate(45deg);
}

.ledger-mock {
  padding: 14px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ece7df;
  color: #283530;
  font-size: 11px;
}

.ledger-row span:first-child {
  color: #7a847f;
}

.recon-line {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.6fr;
  gap: 8px;
  margin-top: 14px;
}

.recon-line span {
  height: 7px;
  border-radius: 999px;
  background: #e2ddd4;
}

.recon-line span:nth-child(2) {
  background: rgba(21, 98, 71, 0.18);
}

.approval-mock {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.approval-row,
.policy-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border: 1px solid #ddd7cd;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0 11px;
  color: #283530;
  font-size: 11px;
}

.approval-row span:last-child,
.policy-strip span:last-child {
  color: #7a847f;
  text-align: right;
}

.approval-row.approved {
  border-color: rgba(21, 98, 71, 0.28);
}

.approval-row.approved span:last-child {
  color: var(--green-dark);
}

.policy-strip {
  margin-top: 2px;
  border-style: dashed;
  background: transparent;
}

.platform-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
}

.platform-card p {
  width: min(340px, 100%);
  margin: 0;
  color: #aeb8b4;
  font-size: 14px;
}

.faq-section {
  padding-top: 78px;
  background: var(--night);
  color: #f5f6f2;
}

.faq-section h2 {
  margin-bottom: 36px;
  text-align: center;
}

.faq-list {
  border-top: 1px solid var(--line-dark);
}

details {
  border-bottom: 1px solid var(--line-dark);
}

summary {
  position: relative;
  min-height: 56px;
  padding: 20px 38px 18px 0;
  cursor: pointer;
  color: #f1f4ef;
  font-size: 14px;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 17px;
  color: #8c9893;
  font-size: 20px;
}

details[open] summary::after {
  content: "-";
}

details p {
  max-width: 660px;
  margin: 0;
  padding: 0 0 22px;
  color: #aeb8b4;
  font-size: 13px;
}

.cta-section {
  padding: 88px 24px 90px;
  text-align: center;
  color: #f5f6f2;
  background: #1b2321;
}

.cta-section p {
  width: min(540px, 100%);
  margin: 14px auto 24px;
  color: #aeb8b4;
  font-size: 14px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 42px 24px 46px;
  background: var(--night);
  color: #d8dedb;
}

.legal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 30px;
  width: min(980px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line-dark);
  padding-top: 30px;
}

.legal p {
  margin: 0;
  color: #899490;
  font-size: 10px;
  line-height: 1.65;
}

.legal-brand {
  color: #d3dad6;
}

.legal-body {
  display: grid;
  gap: 12px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links a {
  color: #d3dad6;
  font-size: 10px;
  line-height: 1.5;
  border-bottom: 1px solid transparent;
}

.legal-links a:hover {
  border-color: rgba(211, 218, 214, 0.48);
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(38, 51, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 51, 47, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f8f7f2 0%, #efeae0 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

.auth-main {
  min-height: calc(100vh - 177px);
  padding: 126px 24px 58px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 0.72fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: center;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.account-shell {
  grid-template-columns: minmax(0, 0.78fr) minmax(460px, 0.9fr);
  align-items: start;
}

.auth-copy {
  width: min(560px, 100%);
}

.auth-copy h1 {
  margin: 0;
  color: #17201e;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1;
}

.auth-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: #596560;
  font-size: 18px;
  line-height: 1.5;
}

.auth-card {
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #e5dfd4;
  color: #4a5753;
  font-size: 12px;
}

.auth-card-header span:last-child {
  color: var(--green-dark);
}

.auth-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: #53605b;
  font-size: 12px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d4cec3;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #1b2724;
  outline: 0;
}

.field-group input,
.field-group select {
  height: 44px;
  padding: 0 12px;
}

.field-group textarea {
  resize: vertical;
  min-height: 104px;
  padding: 12px;
  line-height: 1.45;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: rgba(21, 98, 71, 0.7);
  box-shadow: 0 0 0 3px rgba(21, 98, 71, 0.1);
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"],
.field-group textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(166, 66, 52, 0.1);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #66706d;
  font-size: 12px;
}

.form-row a {
  color: var(--green-dark);
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #66706d;
  font-size: 12px;
}

.check-row input {
  width: 14px;
  height: 14px;
  accent-color: var(--green);
}

.consent-row {
  align-items: flex-start;
  line-height: 1.4;
}

.auth-submit {
  width: 100%;
  border-radius: 6px;
}

.auth-note {
  min-height: 18px;
  margin: -4px 0 0;
}

.security-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 24px;
  border-top: 1px solid #e5dfd4;
  color: #6b766f;
  font-size: 11px;
}

.onboarding-list {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin-top: 32px;
}

.onboarding-list div {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.onboarding-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(21, 98, 71, 0.22);
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 12px;
}

.onboarding-list p {
  margin: 0;
  color: #596560;
  font-size: 14px;
}

.auth-footer {
  border-top: 1px solid var(--line-dark);
}

.legal-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(38, 51, 47, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 51, 47, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #f8f7f2 0%, #efebe2 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
}

.legal-main {
  padding: 126px 24px 78px;
}

.legal-document {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 90px);
  align-items: start;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.legal-summary {
  position: sticky;
  top: 98px;
}

.legal-summary h1 {
  margin: 0;
  color: #17201e;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.legal-summary p:not(.eyebrow) {
  margin: 22px 0 24px;
  color: #596560;
  font-size: 17px;
  line-height: 1.55;
}

.legal-sections {
  display: grid;
  gap: 26px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.legal-block {
  border-bottom: 1px solid var(--line);
  padding: 24px 0 26px;
}

.legal-block h2,
.legal-contact h2 {
  margin: 0 0 12px;
  color: #1f2a27;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.16;
}

.legal-block p,
.legal-contact p {
  margin: 0;
  color: #606b66;
  font-size: 14px;
  line-height: 1.68;
}

.legal-contact {
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  padding: 24px;
}

.legal-contact a {
  color: var(--green-dark);
  border-bottom: 1px solid rgba(21, 98, 71, 0.28);
}

.recovery-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.recovery-dialog::backdrop {
  background: rgba(13, 20, 18, 0.58);
  backdrop-filter: blur(4px);
}

.modal-panel {
  border: 1px solid #d7d1c4;
  border-radius: var(--radius);
  background: #fbfaf7;
  box-shadow: 0 28px 70px rgba(13, 20, 18, 0.2);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e5dfd4;
}

.modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 12px;
}

.modal-header h2 {
  margin: 0;
  color: #17201e;
  font-size: 28px;
  line-height: 1.12;
}

.modal-close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #d7d1c4;
  border-radius: 50%;
  background: #ffffff;
  color: #4d5a55;
  cursor: pointer;
}

.modal-copy {
  margin: 0;
  padding: 18px 24px 0;
  color: #596560;
  font-size: 14px;
  line-height: 1.5;
}

.recovery-form {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-shell,
  .payment-visual,
  .workflow-grid.top,
  .workflow-grid.bottom,
  .feature-grid,
  .platform-grid,
  .legal {
    grid-template-columns: 1fr;
  }

  .hero-content {
    width: 100%;
    text-align: left;
  }

  .hero-form {
    grid-template-columns: 1fr;
  }

  .feature-intro,
  .feature-intro.right {
    width: 100%;
    justify-self: start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 0;
  }

  .stats-grid div:nth-child(2) {
    border-right: 0;
  }

  .workflow-grid.bottom {
    margin-top: 44px;
  }

  .legal {
    gap: 14px;
  }

  .auth-main {
    padding-top: 106px;
  }

  .legal-main {
    padding-top: 106px;
  }

  .legal-document {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .auth-shell,
  .account-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 58px;
    padding: 0 14px;
  }

  .brand-logo {
    width: 118px;
    max-width: 36vw;
  }

  .login-link {
    display: none;
  }

  .primary-button.small {
    min-height: 32px;
    padding: 0 12px;
  }

  .hero {
    padding: 94px 16px 34px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .compliance-strip {
    margin-top: 28px;
  }

  .global-section,
  .workflow-section,
  .platform-section,
  .faq-section,
  .cta-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .payment-visual {
    width: 100%;
    min-height: 410px;
    padding: 28px;
  }

  .payment-visual::before {
    left: 28px;
    right: 28px;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .sender,
  .receipt {
    transform: none;
  }

  .platform-visual.invoice {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 28px;
  }

  .flow-card {
    min-height: 62px;
  }

  .flow-line {
    width: 1px;
    height: 18px;
    justify-self: center;
  }

  .flow-line::after {
    right: -3px;
    top: auto;
    bottom: -1px;
    transform: rotate(135deg);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-grid div:last-child {
    border-bottom: 0;
  }

  .invoice-visual,
  .vendor-visual {
    min-height: 350px;
  }

  .platform-card {
    min-height: 348px;
  }

  .auth-main {
    padding: 94px 16px 44px;
  }

  .legal-main {
    padding: 94px 16px 46px;
  }

  .auth-copy h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .legal-summary h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .auth-copy p {
    font-size: 16px;
  }

  .field-grid,
  .form-row,
  .security-note {
    grid-template-columns: 1fr;
  }

  .form-row,
  .security-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-form {
    padding: 20px;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}
