/* Tech Helps free tools. Self-hosted Inter, no third-party requests. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --charcoal: #181819;
  --warm-white: #f4f4f1;
  --orange: #ff3c01; /* accent only: buttons, link underlines, small marks. Never a background area. */
  --muted: #4a4a4c; /* body copy: 8.0:1 on warm white */
  --line: #c9c9c4;
  --card: #fbfbf9;
  /* Result colours: status only, always paired with an icon and words. */
  --red: #b3261e; --red-tint: #fbeceb; --red-ink: #7a1712;
  --amber: #8a5300; --amber-tint: #fff3d6; --amber-ink: #5c3700;
  --green: #1e7b3a; --green-tint: #e7f4eb; --green-ink: #12502a;
  --radius: 14px;
  --max: 44rem;
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--warm-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Links: charcoal text with an orange underline, so the text itself always meets AA contrast. */
a {
  color: var(--charcoal);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--warm-white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-block; text-decoration: none; }
.brand img { width: 108px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.4rem 0.85rem; font-weight: 600; font-size: 0.9rem; }
.nav a { text-decoration-color: transparent; }
.nav a:hover,
.nav a[aria-current="page"] { text-decoration-color: var(--orange); }

main { flex: 1; padding: 2.5rem 0 3.5rem; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.75rem; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.eyebrow::before,
.mark::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--orange); /* small mark */
  flex: none;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* Tool card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.card-head h2 { margin: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--charcoal);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }
.card p { color: var(--muted); }

.notify { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.notify label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.field { display: flex; flex-direction: column; gap: 0.6rem; }
input[type="email"] {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  color: var(--charcoal);
  background: #fff;
  border: 2px solid var(--charcoal);
  border-radius: 10px;
}
.hint { font-size: 0.9rem; color: var(--muted); margin: 0.6rem 0 0; }

/* Button: orange fill, charcoal text (5.0:1). */
.button {
  font: inherit;
  font-weight: 700;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  color: var(--charcoal);
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover { border-color: var(--charcoal); }

.next { margin-top: 2rem; font-weight: 600; }

/* Guide */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.steps h2, .steps h3 { font-size: 1.15rem; padding-top: 0.3rem; margin-top: 0; }
.steps p { color: var(--muted); margin-bottom: 0.5rem; }
.steps p:last-child { margin-bottom: 0; }

.notice {
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 2px solid var(--charcoal);
  border-left: 8px solid var(--orange);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 700;
}

/* Footer on charcoal: warm white text, orange links (5.0:1). */
.site-footer { background: var(--charcoal); color: var(--warm-white); padding: 2rem 0 2.5rem; font-size: 0.95rem; }
.site-footer img { width: 120px; margin-bottom: 1rem; }
.site-footer p { margin: 0 0 0.6rem; }
.site-footer a { color: var(--warm-white); text-decoration-color: var(--orange); }
.privacy { font-weight: 700; }
.privacy::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--orange); margin-right: 0.5rem; }

@media (min-width: 40rem) {
  h1 { font-size: 2.6rem; }
  main { padding: 3.5rem 0 4.5rem; }
  .card { padding: 2rem; }
  .field { flex-direction: row; }
  .field .button { flex: none; }
  .brand img { width: 150px; }
  .nav { gap: 1.25rem; font-size: 0.95rem; }
}

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

input::placeholder { color: #5c5c5e; opacity: 1; }

/* Link Check */
.check { margin-top: 2rem; }
.check label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
input[type="text"] {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.85rem;
  color: var(--charcoal);
  background: #fff;
  border: 2px solid var(--charcoal);
  border-radius: 10px;
}
input[aria-invalid="true"] { border-color: #b3261e; }
.button:disabled { cursor: progress; opacity: 0.75; }
.error {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.85rem;
  border-left: 4px solid #b3261e;
  background: #fbeceb;
  color: #7a1712; /* 8.6:1 on the tint */
  font-weight: 600;
}
.turnstile { margin-top: 0.75rem; }
.turnstile:empty { margin: 0; }

.results { margin-top: 2.5rem; padding-top: 2rem; border-top: 2px solid var(--charcoal); }
.results h2:focus { outline: none; }
.results h3 { margin-top: 2rem; }
.results-sub { color: var(--muted); }
.facts { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 1rem; }
.facts dt { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; font-weight: 700; overflow-wrap: anywhere; }

.flags, .hops { padding: 0; margin: 0.75rem 0 0; }
.flags { list-style: none; }
.flag {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-left: 6px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-bottom: 0.6rem;
}
.flag-high { border-left-color: var(--red); }
.flag-warn { border-left-color: var(--amber); }
.flag-label { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.hops { list-style: none; counter-reset: hop; }
.hop {
  counter-increment: hop;
  position: relative;
  padding: 0 0 0.9rem 2.5rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.hop:last-child { border-bottom: 0; }
.hop::before {
  content: counter(hop);
  position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  border: 2px solid var(--orange);
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 800;
}
.hop p { margin: 0; }
.hop-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; overflow-wrap: anywhere; color: var(--muted); }
.hop-note { font-weight: 600; margin-top: 0.25rem !important; }

.about { margin-top: 3rem; }
.about ul { padding-left: 1.2rem; color: var(--muted); }
.about li { margin-bottom: 0.4rem; }

/* Keep it handy */
.handy { margin-top: 3rem; }
.handy details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  margin-top: 0.6rem;
}
.handy summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 700; min-height: 48px; }
.handy details[open] summary { border-bottom: 1px solid var(--line); }
.handy ol { margin: 0; padding: 0.85rem 1rem 0.85rem 2.25rem; color: var(--muted); }
.handy li { margin-bottom: 0.3rem; }

.card .actions { margin-top: 1.25rem; }

@media (min-width: 40rem) {
  .facts { grid-template-columns: 1fr 1fr; }
}

/* Result summary */
.summary {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 2px solid;
  border-radius: var(--radius);
}
.summary p { margin: 0; }
.summary-title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; }
.summary-text { margin-top: 0.25rem !important; }
.summary-icon {
  flex: none;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.15rem;
}
.summary-red { background: var(--red-tint); border-color: var(--red); color: var(--red-ink); }
.summary-red .summary-icon { background: var(--red); }
.summary-yellow { background: var(--amber-tint); border-color: var(--amber); color: var(--amber-ink); }
.summary-yellow .summary-icon { background: var(--amber); }
.summary-green { background: var(--green-tint); border-color: var(--green); color: var(--green-ink); }
.summary-green .summary-icon { background: var(--green); }

.by-hand { margin-top: 3rem; }
.by-hand details { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-top: 0.75rem; }
.by-hand summary { cursor: pointer; padding: 0.85rem 1rem; font-weight: 700; min-height: 48px; }
.by-hand details[open] { padding-bottom: 1rem; }
.by-hand details[open] summary { border-bottom: 1px solid var(--line); }
.by-hand .steps { margin: 1.25rem 1rem 0; }
.by-hand .notice { margin: 1.5rem 1rem 0; }

/* Text pages */
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--muted); }
.prose h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.2rem; color: var(--muted); }
.prose li { margin-bottom: 0.4rem; }
.summary-box { margin: 1.5rem 0; padding: 1.1rem 1.25rem; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--orange); border-radius: var(--radius); }
.summary-box h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.summary-box ul { margin: 0; }
.summary-box li { color: var(--charcoal); }
