/* Leakproof Digital v2. Calm, minimal. Tokens come from BRAND.md. */
:root {
  --ink: #1C1A17;        /* logo ink, headings, footer */
  --text: #2B2824;       /* body copy */
  --muted: #625D56;      /* secondary copy (5.9:1 on paper) */
  --paper: #F6F4EF;      /* page */
  --paper-2: #ECE8E0;    /* alternate section */
  --card: #FDFCFA;       /* form surface */
  --rule: #DCD6CB;
  --water: #1E6A80;      /* buttons, links, focus (6.0:1 with white) */
  --water-dk: #17566A;
  --drop: #3F95AC;       /* the drop in the logo and diagram */
  --drop-lt: #5FB0C4;    /* drop on dark */
  --loss: #B04A33;       /* errors and the leak in the diagram */
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pad: clamp(18px, 4vw, 32px);
  --radius: 6px;          /* echoes the soft corners of the logo funnel */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 18px/1.62 var(--sans); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--water); text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.015em; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.06; }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.12; margin-bottom: 18px; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; letter-spacing: -.005em; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 10px 14px; z-index: 100; font-weight: 700; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--radius);
  background: var(--water); color: #fff; font: 500 17px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--water-dk); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: default; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { margin-right: auto; display: flex; align-items: center; min-height: 48px; }
.brand img { height: 44px; width: auto; }
.top-call { color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; padding: 10px 0; }
.top-call:hover { text-decoration: underline; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 22px; max-width: 14em; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 32em; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
.hero-call { color: var(--ink); font-weight: 500; padding: 10px 0; }

/* Hero visual: a simple picture of the lead dashboard (sample numbers, labeled Example) */
.deal { margin: 18px 0 0; font-size: 16px; color: var(--muted); }
.dash { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; font-size: 15px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(28,26,23,.35); }
.dash-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: var(--paper); font-weight: 500; }
.dash-top img { width: 26px; height: auto; filter: brightness(0) invert(.95); }
.dash-top span:nth-child(2) { margin-right: auto; }
.dash-tag { font-size: 12px; font-weight: 500; color: var(--ink); background: #E9E4DA; padding: 3px 8px; border-radius: 4px; }
.dash-sec { padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.dash-sec:first-of-type { border-top: 0; }
.dash-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.dash-no { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 12px; background: var(--ink); color: var(--paper); border-radius: 3px; }

.src { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.src li { display: grid; grid-template-columns: 118px 1fr 26px; align-items: center; gap: 10px; }
.src-n { color: var(--ink); line-height: 1.15; }
.src-n small { display: block; font-size: 12px; color: var(--muted); }
.src b { text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 12px; background: #EEEAE2; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--drop); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.bar i.paid { background: repeating-linear-gradient(135deg, var(--water) 0 3px, #2D7F95 3px 6px); }
.dash.on .bar i { width: var(--w); }
.src li:nth-child(2) .bar i { transition-delay: .08s; } .src li:nth-child(3) .bar i { transition-delay: .16s; } .src li:nth-child(4) .bar i { transition-delay: .24s; }
.src .gap .bar { background: none; border: 1.5px dashed #B6AFA4; height: 22px; align-items: center; padding: 0 8px; animation: blink 2.4s ease-in-out infinite; }
.src .gap .bar em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--loss); white-space: nowrap; }
.src .gap b { color: var(--loss); }
@keyframes blink { 50% { border-color: var(--loss); } }
.legend { display: flex; gap: 16px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .k { width: 12px; height: 10px; background: var(--drop); border-radius: 2px; }
.legend .k.paid { background: repeating-linear-gradient(135deg, var(--water) 0 3px, #2D7F95 3px 6px); }

.conv { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.conv li { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; min-height: 30px; }
.step { justify-self: start; display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; width: 0; min-width: 0; overflow: hidden; white-space: nowrap; background: var(--ink); color: var(--paper); border-radius: 2px; font-size: 13px; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.step b { font-weight: 700; font-size: 14px; }
.dash.on .step { width: var(--w); min-width: max-content; }
.conv li:nth-child(2) .step { transition-delay: .1s; } .conv li:nth-child(3) .step { transition-delay: .2s; } .conv li:nth-child(4) .step { transition-delay: .3s; background: var(--water); }
.leak { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.2; color: var(--loss); }
.leak i { flex: none; width: 7px; height: 10px; background: var(--loss); clip-path: polygon(30% 0, 70% 0, 70% 20%, 100% 20%, 100% 80%, 70% 80%, 70% 100%, 30% 100%, 30% 80%, 0 80%, 0 20%, 30% 20%); animation: drip 2.2s ease-in infinite; }
.conv li:nth-child(3) .leak i { animation-delay: .7s; } .conv li:nth-child(4) .leak i { animation-delay: 1.4s; }
@keyframes drip { 0%, 30% { transform: translateY(-2px); opacity: 1; } 100% { transform: translateY(7px); opacity: 0; } }

.ret { display: grid; grid-template-columns: 1fr; gap: 6px; }
.ret .bar i { transition-delay: .5s; }
.ret p { margin: 0; color: var(--ink); font-size: 14px; }
.dash-more { display: flex; align-items: center; justify-content: center; min-height: 48px; border-top: 1px solid var(--rule); font-weight: 500; font-size: 15px; text-decoration: none; }
.dash-more:hover { background: #F1EEE7; }
.ret b { font-weight: 700; }

/* Sections */
.sec { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--rule); }
.sec-alt { background: var(--paper-2); border-top: 0; }
.sec p { max-width: 38em; }

/* The three leak areas: numbered rows, not cards */
.areas { list-style: none; margin: 8px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.areas li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.area-no { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: var(--paper); font-weight: 700; border-radius: 4px; }
.areas h3 { margin: 2px 0 8px; font-size: 1.3rem; }
.areas p { margin: 0; color: var(--muted); }

/* Two-column sections: main text left, side note right under a rule */
.two-col { display: grid; gap: 28px; align-items: start; }
.col-main p { font-size: 19px; }
.col-side { border-top: 2px solid var(--ink); padding-top: 18px; }
.col-side h3 { margin-bottom: 8px; }
.col-side p { margin: 0; }
.terms { margin: 0; border-top: 2px solid var(--ink); }
.terms div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.terms dt { font-weight: 500; color: var(--muted); }
.terms dd { margin: 0; color: var(--ink); font-weight: 500; }
.terms div:nth-child(-n+2) dd { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }

/* Contact */
.contact-grid { display: grid; gap: 32px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-copy .who { color: var(--ink); padding-top: 18px; border-top: 1px solid var(--rule); margin-top: 26px; }
.call-line { color: var(--ink) !important; font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(20px, 3vw, 28px); }
.tf + .tf { margin-top: 16px; }
.tf label { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.tf em { font-style: normal; font-weight: 400; color: var(--muted); }
.tf input, .tf select, .tf textarea {
  width: 100%; font: 400 17px/1.35 var(--sans); color: var(--ink);
  background-color: #fff; border: 1.5px solid #CFC8BC; border-radius: var(--radius);
  padding: 12px 13px; min-height: 52px; -webkit-appearance: none; appearance: none;
}
.tf textarea { resize: vertical; min-height: 96px; }
.tf select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: right 19px center, right 13px center; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 38px;
}
.tf input:focus, .tf select:focus, .tf textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(30,106,128,.18); }
.tf [aria-invalid=true] { border-color: var(--loss); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-err { color: var(--loss); font-weight: 500; margin: 16px 0 0; }
.form .btn-block { margin-top: 22px; }
.form-foot { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-done h3 { margin-bottom: 8px; }
.form-done p { margin: 0; color: var(--muted); }
.form-done:focus { outline: none; }

/* Footer */
.foot { background: var(--ink); color: #CFC9BF; padding: 40px 0; }
.foot-row { display: grid; gap: 14px; }
.foot-row img { height: 30px; width: auto; }
.foot-tag { margin: 0; color: var(--paper); }
.foot-small { margin: 0; font-size: 14px; }
.foot a { color: #CFC9BF; }
.foot a:hover { color: var(--paper); }

/* Breakpoints */
@media (max-width: 559px) {
  .src li { grid-template-columns: 104px 1fr 24px; gap: 8px; }
  .dash { font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .top .btn-sm { padding: 0 14px; font-size: 15px; }
  .brand img { height: 36px; }
  .top-row { gap: 14px; }
  .top-call { display: none; }   /* the hero already has the call link right below */
}
.btn, .top-call { white-space: nowrap; }
@media (min-width: 760px) {
  .foot-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .two-col { grid-template-columns: 1.25fr .75fr; gap: 72px; }
  .col-side, .terms { margin-top: 10px; }
  .areas li { grid-template-columns: 60px 1fr; }
  .areas li > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
  .areas h3 { margin-top: 0; }
  .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i, .step { transition: none; }
  .leak i, .src .gap .bar { animation: none; }
}
