/* CaliperCRM — calipercrm.com
 *
 * One stylesheet, hand-written, no build step and no preprocessor (Architecture.md §2).
 *
 * NO THIRD-PARTY ORIGIN APPEARS IN THIS FILE, deliberately and permanently: no @import,
 * no webfont URL, no background pulled from a CDN. The site's CTA is a health-related
 * enquiry, so a request to somebody else's server is a request we cannot justify, and
 * shipping none of them is what means the site needs no consent banner at all
 * (Architecture.md §6). verify-web-wave1.sh fails on any off-domain reference.
 *
 * MOBILE FIRST, and not as a slogan: the call to action is "open WhatsApp", which is a
 * thing people do on a phone. Base rules are the narrow layout; the two media queries
 * only widen it. Nothing here sets a px width or min-width, so no viewport can overflow.
 */

/* ---- tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink:       #12211c;   /* body text                                    */
  --ink-soft:  #4c5b55;   /* secondary text                               */
  --bg:        #ffffff;
  --bg-soft:   #f3f6f4;   /* alternating bands                            */
  --line:      #dbe3df;
  --accent:    #0b6b3a;   /* CTA fill; white on it is ~5.7:1              */
  --accent-in: #095630;   /* its hover/active state                       */
  --warn-bg:   #fff8ec;   /* the safety callout                           */
  --warn-line: #d9a13a;

  --gap:       clamp(1.5rem, 5vw, 2.5rem);
  --band:      clamp(2.75rem, 8vw, 5rem);
  --radius:    12px;
  --measure:   36rem;     /* reading width, in ch-ish terms               */

  /* System stacks only. A webfont here would be either a third-party request or
   * ~80 KB of self-hosted files for a six-section page. */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

/* ---- reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, 0.97rem + 0.3vw, 1.125rem)/1.65 var(--sans);
  /* A long unbroken word (an email address, a URL) must wrap rather than push the
   * layout wider than the screen. This is the cheapest half of "never scrolls
   * sideways" and it applies at every width. */
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 1.25rem + 3.1vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent-in); }

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

/* ---- shell ----------------------------------------------------------------- */
.wrap {
  /* The side gutter is set once, here, and every band inherits it — so there is
   * exactly one place a narrow viewport can lose its margins. */
  width: 100%;
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
  display: inline-block;
  margin: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #fff;
}

.site-head {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark b { font-weight: 700; color: var(--accent); }

.band { padding-block: var(--band); }
.band-soft { background: var(--bg-soft); }

/* ---- hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(3rem, 9vw, 6rem) var(--band);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 24em; }
.lede {
  /* Wider than the body measure: under a headline that runs to 24em, a 36em lede
   * wraps into a narrow column and the two read as unrelated blocks. */
  max-width: 42rem;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
}

/* ---- buttons --------------------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;          /* one column when narrow, a row when there is space */
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  /* min-height, not height: the label is allowed to wrap on a 320px screen and the
   * target grows instead of clipping. 48px clears the 44px tap-target floor. */
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.btn-wa {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(18, 33, 28, 0.18);
}
.btn-wa:hover, .btn-wa:active { background: var(--accent-in); color: #fff; }

.btn-quiet {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---- lists ----------------------------------------------------------------- */
.points {
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: point;
}
.points > li { max-width: var(--measure); }
.points b { color: var(--ink); }

ol.points > li {
  position: relative;
  padding-left: 2.6rem;
  counter-increment: point;
}
ol.points > li::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---- the safety callout ---------------------------------------------------- */
.limits {
  max-width: 44rem;
  margin: 0;
  padding: clamp(1.1rem, 4vw, 1.75rem);
  border: 1px solid var(--warn-line);
  border-left-width: 5px;
  border-radius: var(--radius);
  background: var(--warn-bg);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
}

.wide { max-width: 44rem; }

.close { border-top: 1px solid var(--line); }

/* ---- prose (the privacy notice) -------------------------------------------- */
.prose .wrap > * { max-width: var(--measure); }
.prose h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.4rem);
}
.prose .meta { color: var(--ink-soft); font-size: 0.95rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.prose .back { margin-top: 2.5rem; }

/* ---- footer ---------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-foot p { margin: 0; }

/* ---- wider viewports ------------------------------------------------------- */
@media (min-width: 46em) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) 2.5rem; }
  ol.points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .hero h1 { max-width: 20em; }
}

/* Someone who asks for less motion gets none of ours; there is little to remove
 * here, and the smooth-scroll of the in-page anchors is the one thing there is. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
