/* GreenPOS ad landing page. Palette from the greenpos.io marketing theme
   (client/src/index.css, .mkt). System fonts only: no external requests. */
:root {
  --paper: #f7f4ee;
  --card: #fbf9f5;
  --ink: #14201a;
  --muted: #4f5a54;
  --forest: #1f4d3a;
  --forest-dark: #173b2c;
  --sage: #92b9a0;
  --brass: #7a5c2e;
  --hairline: #e4ded3;
  --tint: #efe9df;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
/* A sentence in a heading: the heading breaks between sentences first. */
.line { display: inline-block; }
.skip-link {
  position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.75rem 1rem; border-radius: 4px;
  background: var(--forest); color: #f7f4ee; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1rem;
}
.lead { font-size: 1.125rem; color: var(--muted); max-width: 40rem; }
@media (min-width: 768px) { .lead { font-size: 1.25rem; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem; border-radius: 4px;
  background: var(--forest); color: #f7f4ee; text-decoration: none; font-weight: 600;
  font-size: 1rem; line-height: 1.3; text-align: center; text-wrap: balance; border: 1px solid var(--forest);
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--forest-dark); }
.btn-block { width: 100%; }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-light { background: #f7f4ee; color: var(--forest); border-color: #f7f4ee; }
.btn-light:hover { background: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.01em; }

/* Hero */
.hero { padding: 2.5rem 0 3rem; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0 5rem; } }
.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 3.5rem; } }
.hero h1 { margin-bottom: 1.25rem; }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.6rem; }
.hero-points li { display: flex; gap: 0.6rem; align-items: baseline; }
.tick { flex: none; width: 1.1rem; height: 1.1rem; color: var(--forest); transform: translateY(0.18rem); }

/* Offer card */
.offer {
  background: var(--card); border: 1px solid var(--hairline); border-top: 4px solid var(--forest);
  border-radius: 6px; padding: 1.5rem;
}
@media (min-width: 640px) { .offer { padding: 2rem; } }
.offer-tag {
  display: inline-block; background: var(--forest); color: #f7f4ee; font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.6rem; border-radius: 3px; margin-bottom: 1rem;
}
.offer-plan { font-weight: 600; font-size: 1rem; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; margin: 0.4rem 0 0.25rem; }
.price { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--forest); }
.price small { font-family: var(--sans); font-size: 1rem; color: var(--muted); }
.was { color: var(--muted); }
.was s { text-decoration-thickness: 2px; }
.for-life { font-weight: 600; color: var(--ink); }
.savings { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.25rem 0; }
.saving { background: var(--tint); border-radius: 4px; padding: 0.75rem; }
.saving strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; color: var(--forest); line-height: 1.1; }
.saving span { display: block; font-size: 0.875rem; color: var(--muted); }
/* Phones: both labels fit on one line, so the two tiles read the same. */
@media (max-width: 479px) {
  .saving { padding: 0.75rem 0.6rem; }
  .saving span { font-size: 0.8125rem; }
}
.offer-includes { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.45rem; font-size: 0.9375rem; }
.offer-includes li { display: flex; gap: 0.5rem; align-items: baseline; }
.fineprint { font-size: 0.8125rem; color: var(--muted); margin-top: 0.9rem; }

/* Proof strip */
.strip { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--card); }
.strip ul { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (min-width: 768px) { .strip ul { grid-template-columns: repeat(4, 1fr); } }
.strip li { font-size: 0.9375rem; color: var(--muted); }
.strip strong { display: block; color: var(--ink); font-size: 1rem; }

/* Sections */
.section { padding: 3.5rem 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .section-head { grid-template-columns: 1fr 2fr; gap: 2rem; } }
.section-head .lead { margin-top: 1rem; }

.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.feature-list > li { display: grid; gap: 0.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 768px) { .feature-list > li { grid-template-columns: 1fr 2fr; gap: 2rem; } }
.feature-list h3 { font-size: 1.2rem; }
.feature-list p { color: var(--muted); }

.cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 6px; padding: 1.5rem; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.9375rem; }
.num { font-family: var(--serif); color: var(--brass); font-size: 1.5rem; display: block; margin-bottom: 0.5rem; }

/* Value stack */
.stack-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .stack-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
  /* The price box comes first in the page (phones see it before the list);
     on wide screens it sits to the right of the list. */
  .stack-grid > .stack { grid-column: 1; grid-row: 1; }
  .stack-grid > .offer { grid-column: 2; grid-row: 1; }
}
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem 2rem; }
@media (min-width: 640px) { .stack { grid-template-columns: 1fr 1fr; } }
.stack li { display: flex; gap: 0.6rem; align-items: baseline; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--hairline); font-size: 0.9375rem; }
.compare td:last-child, .compare th:last-child { text-align: right; white-space: nowrap; }
.compare tr:last-child td { border-bottom: 0; }
.compare .total td { font-weight: 600; color: var(--forest); background: var(--tint); }
.compare caption { text-align: left; font-weight: 600; padding-bottom: 0.6rem; }

/* Final CTA */
.cta-band { background: var(--forest); color: #f7f4ee; padding: 3.5rem 0; }
@media (min-width: 768px) { .cta-band { padding: 4.5rem 0; } }
.cta-band h2 { color: #f7f4ee; }
.cta-band p { color: #d9e4dc; }
.cta-band .fineprint { color: #c3d3c8; }
.cta-inner { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .cta-inner { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 3rem; } }

/* Footer */
.site-footer { padding: 2.5rem 0; font-size: 0.875rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer address { font-style: normal; }
@media (max-width: 767px) {
  .site-footer nav { align-items: center; gap: 0 1.25rem; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}

/* Legal pages */
.legal { padding: 2.5rem 0 4rem; }
.legal .wrap { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 0.5rem; }
.legal h2 { font-size: 1.4rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 0.75rem; }
.legal ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.legal li + li { margin-top: 0.35rem; }
.updated { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Variant heroes */
.hero-offer { margin-top: 1.75rem; }
.hero-cta { margin: 1.75rem 0 0; }
.card-title { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 1rem; }
.stack-card .stack { font-size: 0.9375rem; gap: 0.5rem 1.5rem; }
/* Beside the hero copy the card is narrow: one column, so items don't wrap raggedly. */
@media (min-width: 960px) { .stack-card .stack { grid-template-columns: 1fr; } }
.checks-card .hero-points { margin-top: 0; gap: 0.9rem; }
.checks-card .hero-points span { color: var(--muted); }
.checks-card .hero-points strong { color: var(--ink); }
.offer-section { background: var(--card); }
.offer-section .offer { background: var(--paper); }

/* Demo request form */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.demo-section { background: var(--card); }
/* "Book a demo" lands on the form itself. On wide screens the form sits beside
   the intro copy, so leave the section's top padding in view. */
#demo { scroll-margin-top: 1rem; }
@media (min-width: 960px) { #demo { scroll-margin-top: 5rem; } }
.demo-grid { display: grid; gap: 2rem; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; } }
.demo-grid .lead { margin-top: 1rem; }
.form-card { background: var(--paper); border: 1px solid var(--hairline); border-top: 4px solid var(--forest); border-radius: 6px; padding: 1.25rem; }
@media (min-width: 640px) { .form-card { padding: 2rem; } }
.demo-form { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid #c9c1b3; border-radius: 4px; padding: 0.65rem 0.75rem; min-height: 3rem;
}
.field input, .field select { height: 3rem; }
.field textarea { resize: vertical; min-height: 6rem; }
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer; line-height: 1.4; padding-right: 2.5rem;
  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 1.5l5 5 5-5' fill='none' stroke='%235b6257' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px;
}
.field select:invalid, .field select.is-empty { color: var(--muted); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--forest); outline-offset: 1px; border-color: var(--forest); }
.field [aria-invalid="true"] { border-color: #a12a1f; }
.field-error { color: #a12a1f; font-size: 0.875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9375rem; padding: 0.75rem; border-radius: 4px; background: var(--tint); }
.form-status.is-error { background: #fbeae7; color: #8a2219; border: 1px solid #efc4bd; }
.privacy-note { font-size: 0.8125rem; color: var(--muted); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.form-success { padding: 1rem 0; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--forest); }
.form-success p { color: var(--muted); }
.form-success:focus { outline: none; }

[hidden] { display: none !important; }
