:root {
  --paper: #f6f7f4;
  --ink: #172420;
  --ink-soft: #46554e;
  --rule: #cfd8d2;
  --green: #1f7a4d;
  --green-deep: #15573a;
  --mint: #e3efe7;
  --receipt: #fffdf6;
  --max: 1120px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-stretch: 92%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: var(--green-deep); }
ul { padding-left: 1.2em; }

.btn {
  display: inline-block;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--mint); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header */
.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.site-nav { display: flex; gap: 1.6rem; align-items: center; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta { color: #fff; background: var(--ink); padding: .55rem 1rem; border-radius: 6px; }
.menu-toggle { display: none; font: inherit; background: none; border: 1.5px solid var(--ink); border-radius: 6px; padding: .45rem .9rem; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: #fff; }
.mobile-nav a { padding: .9rem 1.25rem; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--rule); }
.mobile-nav.open { display: flex; }

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 54ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--ink-soft); font-size: .95rem; }
.hero-proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: .5rem; vertical-align: middle; }

/* The receipt: the one bold element */
.receipt {
  background: var(--receipt);
  color: #1b1b1b;
  font-family: "Archivo", monospace;
  font-stretch: 85%;
  padding: 1.5rem 1.4rem 1.2rem;
  max-width: 360px;
  justify-self: end;
  width: 100%;
  box-shadow: 0 18px 40px rgba(23, 36, 32, .14);
  position: relative;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) 0 100% / 18px 12px repeat-x;
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding-bottom: 1.8rem;
}
.receipt-head { display: flex; justify-content: space-between; font-weight: 800; border-bottom: 1.5px dashed #999; padding-bottom: .6rem; margin-bottom: .6rem; }
.receipt-line { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .98rem; }
.receipt-line span:first-child { color: #555; }
.receipt-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.35rem; border-top: 1.5px dashed #999; margin-top: .6rem; padding-top: .7rem; color: var(--green-deep); }
.receipt-note { font-size: .78rem; color: #777; margin: 1rem 0 0; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 4rem 1.25rem; border-top: 1px solid var(--rule); }

.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.industry-grid article { border-top: 3px solid var(--green); padding-top: 1rem; }
.industry-grid p { font-size: .98rem; color: var(--ink-soft); }

.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.service-cols article { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.6rem; }
.service-cols p { color: var(--ink-soft); font-size: .98rem; }
.service-cols ul { margin: 0; color: var(--ink); font-size: .95rem; }
.service-cols li { margin-bottom: .35rem; }

.placement { background: var(--ink); color: var(--paper); max-width: none; border: 0; }
.placement > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.placement-intro p { color: #b8c6be; font-size: 1.1rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 1px solid #3a4a43; padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2rem; font-weight: 800; color: #7fd1a3; margin-bottom: .4rem; }
.steps h3 { color: #fff; }
.steps p { color: #b8c6be; font-size: .98rem; }

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; }
.facts { margin: 0; display: grid; gap: 1.2rem; align-content: start; }
.facts div { border-left: 3px solid var(--green); padding-left: 1rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: .2rem 0 0; color: var(--ink-soft); }

/* Quote form */
.quote { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; background: var(--mint); max-width: none; }
.quote > * { max-width: 540px; }
.quote-copy { margin-left: auto; width: 100%; }
.quote-copy p { color: var(--ink-soft); }
.contact-alt { font-size: .98rem; }
.quote-form { width: 100%; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: 600; font-size: .92rem; }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: .7rem .8rem; border: 1.5px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(31, 122, 77, .2); }
.field.invalid input, .field.invalid select { border-color: #b4322f; }
.form-status { margin: 1rem 0 0; font-weight: 600; color: var(--green-deep); }
.form-status.error { color: #b4322f; }

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.site-footer strong { color: var(--ink); font-size: 1.15rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1.2rem; font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .about, .quote, .site-footer { grid-template-columns: 1fr; }
  .receipt { justify-self: start; }
  .industry-grid, .steps { grid-template-columns: 1fr 1fr; }
  .service-cols { grid-template-columns: 1fr; }
  .quote > * { max-width: none; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .industry-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding-top: 2rem; }
}
/* Brand update: Cashworx logo (black / gold / silver) */
:root {
  --green: #c9971c;
  --green-deep: #9a7212;
  --mint: #f7f1e1;
}
.site-header { background: #000; max-width: none; padding: .9rem 1.25rem; }
.site-header > * { max-width: var(--max); }
.brand .logo { height: 60px; width: auto; display: block; }
.site-nav a { color: #d6d6d6; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { background: var(--green); color: #111; }
.site-nav .nav-cta:hover { background: #e2b52b; }
.menu-toggle { color: #fff; border-color: #fff; }
.btn-primary { color: #111; }
.btn-primary:hover { color: #fff; }
.receipt-total { color: var(--green-deep); }
.steps li::before { color: #e2b52b; }
.site-footer { background: #000; color: #bdbdbd; max-width: none; }
.site-footer > * { max-width: var(--max); }
.site-footer strong, .site-footer a { color: #fff; }
.logo-footer { height: 70px; width: auto; display: block; margin-bottom: .8rem; }
.legal { border-top-color: #333; }
@media (max-width: 640px) {
  .brand .logo { height: 48px; }
}
/* Shop */
.card-cta { margin-top: 1rem; }
.cart-button { font: inherit; font-weight: 500; color: #d6d6d6; background: none; border: 1.5px solid #555; border-radius: 6px; padding: .45rem .8rem; cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.cart-button:hover { color: #fff; border-color: #fff; }
.cart-count { background: var(--green); color: #111; border-radius: 999px; min-width: 1.4em; padding: 0 .4em; font-size: .8rem; font-weight: 700; text-align: center; }
.mobile-tools { display: none; gap: .6rem; align-items: center; }
.shop-hero { max-width: var(--max); margin: 0 auto; padding: 3rem 1.25rem 1rem; }
.shop { border-top: 0; padding-top: 1rem; }
.shop-status { color: var(--ink-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.product-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.product-card h3 { margin: .4rem 0 0; }
.product-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: #111; border-radius: 6px; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #8a8a8a; font-weight: 700; font-stretch: 85%; text-align: center; padding: 1rem; }
.ribbon { position: absolute; top: .75rem; left: .75rem; background: var(--green); color: #111; font-weight: 700; font-size: .78rem; padding: .25rem .6rem; border-radius: 4px; }
.product-price { display: flex; gap: .6rem; align-items: baseline; font-size: 1.3rem; }
.product-price s { color: var(--ink-soft); font-size: 1rem; }
.shop-notes { padding-top: 3rem; }
.shop-alt { margin-top: 2rem; color: var(--ink-soft); }
.cart-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
.cart-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 50; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, .2); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--rule); }
.cart-head h2 { margin: 0; font-size: 1.3rem; }
.cart-close { font: inherit; background: none; border: 1.5px solid var(--ink); border-radius: 6px; padding: .35rem .8rem; cursor: pointer; }
.cart-lines { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.cart-empty { color: var(--ink-soft); }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--rule); }
.cart-line img, .line-thumb-placeholder { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #111; }
.line-body { display: flex; flex-direction: column; gap: .3rem; font-size: .95rem; }
.line-body span { color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.qty button { font: inherit; width: 30px; height: 30px; border: 1.5px solid var(--rule); background: #fff; border-radius: 6px; cursor: pointer; }
.qty .line-remove { width: auto; border: 0; color: var(--ink-soft); text-decoration: underline; margin-left: auto; }
.cart-foot { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--rule); }
.cart-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.15rem; }
.cart-note { font-size: .85rem; color: var(--ink-soft); margin: .4rem 0 .9rem; }
.cart-checkout { width: 100%; }
body.cart-open { overflow: hidden; }
.cart-panel[hidden], .cart-backdrop[hidden] { display: none !important; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .product-grid { grid-template-columns: 1fr; } .mobile-tools { display: flex; } }
/* Address autocomplete */
.address-wrap { position: relative; }
.address-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem 0; list-style: none; background: #fff; border: 1.5px solid var(--rule); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); z-index: 20; max-height: 280px; overflow-y: auto; }
.address-list li { padding: .55rem .8rem; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.address-list li span { font-size: .85rem; color: var(--ink-soft); }
.address-list li:hover, .address-list li.active { background: var(--mint); }
/* Selling points */
.why-intro p { font-size: 1.1rem; color: var(--ink-soft); }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.why-stats div { border-left: 3px solid var(--green); padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.why-stats strong { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-stretch: 90%; }
.why-stats span { color: var(--ink-soft); font-size: .98rem; }
.difference { background: #000; color: var(--paper); max-width: none; border: 0; }
.difference > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.diff-grid article { background: #121212; border: 1px solid #262626; border-radius: 8px; padding: 1.6rem; border-top: 3px solid var(--green); }
.diff-grid h3 { color: #fff; }
.diff-grid p { color: #bdbdbd; font-size: .98rem; margin: 0; }
.diff-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2.5rem; }
.difference .btn-ghost { color: #fff; border-color: #fff; }
.difference .btn-ghost:hover { background: #222; }
@media (max-width: 900px) { .diff-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-stats, .diff-grid { grid-template-columns: 1fr; } }