/* ===== Design tokens ===== */
/* Follows the device theme: light for light, dark for dark. */
:root {
  color-scheme: light;
  --bg: #FAF7F1;
  --bg-alt: #F1EADA;
  --surface: #FFFFFF;
  --text: #1C1B17;
  --text-muted: #5C574C;
  --border: #E6DCC6;
  --primary: #0B6E4F;
  --primary-dark: #08503A;
  --primary-tint: #E4F2EC;
  --accent: #C98A2C;
  --accent-tint: #FBF0DC;
  --fill: var(--primary);
  --fill-hover: var(--primary-dark);
  --frame: var(--text);
  --shadow: 0 1px 2px rgba(28,27,23,0.04), 0 8px 24px rgba(28,27,23,0.06);
  --radius: 14px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #14140F;
    --bg-alt: #1B1B14;
    --surface: #201F18;
    --text: #F3EEE1;
    --text-muted: #B7AF9C;
    --border: #33321F;
    --primary: #35C08A;
    --primary-dark: #26A374;
    --primary-tint: #16241D;
    --accent: #E7B45C;
    --accent-tint: #2A2213;
    /* Buttons and the CTA band stay the dark brand green: white text on the
       light green would be 2.3:1. The light green is for text and accents. */
    --fill: #0B6E4F;
    --fill-hover: #08503A;
    --frame: var(--text);
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14140F;
  --bg-alt: #1B1B14;
  --surface: #201F18;
  --text: #F3EEE1;
  --text-muted: #B7AF9C;
  --border: #33321F;
  --primary: #35C08A;
  --primary-dark: #26A374;
  --primary-tint: #16241D;
  --accent: #E7B45C;
  --accent-tint: #2A2213;
  --fill: #0B6E4F;
  --fill-hover: #08503A;
  --frame: var(--text);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
}
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 88px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--fill); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--fill-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--primary); }
.nav-cta {
  background: var(--fill); color: #fff !important; padding: 9px 18px; border-radius: 999px;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding-top: 88px; padding-bottom: 80px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 720px; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--primary); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

/* Phone mockup: a chat with the Proveam bot */
.hero-visual { display: flex; justify-content: center; }
.phone {
  --chat-wall: #EFEAE2; --chat-out: #D9FDD3; --chat-in: #FFFFFF; --chat-ink: #111B21;
  --chat-meta: #667781; --chat-head: #0B6E4F; --chat-tick: #53BDEB; --chat-bar: #F0F2F5; --chat-link: #027EB5;
  --phone-frame: #111;
  width: 300px; background: var(--phone-frame); border: 10px solid var(--phone-frame);
  border-radius: 40px; box-shadow: var(--shadow); overflow: hidden; position: relative;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone {
    --chat-wall: #0B141A; --chat-out: #005C4B; --chat-in: #202C33; --chat-ink: #E9EDEF;
    --chat-meta: #8696A0; --chat-head: #1F2C34; --chat-bar: #1F2C34; --chat-link: #53BDEB;
    --phone-frame: #2A2A2A;
  }
}
:root[data-theme="dark"] .phone {
  --chat-wall: #0B141A; --chat-out: #005C4B; --chat-in: #202C33; --chat-ink: #E9EDEF;
  --chat-meta: #8696A0; --chat-head: #1F2C34; --chat-bar: #1F2C34; --chat-link: #53BDEB;
  --phone-frame: #2A2A2A;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 96px; height: 20px; background: var(--phone-frame); border-radius: 0 0 14px 14px; z-index: 2;
}
.phone-screen {
  display: flex; flex-direction: column; height: 560px; border-radius: 30px; overflow: hidden;
  background: var(--chat-wall); color: var(--chat-ink);
}
.chat-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--chat-head); color: #fff; padding: 28px 14px 10px;
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0B6E4F;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.chat-title { display: flex; flex-direction: column; line-height: 1.2; }
.chat-title strong { font-size: 0.95rem; }
.chat-title small { font-size: 0.72rem; opacity: 0.8; }
.chat-body { flex: 1; padding: 10px 10px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.chat-day {
  align-self: center; margin: 2px 0 4px; padding: 3px 10px; border-radius: 8px;
  background: var(--chat-in); color: var(--chat-meta); font-size: 0.68rem;
}
.bubble {
  position: relative; padding: 6px 9px 6px; border-radius: 8px; font-size: 0.78rem; line-height: 1.35;
  max-width: 86%; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); color: var(--chat-ink);
}
.bubble-in { align-self: flex-start; background: var(--chat-in); border-top-left-radius: 0; }
.bubble .meta {
  float: right; margin: 6px 0 -4px 10px; font-size: 0.62rem; color: var(--chat-meta); white-space: nowrap;
}
.chat-input { display: flex; align-items: center; gap: 8px; padding: 8px 8px 14px; background: var(--chat-bar); }
.chat-field {
  flex: 1; padding: 8px 14px; border-radius: 20px; background: var(--chat-in); color: var(--chat-meta); font-size: 0.8rem;
}
.chat-send {
  width: 34px; height: 34px; border-radius: 50%; background: #0B6E4F; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem;
}

/* ===== Problem ===== */
.problem, .how { background: var(--bg-alt); }
.problem-callout {
  font-size: 1.15rem; font-weight: 600; max-width: 760px; margin: 0;
  padding: 22px 26px; background: var(--surface); border-left: 4px solid var(--primary); border-radius: 8px;
}

/* Two sides of one sale: sellers and customers side by side */
.side-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-bottom: 32px; }
.side { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.side h3 { margin: 0 0 14px; font-size: 1.15rem; }
.side-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-points strong { color: var(--text); }
.side-points li { color: var(--text-muted); padding-left: 24px; position: relative; }
.side-points li::before { content: "•"; position: absolute; left: 6px; top: 0; color: var(--primary); font-weight: 800; }
.solution .side-points li::before { content: "✓"; left: 0; }
.problem-callout .accent { color: var(--primary); }

.problem-premise { font-size: 1.15rem; font-weight: 600; margin: -24px 0 28px; max-width: 760px; }
/* How it works: the customer's receipt, beside the phone mockup */
.how-receipt { max-width: 720px; margin-top: 48px; }
.how-receipt h3 { margin: 0 0 12px; font-size: 1.25rem; }
.how-receipt-copy p { color: var(--text-muted); }
.how { overflow-x: clip; }

/* ===== Solution ===== */
.fix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 32px; }
.fix {
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary);
  border-radius: var(--radius); padding: 24px;
}
.fix-for {
  margin: 0 0 10px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
}
.fix h3 { margin: 0 0 12px; font-size: 1.05rem; }
.fix-msg {
  margin: 0 0 12px; padding: 9px 12px; background: var(--primary-tint); border-radius: 12px 12px 4px 12px;
  font-size: 0.85rem; color: var(--text);
}
.fix-msg code { background: none; border: none; padding: 0; }
.fix p:last-child { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.solution-more { max-width: 760px; margin: 0; font-size: 1.05rem; color: var(--text-muted); }

/* WhatsApp-style template receipt inside the phone mockup */
.bubble.receipt { display: flex; flex-direction: column; gap: 6px; max-width: 92%; }
.receipt-line { display: block; }
.receipt-footer { display: block; font-size: 0.66rem; color: var(--chat-meta); }
.receipt-buttons { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
/* The PDF attached to the receipt: a preview of its top, then the file row */
.doc-preview { display: block; height: 120px; overflow: hidden; border-radius: 6px; background: #fff; }
.doc-preview img { display: block; width: 100%; height: auto; }
.doc-file { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; background: rgba(0,0,0,0.05); }
.doc-file strong { display: block; font-size: 0.74rem; }
.doc-file small { color: var(--chat-meta); font-size: 0.66rem; }
.doc-icon { flex: none; padding: 5px 4px; border-radius: 4px; background: #E5484D; color: #fff; font-size: 0.56rem; font-weight: 800; }
/* The same PDF, full size, beside the phone */
.receipt-stage { position: relative; }
.receipt-paper {
  position: absolute; right: -60px; bottom: -36px; width: 160px; height: auto; z-index: 3;
  border-radius: 6px; box-shadow: var(--shadow); transform: rotate(3deg); background: #fff;
}
.receipt-buttons span {
  padding: 7px; border-radius: 8px; background: var(--chat-in); color: var(--chat-link);
  text-align: center; font-size: 0.78rem; font-weight: 600; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

/* ===== How Proveam is different ===== */
.different { background: var(--bg-alt); }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 14px 16px; border-top: 1px solid var(--border); }
.compare thead th { border-top: none; font-size: 0.9rem; color: var(--text-muted); }
.compare thead th:last-child, .compare td:last-child { color: var(--text); font-weight: 600; }
.compare tbody th { width: 26%; }
.compare td { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.different .solution-more { margin-top: 24px; }
@media (max-width: 700px) {
  /* Stacked rows on phones: the question, then each side, labelled. */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-top: 1px solid var(--border); padding: 6px 0; }
  .compare tr:first-child { border-top: none; }
  .compare th, .compare td { border-top: none; padding: 6px 16px; }
  .compare tbody th { width: 100%; }
  .compare td::before { content: attr(data-label); display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
}

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 760px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); }

/* ===== CTA ===== */
.cta { background: var(--fill); color: #fff; text-align: center; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.cta p { color: rgba(255,255,255,0.85); margin: 0 0 28px; font-size: 1.05rem; }
.cta .btn-primary { background: #fff; color: #08503A; }
.cta .btn-primary:hover { background: #FBF0DC; }
.cta-price { margin: 18px 0 0 !important; font-size: 1.05rem !important; color: #fff !important; }
.cta-note { margin-top: 12px !important; font-size: 0.88rem !important; }
.cta-note a { color: #fff; text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { padding: 48px 0; text-align: center; }
.footer-inner p { color: var(--text-muted); margin: 8px 0 0; font-size: 0.92rem; }
.logo-footer { display: block; margin-bottom: 4px; }
.footer-legal { font-size: 0.8rem !important; opacity: 0.75; }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  /* Not enough room beside the phone: the PDF goes under it. */
  .receipt-stage { flex-direction: column; align-items: center; gap: 20px; }
  .receipt-paper { position: static; order: 1; width: 220px; transform: rotate(2deg); }
  /* In the hero there's no room for both: the phone already shows the receipt. */
  .hero .receipt-paper { display: none; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .phone { width: 260px; }
  .fix-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding-top: 40px; padding-bottom: 56px; }
  section { padding: 56px 0; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--bg); flex-direction: column;
    align-items: flex-start; padding: 20px 24px 28px; border-bottom: 1px solid var(--border);
    gap: 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-cta { align-self: flex-start; }
  .nav-toggle { display: flex; }
  .fix-grid, .side-grid { grid-template-columns: 1fr; }
}
