@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #1d2a2b;
  --muted: #6a6f69;
  --paper: #f7f4ee;
  --card: #fbf9f5;
  --line: #ded7c9;
  --accent: #b8692a;
  --accent-text: #8f4f1c;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); max-width: 17ch; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--accent-text); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow > * { max-width: 760px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }

/* Header */
.site-head {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wordmark {
  font: 600 1.35rem/1 var(--serif);
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.site-nav { display: flex; gap: 26px; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

.button {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.button:hover { background: #2c3d3e; color: #fff; }
.button.quiet { background: transparent; color: var(--ink); }
.button.quiet:hover { background: var(--card); }
.button.small { padding: 9px 16px; font-size: 0.95rem; }

/* Hero */
.hero { padding-top: 56px; }
.eyebrow {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.lead { font-size: 1.2rem; max-width: 58ch; color: #33403f; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 0.92rem; color: var(--muted); max-width: 64ch; }
.hero-shot { margin-top: 48px; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.shot.example::before {
  content: "Example from one store's build · sample data";
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
h3.sub { margin-top: 40px; font-size: 1.15rem; }

/* Graphics are 1200px wide with small text, so on phones they scroll
   sideways at a readable size rather than shrinking to nothing. */
.shot { margin: 0; overflow-x: auto; }
.shot svg { display: block; width: 100%; height: auto; min-width: 680px; }

/* Sections */
.band { padding-top: 88px; padding-bottom: 8px; }
.intro { font-size: 1.12rem; max-width: 60ch; color: #33403f; }
.prose { max-width: 60ch; }

.split { display: grid; gap: 8px 56px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split > h2 { margin-bottom: 0; }
}

.feature {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}
.feature:last-of-type { border-bottom: 0; }
.feature-text { display: grid; gap: 4px 56px; margin-bottom: 28px; }
.feature-text p { max-width: 62ch; }
@media (min-width: 900px) {
  .feature-text { grid-template-columns: 5fr 7fr; }
}

.cols { display: grid; gap: 8px 40px; margin-top: 40px; }
.cols > div { border-top: 1px solid var(--line); padding-top: 20px; }
@media (min-width: 760px) {
  .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .cols:not(.two) { grid-template-columns: repeat(3, 1fr); }
}

/* HIPAA */
.dark {
  background: var(--ink);
  color: #e9e4da;
  margin-top: 96px;
  padding: 88px 0 72px;
}
.dark h2, .dark h3 { color: #fff; }
.dark .intro { color: #d4cfc4; }
.dark .cols > div { border-top-color: #3c4b4c; }
.dark .fine { color: #b5b9b2; margin-top: 32px; }
.dark a { color: #e3a56b; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 32px 0 24px;
  display: grid;
  gap: 28px 32px;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font: 600 0.9rem/1 var(--mono);
  color: var(--accent-text);
  margin-bottom: 12px;
}

.ask-list {
  margin: 32px 0 20px;
  padding-left: 1.1em;
  columns: 2 300px;
  column-gap: 56px;
}
.ask-list li { padding: 6px 0; break-inside: avoid; }
.ask-list li::marker { color: var(--accent); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style-position: outside;
}
summary::marker { color: var(--accent); }
details p { color: #33403f; max-width: 62ch; }

/* Contact */
.contact { padding-bottom: 88px; }
.contact-line { font: 600 clamp(1.4rem, 3.4vw, 2.2rem)/1.2 var(--serif); margin: 26px 0 10px; }
.contact-line a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.contact-line.phone { font-size: clamp(1.15rem, 2.4vw, 1.5rem); margin-top: 0; }
.contact .button { margin-top: 18px; }

.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.9rem;
  color: var(--muted);
}
.site-foot p { margin: 0; }
.site-foot a { color: var(--muted); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .hero { padding-top: 28px; }
  .band { padding-top: 64px; }
}

/* Contact dialog */
.contact-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  border: 0;
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  color: var(--ink);
}
.contact-dialog::backdrop { background: rgba(29, 42, 43, 0.55); }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-head h2 { font-size: 1.6rem; margin-bottom: 8px; }
.dialog-x {
  border: 0;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}
.contact-dialog label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.contact-dialog .opt { font-weight: 400; color: var(--muted); }
.contact-dialog input,
.contact-dialog textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #cfc6b4;
  border-radius: 6px;
}
.contact-dialog textarea { resize: vertical; min-height: 110px; }
.contact-dialog input:focus,
.contact-dialog textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-dialog .actions { margin: 6px 0 0; }
button.button { font: inherit; font-weight: 600; cursor: pointer; }
.after-send { margin-top: 20px; padding: 16px; background: var(--paper); border-radius: 6px; }
.after-send p { margin-bottom: 12px; }
.copied { margin-left: 10px; font-size: 0.92rem; color: var(--muted); }
