/* Veteran Tech Solutions LLC — Missed Call Rescue
   Shared stylesheet. Edit colors in :root. */

:root {
  --paper: #eceae4;
  --paper-raised: #f6f5f1;
  --ink: #16212b;
  --ink-soft: #4d5b66;
  --rule: #c9c6bd;
  --missed: #b5372a;
  --caught: #2c5b4d;
  --brass: #9a7526;
  --measure: 66ch;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
}

.wrap {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.4rem;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--missed); }

:focus-visible {
  outline: 2px solid var(--missed);
  outline-offset: 3px;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
}

.mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark span {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.masthead nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}

/* ---------- hero ---------- */

.hero { padding: 3.4rem 0 2.6rem; }

h1 {
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

/* ---------- call log ---------- */

.log {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
}

.log-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.log-row {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.4rem 0.9rem;
  align-items: baseline;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.log-row:last-child { border-bottom: 0; }

.log-time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.log-num { font-variant-numeric: tabular-nums; font-weight: 500; }

.log-note {
  grid-column: 2 / -1;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

.tag-missed { color: var(--missed); border: 1px solid var(--missed); }
.tag-caught { color: var(--caught); border: 1px solid var(--caught); }

/* ---------- sections ---------- */

section { padding: 2.8rem 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }

h2 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  font-weight: 700;
}

h3 {
  font-size: 1.06rem;
  margin: 1.8rem 0 0.4rem;
  font-weight: 600;
}

p, li { max-width: var(--measure); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }

.steps li {
  counter-increment: step;
  padding: 0.9rem 0 0.9rem 2.6rem;
  position: relative;
  border-top: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--missed);
}

.steps b { display: block; font-weight: 600; }

.price {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  background: var(--paper-raised);
}

.price .amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 1.6rem 0 0;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.3rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--missed); color: var(--paper); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-quiet:hover { background: transparent; color: var(--missed); border-color: var(--missed); }

/* ---------- legal pages ---------- */

.legal { padding: 2.6rem 0 1rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); max-width: 22ch; }
.legal h2 { font-size: 1.15rem; margin-top: 2.2rem; }
.updated { color: var(--ink-soft); font-size: 0.92rem; margin-top: -0.4rem; }

.callout {
  border-left: 3px solid var(--missed);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.4rem 0;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

footer a { color: var(--ink-soft); }
footer .veteran { color: var(--brass); font-weight: 600; }

address { font-style: normal; margin: 0 0 1rem; }

@media (max-width: 34rem) {
  .log-row { grid-template-columns: 4.2rem 1fr; }
  .tag { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
