/* Tallyring site. One stylesheet for every page. No external requests. */

:root {
  color-scheme: light dark;
  --paper: #f3f6f0;
  --band: #e5ece1;
  --card: #ffffff;
  --line: #c9d5c7;
  --ink: #10261a;
  --ink-2: #3b5144;
  --turf: #1e5c38;
  --turf-ink: #ffffff;
  --link: #1e5c38;
  --water: #1f4c99;
  --water-text: #1f4c99;
  --water-tint: #e6edf8;
  --focus: #1f4c99;

  --display: "DIN Condensed", "Bahnschrift Condensed", "Bahnschrift", "Roboto Condensed",
    "Arial Narrow", sans-serif-condensed, "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1711;
    --band: #13211a;
    --card: #182a20;
    --line: #2c4335;
    --ink: #e4eee6;
    --ink-2: #a8bbae;
    --turf: #2e7a4c;
    --turf-ink: #ffffff;
    --link: #86d3a2;
    --water: #3a68bd;
    --water-text: #9bbcf5;
    --water-tint: #142238;
    --focus: #9bbcf5;
  }
}

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

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

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

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--card); color: var(--ink); padding: 0.6rem 1rem;
  border: 2px solid var(--focus); border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 32px; } }

/* Display type: condensed, upright, like lettering on a truck door */
.display,
.hero h1,
.block h2,
.doc h1,
.rules h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Header */
.top { padding: 1.1rem 0; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-stretch: condensed; font-weight: 700;
  font-size: 1.65rem; line-height: 1; letter-spacing: 0.02em;
}
.brand svg { width: 2rem; height: 2rem; color: var(--turf); flex: none; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover,
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Hero */
.hero { padding: 1.75rem 0 3.5rem; }
.hero h1 {
  margin: 0 0 2.25rem;
  font-size: clamp(2.8rem, 9vw, 5.75rem);
  line-height: 0.92;
  text-wrap: balance;
}
.hero h1 .then { display: block; color: var(--turf); text-wrap: balance; }
@media (prefers-color-scheme: dark) { .hero h1 .then { color: var(--link); } }

.hero-grid { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 3rem; align-items: start; }
}
.lead { font-size: 1.2rem; line-height: 1.55; margin: 0 0 1.25rem; max-width: 34ch; }
.hero-copy p { max-width: 38ch; }
.quiet { color: var(--ink-2); }

.btn {
  display: inline-block; margin: 0.5rem 0 1.25rem;
  background: var(--turf); color: var(--turf-ink);
  padding: 0.8rem 1.25rem; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.btn:hover { text-decoration: underline; }

/* The relay: two phones, your OK in between */
.relay { margin: 0; }
.phones { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .phones { grid-template-columns: 1fr 1fr; align-items: start; } }
.whose {
  margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.screen { background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.contact-bar {
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--line);
  text-align: center; font-weight: 600; font-size: 0.9rem;
}
.thread { list-style: none; margin: 0; padding: 1rem 0.8rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; }
.bubble { max-width: 90%; padding: 0.55rem 0.8rem; border-radius: 18px; font-size: 0.9rem; line-height: 1.42; }
.bubble.got { align-self: flex-start; background: var(--band); color: var(--ink); border-bottom-left-radius: 6px; }
.bubble.sent { align-self: flex-end; background: var(--turf); color: var(--turf-ink); border-bottom-right-radius: 6px; }
.bubble blockquote {
  margin: 0.45rem 0; padding: 0.5rem 0.65rem;
  background: var(--card); border-left: 3px solid var(--turf); border-radius: 8px;
}
.stamp {
  align-self: center; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2);
}
.code { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0.05em; }
.ph { text-decoration: underline dotted; text-underline-offset: 0.2em; }
.relay figcaption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--ink-2); }


/* Sections */
.block { padding: 4rem 0; border-top: 1px solid var(--line); }
.block h2 { margin: 0 0 1rem; font-size: clamp(2.1rem, 6.5vw, 3.4rem); line-height: 0.95; max-width: 20ch; }
.block .intro { max-width: 42rem; margin: 0; }

.steps { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: step; }
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 66rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 3px solid var(--turf); padding-top: 0.9rem; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 0.4rem;
  font-family: var(--display); font-stretch: condensed; font-weight: 700;
  font-size: 3.2rem; line-height: 1; color: var(--turf);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: var(--link); } }
.steps h3 { margin: 0 0 0.35rem; font-size: 1.125rem; line-height: 1.3; }
.steps p { margin: 0; }

.after { margin: 2.5rem 0 0; padding: 1.25rem 1.4rem; background: var(--band); border-radius: var(--radius); max-width: 48rem; }
.after h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.after p { margin: 0; }

.rules { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 48rem) { .rules { grid-template-columns: 1fr 1fr; } }
.rules > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem 0.6rem; }
.rules h3 { margin: 0 0 0.4rem; font-size: 1.7rem; line-height: 1; }
.rules ul { list-style: none; margin: 0; padding: 0; }
.rules li { position: relative; padding: 0.75rem 0 0.75rem 2rem; border-top: 1px solid var(--line); }
.rules li:first-child { border-top: 0; }
.rules li::before { content: ""; position: absolute; left: 0.1rem; }
.will li::before {
  top: 1rem; width: 1.05rem; height: 0.55rem;
  border-left: 3px solid var(--turf); border-bottom: 3px solid var(--turf);
  transform: rotate(-45deg);
}
@media (prefers-color-scheme: dark) { .will li::before { border-color: var(--link); } }
.wont li::before { top: 1.3rem; width: 1.05rem; height: 3px; background: var(--ink-2); }
.rules .note { font-size: 0.9rem; color: var(--ink-2); }

.customers { background: var(--water-tint); border-top: 0; }
.eyebrow {
  margin: 0 0 0.75rem; font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--water-text);
}
.qa { display: grid; gap: 1.5rem 2.5rem; margin-top: 2rem; }
@media (min-width: 48rem) { .qa { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qa h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.qa p { margin: 0; }
.kw { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; }
.more { margin: 2rem 0 0; }

.mail {
  display: inline-block; margin: 1rem 0 1.25rem;
  font-family: var(--display); font-stretch: condensed; font-weight: 700;
  font-size: clamp(1.9rem, 8vw, 3.4rem); line-height: 1.1;
  color: var(--link); text-decoration: none; border-bottom: 3px solid currentColor;
}
.mail:hover { border-bottom-width: 5px; }
.contact p { max-width: 40rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.92rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; margin: 0; padding: 0; }

/* Policy pages */
.doc { max-width: 44rem; padding: 2.5rem 0 4rem; }
.doc h1 { margin: 0 0 0.5rem; font-size: clamp(2.6rem, 10vw, 4.5rem); line-height: 0.95; }
.updated { margin: 0 0 2rem; font-family: var(--mono); font-size: 0.85rem; color: var(--ink-2); }
.doc h2 { margin: 2.4rem 0 0.5rem; font-size: 1.25rem; line-height: 1.3; }
.doc h3 { margin: 1.5rem 0 0.35rem; font-size: 1.05rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.3rem 0; }
.short { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; }
.short h2 { margin-top: 0; }
.must { font-weight: 700; }
.script { margin: 0.75rem 0; padding: 0.75rem 1rem; background: var(--band); border-left: 3px solid var(--turf); border-radius: 8px; }
.script p { margin: 0; }
