:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --surface: #fffdf7;
  --ink: #17332b;
  --muted: #4e5f57;
  --rule: #d9d9cb;
  --brand: #16483a;
  --brand-hover: #10372b;
  --accent: #89611e;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.wrap {
  width: min(1184px, calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 16px;
  padding: 8px 14px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(217, 217, 203, .8);
  background: rgba(247, 245, 238, .93);
  backdrop-filter: blur(12px);
}

.nav, .navlinks, .brand, .actions {
  display: flex;
  align-items: center;
}

.nav {
  min-height: 77px;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
  text-decoration: none;
}

.brand img { border-radius: 7px; }

.navlinks { gap: clamp(16px, 2.4vw, 34px); }

.navlinks > a:not(.button) {
  padding-block: 10px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.navlinks > a:hover, .site-footer a:hover { text-decoration: underline; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  background: var(--brand);
  color: #fff;
  font-size: .88rem;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: var(--brand-hover); }

.button-outline {
  border-color: #a5b2a7;
  background: transparent;
  color: var(--brand);
}

.button-outline:hover { background: #e9ede3; }

.flash-offer { position: relative; isolation: isolate; min-height: 92px; overflow: hidden; background: #102f29; color: #fff; }
.flash-offer > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .42; }
.flash-offer::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9,31,26,.96), rgba(18,62,49,.88), rgba(9,31,26,.72)); }
.flash-offer__content { display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto auto; align-items: center; gap: 16px; min-height: 92px; padding-block: 13px; }
.flash-offer__spark { display: inline-flex; align-items: center; gap: 5px; color: #f8d380; font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; animation: offerPulse 1.8s ease-in-out infinite; }
.flash-offer__content strong { display: block; font-size: 1rem; }
.flash-offer__content p { margin: 2px 0 0; color: rgba(255,255,255,.8); font-size: .78rem; }
.flash-offer__discount { padding: 7px 10px; border-radius: 999px; background: #f8d380; color: #392804; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.flash-offer__code { font-size: .77rem; white-space: nowrap; }
.flash-offer__code b { margin-left: 3px; padding: 4px 7px; border: 1px dashed rgba(255,255,255,.75); border-radius: 4px; letter-spacing: .08em; }
.flash-offer__action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 11px; border-radius: 7px; background: #fff; color: #17332b; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.flash-offer__action:hover { background: #edf3eb; }
@keyframes offerPulse { 50% { transform: scale(1.035); filter: brightness(1.13); } }

.hero {
  padding: clamp(48px, 7vw, 105px) 0;
  background:
    radial-gradient(ellipse at 95% 60%, #e7ebde, transparent 63%),
    linear-gradient(135deg, #f7f5ee 0%, #fbfaf4 55%, #f0f2e8 100%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  align-items: center;
  gap: clamp(28px, 5.5vw, 84px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.027em;
}

h1 {
  margin-top: 14px;
  font-size: clamp(3.2rem, 6.35vw, 5.5rem);
  line-height: .97;
}

h1 em { display: block; }
h1 em, h2 em { color: #35604e; }

.hero-description {
  max-width: 43ch;
  margin-top: 23px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.17rem);
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: .8rem;
  list-style: none;
}

.hero-points li { display: inline-flex; align-items: center; gap: 5px; }
.hero-points i { color: #2c7a5d; font-size: .92rem; }

.invoice-preview {
  transform: rotate(1.2deg);
  transition: transform .2s ease, box-shadow .2s ease;
}

.invoice-preview:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 0 24px 46px -27px #1a362ac0;
}

.invoice-preview {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd3c4;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 40px -27px #1a362ac0;
}

.invoice-preview > img {
  display: block;
  width: 100%;
  height: clamp(220px, 29vw, 330px);
  object-fit: cover;
  object-position: center;
}

.invoice-paper { padding: clamp(14px, 3vw, 28px); }

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
}

.preview-heading i { margin-right: 5px; color: var(--accent); }
.preview-heading small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e3f1e8;
  color: #216044;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.invoice-paper table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.invoice-paper th, .invoice-paper td {
  padding: 8px 5px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.invoice-paper thead th {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
}

.invoice-paper tr > :last-child { text-align: right; }
.invoice-paper tfoot th { font-weight: 500; }
.invoice-paper .invoice-total > * { border: 0; font-weight: 700; }

.section { padding-block: clamp(48px, 7vw, 91px); }
.demo-section { border-bottom: 1px solid var(--rule); background: linear-gradient(115deg, #fffdf7, #edf3eb); }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.demo-links { display: grid; gap: 12px; }
.demo-link { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid #c9d7ca; border-radius: 13px; background: #fffdf7; box-shadow: 0 12px 27px -24px rgba(23, 51, 43, .8); color: var(--ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.demo-link:hover { transform: translateY(-2px); border-color: #71937a; box-shadow: 0 18px 31px -22px rgba(23, 51, 43, .7); }
.demo-link__icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.08rem; }
.demo-link strong, .demo-link small { display: block; }
.demo-link strong { font-size: .94rem; }
.demo-link small { margin-top: 2px; color: var(--muted); font-size: .78rem; }
.demo-link > i { color: var(--accent); }
h2 { font-size: clamp(2.65rem, 4.8vw, 4.2rem); line-height: 1.02; }
h3 { font-size: 1rem; font-weight: 700; }
.section-intro { max-width: 60ch; margin-top: 13px; color: var(--muted); font-size: 1rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 29px;
  overflow: hidden;
  gap: 1px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--rule);
}

.feature {
  padding: clamp(21px, 3vw, 36px);
  background: var(--surface);
  transition: background .16s ease, transform .16s ease;
}

.feature:hover { background: #fff; transform: translateY(-2px); }

.feature i {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 9px;
  background: #eef3e9;
  color: var(--accent);
  font-size: 1.08rem;
}
.feature p, .steps p, .faq p { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.capability-intro { max-width: 760px; margin: clamp(44px, 7vw, 78px) auto 24px; text-align: center; }
.capability-intro .eyebrow { justify-content: center; }
.capability-intro h3 { margin-top: 11px; font: 400 clamp(1.8rem, 3.4vw, 2.65rem)/1.1 var(--display); }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.capability-card { padding: clamp(21px, 3vw, 31px); border: 1px solid #d6dfd4; border-radius: 13px; background: #fffdf7; box-shadow: 0 14px 31px -29px rgba(23, 51, 43, .72); }
.capability-card > i { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 10px; background: #edf3eb; color: var(--accent); font-size: 1.12rem; }
.capability-card h3 { margin-top: 15px; font-size: 1.03rem; }
.capability-card ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; color: var(--muted); font-size: .88rem; list-style: none; }
.capability-card li { position: relative; padding-left: 17px; }
.capability-card li::before { content: ""; position: absolute; top: .52em; left: 1px; width: 7px; height: 7px; border-radius: 50%; background: #4d8769; }

.setup-section { border-block: 1px solid var(--rule); background: #edf0e5; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: start;
  gap: clamp(22px, 7vw, 96px);
}

.split h2 em { display: block; }

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
}

.steps li:first-child { padding-top: 0; }

.steps li::before {
  content: counter(step);
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b8c4b5;
  border-radius: 50%;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 700;
}

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }

.faq summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 4px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 650;
  list-style: none;
}

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

.faq summary::after { content: "+" / ""; color: var(--accent); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−" / ""; }
.faq p { margin: 0 4px 16px; }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 5vw, 55px);
  border-radius: 12px;
  background: var(--brand-hover);
  color: #fffdf7;
}

.cta h2 { font-size: clamp(2.4rem, 4.35vw, 3.8rem); }
.button-light { flex-shrink: 0; background: #e9d7a7; color: var(--ink); }
.button-light:hover { background: #f4e7c7; }
.cta :focus-visible { outline-color: #e9d7a7; }

.site-footer {
  margin-top: clamp(42px, 7vw, 86px);
  border-top: 1px solid var(--rule);
  background: #edf0e5;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(125px, .36fr) minmax(125px, .36fr);
  gap: 18px 32px;
  padding-block: 30px 27px;
}

.footer-brand p {
  max-width: 35ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: .86rem;
}

.footer-grid nav { display: grid; justify-items: start; }
.footer-grid h2 {
  margin-bottom: 4px;
  font: 700 .88rem Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.footer-grid nav a, .footer-legal a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  font-size: .84rem;
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-block: 8px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .8rem;
}

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero-grid, .split, .demo-layout { grid-template-columns: 1fr; }
  .hero-copy, .invoice-preview { max-width: 570px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navlinks .nav-support { display: none; }
  .invoice-preview { transform: none; }
  .flash-offer__content { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px 14px; }
  .flash-offer__spark { grid-column: 1 / -1; }
  .flash-offer__code { display: none; }
}

@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 64px; gap: 8px; }
  .navlinks { gap: 10px; }
  .navlinks .section-link { display: none; }
  .navlinks .button { padding-inline: 9px; font-size: .77rem; }
  .navlinks > .nav-sign-in { font-size: .8rem; }
  .brand { gap: 6px; font-size: 1rem; }
  .brand img { width: 27px; height: 27px; }
  .feature-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .flash-offer__content { grid-template-columns: 1fr auto; min-height: 0; padding-block: 12px; }
  .flash-offer__discount { grid-column: 1; justify-self: start; }
  .flash-offer__action { grid-column: 2; grid-row: 2; }
  .hero-points { gap: 7px 12px; }
  .cta { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .footer-brand { grid-column: 1 / -1; }
}
