/* freevisitormanagement.com — one stylesheet, no framework.
   Mobile-first; the few breakpoints are at the bottom. */

:root {
  --ink: #17202b;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --line: #dedbd2;
  --cobalt: #0047ab;
  --cobalt-dark: #003580;
  --cobalt-soft: #e7eefb;
  --ok: #1a7f4b;
  --warn: #9a5b00;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 68rem;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: 2px; }
a:hover { color: var(--cobalt-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .muted { color: var(--ink-3); }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 46rem; }

/* Publisher disclosure ribbon: sits above the nav, on every page. */
.disclosure {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-2);
  padding: .4rem 0;
}
.disclosure a { color: inherit; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .75rem 0; flex-wrap: wrap;
}
.brand { font-weight: 600; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: .55rem; }
.brand .dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--cobalt); display: inline-block; }
.brand .free { color: var(--cobalt); }
.nav nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .95rem; }
.nav nav a { color: var(--ink-2); text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.btn {
  display: inline-block; padding: .6rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; border: 1px solid var(--cobalt);
  color: var(--cobalt); background: transparent; cursor: pointer; font: inherit; font-weight: 600;
  line-height: 1.2;
}
.btn.primary { background: var(--cobalt); color: #fff; }
.btn.primary:hover { background: var(--cobalt-dark); border-color: var(--cobalt-dark); color: #fff; }
.btn:hover { background: var(--cobalt-soft); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #ffbf47; outline-offset: 2px;
}
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: 1.25rem 0; }
.cta-row .note { font-size: .9rem; color: var(--ink-3); }

section { padding: 2.5rem 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 3rem 0 2rem; }
.hero h1 { font-size: 2.3rem; max-width: 30ch; }
.hero .lede { font-size: 1.2rem; max-width: 52ch; color: var(--ink-2); }
.eyebrow { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); margin-bottom: .6rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem;
}
.card h3 { margin-top: 0; }
.card.accent { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt) inset; }
.check { list-style: none; padding: 0; }
.check li { padding-left: 1.5em; position: relative; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .8em; height: .45em;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.check.locked li::before { border-color: var(--ink-3); }

.flow { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; overflow-x: auto; }
.flow svg { display: block; min-width: 38rem; }

.refs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ref { border-left: 3px solid var(--cobalt); padding: .25rem 0 .25rem 1rem; }
.ref strong { display: block; }

table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
.table-wrap { overflow-x: auto; }

.price { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin: .25rem 0; }
.price small { font-size: .95rem; font-weight: 400; color: var(--ink-3); }
.placeholder {
  background: #fff6d8; border: 1px dashed var(--warn); color: var(--warn);
  padding: .1em .35em; border-radius: 3px; font-family: var(--mono); font-size: .85em;
}

form { max-width: 34rem; }
label { display: block; font-weight: 600; font-size: .95rem; margin: .9rem 0 .3rem; }
label .opt { font-weight: 400; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .55rem .65rem; border: 1px solid #b8b4a9;
  border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: .75rem; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #a11; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 1rem; margin: 1rem 0; }
legend { font-weight: 600; padding: 0 .3rem; }
.choice { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; margin: .4rem 0; }
.choice input { margin-top: .3em; }

.calc-out { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
.calc-out .card .big { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.02em; }
.calc-out .card .sub { color: var(--ink-3); font-size: .9rem; }
.calc-out .card table { font-size: .9rem; margin-top: .5rem; }
.calc-out .card table td:last-child { text-align: right; font-family: var(--mono); }

.checklist li { margin-bottom: .6rem; }
.checklist input { margin-right: .5rem; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 1.4rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .1rem;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--cobalt); color: #fff;
  font-weight: 600; font-family: var(--mono); display: flex; align-items: center; justify-content: center; font-size: .9rem;
}

details { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; margin-bottom: .6rem; background: #fff; }
summary { cursor: pointer; font-weight: 600; }
details p:last-child { margin-bottom: 0; }

footer.site {
  border-top: 1px solid var(--line); padding: 2rem 0; margin-top: 2rem;
  font-size: .9rem; color: var(--ink-2);
}
footer .cols { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: .5rem; }
footer ul { list-style: none; padding: 0; }
footer a { color: var(--ink-2); }

@media (min-width: 40rem) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .refs { grid-template-columns: 1fr 1fr; }
  .calc-out { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.9rem; }
}
@media (min-width: 60rem) {
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
