/* ==========================================================
   Send CRE landing page
   Brand palette
   ========================================================== */
:root {
  --sapphire: #276bc6;
  --sapphire-dark: #1d529a;
  --icy: #add7f6;
  --icy-soft: #eef6fd;
  --willow: #90c290;   /* CTA color: used ONLY for the primary action */
  --willow-hover: #7fb67f;
  --olive: #699b58;
  --black: #080708;
  --ink: #1b1f24;
  --muted: #5a6470;
  --line: #dfe6ee;
  --white: #ffffff;
  --error: #c43b3b;

  --radius: 14px;
  --shadow: 0 18px 50px -18px rgba(8, 7, 8, .28);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); color: var(--black); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

.eyebrow {
  font: 700 .8rem/1.2 var(--font-head);
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--sapphire); margin-bottom: .9em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .8em 1.5em;
  border: 0; border-radius: 10px; cursor: pointer;
  font: 700 1rem/1.2 var(--font-head); text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-cta {
  background: var(--willow); color: var(--black);
  box-shadow: 0 6px 16px -6px rgba(105, 155, 88, .7);
}
.btn-cta:hover { background: var(--willow-hover); transform: translateY(-1px); }
.btn-cta:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 3px; }
.btn-sm { min-height: 42px; padding: .55em 1.1em; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 1em 2.2em; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--sapphire); text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--sapphire); text-decoration: none; }
.logo-mark { display: block; width: 40px; height: 40px; border-radius: 9px; }
.logo-text { font: 700 1.35rem/1 var(--font-head); color: var(--black); letter-spacing: -.02em; }
.logo-text b { color: var(--sapphire); font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--icy) 0%, transparent 60%),
    linear-gradient(180deg, var(--icy-soft), var(--white));
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 34em; }

.checks { display: grid; gap: .8rem; margin: 1.6rem 0 0; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--olive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/80% no-repeat;
}

/* ---------- Hero product visual (CSS mailer mockup) ---------- */
.mail-visual { position: relative; height: 250px; margin-top: 2.5rem; max-width: 520px; }
.letter, .envelope, .track-chip { position: absolute; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); }
.letter { left: 0; top: 0; width: 58%; padding: 18px 18px 14px; transform: rotate(-3deg); z-index: 2; }
.letter-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mini-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--sapphire); }
.letter-greet { font: 600 .78rem/1 var(--font-body); margin: 0 0 10px; color: var(--black); }
.line { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 7px; width: 100%; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.letter-foot { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; }
.sig { font: italic 600 .9rem/1 Georgia, serif; color: var(--sapphire-dark); }
.qr {
  width: 34px; height: 34px; border-radius: 4px;
  background:
    conic-gradient(var(--black) 25%, transparent 0 50%, var(--black) 0 75%, transparent 0) 0 0/8px 8px,
    var(--white);
  outline: 3px solid var(--white); box-shadow: 0 0 0 4px var(--black);
}
.envelope {
  right: 0; top: 34px; width: 52%; height: 150px; padding: 50px 22px 0 34%;
  background: linear-gradient(135deg, #f7fbff, var(--icy-soft)); border: 1px solid var(--line);
  transform: rotate(4deg);
}
.stamp { position: absolute; right: 14px; top: 14px; width: 30px; height: 36px; border: 2px dashed var(--olive); border-radius: 3px; background: var(--willow); opacity: .8; }
.track-chip {
  left: 30%; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px; border-left: 4px solid var(--olive);
}
.track-chip b { display: block; font: 800 .98rem/1.2 var(--font-head); color: var(--black); }
.track-chip small { color: var(--muted); font-size: .8rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 5px rgba(144,194,144,.35); }

/* ---------- Form card ---------- */
.form-card {
  position: relative; background: var(--white);
  border-radius: 18px; padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow); border-top: 6px solid var(--sapphire);
}
.form-kicker { font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--olive); margin-bottom: .7em; }
.form-title { font-size: 1.6rem; margin-bottom: .3em; }
.form-sub { color: var(--muted); font-size: .98rem; }

.field { margin-bottom: 14px; }
.field label { display: block; font: 600 .9rem/1.3 var(--font-body); margin-bottom: 6px; color: var(--black); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.3 var(--font-body); color: var(--ink);
  border: 1.5px solid #c9d3de; border-radius: 10px; background: #fbfdff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 4px rgba(39,107,198,.15); background: var(--white); }
.field.invalid input { border-color: var(--error); }
.error { color: var(--error); font-size: .85rem; margin: 4px 0 0; min-height: 0; }
.error:empty { display: none; }
.form-fine { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.meetings-slot { min-height: 520px; }
.meetings-placeholder {
  min-height: 520px; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--icy); border-radius: 12px; padding: 24px; color: var(--muted); background: var(--icy-soft);
}
.meetings-placeholder b { display: block; color: var(--black); font-family: var(--font-head); margin-bottom: 6px; }
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--willow); color: var(--black); font-size: 2rem; font-weight: 800; margin-bottom: 16px;
}

/* ---------- Proof bar ---------- */
.proof-bar { background: var(--black); color: var(--white); padding: 28px 0; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stat b { display: block; font: 800 1.8rem/1.1 var(--font-head); color: var(--icy); }
.stat span { font-size: .9rem; color: #c3ccd6; }
.promise b { display: block; font: 800 1.15rem/1.3 var(--font-head); color: var(--icy); }
.promise span { font-size: .9rem; color: #c3ccd6; }
[hidden] { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--icy-soft); }
.section-dark { background: var(--sapphire); color: var(--white); }
.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.section-cta { text-align: center; margin-top: 48px; }

/* Problem / compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 32px; }
.compare-col ul { display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 1.9rem; }
.compare-col.old { background: #f5f6f8; color: var(--muted); }
.compare-col.old h3 { color: var(--muted); }
.compare-col.old li::before { content: "\2715"; position: absolute; left: 0; color: #a3abb5; font-weight: 700; }
.compare-col.new { background: var(--white); border: 2px solid var(--willow); box-shadow: var(--shadow); }
.compare-col.new li::before { content: "\2713"; position: absolute; left: 0; color: var(--olive); font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--sapphire); color: var(--white); font: 800 1.15rem/1 var(--font-head); margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Reporting split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy > p { color: var(--muted); font-size: 1.08rem; }
.dash { background: var(--white); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-family: var(--font-head); }
.dash-head span { color: var(--muted); font-size: .85rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.dash-kpis div { background: var(--icy-soft); border-radius: 10px; padding: 12px 14px; }
.dash-kpis small { display: block; color: var(--muted); font-size: .78rem; }
.dash-kpis b { font: 800 1.4rem/1.2 var(--font-head); color: var(--black); }
.bar-row { margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.bar-row i { display: block; height: 10px; margin-top: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--sapphire) var(--w), var(--icy-soft) var(--w)); }
.dash-note { font-size: .75rem; color: #9aa4af; margin: 6px 0 0; text-align: right; }

/* Testimonial */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 0 20px; font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1.4 var(--font-head); color: var(--white); }
.quote figcaption { color: var(--icy); }
.quote figcaption b { color: var(--white); }
.testimonial-wrap.single { width: min(760px, 100%); }
.testimonial-wrap.multi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-wrap.multi .quote {
  text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(173,215,246,.3);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-wrap.multi blockquote { font-size: 1.1rem; font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 700 1.08rem/1.4 var(--font-head); color: var(--black);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 500; color: var(--sapphire); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Final CTA */
.final-cta { background: linear-gradient(160deg, var(--icy-soft), var(--icy)); padding: clamp(64px, 9vw, 104px) 0; }
.final-cta p { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; }

/* Footer */
.site-footer { padding: 24px 0; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Privacy modal */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, 100% - 32px); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(8,7,8,.55); }
.modal-body { padding: 32px; position: relative; font-size: .95rem; color: var(--muted); }
.modal-body h2 { font-size: 1.5rem; margin-bottom: .2em; }
.modal-body h3 { font-size: 1rem; margin: 1.4em 0 .4em; }
.modal-body a { color: var(--sapphire); }
.policy-date { font-size: .85rem; color: #8a939d; }
.modal-close {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--icy-soft); font-size: 1.5rem; cursor: pointer; color: var(--black);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .mail-visual { display: none; }            /* keep the form near the fold on tablet/mobile */
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .header-inner .btn .long { display: none; }
  .hero-copy .checks { display: none; }       /* pull the form up to the first screen; points repeat below */
  .hero { padding-top: 28px; }
  .lede { font-size: 1.05rem; }
  .checks { margin-top: 1.2rem; }
  .compare, .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .compare-col { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .site-footer { padding-bottom: 96px; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .sticky-cta.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
